/* Estilos del sitio público: landing (index/en), soporte y privacidad.
   La app del coach usa style.css, que es un sistema aparte. */

/* Figtree se auto-hospeda en vez de cargarse del CDN de Google porque la
   política de privacidad promete que no hay peticiones a terceros. Es la
   versión variable, así que un solo archivo cubre de 400 a 900. */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/figtree-variable.woff2") format("woff2");
}

:root {
  --ink: #1c1917;
  --ink-soft: #6b6560;
  --line: #e9e2da;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --accent-soft: #fff2e6;
  --bg-soft: #fdf9f4;
  --bg-warm: #fbf3ea;
  --green: #16a34a;
  --green-soft: #e8f6ec;
  --radius: 20px;
  --radius-lg: 28px;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --shadow-card: 0 2px 4px rgba(28, 25, 23, 0.03), 0 12px 32px rgba(28, 25, 23, 0.05);
  --shadow-phone: 0 4px 12px rgba(28, 25, 23, 0.08), 0 28px 60px rgba(28, 25, 23, 0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  font-size: 16.5px;
  line-height: 1.6;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 620px; }

h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.12; font-weight: 800; }
.accent { color: var(--accent-dark); }

/* ══════════ Nav ══════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 19.5px;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark img { display: block; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.nav-links a:hover { color: var(--ink); }
.nav-login {
  color: var(--ink) !important;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
}
.nav-login:hover { border-color: var(--ink); }

/* Cambio de idioma: cada opción es un enlace a la otra versión de la página,
   así el idioma vive en la URL y no hay que guardar nada en el navegador. */
.lang-switch {
  display: inline-flex;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-switch a {
  padding: 6px 11px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft) !important;
  text-decoration: none;
  line-height: 1;
}
.lang-switch a:hover { background: var(--bg-warm); }
.lang-switch a[aria-current="true"] {
  background: var(--ink);
  color: #fff !important;
}

@media (max-width: 620px) {
  .nav-links a:not(.nav-login) { display: none; }
  /* el switcher sí se queda: es lo primero que busca alguien que no lee español */
  .nav-links .lang-switch { display: inline-flex; }
  .nav-links .lang-switch a { display: block; }
  .nav-links { gap: 12px; }
}

/* ══════════ Botones ══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 14px;
  padding: 15px 28px;
  font-size: 16.5px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.2), 0 10px 24px rgba(234, 88, 12, 0.22);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:disabled { opacity: 0.6; cursor: default; box-shadow: none; }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }

/* ══════════ Marco de iPhone ══════════
   Dibujado en CSS, sin imágenes. Las capturas ya traen su barra de estado y su
   isla dinámica, así que aquí solo va el bisel: añadir un notch lo duplicaría. */
.phone {
  --phone-w: 268px;
  width: var(--phone-w);
  flex-shrink: 0;
  border-radius: 42px;
  padding: 9px;
  background: linear-gradient(160deg, #33302d 0%, #171514 46%, #3d3835 100%);
  box-shadow: var(--shadow-phone);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 33px;
  background: #fff;
}
/* Reflejo diagonal muy sutil para que el cristal no se vea plano */
.phone-glass { position: relative; }
.phone-glass::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 33px;
  pointer-events: none;
  background: linear-gradient(
    118deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0) 34%
  );
}

/* Pantalla en blanco, a la espera de la captura real del mensaje de WhatsApp.
   Mantiene la proporción de las demás para que la fila no se descuadre. */
.phone-blank {
  aspect-ratio: 560 / 1212;
  border-radius: 33px;
  background: #fff;
}

/* ══════════ Hero ══════════ */
.hero {
  padding: 64px 0 72px;
  background:
    radial-gradient(900px 420px at 78% 8%, var(--accent-soft) 0%, rgba(255, 242, 230, 0) 68%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: center;
}
.hero-copy { max-width: 560px; }
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
  background: #fff;
  border: 1.5px solid #fbd9b8;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(36px, 5.6vw, 60px); }
.lead {
  margin-top: 20px;
  font-size: clamp(16.5px, 2.2vw, 19px);
  color: var(--ink-soft);
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hero-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 600;
}

@media (max-width: 900px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; justify-items: center; text-align: center; }
  .hero-copy { max-width: 620px; }
  .hero-cta { justify-content: center; }
  .phone { --phone-w: 250px; }
}

/* ══════════ Secciones ══════════ */
.section { padding: 76px 0; }
.band { padding: 76px 0; background: var(--bg-soft); border-block: 1px solid var(--line); }
.band-warm { background: var(--bg-warm); }
.section h2, .band h2 { font-size: clamp(28px, 4.4vw, 40px); }
.section > .wrap > h2, .band > .wrap > h2 { text-align: center; }
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  margin: 14px auto 0;
  max-width: 540px;
}

/* Dolores */
.pains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.pain {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
}
.pain-ico {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.pain p { color: var(--ink-soft); font-size: 15.5px; }

/* Pasos: filas alternadas de copy + teléfono.
   El max-width y los márgenes automáticos acercan el texto al teléfono; sin
   ellos la columna de 1fr se estira y queda un hueco enorme en medio. */
.steps { margin-top: 52px; display: flex; flex-direction: column; gap: 56px; }
.step {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
}
.step:nth-child(even) { grid-template-columns: auto 1fr; }
.step:nth-child(even) .step-copy { order: 2; margin-right: auto; margin-left: 0; }
.step .step-copy { margin-left: auto; }
.steps .phone { --phone-w: 246px; }
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.step-copy { max-width: 480px; }
.step-copy h3 { font-size: clamp(21px, 3vw, 27px); margin-bottom: 10px; }
.step-copy p { color: var(--ink-soft); font-size: 16.5px; }

@media (max-width: 860px) {
  .steps { gap: 52px; }
  .step, .step:nth-child(even) {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 32px;
  }
  .step:nth-child(even) .step-copy { order: 0; margin-right: auto; }
  .step .step-copy { margin-inline: auto; }
  .step-num { margin-inline: auto; }
}

/* Banda destacada (sin señal): copy + teléfono */
.split {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  align-items: center;
}
.split-copy h2 { text-align: left; }
.split-copy p { color: var(--ink-soft); margin-top: 16px; font-size: 16.5px; }
.split-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.split-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.split-list svg { flex-shrink: 0; margin-top: 3px; color: var(--green); }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 36px; }
  .split-copy h2 { text-align: center; }
  .split-list li { text-align: left; }
}

/* Funciones */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-card);
}
.feature-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature h3 { font-size: 17px; margin-bottom: 7px; }
.feature p { color: var(--ink-soft); font-size: 15px; }

/* Galería de dos teléfonos bajo las funciones */
.shots {
  display: flex;
  gap: 34px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 52px;
}
.shot { text-align: center; }
.shot figcaption {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
}
@media (max-width: 620px) { .shots { gap: 40px; } }

/* Aviso del App Store */
.appstore {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
  text-align: left;
}
.appstore svg { flex-shrink: 0; color: var(--ink); }
/* Sin este flex el bloque de texto envuelve y el icono se queda solo arriba */
.appstore > div { flex: 1 1 280px; }
.appstore h3 { font-size: 17.5px; margin-bottom: 4px; }
.appstore p { color: var(--ink-soft); font-size: 15px; }
/* Badge oficial de Apple. Va como imagen y no redibujado a mano porque las
   normas de Apple no permiten alterarlo, y viene del sitio y no de un CDN
   porque la política de privacidad promete que no hay peticiones a terceros. */
.badge-appstore {
  /* flex y no inline-block: al lado del botón el enlace se estira a su alto,
     y así el badge queda centrado en vez de pegado arriba. */
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border-radius: 9px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.badge-appstore img { height: 48px; width: auto; display: block; }
.badge-appstore:hover { opacity: 0.85; }
.badge-appstore:active { transform: scale(0.98); }
.badge-appstore:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Apple pide dejarle aire alrededor: nunca pegado a otro elemento. */
.appstore .badge-appstore { margin-left: 6px; }


/* ══════════ Formulario ══════════ */
.section-cta { background: var(--bg-warm); border-top: 1px solid var(--line); }
.waitlist-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  margin-top: 32px;
  box-shadow: var(--shadow-card);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 7px;
}
.opt { font-weight: 400; color: var(--ink-soft); }
input, select, textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  min-height: 50px;
  appearance: none;
  -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%236b6560' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}
.form-error { color: #dc2626; font-size: 14px; margin-bottom: 12px; }
.form-note {
  margin-top: 14px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.done-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 52px 28px;
  margin-top: 32px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.done-check {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.done-card h3 { font-size: 23px; margin-bottom: 8px; }
.done-card p { color: var(--ink-soft); }

/* ══════════ Footer ══════════ */
.footer { border-top: 1px solid var(--line); padding: 32px 0; background: var(--bg-soft); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-note { font-size: 13.5px; color: var(--ink-soft); }
.footer-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
}
.footer-links a:hover { color: var(--ink); }

/* ══════════ Páginas de texto (soporte, privacidad) ══════════ */
.doc { padding: 56px 0 72px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 10px; }
.doc .updated { color: var(--ink-soft); font-size: 14px; margin-bottom: 34px; }
.doc h2 { font-size: 20px; margin: 32px 0 10px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { margin: 10px 0 0 20px; }
.doc li { margin-bottom: 7px; }
.doc a { color: var(--accent-dark); }
.contact-card {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border, #fbd9b8);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 34px;
}
.faq { border-top: 1px solid var(--line); padding: 20px 0; }
.faq h3 { font-size: 17px; margin-bottom: 7px; }
.faq p { color: var(--ink-soft); font-size: 15.5px; }

/* ══════════ Aparición al hacer scroll ══════════
   Ojo con el orden: esconder con opacity:0 solo se permite si .js-reveal está
   en el <html>, y esa clase la pone un script mínimo en el <head> que además
   comprueba IntersectionObserver. Si el JS no carga o está desactivado, la
   clase nunca aparece y el contenido se ve normal en vez de quedar invisible. */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); }
.js-reveal .reveal-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal .reveal { opacity: 1; transform: none; }
  .js-reveal .reveal-in { transition: none; }
}
