/* Landing: se suma a style.css (mismos colores y encabezado). */
:root {
  --header: 61px; /* alto de la barra de arriba */
  --uv-low: #8ccc9e;
  --uv-moderate: #f5d166;
  --uv-high: #f5a366;
  --uv-very-high: #ed7878;
  --uv-extreme: #b387d9;
  --wallpaper: linear-gradient(160deg, #f6d9b8, #eeb9a4 55%, #c9a7c7);
  --lock: linear-gradient(#334066, #735966);
}
/* El fondo de pantalla queda claro también en modo oscuro: los widgets se dibujaron en claro y su borde de
   abajo es semitransparente, como en el iPhone. */

/* Al tocar una sección del menú, la página baja con una animación breve (sin ella con "reducir movimiento"). */
html:has(body.landing) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(body.landing) { scroll-behavior: auto; } }
/* El recorrido del sol sale del iPhone y no puede ensanchar la página (scroll de costado). */
.landing { overflow-x: clip; }
.landing main { max-width: 1080px; padding-top: 8px; }

/* Encabezado: el logo a la izquierda, las secciones al centro y el idioma a la derecha, alineados con el contenido
   y sin línea abajo (pedido de Ima). */
.landing header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  border-bottom: 0;
  padding-left: max(16px, calc((100% - 1080px) / 2 + 16px));
  padding-right: max(16px, calc((100% - 1080px) / 2 + 16px));
}
.landing header .sections { display: flex; gap: 4px; }
.landing header .languages { justify-self: end; }
.landing header .sections a { padding: 6px 10px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 0.9rem; }
.landing header .sections a:hover { background: var(--card); }

h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; margin: 0 0 8px; }
h3 { font-size: 1.05rem; margin: 0 0 4px; }

.block { padding: 56px 0 8px; scroll-margin-top: 72px; }
.intro { color: var(--secondary); max-width: 640px; margin: 0 0 24px; font-size: 1.05rem; }
.note { color: var(--secondary); font-size: 0.85rem; margin-top: 16px; }

/* Encabezado */
/* El encabezado entra entero en la pantalla (100svh menos la barra de arriba). */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: calc(100svh - var(--header));
  padding: 24px 0;
}
.eyebrow { color: var(--accent); font-weight: 700; margin: 0 0 8px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); line-height: 1.08; margin: 0 0 16px; letter-spacing: -0.02em; }
.lead { font-size: 1.15rem; color: var(--secondary); margin: 0 0 28px; max-width: 520px; }
.stores { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.app-store { display: inline-block; border-radius: 10px; }
.app-store img { display: block; width: 168px; height: auto; }
.later { margin: 0; color: var(--secondary); font-size: 0.95rem; font-weight: 600; }

/* Celular: todo se mide en proporción al ancho (--w), así se ve igual en cualquier pantalla. */
.hero-phone { margin: 0; display: flex; flex-direction: column; align-items: center; }
.phone {
  /* Alto del iPhone = 2,09 × ancho (71,5 × 149,6 mm, como un iPhone de verdad); lo que sobra de la pantalla es para
     los márgenes y para que el sol pase arriba. */
  --w: clamp(200px, calc((100svh - var(--header) - 150px) / 2.09), 290px);
  /* Recorrido del sol: media elipse con centro en el horizonte (--y0, medido desde arriba del iPhone). */
  --rx: calc(var(--w) * 1.25);
  --ry: calc(var(--w) * 0.98);
  --y0: calc(var(--w) * 0.76);
  position: relative;
  width: var(--w);
  aspect-ratio: 71.5 / 149.6;
  padding: calc(var(--w) * 0.035);
  border-radius: calc(var(--w) * 0.17);
  background: #1c1a1e;
  box-shadow: inset 0 0 0 2px #45414a, 0 30px 60px rgba(120, 70, 30, 0.25);
}
.phone-screen {
  height: 100%;
  border-radius: calc(var(--w) * 0.135);
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: calc(var(--w) * 0.052);
  padding: calc(var(--w) * 0.19) calc(var(--w) * 0.055) 0;
}
.phone-screen img { display: block; width: 100%; height: auto; }
.phone-screen .wide, .phone-screen .themes { grid-column: span 2; }
.status {
  position: absolute;
  inset: calc(var(--w) * 0.035) calc(var(--w) * 0.075) auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: calc(var(--w) * 0.05);
  font-weight: 700;
  color: #2a2320;
}
.island { width: calc(var(--w) * 0.3); height: calc(var(--w) * 0.088); border-radius: 999px; background: #000; }
/* Wifi y batería como en el iPhone: el contorno, la carga en verde y el botoncito del costado. */
.icons { display: flex; align-items: center; gap: calc(var(--w) * 0.018); }
.wifi { width: calc(var(--w) * 0.052); fill: #2a2320; }
.battery { position: relative; box-sizing: border-box; width: calc(var(--w) * 0.084); height: calc(var(--w) * 0.042); padding: 1.5px; border: 1px solid rgba(42, 35, 32, 0.45); border-radius: calc(var(--w) * 0.013); }
.battery::after { content: ""; position: absolute; right: -3.5px; top: 32%; width: 2px; height: 36%; border-radius: 0 1px 1px 0; background: rgba(42, 35, 32, 0.45); }
.battery span { display: block; width: 80%; height: 100%; border-radius: calc(var(--w) * 0.008); background: #34c759; }
/* Cuatro íconos en el lugar de un widget chico, como en el iPhone: Lumisol y tres apps de vidrio sin nombre. */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--w) * 0.03); padding: calc(var(--w) * 0.02); }
.app { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: calc(var(--w) * 0.034); color: #2a2320; }
.app img, .app i { display: block; width: 78%; aspect-ratio: 1; border-radius: 24%; }
.app:has(i)::after { content: "\00a0"; } /* el lugar del nombre, así quedan a la misma altura que Lumisol */
.app i { background: rgba(255, 255, 255, 0.45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.home-bar { position: absolute; left: 35%; right: 35%; bottom: calc(var(--w) * 0.03); height: 4px; border-radius: 4px; background: rgba(42, 35, 32, 0.6); }

.phone-screen .day { position: relative; }
.day img + img { position: absolute; inset: 0; }
.now { display: inline-grid; font-variant-numeric: tabular-nums; }
.now span { grid-area: 1 / 1; }

/* Un día en 12 segundos: el sol sale a las 6, cruza y se pone a las 19 (0–88 % de la vuelta); después es de noche.
   Los widgets y el reloj cambian a las 9, 11:30, 14 y 16 (20,3 %, 37,2 %, 54,2 % y 67,7 %). */
.day img + img, .now span { opacity: 0; animation: 12s linear infinite; }
/* Cada imagen entra encima de la anterior, que se va recién cuando la tapó: el widget nunca se ve transparente.
   La de abajo (8 h) queda siempre; la de las 17 se va de noche y la deja ver otra vez. */
.day img:nth-child(2) { animation-name: show-10; }
.day img:nth-child(3) { animation-name: show-13; }
.day img:nth-child(4) { animation-name: show-15; }
.day img:nth-child(5) { animation-name: show-17; }
@keyframes show-10 { 0%, 20.3% { opacity: 0; } 23.8%, 40.7% { opacity: 1; } 40.8%, 100% { opacity: 0; } }
@keyframes show-13 { 0%, 37.2% { opacity: 0; } 40.7%, 57.7% { opacity: 1; } 57.8%, 100% { opacity: 0; } }
@keyframes show-15 { 0%, 54.2% { opacity: 0; } 57.7%, 71.2% { opacity: 1; } 71.3%, 100% { opacity: 0; } }
@keyframes show-17 { 0%, 67.7% { opacity: 0; } 71.2%, 96.5% { opacity: 1; } 100% { opacity: 0; } }
/* La hora no tapa: la que se va se desvanece mientras entra la otra. */
.now span:nth-child(1) { animation-name: clock-8; }
.now span:nth-child(2) { animation-name: clock-10; }
.now span:nth-child(3) { animation-name: clock-13; }
.now span:nth-child(4) { animation-name: clock-15; }
.now span:nth-child(5) { animation-name: show-17; }
@keyframes clock-8 { 0%, 20.3% { opacity: 1; } 23.8%, 96.5% { opacity: 0; } 100% { opacity: 1; } }
@keyframes clock-10 { 0%, 20.3% { opacity: 0; } 23.8%, 37.2% { opacity: 1; } 40.7%, 100% { opacity: 0; } }
@keyframes clock-13 { 0%, 37.2% { opacity: 0; } 40.7%, 54.2% { opacity: 1; } 57.7%, 100% { opacity: 0; } }
@keyframes clock-15 { 0%, 54.2% { opacity: 0; } 57.7%, 67.7% { opacity: 1; } 71.2%, 100% { opacity: 0; } }

/* El sol va detrás del iPhone. Lo horizontal y lo vertical son dos movimientos con curvas de seno: juntos dibujan
   la media elipse a velocidad pareja, como el sol de verdad. */
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.path {
  position: absolute;
  left: calc(50% - var(--rx));
  top: calc(var(--y0) - var(--ry));
  width: calc(var(--rx) * 2);
  height: calc(var(--ry) * 2);
  border-radius: 50%;
  border: 1px solid rgba(200, 97, 28, 0.16);
  mask-image: linear-gradient(#000 20%, transparent 50%);
  -webkit-mask-image: linear-gradient(#000 20%, transparent 50%);
}
.sun { position: absolute; left: 50%; top: var(--y0); animation: sun-across 12s infinite, sun-up 12s linear infinite; }
.sun-height { animation: sun-height 12s infinite; }
@keyframes sun-across {
  0% { translate: calc(var(--rx) * -1) 0; animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1); }
  88%, 100% { translate: var(--rx) 0; }
}
@keyframes sun-height {
  0% { translate: 0 0; animation-timing-function: cubic-bezier(0.61, 1, 0.88, 1); }
  44% { translate: 0 calc(var(--ry) * -1); animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0); }
  88%, 100% { translate: 0 0; }
}
@keyframes sun-up { 0% { opacity: 0; } 5%, 83% { opacity: 1; } 88%, 100% { opacity: 0; } }
/* Cerca del horizonte es chico y naranja; al mediodía, blanco, más grande y con más luz. */
.core {
  position: absolute;
  left: -13px;
  top: -13px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  animation: sun-color 12s ease-in-out infinite;
}
@keyframes sun-color {
  0%, 88%, 100% { background: #f08a4b; scale: 0.78; box-shadow: 0 0 10px 2px #f08a4baa; }
  18.7%, 69.3% { background: #ffc861; scale: 0.98; box-shadow: 0 0 24px 6px #ffc861aa; }
  44% { background: #fff2c2; scale: 1.1; box-shadow: 0 0 32px 8px #fff2c2aa; }
}
/* La luz que el sol tira sobre la página. */
.glow {
  position: absolute;
  left: calc(var(--w) * -0.9);
  top: calc(var(--w) * -0.9);
  width: calc(var(--w) * 1.8);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 196, 110, 0.55), rgba(255, 196, 110, 0.18) 45%, transparent);
  animation: sun-glow 12s ease-in-out infinite;
}
@keyframes sun-glow {
  0%, 88%, 100% { opacity: 0; scale: 0.7; }
  5%, 83% { opacity: 0.4; scale: 0.75; }
  44% { opacity: 1; scale: 1; }
}
@media (prefers-color-scheme: dark) {
  .path { border-color: rgba(251, 245, 234, 0.14); }
}

/* Con "reducir movimiento": quieto a la 1 de la tarde. */
@media (prefers-reduced-motion: reduce) {
  .day img + img, .now span, .sun, .sun-height, .core, .glow { animation: none !important; }
  .day img:nth-child(3), .now span:nth-child(3) { opacity: 1; }
  .sun { translate: calc(var(--rx) * 0.17) calc(var(--ry) * -0.98); }
  .core { background: #fff2c2; scale: 1.1; box-shadow: 0 0 32px 8px #fff2c2aa; }
}

/* Protección: una tarjeta por función, con el widget o el aviso de verdad arriba. */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 16px; }
.feature { margin: 0; padding: 14px 14px 20px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feature.wide { grid-column: span 2; }
.feature.full { grid-column: 1 / -1; }
.feature h3 { margin: 6px 6px 0; }
.feature p { margin: 0 6px; }
.feature p:last-child { color: var(--secondary); }
/* Todas las imágenes de las tarjetas con el mismo alto: así los títulos de abajo quedan alineados. */
.art { box-sizing: border-box; height: 250px; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; overflow: hidden; margin-bottom: 8px; }
.art img { display: block; width: auto; height: auto; max-width: min(170px, 100%); max-height: 100%; }
.art img[src*="streak-large"] { max-width: 100%; } /* el calendario, lo más alto que entre */
.art.row { flex-direction: row; }
.art.row img { max-width: none; height: 170px; }
.lockscreen { background: var(--lock); }
.lockscreen img[src*="live-activity"] { width: 100%; max-width: 364px; border-radius: 22px; }
.lockscreen img[src*="dynamic-island"] { max-width: 230px; }
/* La notificación, dibujada como en el iPhone. */
.notice { display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: start; width: 100%; max-width: 345px; padding: 11px 13px; border-radius: 22px; background: rgba(246, 244, 242, 0.85); color: #111; font: 15px/20px -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; text-align: left; }
.notice img { width: 38px; height: 38px; border-radius: 9px; }
.feature .notice p { margin: 0; min-width: 0; color: #111; }
.notice-head { display: flex; gap: 8px; align-items: baseline; }
.notice-head strong { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-head span { flex: none; font-size: 13px; color: #6b6b70; }

/* Hacelo tuyo: el mismo widget en cada estilo, cada tema, con nombre y en oscuro. */
#customize h3 { margin: 20px 0 10px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.swatch { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.swatch img { display: block; width: 100%; max-width: 170px; height: auto; border-radius: 22px; box-shadow: 0 8px 24px rgba(15, 27, 51, 0.18); }
.swatch figcaption { font-size: 0.9rem; font-weight: 600; color: var(--secondary); text-align: center; }
.custom-row { display: grid; grid-template-columns: 5fr 2fr; gap: 28px; }

/* Galería */
.scenes {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  grid-template-areas: "home lock" "home standby";
  gap: 20px;
}
.scene { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.scene figcaption p { margin: 0; color: var(--secondary); font-size: 0.95rem; }
.screen { border-radius: 28px; padding: 20px; overflow: hidden; position: relative; }
.screen img { display: block; width: 100%; height: auto; }
.wallpaper { background: var(--wallpaper); }

.home { grid-area: home; }
.home .screen { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; flex: 1; }
.home .wide { grid-column: span 2; }

/* Las dos de la derecha se estiran hasta la altura de la pantalla de inicio. */
.lock .screen, .standby .screen { flex: 1; }

.lock { grid-area: lock; }
.lock .screen { background: var(--lock); color: #fff; text-align: center; padding: 18px 20px 26px; display: flex; flex-direction: column; justify-content: center; }
.clock { font-size: clamp(3rem, 8vw, 4.4rem); font-weight: 700; line-height: 1; margin: 6px 0 18px; }
.lock-row { display: flex; gap: 12px; justify-content: center; align-items: center; max-width: 360px; margin: 0 auto; }
.lock-row .round { flex: 72 1 0; min-width: 0; }
.lock-row .rect { flex: 172 1 0; min-width: 0; }

.standby { grid-area: standby; }
.standby .screen { background: #000; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 24px; align-items: center; }

/* Cómo funciona */
.steps { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.steps li {
  counter-increment: step;
  margin: 0;
  padding: 20px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--uv-high);
  color: #2a2320;
  font-weight: 700;
}

/* Cuidado */
.care h3 { margin-top: 20px; }
.scale { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale li { margin: 0; padding: 12px; border-radius: 16px; color: #2a2320; font-size: 0.92rem; line-height: 1.3; }
.scale strong { display: block; font-size: 1.2rem; }
.uv-0 { background: var(--uv-low); }
.uv-1 { background: var(--uv-moderate); }
.uv-2 { background: var(--uv-high); }
.uv-3 { background: var(--uv-very-high); }
.uv-4 { background: var(--uv-extreme); }
.sources { margin: 8px 0 0; }
.disclaimer { margin-top: 20px; padding: 14px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--secondary); }

/* Precios */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; }
.plan { padding: 24px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); }
.plan.pro { border: 2px solid var(--accent); }
.price { font-size: 1.6rem; font-weight: 700; margin: 4px 0 0; }
.price-alt { margin: 0; color: var(--secondary); }
.trial { display: inline-block; margin: 12px 0 0; padding: 4px 12px; border-radius: 999px; background: var(--uv-moderate); color: #2a2320; font-size: 0.85rem; font-weight: 700; }
.plan ul { margin: 16px 0 0; }

/* Preguntas */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.question { padding: 20px 22px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.question p { margin: 6px 0 0; }
.question .source { font-size: 0.85rem; color: var(--secondary); }

/* Pie */
.landing footer { max-width: 1080px; margin: 48px auto 0; padding: 24px 16px 48px; border-top: 1px solid var(--line); color: var(--secondary); font-size: 0.9rem; }
.landing footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
.landing footer p { margin: 6px 0; }

@media (max-width: 860px) {
  .landing header { display: flex; }
  .landing header .sections { display: none; }
  .features { grid-template-columns: 1fr; }
  .custom-row { grid-template-columns: 1fr; gap: 0; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .feature.wide, .feature.full { grid-column: auto; }
  .art.row img:not([src*="curve"]) { display: none; }
  .art.row img { width: 100%; height: auto; }
  /* En el celular: título, botón de descarga y después el iPhone, todo centrado. */
  /* El iPhone asoma desde abajo, cortado, para que el título, el badge y los dos primeros widgets entren en la
     pantalla. El cielo empieza detrás del texto (que queda adelante), de borde a borde: así el sol pasa justo debajo
     de "Google Play" sin cortarse, y su luz se desvanece arriba. */
  .hero { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 24px; align-items: start; padding: 20px 0 0; text-align: center; }
  .hero-text { position: relative; z-index: 1; }
  .lead { margin: 0 auto 20px; font-size: 1.05rem; }
  .stores { align-items: center; }
  .hero-phone {
    position: relative;
    align-self: stretch;
    overflow: hidden;
    min-height: 260px;
    margin: -110px calc(50% - 50vw) 0;
    mask-image: linear-gradient(transparent, #000 14%, #000 82%, transparent);
    -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 82%, transparent);
  }
  /* El sol sale por la izquierda de la pantalla, pasa por arriba del iPhone y se pone por la derecha. */
  .phone {
    --w: min(300px, 74vw);
    --rx: calc(var(--w) * 0.62);
    --ry: calc(var(--w) * 0.2);
    --y0: calc(var(--w) * 0.04);
    position: absolute;
    top: 150px;
    left: calc(50% - var(--w) / 2);
  }
  .glow { left: calc(var(--w) * -0.5); top: calc(var(--w) * -0.5); width: var(--w); }
  .scenes { grid-template-columns: 1fr; grid-template-areas: "home" "lock" "standby"; }
  .steps, .plans, .faq { grid-template-columns: 1fr; }
  .scale { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
  .block { padding-top: 40px; }
}

/* Celulares bajos (como el iPhone SE): el iPhone sube y el arco se achata, así igual se ven los dos widgets. */
@media (max-width: 860px) and (max-height: 700px) {
  .hero-phone { min-height: 300px; }
  .phone { top: 128px; --ry: calc(var(--w) * 0.13); --y0: calc(var(--w) * 0.02); }
}

@media (max-width: 480px) {
  .landing header { flex-wrap: nowrap; }
  .screen { border-radius: 24px; padding: 14px; }
  .home .screen { gap: 10px; }
}
