/* Landing de HuellitApp.
   Acento: el verde de la app (frontend/src/index.css). Un solo acento en toda la página.
   Forma: radio de 6px en todo (botones, tarjetas, campos); 4px en etiquetas chicas. */
:root {
  --accent: #0e8a76;
  --accent-strong: #0a6558;
  --accent-soft: #e3f2ee;
  --on-accent: #ffffff;

  --bg: #fbfbfa;
  --surface: #ffffff;
  --surface-muted: #f2f3f1;
  --tinted: #eef3f1;
  --border: #e1e4e1;
  --border-strong: #cdd2ce;

  --text: #18211f;
  --text-muted: #4f5c58;
  --text-soft: #75817d;

  --warn: #8a5a0b;
  --warn-bg: #f6e9cc;
  --wa-bg: #e5f6dc;
  --wa-text: #1e3a14;

  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(24, 33, 31, 0.06);
  --shadow-lg: 0 12px 32px rgba(24, 33, 31, 0.1);
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--accent-strong); }
.ph { line-height: 1; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: var(--radius);
}
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.h2 { font-size: clamp(26px, 3.4vw, 36px); max-width: 28ch; }
.lead { font-size: 18px; color: var(--text-muted); max-width: 60ch; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--accent-strong); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--radius);
  font: 500 15px/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-strong); }
.btn--ghost { color: var(--text); border-color: var(--border-strong); background: var(--surface); }
.btn--ghost:hover { border-color: var(--text-soft); }
.btn--light { background: #ffffff; color: #0a6558; }
.btn--light:hover { background: #eef7f4; }
.btn--lg { height: 48px; padding: 0 22px; font-size: 16px; }

/* Navegación */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand__mark {
  width: 28px; height: 28px; border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; font-size: 18px;
}
.brand--small { font-size: 16px; }
.brand--small .brand__mark { width: 24px; height: 24px; font-size: 15px; }
.nav__links { display: none; gap: 24px; }
.nav__links a { color: var(--text-muted); text-decoration: none; font-size: 15px; }
.nav__links a:hover { color: var(--text); }
.nav__actions { margin-left: auto; display: flex; gap: 8px; }
@media (min-width: 960px) { .nav__links { display: flex; } }
@media (max-width: 420px) { .nav__actions .btn--ghost { display: none; } }

/* Hero */
.hero { padding: 56px 0 72px; }
@media (min-width: 1024px) { .hero { padding: 88px 0 96px; } }
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1.2fr 1fr; gap: 56px; } }
.hero h1 { font-size: clamp(34px, 4vw, 48px); letter-spacing: -0.035em; line-height: 1.08; max-width: 20ch; margin-bottom: 20px; }
.hero .lead { font-size: 19px; max-width: 44ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__visual { position: relative; width: 100%; max-width: 520px; margin: 0 auto; padding-bottom: 36px; }
.ficha { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 20px; }
.ficha__head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; }
.ficha__avatar { width: 44px; height: 44px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; font-size: 24px; flex: none; }
.ficha__name { font-weight: 600; font-size: 18px; }
.ficha__meta { color: var(--text-soft); font-size: 14px; }
.tag { margin-left: auto; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: var(--radius-sm); white-space: nowrap; }
.tag--warn { background: var(--warn-bg); color: var(--warn); }
.ficha__tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-soft); overflow: hidden; white-space: nowrap; }
.ficha__tabs span { padding: 8px 10px; margin-bottom: -1px; }
.ficha__tabs .is-active { color: var(--text); font-weight: 600; border-bottom: 2px solid var(--accent); }
.ficha__list { list-style: none; margin: 0; padding: 0; }
.ficha__list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 2px; border-bottom: 1px solid var(--border); }
.ficha__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.ficha__list b { display: block; font-weight: 600; font-size: 15px; }
.ficha__list span { color: var(--text-muted); font-size: 14px; }
.ficha__list time { color: var(--text-soft); font-size: 13px; font-variant-numeric: tabular-nums; }

.wa {
  position: absolute; right: -8px; bottom: 0; max-width: 290px;
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--wa-bg); color: var(--wa-text);
  border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow-lg); font-size: 14px;
}
.wa .ph { font-size: 20px; color: #25a244; margin-top: 1px; }
.wa small { display: block; opacity: 0.75; font-size: 12px; margin-top: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .wa { animation: rise 0.5s 0.5s both ease-out; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .wa { position: relative; right: auto; margin: -16px 12px 0 auto; } .hero__visual { padding-bottom: 0; } }

/* Secciones */
.section { padding: 88px 0; }
.section--tinted { background: var(--tinted); border-block: 1px solid var(--border); }
.section--line { border-top: 1px solid var(--border); }

/* Problemas: lista en dos columnas, sin tarjetas */
.pains { padding: 72px 0; border-top: 1px solid var(--border); }
.pains__list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0 48px; }
@media (min-width: 768px) { .pains__list { grid-template-columns: 1fr 1fr; } }
.pains__list li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 17px; }
.pains__list .ph { font-size: 22px; color: var(--accent); margin-top: 2px; flex: none; }

/* Funciones: bento de 6 celdas */
.bento { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .cell--main { grid-column: span 2; }
  .cell.cell--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 20px; }
  .cell--wide .cell__icon { margin: 0; }
  .cell--wide h3 { flex: none; min-width: 220px; }
}
.cell { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.cell h3 { font-size: 19px; }
.cell p { color: var(--text-muted); }
.cell__icon { font-size: 26px; color: var(--accent); margin-bottom: 6px; }
.cell--main { background: var(--surface-muted); }
.cell--main h3 { font-size: clamp(22px, 2.4vw, 28px); }
.cell--main p { font-size: 17px; max-width: 46ch; }
.cell--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cell--accent p, .cell--accent .cell__icon { color: var(--on-accent); opacity: 0.92; }
.cell--muted { background: var(--surface-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.chips span { font-size: 13px; padding: 4px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text-muted); background: var(--surface); }

/* Diferencial del tutor */
.tutor__intro { max-width: 720px; }
.tutor__intro .h2 { max-width: 24ch; margin-bottom: 16px; }
.compare { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 768px) { .compare { grid-template-columns: 1fr 1fr; } }
.view { margin: 0; }
.view figcaption { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-muted); margin-bottom: 10px; }
.view figcaption .ph { font-size: 18px; color: var(--accent); }
.record { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; height: calc(100% - 30px); display: flex; flex-direction: column; gap: 10px; }
.record__top { display: flex; justify-content: space-between; align-items: baseline; }
.record__top b { font-weight: 600; font-size: 16px; }
.record__top time { font-size: 13px; color: var(--text-soft); }
.record p { font-size: 15px; color: var(--text); }
.record p span { display: block; font-size: 12px; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.record__note { display: flex; gap: 10px; margin-top: auto; padding: 12px; border-radius: var(--radius-sm); background: var(--warn-bg); color: var(--text); font-size: 14px; }
.record__note .ph { color: var(--warn); font-size: 18px; flex: none; }
.record__note b { display: block; font-size: 13px; color: var(--warn); }
.record__hidden { margin-top: auto; padding: 12px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); color: var(--text-soft); font-size: 14px; text-align: center; }
.tutor__points { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 16px 32px; }
@media (min-width: 768px) { .tutor__points { grid-template-columns: 1fr 1fr; } }
.tutor__points li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); }
.tutor__points .ph { font-size: 20px; color: var(--accent); margin-top: 2px; flex: none; }

/* Derivaciones */
.deriv { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .deriv { grid-template-columns: 1.1fr 1fr; gap: 80px; } }
.deriv .h2 { margin-bottom: 16px; }
.deriv__fit { margin-top: 20px; padding-left: 14px; border-left: 2px solid var(--accent); color: var(--text-muted); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 58px; top: 10px; bottom: 10px; width: 1px; background: var(--border-strong); }
.timeline li { display: grid; grid-template-columns: 44px 1fr; gap: 28px; align-items: start; padding: 10px 0; position: relative; }
.timeline li::before { content: ''; position: absolute; left: 55px; top: 22px; width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.timeline li:first-child::before { background: var(--accent); }
.timeline time { font-size: 13px; color: var(--text-soft); padding-top: 14px; font-variant-numeric: tabular-nums; }
.timeline div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; }
.timeline li:first-child div { border-color: var(--accent); }
.timeline b { display: block; font-weight: 600; }
.timeline span { font-size: 14px; color: var(--text-muted); }

/* Cómo empezar */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 32px; counter-reset: paso; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: paso; padding-top: 20px; border-top: 2px solid var(--border); }
.steps li:first-child { border-top-color: var(--accent); }
.steps li::before { content: counter(paso); display: block; font-size: 14px; color: var(--text-soft); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { color: var(--text-muted); }

/* Preguntas */
#preguntas .h2 { margin-bottom: 32px; }
details { border-bottom: 1px solid var(--border); }
details:first-of-type { border-top: 1px solid var(--border); }
summary { cursor: pointer; padding: 20px 40px 20px 0; font-weight: 500; font-size: 17px; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--text-soft); }
details[open] summary::after { content: '-'; }
details p { padding: 0 0 20px; color: var(--text-muted); max-width: 62ch; }

/* Cierre */
.section--cta { padding-top: 0; }
.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  background: #0e8a76; color: #ffffff;
  border-radius: var(--radius); padding: clamp(28px, 5vw, 56px);
}
.cta h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.cta p { opacity: 0.9; font-size: 17px; }

/* Pie */
.footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer nav { display: flex; gap: 24px; }
.footer nav a { color: var(--text-muted); text-decoration: none; font-size: 15px; }
.footer nav a:hover { color: var(--text); }
.footer small { color: var(--text-soft); }

/* Que ninguna columna de grilla empuje el ancho de la página en celular */
.hero__grid > *, .bento > *, .compare > *, .deriv > *, .pains__list > *, .steps > * { min-width: 0; }

/* Franja de beneficios bajo el hero */
.perks { border-top: 1px solid var(--border); background: var(--surface); }
.perks__grid { display: grid; gap: 20px 32px; padding-block: 28px; }
@media (min-width: 640px) { .perks__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .perks__grid { grid-template-columns: repeat(4, 1fr); } }
.perks p { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-muted); }
.perks .ph { font-size: 22px; color: var(--accent); flex: none; margin-top: 1px; }
.perks b { display: block; color: var(--text); font-weight: 600; font-size: 15px; }

/* Módulos */
.modulos__lead { margin-top: 12px; }
.modulos { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 900px) {
  .modulos { grid-template-columns: repeat(3, 1fr); }
  .modulo.modulo--full { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 24px; }
  .modulo.modulo--full .modulo__icon { grid-row: span 2; }
  .modulo.modulo--full h3 { grid-column: 2; }
  .modulo.modulo--full p { grid-column: 2; }
  .modulo.modulo--full .btn { grid-column: 3; grid-row: 1 / span 2; align-self: center; margin: 0; }
}
.modulo { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.modulo__icon { font-size: 28px; color: var(--accent); }
.modulo h3 { font-size: 22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.modulo p { color: var(--text-muted); }
.modulo ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.modulo li { position: relative; padding-left: 22px; font-size: 15px; }
.modulo li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.modulo--full { background: var(--accent); border-color: var(--accent); color: var(--on-accent); justify-content: center; }
.modulo--full .modulo__icon, .modulo--full p { color: var(--on-accent); opacity: 0.92; }
.modulo--full p { font-size: 17px; }
.modulo--full .btn { align-self: flex-start; margin-top: 8px; }
.tag--soon { margin-left: 0; background: var(--accent-soft); color: var(--accent-strong); font-size: 12px; letter-spacing: 0; }
.modulos > * { min-width: 0; }
.steps__lead { margin-top: 12px; }

/* Logo (el ícono de la app) */
.brand__logo { width: 32px; height: 32px; display: block; }
.brand--small .brand__logo { width: 24px; height: 24px; }
