/* Colores de la marca (los mismos de la App RFV): marino #1D2D44, naranja #FF6A2B.
   La página es una sola escena oscura de amanecer; no sigue el modo claro/oscuro del equipo a propósito. */
:root {
  --cielo-0: #09131F;
  --cielo-1: #10213A;
  --cielo-2: #233F5E;
  --cielo-3: #476483;
  --texto: #FFFFFF;
  --texto-suave: rgba(255, 255, 255, .84);
  --texto-tenue: rgba(255, 255, 255, .72);
  --acento: #FF6A2B;
  --acento-hover: #FF8148;
  --acento-texto: #0B1626;
  --margen: clamp(20px, 6vw, 96px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--cielo-0); }

body {
  margin: 0;
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--texto);
  -webkit-font-smoothing: antialiased;
}

/* La escena va pegada abajo; el texto flota sobre el cielo, que es la parte despejada. */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 22px var(--margen) 22px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, var(--cielo-0) 0%, var(--cielo-1) 30%, var(--cielo-2) 58%, var(--cielo-3) 82%);
}

.escena {
  position: absolute;
  z-index: -1;
  left: 0;
  bottom: 0;
  width: 100%;
  height: clamp(300px, 50vh, 720px);
  overflow: visible; /* el brillo del sol sale hacia arriba del recuadro */
  pointer-events: none;
}
@media (min-width: 900px) {
  .escena { height: min(68vh, 760px); }
}

.marca {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .01em;
}
/* El logo oficial (triángulo con árbol) tiene fondo blanco: va sobre una pastilla blanca para que se lea sobre el cielo oscuro. */
.logo {
  display: grid;
  place-items: center;
  padding: 6px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .3);
}
.logo img { display: block; width: 72px; height: auto; }

.contenido {
  margin-top: clamp(36px, 11vh, 150px);
  max-width: 640px;
}

h1 {
  margin: 0;
  max-width: 11.5ch;
  font-size: clamp(2.7rem, 1.5rem + 5.4vw, 5.6rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.bajada {
  margin: 22px 0 28px;
  max-width: 30ch;
  font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem);
  line-height: 1.45;
  color: var(--texto-suave);
}

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 34px;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  color: var(--acento-texto);
  background: var(--acento);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(255, 106, 43, .28);
  transition: background-color .15s ease, transform .15s ease;
}
.boton:hover { background: var(--acento-hover); }
.boton:active { transform: scale(.985); }
.boton:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
@media (max-width: 520px) {
  .boton { width: 100%; max-width: 360px; }
}

.ayuda {
  margin: 18px 0 0;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.45;
  color: #fff;
  /* Este texto cae sobre las lomas claras: la sombra suave asegura que se lea. */
  text-shadow: 0 1px 12px rgba(7, 17, 29, .95), 0 0 3px rgba(7, 17, 29, .7);
}

.pie {
  margin-top: auto;
  padding-top: 40px;
  font-size: 13px;
  color: var(--texto-tenue);
}

/* ---------- Secuencia de carga (una sola, solo en la escena; el texto aparece al instante) ---------- */
.sol, .brillo { animation: amanece 1.4s ease-out .15s both; }
.cresta { animation: sube .9s ease-out both; }
.c1 { animation-delay: .1s; }
.c2 { animation-delay: .25s; }
.c3 { animation-delay: .4s; }

.linea { stroke-dasharray: 1; animation: traza 1.3s ease-out both; }
.planta { animation: brota .5s ease-out both; }
.agua { stroke-dasharray: .07 3; stroke-dashoffset: .07; animation: riega 1.9s ease-in-out 2.7s both; }

@keyframes amanece { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes sube { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes traza { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes brota { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes riega { from { stroke-dashoffset: .07; } to { stroke-dashoffset: -1.02; } }

/* Las hileras se trazan de izquierda a derecha, y las plantas brotan de cerca hacia lejos. */
.r0{animation-delay:.60s}.r1{animation-delay:.64s}.r2{animation-delay:.68s}.r3{animation-delay:.72s}.r4{animation-delay:.76s}
.r5{animation-delay:.80s}.r6{animation-delay:.84s}.r7{animation-delay:.88s}.r8{animation-delay:.92s}.r9{animation-delay:.96s}
.r10{animation-delay:1.00s}.r11{animation-delay:1.04s}.r12{animation-delay:1.08s}.r13{animation-delay:1.12s}.r14{animation-delay:1.16s}
.r15{animation-delay:1.20s}.r16{animation-delay:1.24s}.r17{animation-delay:1.28s}.r18{animation-delay:1.32s}

.planta.d1{animation-delay:1.40s}.planta.d2{animation-delay:1.47s}.planta.d3{animation-delay:1.54s}.planta.d4{animation-delay:1.61s}
.planta.d5{animation-delay:1.68s}.planta.d6{animation-delay:1.75s}.planta.d7{animation-delay:1.82s}.planta.d8{animation-delay:1.89s}
.planta.d9{animation-delay:1.96s}.planta.d10{animation-delay:2.03s}.planta.d11{animation-delay:2.10s}.planta.d12{animation-delay:2.17s}
.planta.d13{animation-delay:2.24s}

.agua.r0,.agua.r9{animation-delay:2.70s}.agua.r1,.agua.r10{animation-delay:2.78s}.agua.r2,.agua.r11{animation-delay:2.86s}
.agua.r3,.agua.r12{animation-delay:2.94s}.agua.r4,.agua.r13{animation-delay:3.02s}.agua.r5,.agua.r14{animation-delay:3.10s}
.agua.r6,.agua.r15{animation-delay:3.18s}.agua.r7,.agua.r16{animation-delay:3.26s}.agua.r8,.agua.r17{animation-delay:3.34s}.agua.r18{animation-delay:3.42s}

/* Si el equipo pide menos movimiento, la escena aparece ya terminada. */
@media (prefers-reduced-motion: reduce) {
  .sol, .brillo, .cresta, .linea, .planta, .agua { animation: none !important; }
}
