/* ==========================================================
   Laguna de Gómez Alquileres — Página "Próximamente"
   Paleta y tipografía de marca (Poppins + azules institucionales)
   Animaciones temáticas: olas, aves, reflejos en el agua, atardecer
   ========================================================== */
:root {
  --azul: #045773;
  --azul-profundo: #02384a;
  --celeste: #318cb0;
  --celeste-claro: #b4dfee;
  --acento: #f0b97f;          /* tono cálido del atardecer */
  --blanco: #fff;
  --linea: rgba(255,255,255,.24);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --lateral: clamp(24px, 6vw, 96px);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--blanco); background: var(--azul-profundo); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blanco); color: var(--azul); padding: 8px 14px; z-index: 20; }
.skip:focus { left: 8px; }

/* ---------- ESCENA ---------- */
.escena {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto auto;
}

/* ---------- FONDO ANIMADO ---------- */
.fondo { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.fondo__foto { position: absolute; inset: -20px; transform: translate3d(var(--px, 0px), var(--py, 0px), 0); transition: transform .6s var(--ease); }
.fondo__img {
  position: absolute; inset: 0;
  background: url('../img/fondo.jpg') center 42% / cover no-repeat;
  animation: zoom 40s ease-in-out infinite alternate;
}
@keyframes zoom { from { transform: scale(1.02); } to { transform: scale(1.1); } }

.fondo__sol {                      /* resplandor del atardecer que "respira" */
  position: absolute; left: 12%; top: 38%; width: 70vmax; height: 70vmax;
  background: radial-gradient(circle, rgba(255,170,90,.38) 0%, rgba(255,120,70,.16) 32%, rgba(255,120,70,0) 62%);
  mix-blend-mode: screen; transform: translate(-30%, -30%);
  animation: resplandor 9s ease-in-out infinite alternate;
}
@keyframes resplandor { from { opacity: .45; transform: translate(-30%,-30%) scale(.94); } to { opacity: .95; transform: translate(-30%,-30%) scale(1.08); } }

.fondo__velo {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(2,56,74,.90) 0%, rgba(2,56,74,.66) 42%, rgba(2,56,74,.16) 100%),
    linear-gradient(0deg, rgba(2,40,54,.92) 0%, rgba(2,40,54,0) 48%);
}

/* Aves (avistaje de aves) */
.aves { position: absolute; inset: 0; }
.ave {
  position: absolute; left: 0; top: var(--y); width: calc(52px * var(--s)); height: auto;
  fill: none; stroke: rgba(255,255,255,.78); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  animation: vuelo var(--t) linear var(--d) infinite;
}
.ave path { transform-box: fill-box; transform-origin: 50% 100%; animation: aleteo .8s ease-in-out infinite alternate; }
@keyframes vuelo { from { translate: -12vw 0; } to { translate: 112vw -6vh; } }
@keyframes aleteo { from { transform: scaleY(1); } to { transform: scaleY(.35); } }

/* Reflejos sobre el agua */
.brillos { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; }
.brillos span {
  position: absolute; height: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255,214,160,.95), transparent);
  animation: destello var(--t) ease-in-out var(--d) infinite;
}
@keyframes destello { 0%, 100% { opacity: 0; transform: scaleX(.4); } 50% { opacity: .6; transform: scaleX(1); } }

/* Olas */
.olas { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(120px, 20vh, 200px); }
.olas__capa { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; }
.olas__capa--1 { animation: ola 34s linear infinite; }
.olas__capa--2 { height: 82%; animation: ola 24s linear infinite reverse; }
.olas__capa--3 { height: 62%; animation: ola 17s linear infinite; }
.olas__capa--1 path { fill: rgba(180,223,238,.16); }
.olas__capa--2 path { fill: rgba(49,140,176,.30); }
.olas__capa--3 path { fill: rgba(4,87,115,.62); }
@keyframes ola { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- CABECERA ---------- */
.cab { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px var(--lateral) 0; }
.cab__logo { position: relative; display: block; opacity: 0; animation: entra 1.1s var(--ease) .1s forwards; }
.cab__logo img { position: relative; height: clamp(104px, 13vw, 164px); width: auto; filter: drop-shadow(0 6px 22px rgba(0,0,0,.35)); }
.cab__logo::before, .cab__logo::after {      /* ondas expansivas detrás del isotipo */
  content: ''; position: absolute; left: 50%; top: 31%;
  width: clamp(54px, 6.6vw, 84px); aspect-ratio: 1; margin: calc(clamp(54px, 6.6vw, 84px) / -2) 0 0 calc(clamp(54px, 6.6vw, 84px) / -2);
  border: 1.5px solid rgba(255,255,255,.55); border-radius: 50%; opacity: 0;
  animation: onda 6s ease-out infinite;
}
.cab__logo::after { animation-delay: 3s; }
@keyframes onda { 0% { transform: scale(.7); opacity: .55; } 100% { transform: scale(3.2); opacity: 0; } }

.cab__info { display: flex; align-items: center; gap: 22px; font-size: 13px; font-weight: 300; letter-spacing: .14em; text-transform: uppercase; color: var(--celeste-claro); }
.cab__lugar { padding-right: 22px; border-right: 1px solid var(--linea); }
.cab__estado { font-weight: 600; letter-spacing: .26em; color: var(--blanco); }

/* ---------- CONTENIDO ---------- */
.centro { align-self: center; width: 100%; padding: 18px var(--lateral); }

.etiqueta { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; font-size: 13px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--acento); }
.etiqueta::before { content: ''; width: 48px; height: 1px; background: var(--acento); }

.centro h1 { max-width: 18ch; font-size: clamp(38px, 4.9vw, 70px); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.linea { display: block; overflow: hidden; padding-bottom: .08em; }
.linea > span { display: block; transform: translateY(112%); animation: revela 1.1s var(--ease) .35s forwards; }
.linea--fina > span { font-weight: 200; color: rgba(255,255,255,.95); animation-delay: .6s; }
@keyframes revela { to { transform: none; } }

/* Descripción: clara y cómoda de leer */
.lead { margin-top: 26px; max-width: 44ch; font-size: clamp(21px, 2vw, 27px); font-weight: 500; line-height: 1.4; letter-spacing: .01em; }
.texto { margin-top: 14px; max-width: 46ch; font-size: clamp(17px, 1.35vw, 19px); font-weight: 400; line-height: 1.85; letter-spacing: .015em; color: rgba(255,255,255,.92); }

/* Separador animado */
.separador { position: relative; width: min(460px, 100%); height: 1px; margin: 28px 0 22px; background: var(--linea); transform-origin: left; }
.separador::after { content: ''; position: absolute; left: 0; top: -1px; width: 88px; height: 3px; background: var(--acento); border-radius: 2px; animation: deslizar 5s ease-in-out infinite alternate; }
@keyframes deslizar { to { left: calc(100% - 88px); } }

/* Encontrá · Alquilá · Disfrutá */
.pasos { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; font-size: 14px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; }
.pasos i { width: 6px; height: 6px; border-radius: 50%; background: var(--acento); }

/* Cuenta regresiva (solo si se configura fecha) */
.cuenta { display: none; margin-top: 40px; }
.cuenta.is-on { display: flex; }
.cuenta__caja { padding: 0 28px; border-left: 1px solid var(--linea); }
.cuenta__caja:first-child { padding-left: 0; border-left: 0; }
.cuenta__num { display: block; font-size: clamp(30px, 3.6vw, 46px); font-weight: 200; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cuenta__lbl { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--celeste-claro); }

/* Botones */
.acciones { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.acciones:not(:has(a:not([hidden]))) { display: none; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px; border-radius: 2px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; background: var(--blanco); color: var(--azul-profundo); border: 1px solid var(--blanco); transition: background .25s, color .25s, border-color .25s, transform .25s; }
.btn:hover { background: var(--acento); border-color: var(--acento); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--ghost { background: transparent; color: var(--blanco); border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: var(--blanco); border-color: var(--blanco); color: var(--azul-profundo); }

/* ---------- LO QUE VIENE ---------- */
.rasgos { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 var(--lateral); border-top: 1px solid var(--linea); }
.rasgo { padding: 22px 32px 24px 0; transition: transform .3s var(--ease); }
.rasgo + .rasgo { padding-left: 32px; border-left: 1px solid var(--linea); }
.rasgo:hover { transform: translateY(-4px); }
.rasgo__n { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: .26em; color: var(--acento); }
.rasgo h2 { font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: .01em; }
.rasgo p { margin-top: 6px; font-size: 14.5px; font-weight: 400; line-height: 1.7; letter-spacing: .01em; color: rgba(255,255,255,.85); }

/* ---------- PIE ---------- */
.pie { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 18px var(--lateral); background: rgba(2,40,54,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-top: 1px solid var(--linea); font-size: 13px; font-weight: 300; letter-spacing: .03em; color: rgba(255,255,255,.8); }
.pie__redes { display: flex; gap: 8px; }
.pie__redes a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; transition: background .2s, border-color .2s; }
.pie__redes a:hover { background: var(--blanco); border-color: var(--blanco); }
.pie__redes svg { width: 20px; height: 20px; fill: var(--blanco); transition: fill .2s; }
.pie__redes a:hover svg { fill: var(--azul); }

/* ---------- ENTRADA ESCALONADA ---------- */
.aparece { opacity: 0; transform: translateY(18px); animation: entra .9s var(--ease) forwards; }
.etiqueta { animation-delay: .15s; }
.lead { animation-delay: .95s; } .texto { animation-delay: 1.1s; }
.separador { animation: entra .9s var(--ease) 1.25s forwards; }
.pasos { animation-delay: 1.4s; } .cuenta { animation-delay: 1.5s; } .acciones { animation-delay: 1.6s; }
.rasgos { animation-delay: 1.75s; }
@keyframes entra { to { opacity: 1; transform: none; } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .cab__lugar { display: none; }
  .rasgos { grid-template-columns: 1fr; }
  .rasgo, .rasgo + .rasgo { padding: 20px 0; border-left: 0; }
  .rasgo + .rasgo { border-top: 1px solid var(--linea); }
  .escena { background: var(--azul-profundo); }
  .fondo__foto { bottom: auto; height: calc(100vh + 40px); height: calc(100svh + 40px); }
  .fondo__velo { background: linear-gradient(180deg, rgba(2,56,74,.50) 0, rgba(2,56,74,.72) 55svh, rgba(2,40,54,.96) 100svh, rgba(2,40,54,.97) 100%); }
  .fondo__sol { left: 0; top: 40svh; }
  .aves { display: none; }                 /* sin aves en pantallas chicas: no tapan texto */
  .fondo__sol { mix-blend-mode: normal; opacity: .55; animation: none; }
  .fondo__img { animation-duration: 60s; }
  .olas { height: 110px; }
  .btn { min-height: 48px; }
}
@media (max-width: 560px) {
  .fondo__img { background-image: url('../img/fondo-movil.jpg'); background-position: 32% 42%; }
  .cab { padding-top: 24px; }
  .cab__estado { font-size: 11px; letter-spacing: .2em; }
  .centro { padding-top: 28px; }
  .lead { margin-top: 24px; max-width: 30ch; }
  .pasos { font-size: 12px; letter-spacing: .22em; gap: 10px 14px; }
  .btn { width: 100%; justify-content: center; }
  .cuenta__caja { padding: 0 16px; }
  .pie { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .aparece, .separador { opacity: 1; transform: none; }
  .linea > span { transform: none; }
  .fondo__sol { opacity: .7; }
}

/* Pantallas muy angostas (≤360px): que "Encontrá · Alquilá · Disfrutá" entre en una línea */
@media (max-width: 360px) {
  .pasos { font-size: 11px; letter-spacing: .14em; gap: 8px 10px; }
}
