.bloque-superior {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.columna-izda {
  flex: 1;
}

.columna-dcha-formulario {
  flex: 1;
}
.columna-dcha-formulario input[type="text"],
.columna-dcha-formulario input[type="email"],
.columna-dcha-formulario input[type="tel"],
.columna-dcha-formulario textarea {
  width: 100%;
  box-sizing: border-box;
}
.columna-dcha-formulario input {
  width: 100%;
  box-sizing: border-box;
}

.columna-dcha-formulario select {
  width: 100%;
  box-sizing: border-box;
}

.columna-dcha-formulario input[type="checkbox"] {
  width: auto;
}


.columna-dcha-formulario button {
  width: 100%;
  box-sizing: border-box;
}


article {
  width: 100%;
}

/* Menú superior */
.menu-arriba {
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: #000;
  background-color: #b0b6d5;
}

.menu-arriba a {
  text-decoration: none;
  color: #000;
}

.menu-arriba a:hover {
  color: rgb(56, 92, 140);
  text-decoration: underline;
font-weight: bold;
}

:root {
  --header-height: 200px;
  --header-height-mobile: 120px;
  --header-offset: 20px;

  --side-width: 220px;
  --content-width: 820px;
  --gap: 80px;
  --max-width: calc(
    var(--side-width) + var(--content-width) + var(--side-width) + (var(--gap) * 2)
  );

  --border: #e5e7eb;
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #ffffff;
  --soft: #f8fafc;
  --link: #0f4c81;
}

* {
  box-sizing: border-box;
}



body {
  margin: 0;
  padding-top: var(--header-height);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-color: #ebf4f0;
  text-align: justify;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: var(--header-height);
  background: var(--bg);
}

header img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

article 
{
  padding: 0px;
}

/* Layout */
.layout {
  display: grid;
  grid-template-columns: var(--side-width) minmax(0, var(--content-width)) var(--side-width);
  gap: var(--gap);
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 5px 5px;
}

.layout > main {
  grid-column: 2;
  min-width: 0;
}



/* Columnas laterales */
.ad-column {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--side-width);
  min-height: 300px;
  border: 1px dashed var(--border);
  background: var(--soft);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  z-index: 10;
}

.layout > .ad-column:first-child {
  position: fixed;
  top: calc(var(--header-height) + var(--header-offset));
  left: max(1px, calc((100vw - var(--max-width)) / 2 + 1px));
}

.layout > .ad-column:last-child {
  position: fixed;
  top: calc(var(--header-height) + var(--header-offset));
  right: max(1px, calc((100vw - var(--max-width)) / 2 + 1px));
}

h1[id] {
  scroll-margin-top: 240px;
}

/* Tipografía */
h1 {
  margin: 0 0 16px;
  font-size: 1.8rem;
  line-height: 1.2;
}

h2 {
  margin: 32px 0 16px;
  font-size: 1.35rem;
  line-height: 1.3;
}



.highlight {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--link);
  background: var(--soft);
  font-size: 1.05rem;
}

/* Tabla */
.top10-table {
  width: 100%;
  margin: 20px 0 28px;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.top10-table th,
.top10-table td {
  padding: 12px 10px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.top10-table th {
  background: var(--soft);
}

/* Grid municipios */
.municipios-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 24px;
  margin-top: 18px;
}

.municipios-grid ul {
  margin: 0;
  padding-left: 18px;
}

.municipios-grid li {
  margin-bottom: 8px;

  
/* footer */

}
footer {
  width: 100%;
  margin-top: 5px;
  padding: 5px;
  border-top: 1px solid var(--border);
  background-color: #222;
  color: #fff;
  text-align: center;
  font-size: 0.75rem;
  clear: both;
}

footer a,
footer a:visited,
footer a:active,
footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --side-width: 180px;
    --gap: 16px;
    --max-width: calc(
      var(--side-width) + var(--content-width) + var(--side-width) + (var(--gap) * 2)
    );
  }

  .municipios-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Móvil: header fijo con menos recorte */
@media (max-width: 768px) {
  body {
    padding-top: var(--header-height-mobile);
  }

  .bloque-superior {
    flex-direction: column;
  }

    header {
    height: var(--header-height-mobile);
  }

  main img {
  max-width: 100%;
  height: auto;
  display: block;
}

  header img {
    width: 100%;
    object-fit: contain;
    object-position: center center;
    background: #fff;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .layout > main {
    grid-column: 1;
  }

  .layout > .ad-column:first-child,
  .layout > .ad-column:last-child {
    display: none;
  }

  h1 {
    font-size: 1.7rem;
  }

  .municipios-grid {
    grid-template-columns: 1fr;
  }

  .top10-table {
    display: block;
    overflow-x: auto;
  }
}
.menu-arriba a:hover {
  color: rgb(56, 92, 140);
  text-decoration: underline;
  
}