/* Finca La Unión — crema de fondo, verde y dorado del logo como acentos */

:root {
  --crema: #f6f1e7;
  --crema-2: #ede5d3;
  --tinta: #1f2a24;
  --suave: #56625b;
  --verde: #2f4d36;
  --verde-hondo: #243d2a;
  --oro: #d99a2b;
  --oro-claro: #e8b55a;
  --linea: rgba(31, 42, 36, 0.14);

  --titulos: "Fraunces", Georgia, serif;
  --texto: "Hanken Grotesk", system-ui, sans-serif;

  --margen: clamp(1rem, 5vw, 4.5rem);
  --ancho: 1240px;
  --radio: 18px;
  --sale: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.25em; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--verde); color: var(--crema); }
:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--titulos);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.5rem + 4vw, 5rem); }
h2 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); }

/* Rótulo: cursiva, sin mayúsculas, con un trazo dorado */
.rotulo {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--titulos); font-style: italic; font-weight: 400;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  color: var(--verde);
}
.rotulo::before { content: ""; width: 2rem; height: 2px; background: var(--oro); border-radius: 2px; }

.etiqueta {
  display: inline-block; padding: 0.2rem 0.75rem; border-radius: 999px;
  background: var(--oro); color: var(--tinta);
  font-size: 0.82rem; font-weight: 600;
}
.etiqueta--suave { background: var(--crema-2); color: var(--suave); }

.saltar {
  position: absolute; left: 1rem; top: -4rem; z-index: 60;
  padding: 0.6rem 1rem; border-radius: 8px;
  background: var(--tinta); color: var(--crema);
}
.saltar:focus { top: 1rem; }

.foto {
  width: 100%;
  border-radius: var(--radio);
  box-shadow: 0 30px 60px -32px rgba(31, 42, 36, 0.5);
  filter: brightness(1.08) contrast(1.06) saturate(1.15);
}

/* ---------- Barra ---------- */
.barra {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.7rem var(--margen);
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s;
}
.barra.es-solida { box-shadow: 0 1px 0 var(--linea); }
.marca { display: flex; align-items: center; text-decoration: none; }
.marca__logo { width: auto; height: 50px; }
.menu { display: flex; gap: 1.8rem; margin-left: auto; }
.menu a { text-decoration: none; font-weight: 500; color: var(--suave); transition: color 0.2s; }
.menu a:hover { color: var(--verde); }
@media (max-width: 960px) {
  .menu { display: none; }
  .barra .boton { margin-left: auto; }
}
@media (max-width: 420px) { .marca__logo { height: 40px; } }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.8rem 1.6rem;
  border: 0; border-radius: 999px;
  background: var(--verde); color: var(--crema);
  font: 700 1rem var(--texto); text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s var(--sale);
}
.boton:hover { background: var(--verde-hondo); transform: translateY(-2px); }
.boton--chico { min-height: 2.5rem; padding: 0.5rem 1.1rem; font-size: 0.92rem; }
.enlace { font-weight: 600; text-decoration-color: var(--oro); text-decoration-thickness: 2px; }
.enlace:hover { color: var(--verde); }
.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }

/* ---------- Portada ---------- */
.portada {
  max-width: var(--ancho); margin: 0 auto;
  padding: clamp(1.5rem, 4vh, 3rem) var(--margen) clamp(2rem, 5vh, 3rem);
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 900px) {
  .portada { grid-template-columns: 1fr 1.1fr; min-height: calc(100vh - 4.5rem); column-gap: 4rem; }
}
.portada__texto { display: grid; gap: 1.3rem; max-width: 32rem; justify-items: start; }
.portada__bajada { color: var(--suave); font-size: 1.2rem; }
.portada__texto .acciones { margin-top: 0.4rem; }

/* La foto con un sol dorado detrás, como en el logo */
.portada__media { position: relative; justify-self: center; isolation: isolate; }
.portada__media::before {
  content: ""; position: absolute; z-index: -1;
  width: 78%; aspect-ratio: 1; border-radius: 50%;
  right: -12%; top: -7%;
  background: radial-gradient(circle at 40% 40%, var(--oro-claro), var(--oro));
  opacity: 0.85;
}
.portada__media::after {
  content: ""; position: absolute; z-index: -1;
  width: 55%; aspect-ratio: 1; border-radius: 50%;
  left: -14%; bottom: -8%;
  background: var(--crema-2);
}
@media (min-width: 900px) {
  .portada__foto { max-height: calc(100vh - 12rem); width: auto; }
}

.datos {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  border-top: 1px solid var(--linea);
}
.datos li { padding: 1.1rem 1.2rem 0 0; color: var(--suave); line-height: 1.35; }
.datos strong { display: block; font-family: var(--titulos); font-weight: 600; font-size: 1.3rem; color: var(--tinta); }

/* ---------- Lema ---------- */
.frase {
  padding: clamp(3rem, 9vh, 5.5rem) var(--margen);
  display: grid; justify-items: center; gap: 1.4rem;
  text-align: center;
  background: var(--verde); color: var(--crema);
}
.frase p {
  max-width: 22ch;
  font-family: var(--titulos); font-style: italic;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.8rem); line-height: 1.1;
}
.frase__montes { width: 9rem; height: 1.6rem; fill: none; stroke: var(--oro); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }

/* ---------- Secciones ---------- */
.seccion {
  max-width: var(--ancho); margin: 0 auto;
  padding: clamp(3.5rem, 10vh, 6rem) var(--margen);
}
.seccion__cabeza { display: grid; gap: 0.7rem; justify-items: start; margin-bottom: clamp(2rem, 5vh, 3.2rem); }
.seccion__bajada { max-width: 38rem; color: var(--suave); font-size: 1.1rem; }

/* Bandas de color a todo el ancho */
.banda { background: var(--crema-2); }
.banda--verde { background: var(--verde-hondo); color: var(--crema); }
.banda--verde .rotulo { color: var(--oro-claro); }
.banda--verde .seccion__bajada { color: rgba(246, 241, 231, 0.75); }

/* Tarjetas de cabañas */
.tarjetas { display: grid; gap: 1.6rem; }
@media (min-width: 800px) { .tarjetas { grid-template-columns: repeat(3, 1fr); } }
.tarjeta { display: grid; gap: 1.1rem; align-content: start; }
.tarjeta .foto, .sorpresa { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; }
.tarjeta__texto { display: grid; gap: 0.45rem; justify-items: start; }
.tarjeta__texto > p:not(.etiqueta) { color: var(--suave); }
.tarjeta__texto .enlace { margin-top: 0.3rem; }
.sorpresa {
  display: grid; place-content: center; justify-items: center; gap: 1.2rem;
  border-radius: var(--radio);
  background:
    radial-gradient(circle at 50% 38%, rgba(217, 154, 43, 0.22), transparent 55%),
    var(--verde);
  color: var(--crema);
}
.sorpresa svg { width: 42%; fill: none; stroke: var(--oro-claro); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.sorpresa span { font-family: var(--titulos); font-style: italic; font-size: 1.4rem; }

/* Pilares */
.pilar {
  display: grid; gap: 1.6rem 4rem; align-items: center;
  margin-bottom: clamp(3rem, 9vh, 5rem);
}
.pilar:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .pilar { grid-template-columns: 1.3fr 1fr; }
  .pilar--invertido { grid-template-columns: 1fr 1.3fr; }
  .pilar--invertido .foto { order: 2; }
  .pilar .foto[height="2000"] { max-height: 80vh; width: auto; justify-self: center; }
}
.pilar__texto { display: grid; gap: 0.8rem; max-width: 28rem; }
.pilar__texto > p:last-child { color: var(--suave); font-size: 1.1rem; }
.pilar__numero {
  font-family: var(--titulos); font-style: italic;
  font-size: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); line-height: 0.9;
  color: var(--oro);
}

/* Galería */
.galeria { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; }
.galeria .foto { flex: 0 1 100%; width: auto; min-width: 0; }
@media (min-width: 640px) { .galeria .foto { flex-basis: calc((100% - 1.2rem) / 2); } }
@media (min-width: 960px) { .galeria .foto { flex-basis: calc((100% - 2.4rem) / 3); } }
.galeria .foto { aspect-ratio: 4 / 3; height: auto; object-fit: cover; transition: transform 0.5s var(--sale), filter 0.5s; }
.galeria .foto:hover { transform: scale(1.02); }

/* La región */
.region__lista { display: grid; gap: 1.2rem; }
@media (min-width: 700px) { .region__lista { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .region__lista { grid-template-columns: repeat(4, 1fr); } }
.region__item {
  display: grid; gap: 0.7rem; align-content: start;
  padding: 1.6rem 1.4rem 1.8rem;
  border-radius: var(--radio);
  background: rgba(246, 241, 231, 0.06);
  border: 1px solid rgba(246, 241, 231, 0.14);
  border-top: 3px solid var(--oro);
}
.region__item h3 { font-size: 1.35rem; }
.region__item > p:last-child { color: rgba(246, 241, 231, 0.75); font-size: 0.98rem; }

/* Cómo llegar */
.llegar { display: grid; justify-items: center; text-align: center; }
.llegar__texto { display: grid; gap: 1rem; justify-items: center; max-width: 40rem; }
.llegar__texto .rotulo::after { content: ""; width: 2rem; height: 2px; background: var(--oro); border-radius: 2px; }
.llegar__texto > p:not(.rotulo) { color: var(--suave); font-size: 1.15rem; margin-bottom: 0.6rem; }
.llegar__texto .acciones { justify-content: center; }

/* ---------- Más información ---------- */
.lista {
  background: var(--tinta); color: var(--crema);
  padding: clamp(4rem, 12vh, 7rem) var(--margen);
  display: grid; gap: 2.5rem;
}
@media (min-width: 900px) {
  .lista { grid-template-columns: 1fr 1.1fr; column-gap: 5rem; align-items: start;
           padding-inline: max(var(--margen), calc((100% - var(--ancho)) / 2 + var(--margen))); }
}
.lista__texto { display: grid; gap: 1rem; max-width: 28rem; }
.lista__texto p { opacity: 0.78; font-size: 1.1rem; }
.espera { display: grid; gap: 1.2rem; }
.campo { display: grid; gap: 0.35rem; }
.campo__etiqueta { font-size: 0.9rem; font-weight: 600; }
.campo__etiqueta em { font-style: normal; font-weight: 400; opacity: 0.7; }
.campo input, .campo select {
  width: 100%; min-height: 3rem; padding: 0.7rem 0;
  border: 0; border-bottom: 1px solid rgba(246, 241, 231, 0.35); border-radius: 0;
  background: transparent; color: var(--crema); font: inherit;
}
.campo select option { color: var(--tinta); }
.campo input::placeholder { color: rgba(246, 241, 231, 0.45); }
.campo input:focus, .campo select:focus { outline: none; border-bottom-color: var(--oro-claro); }
.campo input[aria-invalid="true"] { border-bottom-color: #f2a093; }
.lista .boton { background: var(--oro); color: var(--tinta); justify-self: start; margin-top: 0.5rem; }
.lista .boton:hover { background: var(--oro-claro); }
.lista :focus-visible, .banda--verde :focus-visible { outline-color: var(--crema); }
.espera__estado { font-size: 0.95rem; min-height: 1.5em; }
.espera__estado[data-tipo="error"] { color: #f2a093; }

/* ---------- Pie ---------- */
.pie {
  max-width: var(--ancho); margin: 0 auto;
  padding: 2.5rem var(--margen) 3rem;
  display: grid; gap: 1.4rem;
  font-size: 0.92rem; color: var(--suave);
}
@media (min-width: 900px) { .pie { grid-template-columns: auto 1fr auto; align-items: start; column-gap: 4rem; } }
.pie__marca { display: grid; justify-items: start; gap: 0.7rem; }
.pie__logo { width: auto; height: 64px; }
.pie__eslogan { font-family: var(--titulos); font-style: italic; font-size: 1rem; color: var(--verde); }
.pie__menu { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.pie__menu a { text-decoration: none; }
.pie__menu a:hover, .pie a:hover { color: var(--verde); }
.pie__datos { display: grid; gap: 0.3rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-flotante {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--verde); color: var(--crema);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s var(--sale);
}
.wa-flotante:hover { transform: scale(1.07); }
.wa-flotante svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- Aparición suave ---------- */
.js .revelar { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--sale), transform 0.9s var(--sale); }
.js .revelar.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .revelar { opacity: 1; transform: none; transition: none; }
  .galeria .foto:hover { transform: none; }
}

/* ---------- Selector de idioma ---------- */
.idioma {
  display: flex; align-items: center; gap: 0.15rem;
  padding: 0.2rem; border-radius: 999px;
  border: 1px solid var(--linea);
  font-size: 0.85rem; font-weight: 700;
}
.idioma > * { padding: 0.3rem 0.6rem; border-radius: 999px; line-height: 1; text-decoration: none; }
.idioma [aria-current] { background: var(--verde); color: var(--crema); }
.idioma a { color: var(--suave); }
.idioma a:hover { color: var(--verde); }
/* Flota a la izquierda del botón de WhatsApp */
.idioma--flotante > * { padding: 0.45rem 0.75rem; }
.idioma--flotante {
  position: fixed; z-index: 50;
  right: calc(1.2rem + 56px + 0.6rem); bottom: calc(1.2rem + 10px);
  background: var(--crema);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.45);
}
.boton--borde { background: transparent; color: var(--verde); box-shadow: inset 0 0 0 2px var(--verde); }
.boton--borde:hover { background: var(--verde); color: var(--crema); }
