/* ==========================================================================
   KUIDANDO — SISTEMA DE DISEÑO COMPARTIDO
   --------------------------------------------------------------------------
   Guía para Elementor:
   - Los tokens de :root equivalen a "Global Colors" y "Global Fonts" en
     Elementor > Site Settings. Crea cada color/fuente con el mismo nombre.
   - Cada bloque "SECCIÓN" corresponde a una Section/Container de Elementor.
   - Los componentes (.btn, .card, .resource-card, etc.) pueden guardarse
     como plantillas globales o estilos de widget reutilizables.
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  color-scheme: light;

  /* Marca */
  --navy: #1c3a63;          /* Primario oscuro: azul profundo del logotipo */
  --blue: #245a97;          /* Azul del logotipo */
  --brand-red: #9e0b16;     /* Rojo del corazón del logotipo (solo acentos) */
  --navy-2: #142b4b;        /* Hover / fondos más profundos */
  --teal: #2f7470;          /* Secundario: teal suave */
  --green: #2e7a5a;         /* Botones de descarga (mockup) */
  --green-hover: #246448;
  --teal-soft: #dcefe9;
  --coral: #c9503f;         /* Acento cálido: CTA del portal de miembros (AA con blanco) */
  --coral-hover: #b04433;
  --coral-light: #ec8a78;   /* Solo decorativo */
  --sage: #8faf94;
  --sage-dark: #4c6b52;
  --purple: #6a45b5;        /* CTA principal del sitio público (mockup) */
  --purple-hover: #57389a;
  --purple-soft: #efe9fa;

  /* Neutros */
  --cream: #fcf9f6;
  --cream-2: #f5efe9;
  --blush: #fcf0ee;
  --lavender-bg: #f4f0fb;
  --mint-bg: #eef6f2;
  --white: #ffffff;
  --app-bg: #f8f6f3;        /* Fondo del portal de miembros */
  --text: #27344a;          /* Texto principal gris azulado */
  --text-muted: #55657a;
  --line: #e9e2da;
  --line-cool: #e7e3de;

  /* Pasteles de tarjetas */
  --p-lavender: #efebf8;
  --p-blue: #e5eff7;
  --p-green: #e7f1e7;
  --p-peach: #fdebdc;
  --p-coral: #fbe2dc;
  --p-sand: #f6efe2;

  /* Estados */
  --ok: #2f6f4e;
  --ok-bg: #e3f1e8;
  --warn: #8a5a00;
  --warn-bg: #fdf1d8;

  /* Tipografía */
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-script: "Caveat", "Segoe Script", cursive;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-xs: 0.875rem;   /* 14px: mínimo absoluto, solo etiquetas */
  --fs-sm: 1rem;       /* 16px */
  --fs-md: 1.125rem;   /* 18px: texto base */
  --fs-lg: 1.3rem;
  --fs-xl: 1.65rem;
  --fs-2xl: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem);
  --fs-3xl: clamp(2.3rem, 1.6rem + 2.8vw, 3.5rem);

  /* Espaciado, radios, sombras */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6rem;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(23, 59, 77, 0.06), 0 2px 8px rgba(23, 59, 77, 0.05);
  --shadow: 0 2px 4px rgba(23, 59, 77, 0.05), 0 10px 28px rgba(23, 59, 77, 0.08);
  --shadow-lg: 0 20px 50px rgba(23, 59, 77, 0.14);

  --container: 1200px;
  --gutter: 20px;
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--blue);
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.65;
}
body.is-app { background: var(--app-bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 var(--space-3);
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p { margin: 0 0 var(--space-3); }
ul, ol { padding-left: 1.3em; margin: 0 0 var(--space-3); }
li + li { margin-top: 0.35em; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-5) 0; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 3. LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 820px; }
.section { padding-block: var(--space-7); }
.section-sm { padding-block: var(--space-6); }
.section-white { background: var(--white); }
.section-sand { background: var(--cream-2); }
.section-navy { background: var(--navy); color: #e8eef1; }
.section-navy h2, .section-navy h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: var(--space-5); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: var(--fs-md); }
.section-navy .section-head p { color: #c9d6dc; }

.eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 800;
  font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: var(--space-2);
}
.eyebrow.coral { color: var(--coral); }
.lead { font-size: var(--fs-lg); color: var(--text-muted); line-height: 1.6; }

.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-6); align-items: center; }
.stack { display: flex; flex-direction: column; gap: var(--space-3); }
.row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: var(--space-5); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding-block: var(--space-6); }
}

/* ---------- 4. BOTONES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 50px; padding: 0.7em 1.4em; border-radius: 12px;
  font-family: var(--font-body); font-weight: 800; font-size: var(--fs-sm);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  line-height: 1.2; text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-hover); color: #fff; }
.is-app .btn-primary { background: var(--coral); }
.is-app .btn-primary:hover { background: var(--coral-hover); }
.btn-primary[data-download], .is-app .btn-primary[data-download], .btn-green { background: var(--green); color: #fff; }
.btn-primary[data-download]:hover, .is-app .btn-primary[data-download]:hover, .btn-green:hover { background: var(--green-hover); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--cream-2); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--teal); padding-inline: 0.4em; min-height: 44px; }
.btn-ghost:hover { color: var(--navy); transform: none; }
.btn-sm { min-height: 42px; padding: 0.5em 1.1em; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-done { background: var(--ok-bg); color: var(--ok); border-color: transparent; cursor: default; transform: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.35em; font-weight: 800;
  color: var(--teal); text-decoration: none; font-size: var(--fs-sm);
}
.link-arrow:hover { color: var(--navy); gap: 0.55em; }
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform .2s; }

/* ---------- 5. BADGES / CHIPS ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.25em 0.75em; border-radius: var(--radius-pill);
  font-size: var(--fs-xs); font-weight: 800; line-height: 1.4;
  background: var(--teal-soft); color: #245c5d;
}
.badge-coral { background: var(--p-coral); color: #8e3624; }
.badge-purple { background: var(--p-lavender); color: #4d4180; }
.badge-sage { background: var(--p-green); color: var(--sage-dark); }
.badge-sand { background: var(--p-sand); color: #6b5433; }
.badge-navy { background: var(--navy); color: #fff; }
.badge-placeholder { background: var(--warn-bg); color: var(--warn); border: 1px dashed #d9b36a; }

.tag {
  display: inline-block; font-size: var(--fs-xs); color: var(--text-muted);
  background: #fff; border: 1px solid var(--line); padding: 0.1em 0.65em; border-radius: var(--radius-pill);
}

.chip-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer;
  min-height: 42px; padding: 0.4em 1em; border-radius: var(--radius-pill);
  background: #fff; color: var(--text); border: 1.5px solid var(--line-cool);
}
.chip:hover { border-color: var(--teal); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- 6. TARJETAS ---------- */
.card {
  background: #fff; border-radius: var(--radius); padding: var(--space-4);
  box-shadow: var(--shadow-sm); border: 1px solid rgba(23, 59, 77, 0.06);
  display: flex; flex-direction: column; gap: var(--space-2);
}
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--text-muted); }
.card .card-foot { margin-top: auto; padding-top: var(--space-2); }
a.card { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
a.card:hover .link-arrow .icon { transform: translateX(3px); }

.card-lavender { background: var(--p-lavender); }
.card-blue { background: var(--p-blue); }
.card-green { background: var(--p-green); }
.card-peach { background: var(--p-peach); }
.card-coral { background: var(--p-coral); }
.card-sand { background: var(--p-sand); }
.card-flat { box-shadow: none; }

.icon-bubble {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: #fff; color: var(--navy); flex: none;
}
.icon-bubble .icon { width: 28px; height: 28px; }
.icon-bubble.teal { background: var(--teal); color: #fff; }
.icon-bubble.coral { background: var(--coral); color: #fff; }
.icon-bubble.sage { background: var(--sage-dark); color: #fff; }
.icon-bubble.purple { background: var(--purple); color: #fff; }
.icon-bubble.navy { background: var(--navy); color: #fff; }
.icon-bubble.sm { width: 44px; height: 44px; border-radius: 12px; }
.icon-bubble.sm .icon { width: 22px; height: 22px; }

/* Tarjeta de beneficio grande */
.benefit-card { padding: var(--space-5); border-radius: var(--radius-lg); }
.benefit-card h3 { font-size: var(--fs-xl); }

/* ---------- 7. FOTOGRAFÍA (PLACEHOLDERS) ----------
   Estos bloques sustituyen fotos reales. En Elementor: widget "Imagen"
   con la foto final; conserva el texto alternativo indicado en aria-label. */
.photo {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3; max-width: 100%;
  background:
    radial-gradient(circle at 30% 35%, rgba(255, 255, 255, .55) 0 14%, transparent 15%),
    radial-gradient(circle at 62% 42%, rgba(255, 255, 255, .45) 0 12%, transparent 13%),
    radial-gradient(ellipse at 30% 95%, rgba(255, 255, 255, .35) 0 30%, transparent 31%),
    radial-gradient(ellipse at 64% 95%, rgba(255, 255, 255, .3) 0 26%, transparent 27%),
    linear-gradient(145deg, #f2c9a8 0%, #e7a98e 45%, #b9876f 100%);
  box-shadow: var(--shadow);
}
.photo.tone-teal { background-color: #7fb0ac; background-image:
    radial-gradient(circle at 34% 38%, rgba(255,255,255,.5) 0 13%, transparent 14%),
    radial-gradient(circle at 64% 44%, rgba(255,255,255,.4) 0 11%, transparent 12%),
    radial-gradient(ellipse at 34% 96%, rgba(255,255,255,.32) 0 30%, transparent 31%),
    radial-gradient(ellipse at 66% 96%, rgba(255,255,255,.28) 0 25%, transparent 26%),
    linear-gradient(150deg, #a9cfc6 0%, #6fa3a0 55%, #3d7f80 100%); }
.photo.tone-sage { background-image:
    radial-gradient(circle at 40% 40%, rgba(255,255,255,.5) 0 13%, transparent 14%),
    radial-gradient(ellipse at 40% 96%, rgba(255,255,255,.3) 0 32%, transparent 33%),
    radial-gradient(circle at 70% 36%, rgba(255,255,255,.4) 0 10%, transparent 11%),
    linear-gradient(150deg, #dfe9d6 0%, #a9c3a5 55%, #6f8f73 100%); }
.photo.tone-lavender { background-image:
    radial-gradient(circle at 36% 40%, rgba(255,255,255,.55) 0 13%, transparent 14%),
    radial-gradient(circle at 66% 38%, rgba(255,255,255,.45) 0 11%, transparent 12%),
    radial-gradient(ellipse at 50% 98%, rgba(255,255,255,.3) 0 40%, transparent 41%),
    linear-gradient(150deg, #e9e2f5 0%, #bfb2dd 55%, #8a7cbc 100%); }
.photo.wide { aspect-ratio: 16 / 9; }
.photo.tall { aspect-ratio: 4 / 5; }
.photo.square { aspect-ratio: 1; }
.photo-caption {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; gap: 8px; align-items: flex-start;
  background: rgba(255, 255, 255, .92); color: var(--text);
  font-size: var(--fs-xs); line-height: 1.4; padding: 8px 12px; border-radius: 10px;
}
.photo-caption .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--teal); }
.photo-caption b { color: var(--navy); }

/* ---------- 8. ENCABEZADO PÚBLICO ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: var(--space-4); min-height: 76px; }
/* LOGO: archivo img/logo-kuidando.png */
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 52px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; align-items: center; }
.main-nav li + li { margin-top: 0; }
.main-nav a {
  display: block; padding: 0.55em 0.8em; border-radius: var(--radius-pill);
  color: var(--text); font-weight: 700; font-size: 1rem; text-decoration: none;
}
.main-nav a:hover { background: var(--purple-soft); color: var(--navy); }
.main-nav a[aria-current="page"] { color: var(--navy); background: var(--purple-soft); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-actions .login-link { font-weight: 800; color: var(--navy); text-decoration: none; padding: 0.55em 0.8em; font-size: 1rem; display: inline-flex; gap: 6px; align-items: center; }
.nav-toggle {
  display: none; margin-left: auto; background: transparent; border: 1.5px solid var(--line);
  border-radius: 12px; width: 48px; height: 48px; color: var(--navy); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 26px; height: 26px; }
.mobile-only { display: none; }

@media (max-width: 1240px) {
  .nav-toggle { display: inline-flex; }
  .header-actions { display: none; }
  .main-nav {
    position: fixed; inset: 76px 0 auto 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: var(--space-3) var(--gutter) var(--space-4);
    display: none; max-height: calc(100vh - 76px); overflow: auto;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 0.8em 1em; font-size: 1.1rem; border-radius: 12px; }
  .mobile-only { display: block; }
  .main-nav .btn { width: 100%; margin-top: var(--space-2); }
}

/* ---------- 9. HERO ---------- */
.hero { padding-block: var(--space-6) var(--space-7); }
.hero h1 { margin-bottom: var(--space-4); }
.hero .lead { max-width: 560px; margin-bottom: var(--space-5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.hero-visual { position: relative; }
.hero-note {
  position: absolute; left: -20px; top: 28px; max-width: 250px;
  background: #fff; border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow);
  display: flex; gap: 12px; align-items: center; font-size: var(--fs-sm); line-height: 1.35;
}
.hero-note b { color: var(--navy); display: block; }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-4); margin-top: var(--space-5); color: var(--text-muted); font-size: var(--fs-sm); }
.hero-trust span { display: inline-flex; gap: 8px; align-items: center; }
.hero-trust .icon { color: var(--sage-dark); }
@media (max-width: 1024px) { .hero-note { left: 12px; top: 12px; } }

.page-hero { padding-block: var(--space-6); background: var(--cream-2); border-bottom: 1px solid var(--line); }
.page-hero .lead { max-width: 680px; margin: 0; }
.breadcrumb { font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: var(--space-2); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li { margin-top: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }

/* ---------- 10. PRECIOS ---------- */
.billing-toggle {
  display: inline-flex; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-pill);
  padding: 5px; gap: 4px;
}
.billing-toggle button {
  font: inherit; font-weight: 800; font-size: 1rem; border: 0; background: transparent; color: var(--text);
  min-height: 44px; padding: 0.4em 1.2em; border-radius: var(--radius-pill); cursor: pointer;
}
.billing-toggle button[aria-pressed="true"] { background: var(--navy); color: #fff; }

.price-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
@media (max-width: 720px) { .price-options { grid-template-columns: 1fr; } }
.price-card {
  position: relative; background: #fff; border-radius: var(--radius-lg); padding: var(--space-5);
  border: 2px solid var(--line); display: flex; flex-direction: column; gap: var(--space-2);
}
.price-card.featured { border-color: var(--teal); box-shadow: var(--shadow); }
.price-card .ribbon { position: absolute; top: -14px; left: var(--space-5); }
.price { font-family: var(--font-display); color: var(--navy); font-size: 3rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--font-body); font-size: 1.05rem; color: var(--text-muted); font-weight: 700; }
.price-note { color: var(--text-muted); font-size: var(--fs-sm); }
.save-note { color: var(--ok); font-weight: 800; font-size: var(--fs-sm); display: flex; gap: 6px; align-items: center; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.check-list .icon { color: var(--sage-dark); margin-top: 3px; }
.check-list.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1.5rem; }
@media (max-width: 640px) { .check-list.cols-2 { grid-template-columns: 1fr; } }

/* ---------- 11. PASOS ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.steps > li { counter-increment: step; margin: 0; display: grid; grid-template-columns: 56px 1fr; gap: var(--space-3); align-items: start;
  background: #fff; border-radius: var(--radius); padding: var(--space-4); box-shadow: var(--shadow-sm); }
.steps > li::before {
  content: counter(step); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--p-coral); color: var(--coral-hover); font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
}
.steps h3 { margin-bottom: 0.25rem; }
.steps p { margin: 0; color: var(--text-muted); }

/* ---------- 12. RECURSOS / VIDEOS ---------- */
.resource-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(23, 59, 77, .06); display: flex; flex-direction: column; }
.resource-card .thumb {
  aspect-ratio: 16 / 10; display: grid; place-items: center; position: relative;
  background: var(--p-blue); color: var(--navy);
}
.resource-card .thumb .doc {
  width: 42%; aspect-ratio: 8.5 / 11; background: #fff; border-radius: 6px; box-shadow: var(--shadow);
  padding: 10% 8%; display: flex; flex-direction: column; gap: 7%;
}
.resource-card .thumb .doc i { display: block; height: 5px; border-radius: 3px; background: var(--line-cool); }
.resource-card .thumb .doc i:first-child { background: var(--teal); width: 70%; height: 7px; }
.resource-card .thumb .doc i:nth-child(3) { width: 80%; }
.resource-card .thumb .doc i:nth-child(5) { width: 60%; }
.resource-card .thumb .type { position: absolute; top: 12px; left: 12px; }
.resource-card .body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.resource-card h3 { font-size: 1.2rem; margin: 0; }
.resource-card h3 a { color: var(--navy); text-decoration: none; }
.resource-card h3 a:hover { text-decoration: underline; }
.resource-card p { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); }
.resource-card .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.resource-card .actions { margin-top: auto; padding-top: var(--space-2); display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.bg-lavender { background: var(--p-lavender) !important; }
.bg-green { background: var(--p-green) !important; }
.bg-peach { background: var(--p-peach) !important; }
.bg-coral { background: var(--p-coral) !important; }
.bg-blue { background: var(--p-blue) !important; }
.bg-sand { background: var(--p-sand) !important; }

.locked-overlay { position: absolute; inset: 0; background: rgba(23, 59, 77, .55); display: grid; place-items: center; color: #fff; }
.locked-overlay .icon { width: 34px; height: 34px; }

.video-card .thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #2c5563, #173b4d); color: #fff; }
.video-card .thumb.alt1 { background: linear-gradient(135deg, #5a8f86, #2f5f60); }
.video-card .thumb.alt2 { background: linear-gradient(135deg, #8a7cbc, #4d4180); }
.video-card .thumb.alt3 { background: linear-gradient(135deg, #d4876f, #a8432f); }
.play {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--navy);
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.play .icon { width: 26px; height: 26px; fill: currentColor; margin-left: 3px; }
.duration { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .65); color: #fff; font-size: var(--fs-xs); font-weight: 700; padding: 2px 8px; border-radius: 6px; }

.video-player {
  aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background: linear-gradient(135deg, #2c5563, #0f2d3c); color: #fff; display: grid; place-items: center; text-align: center;
}
.video-player .ph { display: grid; gap: 14px; justify-items: center; padding: 20px; }
.video-player .ph p { margin: 0; color: #d6e2e6; font-size: var(--fs-sm); max-width: 460px; }

/* ---------- 13. ACORDEÓN (details/summary nativo) ---------- */
.accordion { display: grid; gap: var(--space-2); }
.accordion details { background: #fff; border-radius: var(--radius); border: 1px solid var(--line-cool); box-shadow: var(--shadow-sm); }
.accordion summary {
  list-style: none; cursor: pointer; padding: var(--space-3) var(--space-4); min-height: 56px;
  display: flex; gap: var(--space-3); align-items: center; justify-content: space-between;
  font-weight: 800; color: var(--navy); font-size: 1.08rem; border-radius: var(--radius);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; width: 12px; height: 12px; flex: none; border-right: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s;
}
.accordion details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.accordion .answer { padding: 0 var(--space-4) var(--space-4); color: var(--text); }
.accordion .answer p:last-child { margin-bottom: 0; }

/* ---------- 14. FORMULARIOS ---------- */
.form { display: grid; gap: var(--space-3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 800; color: var(--navy); font-size: 1rem; }
.field .hint { font-size: var(--fs-xs); color: var(--text-muted); }
.input, .select, .textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--text);
  background: #fff; border: 1.5px solid #cfd8da; border-radius: 12px; padding: 0.75em 0.9em; min-height: 52px;
}
.textarea { min-height: 140px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(61, 127, 128, .25); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--coral); }
.field-error { color: var(--coral-hover); font-size: var(--fs-xs); font-weight: 700; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.check {
  display: flex; gap: 10px; align-items: center; background: #fff; border: 1.5px solid #cfd8da; border-radius: 12px;
  padding: 0.6em 0.8em; cursor: pointer; font-weight: 700; min-height: 48px;
}
.check input { width: 20px; height: 20px; accent-color: var(--teal); }
.check:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow); }
@media (max-width: 640px) { .form-card { padding: var(--space-4); } }

.plan-radio { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
@media (max-width: 520px) { .plan-radio { grid-template-columns: 1fr; } }
.plan-radio label {
  display: grid; gap: 2px; border: 2px solid #cfd8da; border-radius: var(--radius); padding: var(--space-3); cursor: pointer; background: #fff; position: relative;
}
.plan-radio input { position: absolute; opacity: 0; }
.plan-radio label:has(input:checked) { border-color: var(--teal); background: #f3f9f8; }
.plan-radio label:has(input:focus-visible) { box-shadow: var(--focus); }
.plan-radio .p-name { font-weight: 800; color: var(--navy); }
.plan-radio .p-price { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); font-weight: 700; }

.demo-box {
  border: 2px dashed #d9b36a; background: var(--warn-bg); border-radius: var(--radius); padding: var(--space-4);
  display: grid; gap: var(--space-2);
}
.demo-box .label { color: var(--warn); font-weight: 800; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; display: flex; gap: 8px; align-items: center; }

/* ---------- 15. AVISOS ---------- */
.notice { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--radius); background: var(--p-blue); color: var(--text); font-size: var(--fs-sm); }
.notice .icon { color: var(--teal); width: 24px; height: 24px; margin-top: 2px; }
.notice p { margin: 0; }
.notice strong { color: var(--navy); }
.notice.warm { background: var(--p-peach); }
.notice.warm .icon { color: var(--coral); }
.notice.sage { background: var(--p-green); }
.notice.sage .icon { color: var(--sage-dark); }
.notice.success { background: var(--ok-bg); }
.notice.success .icon { color: var(--ok); }

.dev-note {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.82rem; line-height: 1.5;
  background: #1e2a33; color: #cfe3e0; padding: 10px 14px; border-radius: 10px; border-left: 4px solid var(--coral-light);
}
.dev-note b { color: #fff; }

.toast-region { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(520px, calc(100% - 32px)); }
.toast { background: var(--navy); color: #fff; padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); animation: toast-in .25s ease; }
.toast .icon { color: #9fd3c7; margin-top: 2px; }
@keyframes toast-in { from { transform: translateY(10px); opacity: .4; } to { transform: none; opacity: 1; } }

.testimonial { background: #fff; border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: var(--space-3); border: 1.5px dashed #d9c9b4; }
.testimonial blockquote { margin: 0; font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); line-height: 1.5; font-style: italic; }
.testimonial .who { display: flex; gap: 12px; align-items: center; color: var(--text-muted); font-size: var(--fs-sm); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--teal); flex: none; font-size: 1rem; }
.avatar.c1 { background: var(--coral); } .avatar.c2 { background: var(--purple); } .avatar.c3 { background: var(--sage-dark); } .avatar.c4 { background: var(--navy); }
.avatar.ghost { background: var(--cream-2); color: var(--text-muted); }

/* ---------- 16. CTA BANDA ---------- */
.cta-band { background: var(--navy); color: #e3ecef; border-radius: var(--radius-lg); padding: var(--space-6); display: grid; grid-template-columns: 1.4fr auto; gap: var(--space-5); align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(232, 128, 106, .18); }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 0; color: #c9d6dc; }
.cta-band > * { position: relative; z-index: 1; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; padding: var(--space-5); } }

/* ---------- 17. BLOG ---------- */
.post-card .thumb { aspect-ratio: 16 / 9; }
.article { max-width: 760px; margin-inline: auto; }
.article h2 { font-size: var(--fs-xl); margin-top: var(--space-5); }
.article p, .article li { font-size: 1.15rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; color: var(--text-muted); font-size: var(--fs-sm); }
.toc { background: #fff; border-radius: var(--radius); padding: var(--space-4); border: 1px solid var(--line); }

/* ---------- 18. PIE DE PÁGINA: ver bloque "V2" al final ---------- */

/* ---------- 19. AUTENTICACIÓN ---------- */
.auth-wrap { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { background: var(--navy); color: #d8e3e8; padding: var(--space-7) var(--space-6); display: flex; flex-direction: column; justify-content: center; gap: var(--space-4); }
.auth-aside h2 { color: #fff; }
.auth-main { padding: var(--space-6) var(--gutter); display: grid; place-items: center; }
.auth-main .form-card { width: 100%; max-width: 520px; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-aside { display: none; } }

/* ==========================================================================
   PORTAL DE MIEMBROS — CENTRO DE MANDO DEL CUIDADOR
   En WordPress: plantilla de página protegida (Elementor Theme Builder)
   con barra lateral como "Header/Sidebar" y restricción del plugin de membresía.
   ========================================================================== */
/* Estructura del portal: ver bloque "V2" al final */
.search-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line-cool); padding: 8px; z-index: 60; max-height: 70vh; overflow: auto;
}
.search-suggest a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text); }
.search-suggest a:hover, .search-suggest a.is-active { background: var(--app-bg); }
.search-suggest .s-title { font-weight: 800; color: var(--navy); display: block; line-height: 1.3; }
.search-suggest .s-type { font-size: var(--fs-xs); color: var(--text-muted); }
.search-suggest .s-all { justify-content: center; font-weight: 800; color: var(--teal); border-top: 1px solid var(--line-cool); margin-top: 4px; border-radius: 0 0 10px 10px; }

.app-content { padding: var(--space-5); display: grid; gap: var(--space-5); max-width: 1320px; width: 100%; }
.app-hero {
  background: #fff; border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-5); align-items: center; border: 1px solid var(--line-cool);
}
.app-hero h1 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem); }
.app-hero .welcome { color: var(--coral-hover); font-weight: 800; margin-bottom: var(--space-2); display: block; }
.app-hero p { color: var(--text-muted); margin: 0; }
.app-hero .photo { aspect-ratio: 16 / 11; }
.page-title-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-3); }
.page-title-bar h1 { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); margin: 0; }
.page-title-bar p { margin: 6px 0 0; color: var(--text-muted); max-width: 680px; }

.big-search { background: var(--navy); border-radius: var(--radius-lg); padding: var(--space-5); color: #d8e3e8; display: grid; gap: var(--space-3); }
.big-search h2 { color: #fff; font-size: var(--fs-xl); margin: 0; }
.big-search .input { min-height: 60px; font-size: 1.15rem; }
.big-search .quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: var(--fs-sm); }
.big-search .quick a { color: #fff; background: rgba(255, 255, 255, .12); padding: 6px 14px; border-radius: var(--radius-pill); text-decoration: none; font-weight: 700; }
.big-search .quick a:hover { background: rgba(255, 255, 255, .22); }

.dash-card { border-radius: var(--radius-lg); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); text-decoration: none; color: var(--text); min-height: 210px; transition: transform .2s, box-shadow .2s; border: 1px solid rgba(23, 59, 77, .05); }
.dash-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.dash-card h3 { font-size: 1.25rem; margin: var(--space-2) 0 0; }
.dash-card p { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); }
.dash-card .link-arrow { margin-top: auto; }

.widget { background: #fff; border-radius: var(--radius-lg); padding: var(--space-4); box-shadow: var(--shadow-sm); border: 1px solid var(--line-cool); display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.widget-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.widget-head h2 { font-size: 1.3rem; margin: 0; }
.list-plain { list-style: none; padding: 0; margin: 0; display: grid; }
.list-plain li { margin: 0; border-top: 1px solid var(--line-cool); }
.list-plain li:first-child { border-top: 0; }
.list-item { display: flex; gap: 12px; align-items: center; padding: 12px 4px; text-decoration: none; color: var(--text); }
.list-item:hover .li-title { text-decoration: underline; }
.list-item .li-title { font-weight: 800; color: var(--navy); line-height: 1.35; display: block; }
.list-item .li-meta { font-size: var(--fs-xs); color: var(--text-muted); }
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
@media (max-width: 1200px) { .dash-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .dash-grid { grid-template-columns: 1fr; } }

.cat-section { display: grid; gap: var(--space-3); }
.cat-head { display: flex; gap: var(--space-3); align-items: center; }
.cat-head h2 { margin: 0; font-size: 1.5rem; }
.cat-head p { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); }
.cat-soon { opacity: .9; }

.filter-bar { background: #fff; border-radius: var(--radius-lg); padding: var(--space-4); border: 1px solid var(--line-cool); display: grid; gap: var(--space-3); }

.results-group { display: grid; gap: var(--space-2); }
.results-group h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; margin: 0; }
.result { background: #fff; border-radius: var(--radius); padding: var(--space-3) var(--space-4); border: 1px solid var(--line-cool); display: flex; gap: var(--space-3); align-items: flex-start; text-decoration: none; color: var(--text); }
.result:hover { box-shadow: var(--shadow); color: var(--text); }
.result h3 { font-size: 1.12rem; margin: 0 0 2px; }
.result p { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); }
.result mark { background: #fde7a8; color: inherit; border-radius: 3px; padding: 0 2px; }

/* Comunidad */
.community-banner { background: linear-gradient(120deg, var(--navy) 0%, #24566a 100%); color: #dbe7ec; border-radius: var(--radius-lg); padding: var(--space-5); display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-5); align-items: center; }
.community-banner h1 { color: #fff; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem); }
.community-banner p { color: #c9d9df; }
.space-card { display: flex; gap: var(--space-3); align-items: flex-start; }
.space-card .count { font-size: var(--fs-xs); color: var(--text-muted); }
.event-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line-cool); box-shadow: var(--shadow-sm); padding: var(--space-4); display: grid; grid-template-columns: 84px 1fr; gap: var(--space-3); }
.event-date { background: var(--p-coral); border-radius: var(--radius); text-align: center; padding: 10px 6px; color: var(--coral-hover); align-self: start; }
.event-date .d { display: block; font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.event-date .t { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--navy); line-height: 1.2; margin-top: 2px; }
.event-card h3 { font-size: 1.2rem; margin: 0 0 4px; }
.event-card h3 a { color: var(--navy); text-decoration: none; }
.event-card h3 a:hover { text-decoration: underline; }
.event-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--space-2); }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
@media (max-width: 520px) { .event-card { grid-template-columns: 1fr; } .event-date { display: flex; gap: 10px; align-items: baseline; justify-content: center; } }

.topic { display: grid; grid-template-columns: 48px 1fr auto; gap: var(--space-3); align-items: start; padding: var(--space-3) var(--space-4); border-top: 1px solid var(--line-cool); }
.topic:first-child { border-top: 0; }
.topic h3 { font-size: 1.1rem; margin: 0 0 4px; font-family: var(--font-body); font-weight: 800; }
.topic h3 a { color: var(--navy); text-decoration: none; }
.topic h3 a:hover { text-decoration: underline; }
.topic-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: var(--fs-xs); color: var(--text-muted); }
.topic-stats { text-align: right; font-size: var(--fs-xs); color: var(--text-muted); white-space: nowrap; }
.topic-stats b { display: block; font-size: 1.2rem; color: var(--navy); font-family: var(--font-display); }
@media (max-width: 600px) { .topic { grid-template-columns: 40px 1fr; } .topic-stats { grid-column: 2; text-align: left; } .topic-stats b { display: inline; margin-right: 4px; } }

.post { display: grid; grid-template-columns: 48px 1fr; gap: var(--space-3); padding: var(--space-4); background: #fff; border-radius: var(--radius); border: 1px solid var(--line-cool); }
.post.is-mod { border-color: var(--teal); background: #f5fbfa; }
.post-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-bottom: 6px; }
.post-head b { color: var(--navy); }
.post-head span { font-size: var(--fs-xs); color: var(--text-muted); }
.post p { margin: 0 0 var(--space-2); }
.post-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.post-actions button { font: inherit; font-size: var(--fs-xs); font-weight: 800; background: transparent; border: 0; color: var(--text-muted); cursor: pointer; padding: 6px 8px; border-radius: 8px; display: inline-flex; gap: 6px; align-items: center; min-height: 36px; }
.post-actions button:hover { background: var(--app-bg); color: var(--navy); }

.rules-box { background: var(--p-green); border-radius: var(--radius-lg); padding: var(--space-4); display: grid; gap: var(--space-2); }
.rules-box h2 { font-size: 1.25rem; margin: 0; }

.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line-cool); overflow-x: auto; }
.tabs button, .tabs a { font: inherit; font-weight: 800; font-size: 1rem; background: transparent; border: 0; padding: 12px 16px; color: var(--text-muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; text-decoration: none; }
.tabs [aria-selected="true"] { color: var(--navy); border-bottom-color: var(--coral); }

.kv { display: grid; grid-template-columns: 200px 1fr; gap: 10px var(--space-3); margin: 0; }
.kv dt { color: var(--text-muted); font-weight: 700; }
.kv dd { margin: 0; color: var(--navy); font-weight: 800; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 10px; } }

.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--ok-bg); color: var(--ok); font-weight: 800; font-size: var(--fs-xs); }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.demo-banner { background: var(--warn-bg); color: var(--warn); font-size: var(--fs-xs); font-weight: 700; text-align: center; padding: 6px 16px; border-bottom: 1px solid #efd9a8; }

.app-footer { padding: var(--space-4) var(--space-5); font-size: var(--fs-xs); color: var(--text-muted); border-top: 1px solid var(--line-cool); margin-top: auto; display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; }
.app-footer a { color: var(--text-muted); }

/* Utilidades */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); }
.text-center { text-align: center; }
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-sm); }
.xsmall { font-size: var(--fs-xs); }
.w-100 { width: 100%; }
.is-hidden { display: none !important; }
.prose-legal h2 { font-size: var(--fs-xl); margin-top: var(--space-5); }
.prose-legal p, .prose-legal li { color: var(--text); }

/* Utilidades de layout usadas en plantillas */
[hidden] { display: none !important; }
@media (max-width: 900px) { [data-grid-collapse] { grid-template-columns: 1fr !important; } [data-grid-collapse] aside, [data-grid-collapse] .stack[style*="sticky"] { position: static !important; } }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; background: var(--cream-2); padding: .1em .35em; border-radius: 5px; }
/* Ajustes tras revisión visual */
.main-nav a, .header-actions a, .link-arrow { white-space: nowrap; }
.site-header .container { max-width: 1400px; gap: var(--space-3); }
@media (min-width: 1241px) { .main-nav a { padding: 0.5em 0.6em; font-size: 0.98rem; } .header-actions .login-link { padding-inline: 0.5em; } }
.list-item .btn { white-space: normal; }
.stack > .list-item { flex-wrap: wrap; }

/* ==========================================================================
   V2 — AJUSTES SEGÚN MOCKUPS (inicio público + panel de miembros)
   ========================================================================== */

/* Texto manuscrito decorativo */
.script-note { font-family: var(--font-script); font-weight: 600; color: var(--navy); font-size: 1.9rem; line-height: 1.05; margin: 0; }
.script-note .heart, .heart-red { color: var(--brand-red); }
.accent { color: var(--purple); }
.eyebrow { color: var(--purple); }
.eyebrow.coral { color: var(--purple); }
.page-hero { background: linear-gradient(110deg, var(--blush) 0%, var(--lavender-bg) 100%); border-bottom: 0; }
.section-sand { background: var(--blush); }
.section-navy { background: var(--navy); }
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, #2d3f86 100%); }
.cta-band::after { background: rgba(236, 138, 120, .2); }
.price-card.featured { border-color: var(--purple); }
.plan-radio label:has(input:checked) { border-color: var(--purple); background: var(--purple-soft); }

/* ---------- PIE DE PÁGINA (lavanda claro) ---------- */
.site-footer { background: #efebf8; color: var(--text); padding-block: var(--space-6) var(--space-4); }
.site-footer a { color: var(--navy); text-decoration: none; font-weight: 700; }
.site-footer a:hover { text-decoration: underline; }
.footer-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.footer-brand { display: grid; gap: 6px; }
.footer-brand .logo img { height: 56px; }
.footer-brand p { margin: 0; font-size: var(--fs-xs); color: var(--text-muted); }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 1rem; }
.footer-nav li + li { margin-top: 0; }
.footer-social { display: flex; gap: 10px; }
.social { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--navy) !important; box-shadow: var(--shadow-sm); }
.social:hover { background: var(--navy); color: #fff !important; }
.social .icon { width: 22px; height: 22px; }
.footer-bottom { border-top: 1px solid #ddd6ee; margin-top: var(--space-5); padding-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; align-items: flex-start; font-size: var(--fs-xs); }
.footer-disclaimer { margin: 0; color: var(--text-muted); max-width: 520px; font-size: var(--fs-xs); }
.footer-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--text-muted); }
.footer-legal li + li { margin-top: 0; }
.footer-legal a { font-weight: 600; }

/* ---------- INICIO: HERO ---------- */
.home-hero { position: relative; overflow: hidden; background: linear-gradient(100deg, #fbf3f1 0%, #f6f0fa 55%, #efe9f7 100%); }
.home-hero .container { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 460px; }
.home-hero .copy { padding-block: var(--space-6); position: relative; z-index: 2; }
.home-hero h1 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.4rem); margin-bottom: var(--space-3); }
.home-hero .lead { color: var(--text); max-width: 540px; margin-bottom: var(--space-5); }
.home-hero .media { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; }
.home-hero .media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%); mask-image: linear-gradient(90deg, transparent 0%, #000 22%); }
.home-hero .script-note { position: absolute; top: 26px; right: 36px; transform: rotate(-6deg); text-align: right; color: var(--navy); z-index: 2; }
.provisional { position: absolute; left: 22%; bottom: 10px; font-size: .72rem; background: rgba(255,255,255,.88); color: var(--text-muted); padding: 2px 8px; border-radius: 6px; z-index: 2; }
@media (max-width: 900px) {
  .home-hero .container { grid-template-columns: 1fr; min-height: 0; }
  .home-hero .media { position: relative; width: auto; height: 300px; margin-inline: calc(var(--gutter) * -1); }
  .home-hero .media img { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%); mask-image: linear-gradient(180deg, transparent 0%, #000 25%); }
  .home-hero .script-note { top: auto; bottom: 18px; right: 20px; font-size: 1.6rem; }
  .home-hero .copy { padding-bottom: var(--space-3); }
  .provisional { left: 10px; }
}

/* ---------- INICIO: QUIÉNES SOMOS ---------- */
.about-band { background: #fff; display: grid; grid-template-columns: 46% 1fr; align-items: center; gap: var(--space-6); padding-block: var(--space-3); }
.about-band .media { position: relative; }
.about-band .media img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.about-band .copy { padding: var(--space-5) var(--gutter) var(--space-5) 0; max-width: 620px; }
.about-band h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); }
@media (max-width: 900px) { .about-band { grid-template-columns: 1fr; gap: 0; } .about-band .media img { border-radius: 0; min-height: 200px; } .about-band .copy { padding: var(--space-5) var(--gutter); } }

/* ---------- INICIO: BENEFICIOS (fila horizontal) ---------- */
.benefit-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.benefit-h { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); border-radius: var(--radius); }
.benefit-h h3 { font-size: 1.35rem; margin: 0 0 4px; }
.benefit-h p { margin: 0; color: var(--text); font-size: var(--fs-sm); }
.circle-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.circle-ic .icon { width: 34px; height: 34px; }
.circle-ic.green { background: #cfe8dc; color: var(--green); }
.circle-ic.purple { background: #e2d8f6; color: var(--purple); }
.circle-ic.coral { background: #f9d6cf; color: var(--coral); }
.circle-ic.blue { background: #d6e4f4; color: var(--blue); }
@media (max-width: 900px) { .benefit-row { grid-template-columns: 1fr; } }

/* ---------- INICIO: SEIS ACCESOS (fila compacta) ---------- */
.six-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-3); }
.six-card { border-radius: var(--radius); padding: var(--space-3) var(--space-3) var(--space-4); display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text); position: relative; min-height: 190px; transition: transform .2s, box-shadow .2s; }
.six-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.six-card h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.08rem; margin: 6px 0 0; color: var(--navy); line-height: 1.25; }
.six-card p { margin: 0; font-size: .95rem; color: var(--text-muted); line-height: 1.45; padding-right: 18px; }
.six-card .go { position: absolute; right: 14px; bottom: 14px; color: var(--navy); }
.six-card .go .icon { width: 18px; height: 18px; }
.ic-round { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.ic-round .icon { width: 24px; height: 24px; }
.ic-round.purple { background: #8a6cc9; } .ic-round.green { background: #3f8f6b; } .ic-round.coral { background: #e06a58; }
.ic-round.blue { background: #4a86c9; } .ic-round.sage { background: #5f9a6e; } .ic-round.red { background: #d9534f; }
@media (max-width: 1200px) { .six-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .six-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .six-card { min-height: 0; } }
@media (max-width: 400px) { .six-row { grid-template-columns: 1fr; } }

/* ---------- INICIO: RECURSOS GRATUITOS (tarjetas horizontales) ---------- */
.section-lavender { background: var(--lavender-bg); }
.section-blush { background: var(--blush); }
.section-mint { background: var(--mint-bg); }
.free-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.free-card { background: #fff; border-radius: var(--radius); padding: 12px; display: grid; grid-template-columns: 46% 1fr; gap: var(--space-3); box-shadow: var(--shadow-sm); }
.free-card img { width: 100%; height: 100%; min-height: 170px; object-fit: cover; border-radius: 10px; }
.free-card .body { display: flex; flex-direction: column; gap: 8px; padding-block: 8px; }
.free-card h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.12rem; margin: 0; line-height: 1.25; }
.free-card p { margin: 0; font-size: .95rem; color: var(--text); line-height: 1.45; }
.free-card .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 1100px) { .free-grid { grid-template-columns: 1fr; } .free-card { grid-template-columns: 180px 1fr; } }
@media (max-width: 460px) { .free-card { grid-template-columns: 1fr; } .free-card img { min-height: 0; aspect-ratio: 16 / 10; } }

/* ---------- INICIO: MEMBRESÍA ---------- */
.member-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: var(--space-5); align-items: center; position: relative; }
.member-split .media img { width: 100%; height: auto; border-radius: var(--radius); mix-blend-mode: multiply; }
.member-split .script-note { text-align: right; transform: rotate(-6deg); margin-top: var(--space-3); font-size: 1.7rem; }
.price-mini { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-block: var(--space-3) var(--space-4); }
.price-mini > div { background: #fff; border-radius: 14px; padding: 10px 16px; border: 1.5px solid var(--line); display: grid; }
.price-mini > div.best { border-color: var(--purple); }
.price-mini b { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); line-height: 1.1; }
.price-mini span { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 700; }
@media (max-width: 900px) { .member-split { grid-template-columns: 1fr; } }

/* ---------- INICIO: TESTIMONIOS (carrusel) ---------- */
.carousel-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.carousel-controls { display: flex; align-items: center; gap: 10px; }
.carousel-controls button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #cfd9d3; background: #fff; color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.carousel-controls button:first-child .icon { transform: rotate(180deg); }
.dots { display: flex; gap: 6px; }
.dots span { width: 9px; height: 9px; border-radius: 50%; background: #c6d3cc; }
.dots span.on { background: var(--purple); }
.t-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc(50% - var(--space-3)); gap: var(--space-5); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.t-track::-webkit-scrollbar { display: none; }
.t-item { scroll-snap-align: start; display: grid; grid-template-columns: 84px 1fr; gap: var(--space-3); align-items: start; }
.t-photo { width: 84px; height: 84px; border-radius: 50%; background: #fff; border: 2px dashed #b9c9c0; display: grid; place-items: center; color: #8aa093; }
.t-photo .icon { width: 34px; height: 34px; }
.t-item blockquote { margin: 0 0 8px; font-size: 1.05rem; color: var(--text); }
.t-item cite { font-style: normal; font-weight: 700; font-size: var(--fs-sm); color: var(--navy); }
@media (max-width: 760px) { .t-track { grid-auto-columns: 100%; } }

/* ==========================================================================
   PORTAL V2: encabezado de marca + barra lateral clara
   ========================================================================== */
.app-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-cool); display: flex; align-items: center; gap: var(--space-4); padding: 10px var(--space-5); min-height: 84px;
}
.app-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.app-brand img { width: 58px; height: auto; }
.app-brand .name { display: block; font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1.55rem; line-height: 1.1; }
.app-brand .tag { display: block; font-size: .85rem; color: var(--text-muted); margin-top: 2px; }
.topbar-search { flex: 1; max-width: 560px; margin-left: auto; position: relative; }
.search-input-wrap { position: relative; }
.search-input-wrap .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); width: 22px; height: 22px; pointer-events: none; }
.search-input-wrap .input { padding-left: 50px; min-height: 52px; background: #fff; }
.icon-btn { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 0; background: transparent; color: var(--navy); cursor: pointer; display: grid; place-items: center; flex: none; }
.icon-btn:hover { background: var(--app-bg); }
.icon-btn .icon { width: 26px; height: 26px; }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 11px; height: 11px; border-radius: 50%; background: #e0574a; border: 2px solid #fff; }
.topbar-user { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.topbar-user .avatar { width: 48px; height: 48px; font-size: 1.1rem; }
.topbar-user .u-name { display: grid; line-height: 1.2; }
.topbar-user .u-name b { color: var(--navy); }
.topbar-user .u-name small { color: var(--green); font-weight: 800; font-size: .85rem; }
.topbar-user > .icon { width: 18px; height: 18px; color: var(--navy); }

.app { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: calc(100vh - 84px); }
.sidebar {
  background: #f6f3f0; border-right: 1px solid var(--line-cool); padding: var(--space-4) var(--space-3);
  position: sticky; top: 84px; height: calc(100vh - 84px); overflow-y: auto; display: flex; flex-direction: column; gap: var(--space-4);
}
.side-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.side-nav li + li { margin-top: 0; }
.side-nav a { display: flex; align-items: center; gap: 14px; padding: 0.7em 0.9em; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.side-nav a:hover { background: #ece7e2; color: var(--navy); }
.side-nav a[aria-current="page"] { background: #d7ece6; color: var(--navy); font-weight: 800; }
.side-nav .icon { width: 24px; height: 24px; color: #4b5a6c; }
.side-nav a[aria-current="page"] .icon { color: var(--navy); }
.sidebar-card { margin-top: auto; background: #efebe7; border-radius: var(--radius); padding: var(--space-4) var(--space-3); text-align: center; display: grid; gap: 10px; justify-items: center; }
.sidebar-card .sprig { color: #7fb39a; }
.sidebar-card .sprig .icon { width: 34px; height: 34px; }
.sidebar-card .script-note { font-size: 1.75rem; transform: rotate(-4deg); }
.sidebar-card .quote { margin: 0; font-family: var(--font-display); font-style: italic; color: var(--navy); font-size: 1.02rem; line-height: 1.45; }
.side-logout { display: flex; align-items: center; gap: 10px; color: var(--text-muted); text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 10px; }
.side-logout:hover { background: #ece7e2; color: var(--navy); }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-content { padding: var(--space-4) var(--space-5); display: grid; gap: var(--space-4); max-width: 1440px; width: 100%; }
.menu-btn { display: none; background: #fff; border: 1.5px solid var(--line-cool); border-radius: 12px; width: 48px; height: 48px; align-items: center; justify-content: center; color: var(--navy); cursor: pointer; flex: none; }
.menu-btn .icon { width: 24px; height: 24px; }
.sidebar-close { display: none; }
.drawer-backdrop { display: none; }
.big-search { background: var(--navy); }

/* Panel: hero */
.dash-hero { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(100deg, #fbf5f0 0%, #f8efe8 45%, #f2e9e1 100%); min-height: 300px; display: grid; grid-template-columns: 1.1fr 1fr; box-shadow: var(--shadow-sm); }
.dash-hero .copy { padding: var(--space-5); position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: var(--space-2); }
.dash-hero .welcome { font-size: .9rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.dash-hero h1 { font-size: clamp(1.8rem, 1.2rem + 1.7vw, 2.55rem); margin: 0; }
.dash-hero p { margin: 0; color: var(--text); max-width: 600px; }
.dash-hero .media { position: absolute; right: 0; top: 0; bottom: 0; width: 52%; }
.dash-hero .media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 25%); mask-image: linear-gradient(90deg, transparent 0%, #000 25%); }
.dash-hero .script-note { position: absolute; top: 22px; right: 28px; transform: rotate(-6deg); text-align: right; z-index: 2; font-size: 1.8rem; }
.dash-hero .words { position: absolute; right: 28px; top: 108px; z-index: 2; list-style: none; margin: 0; padding: 0; font-size: .78rem; letter-spacing: .12em; color: var(--navy); font-weight: 700; display: grid; gap: 6px; text-align: left; }
.dash-hero .words li + li { margin-top: 0; }
.dash-hero .row { margin-top: var(--space-2); }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-hover); color: #fff; }
.quick-inline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .9rem; color: var(--text-muted); margin-top: 4px; }
.quick-inline a { background: rgba(255,255,255,.8); border: 1px solid var(--line); color: var(--navy); padding: 3px 12px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.quick-inline a:hover { border-color: var(--navy); }
@media (max-width: 1100px) { .dash-hero .words { display: none; } }
@media (max-width: 900px) {
  .dash-hero { grid-template-columns: 1fr; }
  .dash-hero .media { position: relative; width: auto; height: 220px; order: -1; }
  .dash-hero .media img { -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 30%); mask-image: linear-gradient(0deg, transparent 0%, #000 30%); }
  .dash-hero .script-note { top: 150px; font-size: 1.5rem; }
}

/* Panel: widgets con miniaturas */
.dash-widgets { display: grid; grid-template-columns: 1.55fr 1.15fr 1fr; gap: var(--space-3); }
@media (max-width: 1300px) { .dash-widgets { grid-template-columns: 1fr 1fr; } .dash-widgets > :first-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { .dash-widgets { grid-template-columns: 1fr; } }
.thumb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .thumb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.thumb-item { text-decoration: none; color: var(--text); display: grid; gap: 6px; }
.thumb-item img { width: 100%; aspect-ratio: 134 / 123; object-fit: cover; border-radius: 10px; }
.thumb-item b { color: var(--navy); font-size: .92rem; line-height: 1.25; }
.thumb-item span { font-size: .78rem; color: var(--text-muted); display: flex; gap: 4px; align-items: center; }
.thumb-item span .icon { width: 14px; height: 14px; }
.thumb-item:hover b { text-decoration: underline; }
.vid-row { display: grid; grid-template-columns: 124px 1fr; gap: 12px; align-items: center; text-decoration: none; color: var(--text); padding-block: 8px; border-top: 1px solid var(--line-cool); }
.vid-row:first-child { border-top: 0; padding-top: 0; }
.vid-row .vthumb { position: relative; border-radius: 8px; overflow: hidden; }
.vid-row .vthumb img { width: 100%; aspect-ratio: 132 / 61; object-fit: cover; }
.vid-row b { color: var(--navy); font-size: .95rem; line-height: 1.3; display: block; }
.vid-row small { color: var(--green); font-weight: 700; font-size: .8rem; }
.vid-row:hover b { text-decoration: underline; }
.faq-mini { display: grid; gap: 8px; }
.faq-mini details { border: 1px solid var(--line-cool); border-radius: 10px; background: #fff; }
.faq-mini summary { list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; font-size: .95rem; color: var(--navy); font-weight: 600; line-height: 1.35; }
.faq-mini summary::-webkit-details-marker { display: none; }
.faq-mini summary::before { content: "+"; font-size: 1.3rem; line-height: 1; font-weight: 400; color: var(--navy); }
.faq-mini details[open] summary::before { content: "−"; }
.faq-mini .answer { padding: 0 12px 12px 36px; font-size: .92rem; color: var(--text); }
.faq-mini .answer p { margin: 0 0 6px; }

/* Panel: banda inferior */
.care-band { background: var(--mint-bg); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); position: relative; overflow: hidden; }
.care-band .sprig { color: #6aa98a; }
.care-band .sprig .icon { width: 42px; height: 42px; }
.care-band h2 { font-size: 1.35rem; margin: 0; }
.care-band p { margin: 0; color: var(--teal); }
.care-band .btn { margin-left: auto; background: #185a55; color: #fff; }
.care-band .btn:hover { background: #104541; color: #fff; }

/* Portal: móvil */
@media (max-width: 1100px) {
  .app-brand .tag { display: none; }
  .topbar-user .u-name { display: none; }
}
@media (max-width: 1024px) {
  .app { grid-template-columns: 1fr; }
  .app-header { padding: 10px var(--gutter); gap: var(--space-2); flex-wrap: wrap; min-height: 0; }
  .menu-btn { display: inline-flex; }
  .app-brand img { width: 44px; }
  .app-brand .name { font-size: 1.2rem; }
  .topbar-search { order: 10; flex-basis: 100%; max-width: none; margin-left: 0; }
  .bell { margin-left: auto; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(310px, 86vw); z-index: 90; transform: translateX(-105%); transition: transform .25s ease; height: 100%; padding-top: calc(var(--space-6) + env(safe-area-inset-top, 0px)); }
  .sidebar.is-open { transform: none; box-shadow: var(--shadow-lg); }
  .drawer-backdrop.is-open { display: block; position: fixed; inset: 0; background: rgba(20, 43, 75, .45); z-index: 80; }
  .sidebar-close { display: inline-flex; position: absolute; right: 12px; top: calc(12px + env(safe-area-inset-top, 0px)); background: transparent; border: 0; color: var(--navy); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; border-radius: 10px; }
  .app-content { padding: var(--space-4) var(--gutter); }
  .app-hero, .community-banner { grid-template-columns: 1fr; }
  .app-hero .photo { display: none; }
}
@media (max-width: 460px) { .app-brand .name { font-size: 1.05rem; } .topbar-user { display: none; } }
/* Ajustes tras revisión (V2) */
.logo img { height: 64px; }
.thumb-item, .vid-row > span { min-width: 0; }
.vid-row { grid-template-columns: 108px minmax(0, 1fr); }
.widget-head h2 { font-size: 1.2rem; }
.widget-head .link-arrow { flex: none; }
.side-nav a { padding: 0.6em 0.85em; font-size: 1rem; }
.sidebar-card .script-note { font-size: 1.5rem; }
.sidebar-card .quote { font-size: .95rem; }
@media (max-width: 1500px) { .dash-hero .words { display: none; } }
@media (min-width: 1025px) and (max-width: 1400px) { .is-app .six-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .is-app .six-card { min-height: 150px; } }
.thumb-item { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1500px) { .dash-widgets { grid-template-columns: 1fr 1fr; } .dash-widgets > :first-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { .dash-widgets { grid-template-columns: 1fr; } }
.vid-row { grid-template-columns: 96px minmax(0, 1fr); }
.vid-row .vthumb img { aspect-ratio: 3 / 2; }
.vid-row .vthumb::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='rgba(255,255,255,.9)'/%3E%3Cpath d='M10 8v8l6-4z' fill='%231c3a63'/%3E%3C/svg%3E") center / 30px no-repeat; }
.vid-row .vthumb::after { content: none; }

/* ==========================================================================
   V3 — DISEÑO LIMPIO (aprobado a partir del mockup de inicio)
   Un solo color de marca (azul del logotipo) + neutros. Sin pasteles.
   Este bloque redefine los tokens y neutraliza los componentes anteriores.
   ========================================================================== */
:root {
  --navy: #16202e;          /* tinta: títulos y fondos oscuros */
  --navy-2: #0f1722;
  --blue: #1f4e8c;          /* azul del logotipo: botones y enlaces */
  --blue-dark: #173c6c;
  --tint: #eef3f9;          /* único tinte de color, muy sutil */
  --brand-red: #a3121f;
  --teal: #1f4e8c; --teal-soft: #eef3f9;
  --green: #1f4e8c; --green-hover: #173c6c;
  --coral: #1f4e8c; --coral-hover: #173c6c; --coral-light: #c9d6e6;
  --purple: #1f4e8c; --purple-hover: #173c6c; --purple-soft: #eef3f9;
  --sage: #9aa3af; --sage-dark: #5b6472;
  --cream: #ffffff; --cream-2: #f7f7f5;
  --blush: #f7f7f5; --lavender-bg: #f7f7f5; --mint-bg: #f7f7f5;
  --app-bg: #f7f7f5;
  --text: #3d4654; --text-muted: #6b7482;
  --line: #e6e8ec; --line-cool: #e6e8ec;
  --p-lavender: #f3f4f6; --p-blue: #f3f4f6; --p-green: #f3f4f6; --p-peach: #f3f4f6; --p-coral: #f3f4f6; --p-sand: #f3f4f6;
  --font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 12px; --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow: 0 4px 16px rgba(16, 24, 40, .07);
  --shadow-lg: 0 16px 40px rgba(16, 24, 40, .12);
  --focus: 0 0 0 3px #fff, 0 0 0 5px #1f4e8c;
}
body, body.is-app { background: #fff; }
body.is-app { background: var(--app-bg); }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
.accent { color: inherit; }
.eyebrow, .eyebrow.coral { color: var(--blue); }
.script-note, .dash-hero .words { display: none !important; }
.lead { color: var(--text-muted); }

/* Botones */
.btn { border-radius: 10px; }
.btn-primary, .is-app .btn-primary, .btn-coral, .btn-green { background: var(--blue); color: #fff; }
.btn-primary:hover, .is-app .btn-primary:hover, .btn-coral:hover, .btn-green:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { border: 1.5px solid #cfd5dd; color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--navy); background: #fff; color: var(--navy); }
.btn-dark { background: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-primary[data-download], .is-app .btn-primary[data-download] { background: #fff; color: var(--navy); border: 1.5px solid #cfd5dd; }
.btn-primary[data-download]:hover, .is-app .btn-primary[data-download]:hover { border-color: var(--navy); background: #fff; color: var(--navy); }
.btn[disabled], .btn.is-done { background: var(--tint); color: var(--blue); }
.link-arrow { color: var(--blue); }

/* Encabezado público */
.site-header { background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.main-nav a { border-radius: 0; font-weight: 500; color: var(--text); }
.main-nav a:hover { background: none; color: var(--navy); }
.main-nav a[aria-current="page"], .main-nav .current-menu-item > a { background: none; color: var(--navy); box-shadow: inset 0 -2px 0 var(--blue); }
.header-actions .login-link { color: var(--navy); }
@media (max-width: 1240px) { .main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue); } }

/* Tarjetas, iconos, insignias: sin rellenos de color */
.card, .widget, .form-card, .resource-card, .testimonial, .accordion details, .event-card, .filter-bar, .result, .post, .price-card, .app-hero { box-shadow: none; border: 1px solid var(--line); }
.card-lavender, .card-blue, .card-green, .card-peach, .card-coral, .card-sand { background: #fff; }
.card.card-flat { border: 1px solid var(--line); }
a.card:hover, .six-card:hover, .dash-card:hover, .result:hover { box-shadow: var(--shadow); }
.icon-bubble, .icon-bubble.teal, .icon-bubble.coral, .icon-bubble.sage, .icon-bubble.purple, .icon-bubble.navy,
.ic-round, .ic-round.purple, .ic-round.green, .ic-round.coral, .ic-round.blue, .ic-round.sage, .ic-round.red,
.circle-ic, .circle-ic.green, .circle-ic.purple, .circle-ic.coral, .circle-ic.blue {
  background: #fff; color: var(--blue); border: 1px solid var(--line); }
.badge { background: var(--tint); color: var(--blue); }
.badge-coral, .badge-purple, .badge-sage, .badge-sand { background: #f3f4f6; color: var(--text); }
.badge-navy { background: var(--navy); color: #fff; }
.badge-placeholder { background: #fff; color: var(--text-muted); border: 1px dashed #c7ccd4; }
.chip { border-color: var(--line); }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.avatar { background: var(--blue); }
.avatar.c1 { background: var(--blue); } .avatar.c2 { background: var(--navy); } .avatar.c3 { background: #5b6472; } .avatar.c4 { background: #2f5f8f; }
.avatar.ghost { background: #f3f4f6; color: var(--text-muted); }
.bg-lavender, .bg-green, .bg-peach, .bg-coral, .bg-blue, .bg-sand { background: #f3f4f6 !important; }
.resource-card .thumb .doc i:first-child { background: var(--blue); }

/* Secciones */
.section-white { background: #fff; }
.section-sand, .section-lavender, .section-blush, .section-mint { background: var(--cream-2); }
.section-navy { background: var(--navy); }
.page-hero { background: var(--cream-2); border-bottom: 1px solid var(--line); }
.cta-band { background: var(--navy); border-radius: var(--radius-lg); }
.cta-band::after { display: none; }
.notice { background: #f3f5f8; }
.notice .icon, .notice.warm .icon, .notice.sage .icon { color: var(--blue); }
.notice.warm, .notice.sage { background: var(--cream-2); }
.rules-box { background: var(--cream-2); border: 1px solid var(--line); }
.price-card.featured { border-color: var(--blue); box-shadow: none; }
.save-note { color: var(--blue); }
.check-list .icon { color: var(--blue); }
.plan-radio label:has(input:checked) { border-color: var(--blue); background: var(--tint); }
.steps > li { box-shadow: none; border: 1px solid var(--line); }
.steps > li::before { background: var(--tint); color: var(--blue); }
.event-date { background: var(--tint); color: var(--blue); }
.toast { background: var(--navy); }

/* Fotos provisionales y miniaturas: neutras */
.photo, .photo.tone-teal, .photo.tone-sage, .photo.tone-lavender {
  background:
    radial-gradient(circle at 34% 38%, rgba(255,255,255,.6) 0 13%, transparent 14%),
    radial-gradient(circle at 64% 44%, rgba(255,255,255,.5) 0 11%, transparent 12%),
    radial-gradient(ellipse at 34% 96%, rgba(255,255,255,.45) 0 30%, transparent 31%),
    radial-gradient(ellipse at 66% 96%, rgba(255,255,255,.4) 0 25%, transparent 26%),
    linear-gradient(150deg, #eceef1 0%, #dde1e6 100%);
  box-shadow: none; }
.video-card .thumb, .video-card .thumb.alt1, .video-card .thumb.alt2, .video-card .thumb.alt3, .video-player { background: linear-gradient(135deg, #22324a, #16202e); }

/* ---------- INICIO (nuevo diseño) ---------- */
.h-section { padding-block: 96px; }
.h-soft { background: var(--cream-2); }
.h-head { max-width: 660px; margin-bottom: 48px; }
.h-head h2 { margin-bottom: 14px; }
.h-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; border-bottom: 1px solid var(--line); background: #fff; }
.h-hero .copy { padding: 88px 56px 88px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.h-hero h1 { font-size: clamp(2.3rem, 1.6rem + 2.4vw, 3.5rem); margin: 0; letter-spacing: -.01em; }
.h-hero .lead { max-width: 520px; margin: 0; }
.h-hero .facts { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .95rem; color: var(--text-muted); }
.h-hero .facts span::before { content: "✓"; color: var(--blue); font-weight: 700; margin-right: 8px; }
.h-hero .media { position: relative; }
.h-hero .media img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; object-position: 45% 30%; }
.h-hero .provisional { left: 12px; }
.h-about { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; align-items: center; }
.h-about img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.h-about p + p { margin-top: 14px; }
.h-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.h-benefit { border-top: 2px solid var(--navy); padding-top: 22px; display: grid; gap: 10px; align-content: start; }
.h-benefit .num { font-family: var(--font-display); color: var(--blue); font-size: 1.1rem; }
.h-benefit h3 { font-size: 1.5rem; margin: 0; }
.h-benefit p { color: var(--text-muted); margin: 0; }
.h-features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: #fff; }
.h-feature { padding: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; text-decoration: none; color: inherit; transition: background .2s; }
.h-feature:hover { background: var(--tint); color: inherit; }
.h-feature .icon { color: var(--blue); width: 28px; height: 28px; }
.h-feature h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; margin: 0; }
.h-feature p { color: var(--text-muted); margin: 0; font-size: .98rem; }
.h-row-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 40px; }
.h-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.h-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.h-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--line); }
.h-card .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.h-card .tag { font-size: .8rem; color: var(--text-muted); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.h-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; margin: 0; }
.h-card p { color: var(--text-muted); margin: 0; font-size: .98rem; }
.h-card .btn { margin-top: auto; align-self: flex-start; }
.h-member { display: grid; grid-template-columns: 6fr 5fr; gap: 72px; align-items: center; }
.h-member ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.h-member li { margin: 0; padding-left: 26px; position: relative; }
.h-member li::before { content: ""; position: absolute; left: 0; top: .75em; width: 12px; height: 2px; background: var(--blue); }
.h-plans { display: grid; gap: 16px; }
.h-plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; background: #fff; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; }
.h-plan.best { border: 2px solid var(--blue); }
.h-plan .name { font-weight: 700; color: var(--navy); }
.h-plan .note { color: var(--text-muted); font-size: .92rem; grid-column: 1; }
.h-plan .price { font-family: var(--font-display); font-size: 2.2rem; color: var(--navy); grid-row: 1 / span 2; grid-column: 2; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; }
.h-plan .price small { font-family: var(--font-body); font-size: .95rem; color: var(--text-muted); }
.h-plan .save { grid-column: 1 / -1; font-size: .9rem; font-weight: 700; color: var(--blue); }
.h-plans .btn { width: 100%; }
.h-plans .fine { font-size: .9rem; color: var(--text-muted); text-align: center; margin: 0; }
.h-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.h-quote { margin: 0; display: grid; gap: 16px; align-content: start; }
.h-quote blockquote { margin: 0; font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); line-height: 1.5; }
.h-quote cite { font-style: normal; color: var(--text-muted); font-size: .92rem; }
.h-quote .badge-placeholder { justify-self: start; }
.h-cta { text-align: center; }
.h-cta h2 { max-width: 720px; margin: 0 auto 16px; }
.h-cta .lead { max-width: 560px; margin: 0 auto 28px; }
.h-cta .heart { color: var(--brand-red); }
@media (max-width: 1000px) {
  .h-hero, .h-about, .h-member { grid-template-columns: 1fr; }
  .h-hero .copy { padding: 56px var(--gutter); }
  .h-hero .media img { min-height: 300px; max-height: 420px; }
  .h-about, .h-member { gap: 40px; }
  .h-three, .h-cards, .h-quotes { grid-template-columns: 1fr; gap: 32px; }
  .h-features { grid-template-columns: 1fr 1fr; }
  .h-section { padding-block: 72px; }
}
@media (max-width: 560px) { .h-features { grid-template-columns: 1fr; } .h-member ul { grid-template-columns: 1fr; } .h-feature { padding: 24px; } }

/* ---------- PIE DE PÁGINA (oscuro, 4 columnas) ---------- */
.site-footer { background: var(--navy); color: #b9c1cc; padding-block: 64px 32px; font-size: .95rem; }
.site-footer a { color: #dfe4ea; font-weight: 500; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.f-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.f-top h2 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.f-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.f-top li + li { margin-top: 0; }
.f-brand .logo img, .f-brand .custom-logo-link img { height: 52px; width: auto; background: #fff; border-radius: 8px; padding: 6px 10px; }
.f-brand p { margin: 16px 0 0; max-width: 340px; }
.f-social { display: flex; gap: 10px; margin-top: 18px; }
.site-footer .social { background: transparent; border: 1px solid #3a475a; color: #dfe4ea !important; box-shadow: none; }
.site-footer .social:hover { background: #fff; color: var(--navy) !important; }
.f-bottom { border-top: 1px solid #2b3647; margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: .85rem; }
@media (max-width: 900px) { .f-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .f-top { grid-template-columns: 1fr; } }

/* ---------- PORTAL DE MIEMBROS ---------- */
.app-header { background: rgba(255, 255, 255, .98); }
.topbar-user .u-name small { color: var(--text-muted); }
.icon-btn .dot { background: var(--brand-red); }
.sidebar { background: #fff; border-right: 1px solid var(--line); }
.side-nav a { color: var(--text); font-weight: 500; }
.side-nav a:hover { background: #f5f6f8; color: var(--navy); }
.side-nav a[aria-current="page"] { background: var(--tint); color: var(--blue); font-weight: 700; box-shadow: inset 3px 0 0 var(--blue); border-radius: 0 10px 10px 0; }
.side-nav .icon { color: #6b7482; }
.side-nav a[aria-current="page"] .icon { color: var(--blue); }
.sidebar-card { background: var(--cream-2); border: 1px solid var(--line); }
.sidebar-card .sprig { color: var(--blue); }
.dash-hero { background: #fff; border: 1px solid var(--line); box-shadow: none; }
.dash-hero .welcome { color: var(--blue); }
.six-card { background: #fff; border: 1px solid var(--line); }
.care-band { background: var(--tint); }
.care-band .sprig { color: var(--blue); }
.care-band p { color: var(--text-muted); }
.care-band .btn { background: var(--blue); }
.care-band .btn:hover { background: var(--blue-dark); }
.community-banner { background: var(--navy); }
.big-search { background: var(--navy); }
.vid-row small { color: var(--text-muted); }
.faq-mini details { border-color: var(--line); }
.demo-banner { background: #f7f7f5; color: var(--text-muted); border-bottom: 1px solid var(--line); }

/* ---------- Inicio: logo grande dentro del hero; sin logo en el menú superior ---------- */
.hero-logo img, .hero-logo .custom-logo, .hero-logo .logo img { height: 130px; width: auto; max-width: 100%; }
.hero-logo .logo, .hero-logo .custom-logo-link { display: inline-block; }
@media (max-width: 640px) { .hero-logo img, .hero-logo .custom-logo { height: 96px; } }
body[data-page="inicio.html"]:not(.is-app) .site-header .logo,
body[data-page="inicio.html"]:not(.is-app) .site-header .custom-logo-link { display: none; }
body[data-page="inicio.html"]:not(.is-app) .site-header .container { min-height: 68px; }
