/* ===========================================================================
   Asistente Clínico — Web de captación (.com)
   Estilo de casa, continuo con la app: Playfair Display + DM Sans, teal.
   Crema y oro tomados de las figuras del método.
   =========================================================================== */

:root {
  /* Tipografía */
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Tinta y neutros */
  --ink: #1b232d;
  --ink-2: #4a5562;
  --ink-3: #8a94a0;

  /* Acento teal (continuo con la app) */
  --teal: #0f766e;
  --teal-hover: #0b5b54;
  --teal-weak: #f0fdfa;
  --teal-weak-2: #d9f3ef;
  --teal-border: #99e3da;

  /* Oro / crema (la crema queda solo para el "papel" de figuras y documentos) */
  --gold: #c79a3f;
  --gold-deep: #b58f37;
  --cream: #f4f5f7;   /* "papel" de las figuras: gris muy claro, a juego con los SVG */
  --cream-2: #eceef1; /* fondo de página: gris suave (antes era beige) */
  --hair: #e3e5e9;    /* línea/borde neutro frío */
  --bg-soft: #eef1f4; /* relleno gris suave para tarjetas y chips */

  /* Colores de partes IFS (coherentes con los documentos) */
  --manager: #3a5a8c;
  --firefighter: #a8412c;
  --exile: #6a4a86;

  /* Superficies */
  --surface: #ffffff;
  --border: #e3e5e9;
  --border-cool: #e4e9ee;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(30, 25, 10, .06);
  --shadow-md: 0 8px 30px rgba(40, 30, 10, .07);
  --shadow-lg: 0 20px 50px rgba(30, 25, 10, .12);

  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  background: var(--cream-2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img, svg { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 700; margin: 0 0 14px;
}

h1, h2, h3 { font-family: var(--font-head); color: var(--ink); margin: 0; letter-spacing: -.01em; }

.section { padding: 84px 0; }
.section-head { max-width: 720px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; line-height: 1.12; }
.section-head p { color: var(--ink-2); font-size: 17px; margin: 14px 0 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; font-size: 15.5px; font-weight: 600;
  font-family: var(--font-body); border-radius: 12px;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .15s, box-shadow .15s, transform .06s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 22px rgba(15, 118, 110, .28); }
.btn-primary:hover { background: var(--teal-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: #fff; border-color: var(--ink-3); }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 8px 22px rgba(199, 154, 63, .3); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }

/* ===========================================================================
   Barra de navegación
   =========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(236, 238, 241, .85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--hair);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: linear-gradient(145deg, #0f766e, #115e59);
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 4px 10px rgba(15, 118, 110, .35);
}
/* Logo de marca en la barra de navegación (assets/logo.png).
   Si el archivo no existe, el <img> se marca .noimg y cae al hexágono teal. */
.nav .brand-mark { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--hair); }
.nav .brand-mark .brand-logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.nav .brand-mark .brand-hex { display: none; }
.nav .brand-mark.noimg { background: linear-gradient(145deg, #0f766e, #115e59); border: none; }
.nav .brand-mark.noimg .brand-logo { display: none; }
.nav .brand-mark.noimg .brand-hex { display: block; }
.brand-name { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.brand-sub { font-size: 11px; color: var(--ink-3); margin-top: -3px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.lk { font-size: 14.5px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.nav-links a.lk:hover { color: var(--teal); }
@media (max-width: 820px) { .nav-links .lk { display: none; } }

/* ===========================================================================
   Hero
   =========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 78% -8%, var(--teal-weak), transparent 62%),
    radial-gradient(720px 380px at 4% 6%, #e9edf1, transparent 55%);
  padding: 72px 0 84px;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1.12fr; gap: 52px; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 38px; } }

.hero h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 800; line-height: 1.06; }
.hero h1 .accent { color: var(--teal); }
.hero-lead { font-size: 19px; color: var(--ink-2); margin: 22px 0 0; max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note { font-size: 13.5px; color: var(--ink-3); margin-top: 16px; display: flex; align-items: center; gap: 8px; }
.hero-note svg { flex: none; color: var(--teal); }

/* Marco "papel" para la figura héroe */
.paper {
  background: var(--cream); border: 1px solid var(--hair);
  border-radius: 18px; padding: 12px; box-shadow: var(--shadow-lg);
  position: relative;
}
.paper svg { display: block; width: 100%; height: auto; border-radius: 11px; }
.paper.tilt { transform: rotate(.5deg); }
.paper-tag {
  position: absolute; top: -14px; left: 22px;
  background: var(--surface); border: 1px solid var(--hair);
  border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 600;
  color: var(--teal); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 7px;
}
.paper-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

/* Tira de confianza bajo el hero */
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: center;
  margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--hair);
}
.trust-item { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-2); }
.trust-item svg { flex: none; color: var(--gold-deep); }

/* ===========================================================================
   Problema
   =========================================================================== */
.problem { background: var(--surface); }
.problem-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .problem-grid { grid-template-columns: 1fr; gap: 30px; } }
.problem h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; line-height: 1.15; }
.problem p { color: var(--ink-2); font-size: 17px; margin: 18px 0 0; }
.problem .pull {
  font-family: var(--font-head); font-size: 22px; font-style: italic;
  color: var(--ink); line-height: 1.45; border-left: 3px solid var(--gold);
  padding-left: 22px; margin: 0;
}

/* ===========================================================================
   Cómo funciona (3 pasos)
   =========================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px 26px; position: relative;
  box-shadow: var(--shadow-sm);
}
.step-n {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
  background: var(--teal-weak); color: var(--teal); border: 1px solid var(--teal-border);
  margin-bottom: 18px;
}
.step h3 { font-size: 20px; font-weight: 600; }
.step p { color: var(--ink-2); font-size: 15px; margin: 9px 0 0; }
.step.key { border-color: var(--teal-border); box-shadow: 0 0 0 3px var(--teal-weak), var(--shadow-md); }
.step .badge {
  display: inline-block; margin-top: 14px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--teal);
  background: var(--teal-weak); border: 1px solid var(--teal-border);
  border-radius: 7px; padding: 4px 9px;
}

/* ===========================================================================
   Los documentos (el corazón)
   =========================================================================== */
.docs { background: linear-gradient(180deg, #f2f4f6, var(--cream-2)); }
.doc { display: grid; grid-template-columns: 1fr 1.18fr; gap: 46px; align-items: center; margin-bottom: 30px; }
.doc:nth-child(even) .doc-figure { order: 2; }
@media (max-width: 880px) {
  .doc, .doc:nth-child(even) { grid-template-columns: 1fr; gap: 26px; }
  .doc:nth-child(even) .doc-figure { order: 0; }
}
.doc-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
.doc-kicker .sw { width: 9px; height: 9px; border-radius: 50%; }
.k-ifs { background: #eef3f2; color: #2f6f6a; }
.k-ifs .sw { background: #2f6f6a; }
.k-af { background: #f8ece7; color: var(--firefighter); }
.k-af .sw { background: var(--firefighter); }
.k-contrato { background: #eaf0f8; color: var(--manager); }
.k-contrato .sw { background: var(--manager); }
.k-biblio { background: #f1ebf7; color: var(--exile); }
.k-biblio .sw { background: var(--exile); }
.doc h3 { font-size: 27px; font-weight: 700; line-height: 1.15; }
.doc-body { color: var(--ink-2); font-size: 16px; margin: 14px 0 0; }
.doc-feats { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.doc-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.doc-feats li svg { flex: none; margin-top: 3px; color: var(--teal); }

/* Mock de documento "papel" para contrato y biblioterapia */
.docmock {
  background: #ffffff; border: 1px solid var(--hair); border-radius: 16px;
  box-shadow: var(--shadow-md); padding: 30px 32px; position: relative; overflow: hidden;
}
.docmock::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--gold); }
.docmock .dm-eyebrow { font-size: 9px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 700; margin: 6px 0 0; }
.docmock h4 { font-family: var(--font-head); font-size: 23px; font-weight: 700; margin: 6px 0 2px; line-height: 1.15; }
.docmock .dm-sub { font-size: 12.5px; color: var(--ink-3); margin: 0 0 16px; }
.docmock .dm-h { font-family: var(--font-head); font-size: 15.5px; font-weight: 600; margin: 16px 0 5px; padding-bottom: 4px; border-bottom: .5px solid var(--hair); }
.docmock p { font-size: 12.5px; color: var(--ink-2); margin: 0 0 7px; line-height: 1.5; }
.docmock .dm-quote { font-style: italic; color: var(--ink); border-left: 2px solid var(--gold); padding-left: 12px; margin: 10px 0; font-size: 12.5px; }
.docmock .dm-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(transparent, #ffffff); }
.docmock ul { margin: 4px 0; padding-left: 16px; }
.docmock li { font-size: 12.5px; color: var(--ink-2); margin-bottom: 4px; }
.dm-tag { color: var(--manager); font-weight: 500; }

/* Dinámicas en bucle */
.cycles-head { text-align: center; max-width: 640px; margin: 26px auto 26px; }
.cycles-head h3 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; }
.cycles-head p { color: var(--ink-2); font-size: 16px; margin: 12px 0 0; }
.cycles { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 760px) { .cycles { grid-template-columns: 1fr; } }
.cycle { margin: 0; }
.cycle figcaption { font-size: 13.5px; color: var(--ink-2); margin-top: 14px; text-align: center; line-height: 1.5; }

/* Catálogo ampliado de documentos */
.catalog-head { text-align: center; max-width: 680px; margin: 60px auto 30px; }
.catalog-head h3 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; }
.catalog-head p { color: var(--ink-2); font-size: 16px; margin: 12px 0 0; }
.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .catalog { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .catalog { grid-template-columns: 1fr; } }
.cat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 20px; box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .06s;
}
.cat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-model { font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.cat-card h4 { font-family: var(--font-head); font-size: 16.5px; font-weight: 600; margin: 9px 0 5px; line-height: 1.2; }
.cat-card p { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.catalog-note { text-align: center; margin: 24px auto 0; color: var(--ink-3); font-size: 14.5px; }
.catalog-note a { color: var(--teal); font-weight: 600; text-decoration: none; }
.catalog-note a:hover { text-decoration: underline; }

/* ===========================================================================
   Apps HTML de activación conductual
   =========================================================================== */
.apps { background: var(--surface); }
.apps-demo { display: grid; grid-template-columns: repeat(2, auto); gap: 30px; justify-content: center; margin-top: 8px; }
@media (max-width: 720px) { .apps-demo { grid-template-columns: 1fr; gap: 28px; } }

.phone { background: #23262e; border-radius: 42px; padding: 11px; box-shadow: var(--shadow-lg); width: 320px; max-width: 100%; margin: 0 auto; }
.phone-screen { position: relative; background: #fff; border-radius: 32px; padding: 26px 20px 20px; }
.phone-screen::before { content: ""; position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 64px; height: 8px; border-radius: 5px; background: #23262e; }

.ph-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-top: 8px; }
.ph-title { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--ink); }
.ph-sub { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.ring { flex: none; }
#ringFill { transition: stroke-dasharray .5s cubic-bezier(.2,.7,.2,1); }

.ph-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.ph-chip { font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 12px; }
.ph-chip.gold { color: var(--gold-deep); background: #fbf4e3; border: 1px solid #ecd9ab; }
.ph-chip.teal { color: #2f6f6a; background: #e6f1f0; border: 1px solid #bfdcd9; }

.tasklist { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.task { display: flex; align-items: center; gap: 11px; cursor: pointer; user-select: none; padding: 3px 2px; border-radius: 8px; transition: background .12s; }
.task:hover { background: #f6f7f8; }
.tcheck {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  border: 1.6px solid #cfcabf; background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s, border-color .18s;
}
.tcheck::after {
  content: ""; width: 10px; height: 5.5px; margin-top: -2px;
  border-left: 2.4px solid #fff; border-bottom: 2.4px solid #fff;
  transform: rotate(-45deg) scale(0); transition: transform .2s cubic-bezier(.3,1.4,.5,1);
}
.task.done .tcheck { background: var(--teal); border-color: var(--teal); }
.task.done .tcheck::after { transform: rotate(-45deg) scale(1); }
.tlabel { flex: 1; font-size: 13.5px; color: var(--ink); transition: color .18s; }
.task.done .tlabel { text-decoration: line-through; color: var(--ink-3); }
.tpts { font-size: 10.5px; font-weight: 700; color: var(--gold-deep); background: #fbf4e3; border: 1px solid #ecd9ab; border-radius: 10px; padding: 3px 8px; flex: none; }

.ph-tip { margin-top: 16px; background: #E8F5EE; border: 1px solid #cfe6da; border-radius: 14px; padding: 13px 15px; font-size: 12px; color: var(--ink); line-height: 1.5; }
.ph-tip strong { display: block; color: #2f6f6a; font-weight: 700; margin-bottom: 2px; }
.ph-hint { text-align: center; font-size: 11px; color: var(--ink-3); margin-top: 12px; }

/* Gráfica de barras animada */
.chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; margin: 22px 0 4px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; }
.bar span { width: 70%; height: 0; background: #a9c4c0; border-radius: 6px 6px 0 0; transition: height .9s cubic-bezier(.2,.7,.2,1); }
.bar.hi span { background: var(--teal); }
.chart.grown .bar span { height: var(--h); }
.bar i { font-size: 10.5px; font-style: normal; color: var(--ink-3); }

.ph-streak-label { font-size: 10.5px; letter-spacing: 1.4px; color: var(--ink-3); font-weight: 600; margin-top: 14px; }
.ph-streak { display: flex; gap: 9px; margin-top: 9px; }
.sdot { width: 22px; height: 22px; border-radius: 50%; flex: none; background: #eceae3; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 700; }
.sdot.on { background: var(--gold); }

.ph-ach { display: flex; align-items: center; gap: 12px; margin-top: 16px; background: #fbf4e3; border: 1px solid #ecd9ab; border-radius: 14px; padding: 12px 14px; }
.ach-star { color: var(--gold); font-size: 22px; flex: none; }
.ph-ach strong { display: block; color: var(--gold-deep); font-size: 12.5px; }
.ph-ach span { font-size: 11.5px; color: var(--ink); }

.apps-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
@media (max-width: 820px) { .apps-feats { grid-template-columns: 1fr; } }
.apps-feat svg { color: var(--teal); }
.apps-feat h3 { font-size: 18px; font-weight: 600; margin: 12px 0 6px; }
.apps-feat p { font-size: 14.5px; color: var(--ink-2); margin: 0; }

/* ===========================================================================
   Diferenciador (segundo orden) — sobre teal oscuro
   =========================================================================== */
.diff {
  background:
    radial-gradient(700px 360px at 88% 0%, rgba(199,154,63,.16), transparent 60%),
    linear-gradient(160deg, #103e3a, #0b2b29);
  color: #eaf3f1;
}
.diff .eyebrow { color: var(--gold); }
.diff h2 { color: #fff; font-size: clamp(28px, 4vw, 40px); font-weight: 700; line-height: 1.12; }
.diff .lead { color: #bcd6d2; font-size: 17px; margin: 16px 0 0; max-width: 680px; }
.diff-figure { margin-top: 40px; background: var(--cream); border-radius: 18px; padding: 12px; box-shadow: var(--shadow-lg); }
.diff-figure svg { display: block; width: 100%; height: auto; border-radius: 11px; }

/* ===========================================================================
   Por qué es distinto (comparativa)
   =========================================================================== */
.compare { background: var(--surface); }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .cmp { grid-template-columns: 1fr; } }
.cmp-col { border-radius: var(--radius-lg); padding: 30px 28px; border: 1px solid var(--border); }
.cmp-col.generic { background: #f7f8f9; border-color: var(--border-cool); }
.cmp-col.ours { background: var(--teal-weak); border-color: var(--teal-border); box-shadow: var(--shadow-md); }
.cmp-col h3 { font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.cmp-col.generic h3 { color: var(--ink-2); }
.cmp-col.ours h3 { color: var(--teal-hover); }
.cmp-col .tagline { font-size: 13px; color: var(--ink-3); margin: 0 0 18px; }
.cmp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.cmp-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; }
.cmp-list li svg { flex: none; margin-top: 2px; }
.cmp-col.generic li { color: var(--ink-2); }
.cmp-col.generic li svg { color: var(--ink-3); }
.cmp-col.ours li { color: var(--ink); }
.cmp-col.ours li svg { color: var(--teal); }

/* ===========================================================================
   Credibilidad
   =========================================================================== */
.author { background: linear-gradient(180deg, var(--cream-2), #f2f4f6); }
.author-card {
  display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow-md); max-width: 860px; margin: 0 auto;
}
@media (max-width: 640px) { .author-card { grid-template-columns: 1fr; text-align: center; } }
.author-photo {
  position: relative;
  width: 132px; height: 132px; border-radius: 50%; flex: none; margin: 0 auto;
  background: linear-gradient(145deg, var(--teal-weak-2), #bfeae3);
  border: 1px solid var(--teal-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-hover); font-family: var(--font-head); font-size: 40px; font-weight: 700;
  overflow: hidden;
}
.author-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.author h2 { font-size: 26px; font-weight: 700; }
.author .role { color: var(--teal); font-weight: 600; font-size: 15px; margin: 6px 0 0; }
.author p.bio { color: var(--ink-2); font-size: 15.5px; margin: 14px 0 0; }
.author .colegiado {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-size: 13px; color: var(--ink-2);
  background: var(--bg-soft); border: 1px solid var(--hair); border-radius: 999px; padding: 7px 14px;
}
.author .colegiado svg { color: var(--gold-deep); }

/* ===========================================================================
   Privacidad (sobrio)
   =========================================================================== */
.privacy { background: var(--surface); }
.priv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .priv-grid { grid-template-columns: 1fr; } }
.priv {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  background: var(--bg-soft);
}
.priv svg { color: var(--teal); }
.priv h3 { font-size: 17px; font-weight: 600; margin: 12px 0 6px; }
.priv p { font-size: 14px; color: var(--ink-2); margin: 0; }
.priv-foot { font-size: 13px; color: var(--ink-3); margin: 22px 0 0; text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }

/* ===========================================================================
   Precios
   =========================================================================== */
.pricing { background: linear-gradient(180deg, #f2f4f6, var(--cream-2)); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 880px) { .plans { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }
.plan {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-sm);
  position: relative;
}
.plan.featured { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-weak-2), var(--shadow-lg); }
.plan-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #fff; font-size: 11.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
}
.plan-name { font-family: var(--font-head); font-size: 22px; font-weight: 700; }
.plan-price { font-size: 38px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.plan-price span { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.plan-credits { font-size: 14.5px; color: var(--teal); font-weight: 600; }
.plan-trans {
  font-size: 13px; color: var(--ink-2); background: var(--bg-soft);
  border: 1px solid var(--hair); border-radius: 10px; padding: 11px 13px; margin: 6px 0 4px;
}
.plan-feats { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan-feats li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.plan-feats li svg { flex: none; margin-top: 2px; color: var(--teal); }
.plan .btn { width: 100%; justify-content: center; margin-top: 16px; }
.pricing-note { text-align: center; font-size: 13.5px; color: var(--ink-3); margin: 28px auto 0; max-width: 620px; }

/* ===========================================================================
   CTA final
   =========================================================================== */
.final {
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(199,154,63,.18), transparent 60%),
    linear-gradient(160deg, #0f766e, #0b5b54);
  color: #fff; text-align: center;
}
.final h2 { color: #fff; font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; line-height: 1.1; }
.final p { color: #d4f0ec; font-size: 18px; margin: 18px auto 0; max-width: 560px; }
.final .btn-gold { margin-top: 30px; }
.final .final-note { font-size: 13.5px; color: #a9d8d2; margin-top: 16px; }

/* ===========================================================================
   Pie
   =========================================================================== */
.footer { background: #0b2b29; color: #9fc0bc; padding: 48px 0 36px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer .brand-name { color: #eaf3f1; }
.footer .brand-sub { color: #7ba49f; }
.footer-links { display: flex; flex-wrap: wrap; gap: 26px; font-size: 14px; }
.footer-links a { color: #9fc0bc; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-legal { width: 100%; border-top: 1px solid #16403c; margin-top: 30px; padding-top: 22px; font-size: 12.5px; color: #6f9893; }

/* Logo en el pie (pastilla blanca para que se vea sobre fondo oscuro) */
.footer .brand-mark { position: relative; overflow: hidden; background: #fff; }
.footer .brand-mark .brand-logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.footer .brand-mark .brand-hex { display: none; }
.footer .brand-mark.noimg { background: linear-gradient(145deg, #0f766e, #115e59); }
.footer .brand-mark.noimg .brand-logo { display: none; }
.footer .brand-mark.noimg .brand-hex { display: block; }

/* Enlaces legales del pie */
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; }
.footer-legal-links a { color: #bcd6d2; font-size: 13.5px; text-decoration: none; }
.footer-legal-links a:hover { color: #fff; text-decoration: underline; }

/* ===========================================================================
   Páginas legales (aviso legal, privacidad, cookies, términos)
   =========================================================================== */
.legal { padding: 40px 0 70px; }
.legal-wrap { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.legal-back { display: inline-flex; align-items: center; gap: 7px; color: var(--teal); text-decoration: none; font-weight: 600; font-size: 14px; margin-bottom: 20px; }
.legal-back:hover { text-decoration: underline; }
.legal-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 42px 46px; box-shadow: var(--shadow-sm); }
@media (max-width: 560px) { .legal-card { padding: 26px 22px; } }
.legal-card h1 { font-family: var(--font-head); font-size: clamp(26px, 4vw, 36px); font-weight: 700; margin: 0 0 4px; }
.legal-updated { color: var(--ink-3); font-size: 13.5px; margin: 0 0 26px; }
.legal-card h2 { font-family: var(--font-head); font-size: 21px; font-weight: 600; margin: 32px 0 8px; }
.legal-card h3 { font-size: 16px; font-weight: 600; margin: 18px 0 6px; color: var(--ink); }
.legal-card p, .legal-card li { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.legal-card ul { padding-left: 20px; margin: 8px 0; }
.legal-card li { margin-bottom: 6px; }
.legal-card a { color: var(--teal); }
.legal-card strong { font-weight: 600; color: var(--ink); }
.legal-note { background: var(--bg-soft); border: 1px solid var(--hair); border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 20px 0; font-size: 14.5px; color: var(--ink); }
.todo { background: #fff3cd; border: 1px solid #ffe69c; border-radius: 5px; padding: 1px 7px; font-size: .92em; color: #8a6d00; font-weight: 600; }
.legal-card table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.legal-card th, .legal-card td { border: 1px solid var(--hair); padding: 9px 12px; text-align: left; vertical-align: top; }
.legal-card th { background: var(--bg-soft); font-weight: 600; color: var(--ink); }

/* ===========================================================================
   Animaciones de entrada
   =========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
