@font-face {
  font-family: "Archivo";
  src: url("fuentes/archivo-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bitter";
  src: url("fuentes/bitter-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bitter";
  src: url("fuentes/bitter-latin-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --vino: #5a1b26;
  --vino-oscuro: #42121b;
  --verde: #142d24;
  --verde-claro: #244536;
  --cal: #e9e8dd;
  --cal-fria: #f1f0e8;
  --paja: #d3b96b;
  --tinta: #18251f;
  --tierra: #8a5b3f;
  --linea: #c7c5b7;
  --linea-oscura: #3a5546;
  --texto-tenue: #5f665d;
  --texto-claro: #c9d4c9;
  --fuente-texto: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --fuente-titulo: "Bitter", "Iowan Old Style", Georgia, serif;
  --ancho: 1240px;
  --pad: clamp(1.25rem, 5vw, 4.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cal);
  color: var(--tinta);
  font-family: var(--fuente-texto);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--fuente-titulo);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.7rem, 13vw, 8.6rem);
}

h2 {
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
}

p {
  margin: 0 0 1.1em;
  max-width: 64ch;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

.wrap {
  width: min(var(--ancho), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.dos-columnas > *,
.nota-grid > *,
.lotes-grid > *,
.contacto-grid > *,
.galeria-grid > *,
.hero-copy > * {
  min-width: 0;
}

.pendiente {
  color: var(--pendiente-color, var(--vino));
  font-size: 0.82em;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-bottom: 1px dotted currentColor;
}

.hero,
.lotes,
.contacto {
  --pendiente-color: var(--paja);
}

.salto {
  position: absolute;
  z-index: 20;
  top: -5rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  background: var(--paja);
  color: var(--vino-oscuro);
  font-weight: 700;
  text-decoration: none;
}

.salto:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--paja);
  outline-offset: 3px;
}

::selection {
  background: var(--vino);
  color: var(--cal);
}

/* Cabecera y portada */

.cabecera {
  background: var(--vino);
  color: var(--cal);
}

.cabecera-interior {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(var(--ancho), calc(100% - var(--pad) * 2));
  margin-inline: auto;
  padding-block: 1rem;
}

.marca {
  font-family: var(--fuente-titulo);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.idiomas {
  display: flex;
  flex: 0 0 auto;
  gap: 0.35rem;
}

.idioma {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid transparent;
  border-radius: 50%;
  font-size: 0.9rem;
  line-height: 1;
  text-decoration: none;
}

.idioma:hover {
  border-color: var(--paja);
}

.idioma.activo {
  border-color: var(--paja);
}

.navegacion {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.navegacion a {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  text-decoration: none;
}

.navegacion a:hover {
  border-color: var(--paja);
}

.hero {
  background: var(--vino);
  color: var(--cal);
}

.hero-panel {
  width: min(var(--ancho), calc(100% - var(--pad) * 2));
  margin-inline: auto;
  padding-block: clamp(1.6rem, 5vw, 3.5rem) clamp(2.2rem, 5vw, 3.6rem);
}

.lugar {
  margin-bottom: 1.1rem;
  color: var(--paja);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 10ch;
}

.gancho {
  margin: 1.3rem 0 0;
  color: var(--paja);
  font-family: var(--fuente-titulo);
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(14rem, 0.75fr);
  gap: 2rem;
  align-items: end;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.hero-copy p {
  max-width: 54ch;
}

.hero-copy .estado-datos {
  margin-top: 1.6rem;
  color: var(--texto-claro);
  font-size: 0.84rem;
}

.acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  padding-bottom: 0.2rem;
}

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.15rem;
  border: 1px solid var(--paja);
  background: var(--paja);
  color: var(--vino-oscuro);
  font-weight: 700;
  text-decoration: none;
}

.boton:hover {
  background: var(--cal);
  border-color: var(--cal);
}

.enlace {
  color: var(--cal);
  font-weight: 600;
  text-decoration-thickness: 1px;
}

.enlace:hover {
  color: var(--paja);
}

.hero-foto {
  position: relative;
  margin: 0;
  border-top: 2px solid var(--paja);
  background: var(--vino-oscuro);
}

.hero-foto img {
  width: 100%;
  height: clamp(17rem, 42vh, 29rem);
  object-fit: cover;
  object-position: 50% 58%;
}

.hero-foto figcaption {
  position: absolute;
  left: var(--pad);
  bottom: 1rem;
  max-width: calc(100% - var(--pad) * 2);
  padding: 0.45rem 0.65rem;
  background: var(--vino-oscuro);
  color: var(--cal);
  font-size: 0.78rem;
  line-height: 1.3;
}

.sello {
  position: absolute;
  top: 1.2rem;
  right: var(--pad);
  display: grid;
  place-content: center;
  width: 7.2rem;
  height: 7.2rem;
  border: 1px solid var(--paja);
  border-radius: 50%;
  background: var(--vino);
  color: var(--paja);
  text-align: center;
  transform: rotate(-8deg);
}

.sello span {
  display: block;
  font-family: var(--fuente-titulo);
  font-size: 1.32rem;
  font-style: italic;
  line-height: 1;
}

.sello small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

/* Secciones */

.seccion {
  padding-block: clamp(3.6rem, 8vw, 7rem);
}

section[id] {
  scroll-margin-top: 1.2rem;
}

.nota {
  padding-block: clamp(3.6rem, 8vw, 7rem);
  border-bottom: 1px solid var(--linea);
  background: var(--cal);
}

.nota-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(15rem, 0.75fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.nota h2 {
  max-width: 16ch;
  color: var(--vino);
}

.nota-texto {
  padding-top: 0.9rem;
  border-top: 1px solid var(--vino);
}

.nota-texto p {
  max-width: 44ch;
}

.dos-columnas {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.foto-grande,
.foto-alta {
  margin: 0;
}

.foto-grande img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.foto-alta img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.foto-grande figcaption,
.foto-alta figcaption {
  margin-top: 0.6rem;
  color: var(--texto-tenue);
  font-size: 0.78rem;
  line-height: 1.4;
}

.texto h2 {
  margin-bottom: 1.1rem;
  max-width: 12ch;
}

.texto p {
  max-width: 54ch;
}

.ficha {
  margin: 2rem 0 0;
  border-top: 1px solid var(--linea);
}

.ficha div {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.65rem;
  border-bottom: 1px solid var(--linea);
}

.ficha dt {
  color: var(--texto-tenue);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
}

.ficha dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.nota-pendiente {
  margin-top: 0.9rem;
  color: var(--texto-tenue);
  font-size: 0.8rem;
}

/* Los lotes */

.lotes {
  background: var(--verde);
  color: var(--cal);
}

.lotes-cabecera {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.65fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.lotes h2 {
  max-width: 14ch;
}

.lotes-cabecera p {
  max-width: 46ch;
  color: var(--texto-claro);
  font-size: 0.95rem;
}

.lotes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.plano {
  margin: 0;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--linea-oscura);
  background: var(--verde-claro);
}

.plano svg,
.plano img {
  display: block;
  width: 100%;
  height: auto;
}

.plano figcaption {
  margin-top: 1rem;
  color: var(--texto-claro);
  font-size: 0.78rem;
  line-height: 1.4;
}

.tabla-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.94rem;
}

caption {
  padding-bottom: 0.8rem;
  color: var(--paja);
  font-weight: 700;
  text-align: left;
}

th,
td {
  padding: 0.85rem 0.6rem;
  border-bottom: 1px solid var(--linea-oscura);
  text-align: left;
  vertical-align: top;
}

thead th {
  color: var(--texto-claro);
  font-size: 0.76rem;
  font-weight: 600;
}

tbody th {
  font-family: var(--fuente-titulo);
  font-size: 1.3rem;
  font-weight: 700;
}

.nota-tabla {
  margin-top: 1rem;
  max-width: 42ch;
  color: var(--texto-claro);
  font-size: 0.82rem;
}

/* Ubicación */

.ubicacion {
  background: var(--cal);
}

.ubicacion .texto h2 {
  max-width: 10ch;
}

/* Galería */

.galeria {
  border-top: 1px solid var(--linea);
  background: var(--cal-fria);
}

.galeria-cabecera {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.galeria-cabecera h2 {
  max-width: 12ch;
}

.galeria-cabecera p {
  max-width: 40ch;
  font-size: 0.95rem;
}

.galeria-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  grid-template-rows: auto auto;
  gap: clamp(1rem, 2.5vw, 1.8rem);
}

.galeria-grid figure {
  margin: 0;
}

.galeria-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g1 {
  grid-row: 1 / span 2;
}

.g1 img {
  aspect-ratio: 4 / 5;
}

.g2 img,
.g3 img {
  aspect-ratio: 4 / 3;
}

.galeria-grid figcaption {
  margin-top: 0.55rem;
  color: var(--texto-tenue);
  font-size: 0.78rem;
  line-height: 1.4;
}

/* Contacto */

.contacto {
  background: var(--verde);
  color: var(--cal);
}

.contacto-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 0.75fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contacto h2 {
  max-width: 11ch;
}

.contacto p {
  max-width: 46ch;
  color: var(--texto-claro);
}

.contacto-datos {
  margin-top: 2rem;
  border-top: 1px solid var(--linea-oscura);
}

.contacto-datos p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--linea-oscura);
  color: var(--cal);
  font-size: 0.92rem;
}

.contacto-datos span {
  color: var(--texto-claro);
}

.contacto-datos strong {
  color: var(--paja);
  font-weight: 600;
}

.formulario {
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--paja);
  background: var(--vino);
}

.formulario-nota {
  margin-bottom: 1.2rem;
  color: #e7d9d4;
  font-size: 0.84rem;
  line-height: 1.45;
}

.campo {
  margin-top: 1rem;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--cal);
  font-size: 0.8rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid #9f6d72;
  border-radius: 0;
  background: transparent;
  color: var(--cal);
}

input:focus,
textarea:focus {
  border-color: var(--paja);
  outline: 3px solid var(--paja);
  outline-offset: 2px;
}

::placeholder {
  color: #c9a1a5;
}

.formulario button {
  min-height: 3rem;
  margin-top: 1.2rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--paja);
  background: var(--paja);
  color: var(--vino-oscuro);
  font-weight: 700;
}

.formulario button:hover {
  background: var(--cal);
  border-color: var(--cal);
}

.estado {
  min-height: 1.4em;
  margin: 0.8rem 0 0;
  color: var(--paja);
  font-size: 0.84rem;
}

/* Pie */

.pie {
  padding-block: 1.4rem;
  background: var(--cal);
}

.pie-interior {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  color: var(--texto-tenue);
  font-size: 0.78rem;
}

.pie p {
  margin: 0;
  max-width: none;
}

/* Adaptación */

@media (min-width: 901px) {
  .lotes-grid .plano {
    position: sticky;
    top: 1.5rem;
  }
}

@media (max-width: 900px) {
  .hero-copy,
  .nota-grid,
  .dos-columnas,
  .lotes-cabecera,
  .lotes-grid,
  .contacto-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    gap: 1.5rem;
  }

  .nota-texto {
    max-width: 54ch;
  }

  .galeria-grid {
    grid-template-columns: 1fr;
  }

  .g1 {
    grid-row: auto;
  }

  .g1 img {
    aspect-ratio: 4 / 3;
  }

  .foto-alta img {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }

  .cabecera-interior {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
  }

  .idiomas {
    order: 2;
    margin-inline-start: auto;
  }

  .navegacion {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    font-size: 0.84rem;
    gap: 0.3rem 0.9rem;
  }

  .hero-panel {
    padding-top: 1.3rem;
  }

  .hero h1 {
    max-width: 9ch;
  }

  .hero-foto img {
    height: 15rem;
  }

  .hero-foto figcaption {
    bottom: 0.6rem;
    font-size: 0.7rem;
  }

  .sello {
    top: 0.8rem;
    right: 0.8rem;
    width: 5.5rem;
    height: 5.5rem;
  }

  .sello span {
    font-size: 1rem;
  }

  .sello small {
    font-size: 0.52rem;
  }

  .ficha div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .plano-nota {
    display: none;
  }

  .tabla-scroll {
    overflow: visible;
  }

  table {
    display: block;
    min-width: 0;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
  }

  caption {
    display: block;
    width: 100%;
  }

  tbody tr {
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--linea-oscura);
  }

  tbody th {
    padding: 0 0 0.35rem;
    border: 0;
    font-size: 1.45rem;
  }

  tbody td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.15rem 0;
    border: 0;
    font-size: 0.9rem;
  }

  tbody td::before {
    content: attr(data-label);
    color: var(--texto-claro);
    font-size: 0.76rem;
    font-weight: 600;
  }

  tbody td:last-child {
    padding-bottom: 0;
  }

  .contacto-datos p {
    flex-wrap: wrap;
    gap: 0.1rem;
  }

  .pie-interior {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
