/* Paleta tomada del icono de la app (lib/presentation/brand/brand_mark.dart). */
:root {
  --accent: #2f6fdb;      /* azul del fondo del icono */
  --accent-soft: #dce6f5; /* casillas del calendario */
  --accent-ink: #163b7e;  /* argollas */
  --sky: #9cc2ff;         /* franja del calendario */
  --heart: #ef4565;       /* corazón */
  --heart-soft: #fde4e9;
  --ok: #1f8a5b;
  --text: #14213d;
  --muted: #55607a;
  --bg: #ffffff;
  --bg-alt: #f3f7fd;
  --card: #ffffff;
  --card-alt: #edf2fa;
  --border: #d5deec;
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #6c9cf0;
    --accent-soft: #1b315c;
    --accent-ink: #dce6f5;
    --sky: #9cc2ff;
    --heart: #ff6b85;
    --heart-soft: #4a1d28;
    --ok: #4cc38a;
    --text: #eef2fa;
    --muted: #a7b1c6;
    --bg: #0f1828;
    --bg-alt: #0b1220;
    --card: #16223a;
    --card-alt: #1c2a46;
    --border: #2b3a58;
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 20; background: var(--card); padding: 8px 12px; border-radius: 8px; }

/* Botones */
.btn {
  display: inline-block;
  background: #2f6fdb;
  color: #fff;
  padding: 12px 24px;
  border: 2px solid #2f6fdb;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity .2s;
}
.btn:hover { opacity: .88; text-decoration: none; }
.btn-sm { padding: 6px 14px; font-size: .9rem; border-radius: 10px; }
.btn-ghost { background: transparent; color: var(--accent); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav nav { display: flex; align-items: center; gap: 20px; }
.nav nav a:not(.btn) { color: var(--text); font-weight: 500; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo img { width: 36px; height: 36px; border-radius: 9px; }
.logo-sm { font-size: 1.1rem; }
.logo-sm img { width: 28px; height: 28px; border-radius: 7px; }

/* Hero */
.hero {
  padding: 72px 0 88px;
  background:
    radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--sky) 45%, transparent), transparent 50%),
    radial-gradient(circle at 70% 90%, color-mix(in srgb, var(--heart) 10%, transparent), transparent 45%),
    var(--bg);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: 12px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 20px; }
.hero h1 span { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.lead strong { color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .95rem; }
.hero-badges li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

.hero-visual { position: relative; display: flex; justify-content: center; }

/* Teléfono simulado con la pestaña "Hoy" */
.phone {
  width: 300px;
  border-radius: 44px;
  padding: 12px;
  background: #14213d;
  box-shadow: 0 30px 60px -20px rgba(22, 59, 126, .45), inset 0 0 0 2px #2b3a58;
}
.phone-screen {
  border-radius: 34px;
  background: #f3f7fd;
  color: #14213d;
  padding: 32px 16px 20px;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  --muted: #55607a;
  --card: #ffffff;
  --accent-soft: #dce6f5;
}
.app-title { font-size: 1.5rem; font-weight: 800; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 4px 0 8px; text-align: center; font-size: .7rem; color: var(--muted); }
.week b { display: block; font-size: .95rem; color: #14213d; border-radius: 10px; padding: 4px 0; }
.week .today b { background: #2f6fdb; color: #fff; }
.week .done b { background: #dce6f5; }
.app-label { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; }
.item { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 12px; font-size: .85rem; line-height: 1.3; }
.item small { display: block; color: var(--muted); font-size: .75rem; }
.item .when { margin-left: auto; font-weight: 700; font-size: .8rem; white-space: nowrap; }
.avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .8rem; }
.av-a { background: #2f6fdb; }
.av-b { background: #ef4565; }
.av-c { background: #1f8a5b; }
.av-d { background: #b7791f; }
.tag-ok { color: #1f8a5b; font-weight: 700; font-size: .75rem; margin-left: auto; }

/* Cifras */
.stats { background: var(--accent-ink); color: #fff; padding: 32px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stats strong { display: block; font-size: 1.7rem; line-height: 1.2; color: var(--sky); }
.stats span { opacity: .92; font-size: .95rem; }
@media (prefers-color-scheme: dark) {
  .stats { background: #13284f; }
}

/* Secciones */
.section { padding: 88px 0; }
.alt { background: var(--bg-alt); }
.section-title { text-align: center; font-size: clamp(1.8rem, 3.5vw, 2.4rem); letter-spacing: -.01em; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 48px; font-size: 1.1rem; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); line-height: 1.2; letter-spacing: -.01em; }

/* Pasos */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--bg-alt); border-radius: var(--radius); padding: 28px; }
.step-num {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: #2f6fdb; color: #fff; font-weight: 700; margin-bottom: 14px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); }
.step p strong { color: var(--text); }

/* Funciones destacadas */
.highlight { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.highlight + .highlight { margin-top: 96px; }
.highlight.reverse .hl-text { order: 2; }
.hl-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: .8rem; border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .05em; }
.hl-tag.heart { background: var(--heart-soft); color: var(--heart); }
.hl-text h2 { margin-bottom: 14px; }
.hl-text p { color: var(--muted); font-size: 1.05rem; margin-bottom: 14px; }
.hl-text p strong { color: var(--text); }
.checks { list-style: none; display: grid; gap: 8px; margin-top: 6px; }
.checks li { padding-left: 28px; position: relative; color: var(--muted); }
.checks li strong { color: var(--text); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #2f6fdb; color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; margin-top: 3px; }
.hl-visual { background: var(--bg-alt); border-radius: 28px; padding: 32px; display: grid; gap: 14px; }
.section.alt .hl-visual { background: var(--bg); }

.notif { background: var(--card); border-radius: 18px; padding: 12px 14px; box-shadow: 0 10px 30px -12px rgba(22, 59, 126, .35); font-size: .92rem; }
.notif-head { display: flex; align-items: center; gap: 8px; font-size: .72rem; letter-spacing: .04em; color: var(--muted); margin-bottom: 4px; }
.notif-head img { border-radius: 5px; }
.notif-head span { margin-left: auto; letter-spacing: 0; }
.notif-title { font-weight: 700; }
.notif-body { color: var(--muted); }
.notif-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.notif-actions span { background: var(--card-alt); border-radius: 8px; padding: 4px 10px; font-size: .78rem; font-weight: 600; color: var(--accent); }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; display: flex; gap: 14px; align-items: center; }
.card .date { flex: none; width: 56px; border-radius: 12px; overflow: hidden; text-align: center; background: var(--accent-soft); color: var(--accent-ink); }
.card .date span { display: block; background: var(--sky); color: #163b7e; font-size: .7rem; font-weight: 700; text-transform: uppercase; padding: 2px 0; }
.card .date b { display: block; font-size: 1.4rem; line-height: 1.5; }
.card h3 { font-size: 1rem; }
.card p { color: var(--muted); font-size: .9rem; }

.sync-visual { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 0; }
.mini-phone { width: 130px; border-radius: 24px; background: #14213d; padding: 7px; }
.mini-phone div { background: #f3f7fd; color: #14213d; border-radius: 18px; padding: 16px 10px; min-height: 200px; display: grid; gap: 6px; align-content: start; font-size: .7rem; }
.mini-phone b { font-size: .8rem; }
.mini-phone i { font-style: normal; background: #fff; border-radius: 8px; padding: 6px; display: block; }
.mini-phone .new { outline: 2px solid #2f6fdb; }
.qr { width: 64px; height: 64px; margin: 6px auto; border-radius: 6px; background:
  conic-gradient(#14213d 25%, transparent 0 50%, #14213d 0 75%, transparent 0) 0 0 / 16px 16px, #fff; border: 4px solid #fff; outline: 1px solid #d5deec; }
.sync-link { display: grid; justify-items: center; gap: 4px; color: var(--accent); font-weight: 700; font-size: .8rem; text-align: center; }
.sync-link svg { width: 40px; height: 40px; fill: var(--accent); }

/* Funciones */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; background: var(--card); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 16px; }
.feature-icon svg { width: 26px; height: 26px; fill: var(--accent); }
.feature h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feature p { color: var(--muted); }

/* Privacidad */
.privacy-band { background: linear-gradient(135deg, #163b7e, #2f6fdb); color: #fff; }
.privacy-band .section-title, .privacy-band h3 { color: #fff; }
.privacy-band .section-sub { color: #dce6f5; }
.privacy-hero { display: flex; justify-content: center; margin-bottom: 20px; }
.privacy-hero svg { width: 64px; height: 64px; fill: var(--sky); }
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.privacy-item { border-top: 3px solid var(--sky); padding-top: 16px; }
.privacy-item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.privacy-item p { color: #dce6f5; }
.privacy-band .link-arrow { color: #fff; }
.link-arrow { font-weight: 600; }
.link-arrow::after { content: " →"; }

/* Aviso médico */
.notice { display: flex; gap: 16px; align-items: flex-start; background: var(--heart-soft); border-radius: var(--radius); padding: 20px 24px; max-width: 760px; margin: 0 auto; }
.notice svg { flex: none; width: 28px; height: 28px; fill: var(--heart); }
.notice p { color: var(--text); }

/* Preguntas */
.faq { display: grid; gap: 12px; margin-top: 32px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin-top: 10px; }

/* Descargar */
.cta { background: linear-gradient(135deg, #2f6fdb, #163b7e); color: #fff; padding: 80px 0; text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-icon { width: 96px; height: 96px; border-radius: 22px; margin-bottom: 16px; box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .4); }
.cta h2 { margin-bottom: 10px; }
.cta p { opacity: .92; font-size: 1.1rem; margin-bottom: 28px; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; border-radius: 12px; padding: 10px 20px;
  text-align: left; font-weight: 600; font-size: 1.15rem; line-height: 1.15;
}
.store:hover { text-decoration: none; opacity: .88; }
.store svg { width: 26px; height: 26px; fill: currentColor; }
.store small { display: block; font-size: .7rem; font-weight: 400; opacity: .85; }

/* Footer */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 28px 0; font-size: .92rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer nav { display: flex; gap: 20px; }

/* Aviso de privacidad */
.legal { padding: 56px 0 88px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -.01em; margin-bottom: 4px; }
.legal .updated { color: var(--muted); margin-bottom: 28px; }
.legal .summary { background: var(--accent-soft); color: var(--accent-ink); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 36px; }
.legal .summary strong { display: block; margin-bottom: 4px; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.legal h3 { font-size: 1.05rem; margin: 20px 0 6px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 10px; }
.legal strong { color: var(--text); }
.legal .summary strong { color: inherit; }
.legal ul { padding-left: 22px; margin-top: 8px; display: grid; gap: 6px; }
.legal ul + p { margin-top: 12px; }
.legal .table-wrap { overflow-x: auto; margin-top: 12px; }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal th { color: var(--text); background: var(--bg-alt); }
.legal td { color: var(--muted); }
.back { display: inline-block; margin-bottom: 28px; font-weight: 600; }
.back::before { content: "← "; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .highlight { grid-template-columns: 1fr; gap: 32px; }
  .highlight.reverse .hl-text { order: 0; }
  .highlight + .highlight { margin-top: 72px; }
  .hero { padding: 48px 0 64px; }
  .hero-visual { margin-top: 16px; }
  .steps, .features { grid-template-columns: 1fr; }
  .privacy-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav nav a:not(.btn) { display: none; }
  .phone { width: 280px; }
  .phone-screen { min-height: 520px; }
  .privacy-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hl-visual { padding: 20px; }
  .mini-phone { width: 112px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

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