/*
 * «Dónde vendemos» (src/site/towns-page.ts, 2026-11-20): a page designed by Claude at Jose's request, in the type
 * and colours of the home and /videos (#1B3D14 text, #4A5D43 secondary text, #3A7A26 and #4C9D33 greens,
 * #F6F4EE cream, #E6E2D6 and #D3E5CB lines). Its core is the table of the towns.
 */
.dv-main {
  background: #ffffff;
  color: #1b3d14;
}

.dv-dentro {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px clamp(20px, 4vw, 48px);
}

.dv-dentro--estrecho {
  max-width: 860px;
}

.dv-cabecera {
  background: #f6f4ee;
  border-bottom: 1px solid #e6e2d6;
}

.dv-cabecera .dv-dentro {
  padding-top: 36px;
}

.dv-migas {
  font-size: 15px;
  color: #4a5d43;
}

.dv-migas a {
  color: #3a7a26;
}

.dv-kicker {
  margin: 28px 0 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #3a7a26;
}

.dv-titulo {
  max-width: 900px;
  margin: 12px 0 0;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.dv-entradilla {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.55;
  color: #4a5d43;
}

.dv-tabla-seccion h2,
.dv-texto h2 {
  margin: 0 0 20px;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.dv-tabla-marco {
  overflow-x: auto;
  border: 1px solid #e6e2d6;
  border-radius: 16px;
}

.dv-tabla {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 17px;
}

.dv-tabla th,
.dv-tabla td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #ece9df;
  vertical-align: baseline;
}

.dv-tabla thead th {
  background: #f6f4ee;
  font-size: 14px;
  font-weight: 700;
  color: #4a5d43;
}

.dv-tabla tbody tr:last-child th,
.dv-tabla tbody tr:last-child td {
  border-bottom: 0;
}

.dv-tabla tbody th a {
  color: #1b3d14;
  font-weight: 700;
  text-decoration-color: #4c9d33;
  text-underline-offset: 3px;
}

.dv-tabla td {
  font-variant-numeric: tabular-nums;
}

/* A gap between «m²» and the source mark, so «€/m²¹» does not read as one exponent. */
.dv-tabla sup {
  margin-left: 0.25em;
}

.dv-tabla sup a,
.dv-fuentes a,
.dv-texto p a {
  color: #3a7a26;
}

.dv-nota {
  max-width: 860px;
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: #4a5d43;
}

.dv-texto .dv-dentro {
  padding-top: 8px;
}

.dv-texto p {
  margin: 0 0 36px;
  font-size: 18px;
  line-height: 1.65;
}

.dv-fuentes {
  margin: 0;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.55;
  color: #4a5d43;
}

.dv-fuentes li {
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.dv-llamada {
  background: #1b3d14;
  color: #eef6ea;
}

.dv-llamada h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
}

.dv-llamada p {
  margin: 12px 0 24px;
  max-width: 640px;
  font-size: 18px;
  line-height: 1.5;
  color: #c6ddbc;
}

.dv-boton {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  background: #4c9d33;
  color: #10260c;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.dv-boton:focus-visible,
.dv-migas a:focus-visible,
.dv-tabla a:focus-visible,
.dv-texto a:focus-visible {
  outline: 3px solid #4c9d33;
  outline-offset: 3px;
}

/* On a phone the three columns fit without scrolling sideways, so the plusvalía stays in view. */
@media (max-width: 600px) {
  .dv-tabla {
    min-width: 0;
    font-size: 15px;
  }

  .dv-tabla th,
  .dv-tabla td {
    padding: 12px 10px;
  }

  .dv-tabla thead th {
    font-size: 13px;
  }
}
