:root {
  --cream: #fdf9f0;
  --cream-2: #f5f0e4;
  --ink: #2b2620;
  --ink-soft: #5c5548;
  --green: #2f9d5e;
  --green-soft: #e4f3ea;
  --teal: #1f8f7a;
  --gold: #e1a129;
  --card: #ffffff;
  --border: rgba(43, 38, 32, 0.09);
}
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #131210;
    --cream-2: #17150f;
    --ink: #f3efe6;
    --ink-soft: #a89f91;
    --green: #4fc784;
    --green-soft: #17261d;
    --teal: #3fb39c;
    --gold: #f2c25a;
    --card: #1c1a15;
    --border: rgba(243, 239, 230, 0.08);
  }
}
:root[data-theme="dark"] {
  --cream: #131210;
  --cream-2: #17150f;
  --ink: #f3efe6;
  --ink-soft: #a89f91;
  --green: #4fc784;
  --green-soft: #17261d;
  --teal: #3fb39c;
  --gold: #f2c25a;
  --card: #1c1a15;
  --border: rgba(243, 239, 230, 0.08);
}
:root[data-theme="light"] {
  --cream: #fdf9f0;
  --cream-2: #f5f0e4;
  --ink: #2b2620;
  --ink-soft: #5c5548;
  --green: #2f9d5e;
  --green-soft: #e4f3ea;
  --teal: #1f8f7a;
  --gold: #e1a129;
  --card: #ffffff;
  --border: rgba(43, 38, 32, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 840px; margin: 0 auto; padding: 0 24px; }

/* ---------- Language switch + theme toggle ---------- */

.controls {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 6px 18px var(--border);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.theme-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.lang-switch {
  display: flex;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  box-shadow: 0 6px 18px var(--border);
}
.lang-switch a {
  padding: 6px 13px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}
.lang-switch a[aria-current="true"] {
  background: var(--ink);
  color: var(--cream);
}
.lang-switch a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (max-width: 480px) {
  .controls { top: 14px; right: 14px; }
}

/* ---------- Hero ---------- */

header.hero {
  max-width: 1220px;
  margin: 0 auto;
  padding: 96px 24px 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
}
.hero-copy { max-width: 500px; }
.icon {
  width: 92px;
  height: 92px;
  border-radius: 21px;
  box-shadow: 0 8px 22px var(--border);
  margin-bottom: 30px;
  display: block;
}
h1 {
  font-size: clamp(44px, 6.4vw, 68px);
  font-weight: 800;
  line-height: 1.02;
  margin: 0 0 22px;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.subhead {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 430px;
  margin: 0 0 26px;
  line-height: 1.5;
}
.differentiator {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--teal);
  margin: 0 0 34px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.differentiator::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--cream);
  padding: 16px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16.5px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.cta:hover { transform: translateY(-1px); opacity: 0.92; }
.cta:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.cta svg { width: 18px; height: 18px; flex-shrink: 0; }
.cta-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

/* Maqueta del teléfono, a puro CSS. Protagonista: grande, con un halo de
   fondo extremadamente sutil y una respiración lentísima — nada de brillo
   llamativo. */
.phone-stage {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-stage::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, var(--green-soft) 0%, transparent 70%);
  filter: blur(4px);
}
.phone {
  flex-shrink: 0;
  width: 366px;
  /* Relación real de una captura de iPhone 16 Pro (1206 × 2622 px). Tiene
     que coincidir con la de las capturas, si no object-fit: cover recorta
     los bordes y el ícono de batería queda superpuesto con la curva del
     bisel — la "isla" ya viene renderizada en la propia captura, no hace
     falta dibujar una encima. */
  aspect-ratio: 201 / 437;
  background: #0a0a0a;
  border-radius: 46px;
  /* Bisel fino (proporción real de un iPhone moderno), no un marco grueso
     de utilería — a mayor tamaño le corresponde un bisel apenas mayor, no
     el mismo grosor fijo (eso es lo que lo hacía ver pesado en los
     mockups chicos). */
  padding: 7px;
  box-shadow: 0 52px 100px -28px rgba(0, 0, 0, 0.55), 0 12px 28px var(--border);
  position: relative;
  z-index: 1;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 39px;
  display: block;
}
.phone-sm {
  width: 168px;
  border-radius: 24px;
  padding: 4px;
}
.phone-sm img { border-radius: 20px; }

@media (prefers-reduced-motion: no-preference) {
  .phone-stage::before { animation: breathe 7s ease-in-out infinite; }
  .hero-copy > * { animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
  .hero-copy .icon { animation-delay: 0s; }
  .hero-copy h1 { animation-delay: 0.05s; }
  .hero-copy .subhead { animation-delay: 0.1s; }
  .hero-copy .differentiator { animation-delay: 0.15s; }
  .hero-copy .cta { animation-delay: 0.2s; }
  .phone-stage { animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.12s backwards; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes breathe {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.045); }
}

@media (max-width: 780px) {
  header.hero { flex-direction: column; padding-top: 60px; gap: 44px; text-align: center; }
  .hero-copy { text-align: center; max-width: 460px; }
  .subhead, .cta-note { margin-left: auto; margin-right: auto; }
  .icon { margin-left: auto; margin-right: auto; }
  .differentiator { justify-content: center; }
  .phone { width: 268px; border-radius: 36px; padding: 5px; }
  .phone img { border-radius: 31px; }
  .phone-stage::before { width: 420px; height: 420px; }
}

/* ---------- Section heading pattern (shared) ---------- */

.section-head {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 52px;
}
.section-head h2 {
  font-size: clamp(30px, 4.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 17px;
  margin: 0;
}

section { padding: 100px 0; }
section + section { border-top: 1px solid var(--border); }

/* ---------- Benefits ---------- */

.benefits-grid {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 640px) {
  .benefits-grid { grid-template-columns: 1fr; }
}
.benefit-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
@media (hover: hover) {
  .benefit-card:hover {
    transform: translateY(-3px);
    border-color: var(--teal);
    box-shadow: 0 16px 32px var(--border);
  }
}
.benefit-card .icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.benefit-card .icon-badge svg { width: 27px; height: 27px; stroke: var(--teal); }
.benefit-card h3 { margin: 0 0 7px; font-size: 17.5px; font-weight: 700; letter-spacing: -0.01em; }
.benefit-card p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Daily experience (spotlight) ---------- */

section.daily-experience { background: var(--cream-2); }
.spotlight {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.spotlight .phone-stage { margin-top: 8px; }
.spotlight .phone-stage::before { width: 460px; height: 460px; }
.spotlight .phone { width: 320px; border-radius: 41px; padding: 6px; }
.spotlight .phone img { border-radius: 35px; }
@media (max-width: 620px) {
  .spotlight .phone { width: 250px; border-radius: 34px; padding: 5px; }
  .spotlight .phone img { border-radius: 29px; }
  .spotlight .phone-stage::before { width: 360px; height: 360px; }
}

/* ---------- Showcase (personalization / progress) ---------- */

.gallery {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}
.gallery-item {
  margin: 0;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gallery-item .phone { margin-bottom: 22px; }
.gallery-item h3 { margin: 0 0 5px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.gallery-item p { margin: 0; font-size: 13.5px; color: var(--ink-soft); text-align: center; }

.gallery .phone-sm { width: 188px; border-radius: 27px; padding: 4px; }
.gallery .phone-sm img { border-radius: 23px; }

.gallery.gallery-2 { gap: 44px; }
.gallery.gallery-2 .gallery-item { width: 250px; }
.gallery.gallery-2 .phone-sm { width: 236px; border-radius: 33px; padding: 5px; }
.gallery.gallery-2 .phone-sm img { border-radius: 28px; }

/* ---------- Privacy ---------- */

section.privacy { text-align: center; }
section.privacy h2 {
  font-size: clamp(32px, 4.6vw, 46px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 26px;
  text-wrap: balance;
}
.privacy-marks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}
.privacy-marks span { white-space: nowrap; }
section.privacy > .wrap > p {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.6;
}
.privacy-icons {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 44px;
}
.privacy-icon {
  width: 42px;
  height: 42px;
  color: var(--ink-soft);
  opacity: 0.7;
}
.privacy-icon svg { width: 100%; height: 100%; stroke-width: 1.5; }

/* ---------- Final CTA ---------- */

section.final-cta {
  text-align: center;
  background: var(--cream-2);
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
}
section.final-cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 620px;
  height: 620px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--green-soft) 0%, transparent 68%);
  filter: blur(6px);
  pointer-events: none;
}
section.final-cta .wrap { position: relative; }
section.final-cta h2 {
  font-size: clamp(34px, 4.8vw, 48px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
  text-wrap: balance;
}
section.final-cta > .wrap > p {
  color: var(--ink-soft);
  font-size: 17px;
  margin: 0 0 32px;
}

/* ---------- Disclaimer + footer ---------- */

.health-note {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 24px 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
  opacity: 0.7;
  text-align: center;
  position: relative;
}

footer {
  padding: 32px 24px 44px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}
footer a { color: var(--ink-soft); text-decoration: underline; }
footer a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
footer .links { margin-bottom: 10px; }
footer .links a { margin: 0 10px; }
