/* Maca Fitness — sistema visual compartido */
/* La fuente Quicksand se carga con <link> en el <head> de cada página (más rápido que @import). */

:root {
  --ink: #1b3f57;
  --ink-2: #2d5672;
  --ink-soft: #4d6b80;
  --orange: #dc842d;
  --orange-d: #c2701f;
  --cream: #fde9d6;
  --cream-2: #fef3e8;
  --paper: #fffaf5;
  --teal: #61c5b9;
  --teal-d: #3fa597;
  --teal-soft: #dff3f0;
  --line: rgba(27, 63, 87, .12);
  --shadow: 0 1px 2px rgba(27,63,87,.06), 0 8px 24px rgba(27,63,87,.08);
  --shadow-lg: 0 2px 4px rgba(27,63,87,.06), 0 24px 60px rgba(27,63,87,.16);
  --r: 18px;
  --r-lg: 28px;
  --max: 1160px;
  --m-p: #d9782a; /* proteína */
  --m-c: #1f9e8c; /* carbohidratos */
  --m-f: #4a74c9; /* grasa */
  --font: "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Colores fijos de las secciones azules (pie, cajas de correo, botones oscuros): no cambian en modo oscuro. */
  --navy: #1b3f57;
  --navy-2: #2d5672;
  --on-navy: #fffaf5;
  --surface: #fff; /* tarjetas y campos */
  --tint: #fff7ef; /* fondo naranja muy suave (consejos, opción elegida) */
  color-scheme: light dark;
}

img.logo-dark { display: none; }

/* Modo oscuro: se activa si el teléfono o la computadora está en oscuro.
   Al tener tema propio, el navegador no "oscurece" la página por su cuenta (eso era lo que se veía feo). */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e7eef3;
    --ink-2: #c9d7e0;
    --ink-soft: #a3b6c3;
    --cream: #1b3242;
    --cream-2: #0f202c;
    --paper: #142837;
    --surface: #172d3d;
    --tint: rgba(220, 132, 45, .14);
    --teal-soft: #163a3d;
    --orange-d: #e8954a;
    --line: rgba(231, 238, 243, .12);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.28);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 24px 60px rgba(0,0,0,.45);
    --navy: #0b1a24;
    --navy-2: #1d3a4e;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--cream-2); color: var(--ink); line-height: 1.6; font-size: 17px; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s, box-shadow .2s; font-size: 1rem; line-height: 1.2; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 22px rgba(220,132,45,.35); }
.btn-primary:hover { background: var(--orange-d); }
.btn-dark { background: var(--navy); color: var(--on-navy); }
.btn-ghost { background: transparent; border-color: currentColor; }
.btn-light { background: var(--on-navy); color: var(--navy); }
.btn-teal { background: var(--teal); color: var(--navy); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(254,243,232,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 20px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .08em; font-size: .95rem; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: .95rem; padding: 8px 14px; border-radius: 999px; transition: background .2s; white-space: nowrap; }
.nav-links a:hover { background: rgba(27,63,87,.07); }
.nav-links a[aria-current="page"] { background: var(--navy); color: var(--on-navy); }
.nav-links .tag-new { font-size: .62rem; background: var(--teal); color: var(--navy); padding: 2px 6px; border-radius: 6px; margin-left: 4px; vertical-align: 2px; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { white-space: nowrap; }
.me-pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); cursor: pointer; font-weight: 700; font-size: .88rem; box-shadow: var(--shadow); }
.me-pill .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; font-size: .85rem; color: var(--ink); }
.me-ring { --p: 0; width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(var(--orange) calc(var(--p) * 1%), rgba(27,63,87,.12) 0); display: grid; place-items: center; }
.me-ring > span { width: 24px; height: 24px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-size: .72rem; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: .25s; }

/* con 7 enlaces el menú no cabe en el ancho máximo del sitio: menos espacio y la pastilla del perfil solo con el ícono */
@media (min-width: 1101px) {
  .nav { gap: 12px; }
  .nav-links a { padding: 8px 9px; font-size: .9rem; }
  .me-pill .lbl { display: none; }
}
@media (max-width: 1100px) {
  .nav-links { position: fixed; inset: 70px 0 auto 0; flex-direction: column; background: var(--paper); padding: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(-120%); transition: transform .3s ease; margin: 0; z-index: -1; }
  .nav-links.open { transform: none; }
  .nav-links a { display: block; padding: 14px 16px; font-size: 1.05rem; }
  .menu-btn { display: block; margin-left: 0; }
  .nav-cta { margin-left: auto; }
  .nav-cta .btn { display: none; }
  .me-pill .lbl { display: none; }
  .me-pill { padding: 4px; }
}

/* Perfil (drawer) */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(16,36,50,.45); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 90; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(430px, 100%); background: var(--paper); z-index: 100; transform: translateX(105%); transition: transform .35s cubic-bezier(.2,.8,.2,1); overflow-y: auto; padding: 28px 24px 40px; box-shadow: var(--shadow-lg); }
.drawer.open { transform: none; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--cream-2); cursor: pointer; font-size: 1.2rem; }
.journey { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.journey li a { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; background: var(--surface); transition: border-color .2s; }
.journey li a:hover { border-color: var(--teal); }
.journey .check { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex-shrink: 0; font-size: .85rem; font-weight: 700; }
.journey li.done .check { background: var(--teal); border-color: var(--teal); }
.journey small { display: block; color: var(--ink-soft); font-size: .82rem; line-height: 1.4; }
.stat-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.stat-mini div { background: var(--cream-2); border-radius: 12px; padding: 10px 6px; text-align: center; }
.stat-mini b { display: block; font-size: 1.15rem; }
.stat-mini span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }

/* Cards / generic */
.card { background: var(--surface); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--teal-soft); color: var(--ink); font-size: .8rem; font-weight: 700; }
.chip.orange { background: #fbe0c6; }
.dark { background: var(--navy); color: var(--on-navy); }
.dark .lead, .dark .muted { color: rgba(255,250,245,.75); }
.dark .card { background: var(--navy-2); border-color: rgba(255,255,255,.08); color: var(--on-navy); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); 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; } }

/* Formularios */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 700; font-size: .92rem; }
.input, select.input { width: 100%; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); font: inherit; color: var(--ink); transition: border-color .2s; }
.input:focus { border-color: var(--teal); outline: none; }
.seg { display: inline-flex; background: rgba(27,63,87,.07); padding: 4px; border-radius: 999px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-weight: 700; cursor: pointer; font-size: .9rem; }
.seg button[aria-pressed="true"] { background: var(--surface); box-shadow: var(--shadow); }

/* Lead capture inline */
.lead-box { background: var(--navy); color: var(--on-navy); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
.lead-box form { display: grid; gap: 10px; }
.lead-box .input { border-color: transparent; }
.lead-box small { color: rgba(255,250,245,.6); }
@media (max-width: 760px) { .lead-box { grid-template-columns: 1fr; } }
.form-ok { background: var(--teal); color: var(--ink); padding: 16px; border-radius: 14px; font-weight: 700; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer a { text-decoration: none; color: rgba(255,250,245,.8); }
.site-footer a:hover { color: var(--teal); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .85rem; color: rgba(255,250,245,.6); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; background: var(--navy); color: var(--on-navy); padding: 14px 20px; border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 120; transition: transform .35s cubic-bezier(.2,.8,.2,1); font-weight: 700; max-width: calc(100% - 32px); display: flex; gap: 10px; align-items: center; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* Sticky CTA móvil */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; gap: 8px; transform: translateY(130%); transition: transform .3s; }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { flex: 1; box-shadow: var(--shadow-lg); padding: 14px 12px; white-space: nowrap; font-size: .95rem; }
  .mobile-cta .btn:first-child { flex: 1.6; }
}

/* Tarjetas de artículos (blog, home, resultados) */
.post-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s; height: 100%; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-cover { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; }
.post-cover::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.25) 0 2px, transparent 3px); background-size: 22px 22px; opacity: .6; }
.post-cover--orange { background: linear-gradient(135deg, #f0a35c, var(--orange)); }
.post-cover--teal { background: linear-gradient(135deg, #8fdcd2, var(--teal-d)); }
.post-cover--ink { background: linear-gradient(135deg, var(--navy-2), #10293b); }
.post-icon { font-size: clamp(3rem, 6vw, 4.4rem); position: relative; filter: drop-shadow(0 10px 18px rgba(0,0,0,.18)); transition: transform .4s; }
.post-card:hover .post-icon { transform: scale(1.1) rotate(-6deg); }
.post-cat { position: absolute; left: 14px; top: 14px; background: rgba(255,250,245,.92); color: var(--ink); font-size: .74rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; letter-spacing: .04em; }
.post-lock { position: absolute; left: 14px; bottom: 14px; background: var(--navy); color: var(--on-navy); font-size: .72rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.post-read { position: absolute; right: 14px; top: 14px; background: var(--navy); color: var(--on-navy); font-size: .72rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.post-body p { font-size: .95rem; margin-bottom: 14px; }
.post-meta { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--ink-soft); font-weight: 700; }
.post-meta img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.post-card--big { display: grid; grid-template-columns: 1.15fr 1fr; }
.post-card--big .post-cover { aspect-ratio: auto; min-height: 320px; }
.post-card--big .post-body { padding: 36px; justify-content: center; }
.post-card--big h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
@media (max-width: 760px) { .post-card--big { grid-template-columns: 1fr; } .post-card--big .post-cover { min-height: 200px; } .post-card--big .post-body { padding: 22px; } }

/* Barra de macros (compartida) */
.mbar { display: flex; gap: 2px; height: 18px; border-radius: 4px; overflow: hidden; background: var(--surface); }
.mbar i { display: block; height: 100%; transition: flex-grow .6s cubic-bezier(.2,.8,.2,1); position: relative; cursor: default; }
.mbar i:first-child { border-radius: 4px 0 0 4px; } .mbar i:last-child { border-radius: 0 4px 4px 0; }
.mlegend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.mlegend div { background: var(--cream-2); border-radius: 14px; padding: 12px 14px; }
.mlegend .k { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.mlegend .sw { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.mlegend b { font-size: 1.5rem; display: block; line-height: 1.2; }
.mlegend small { color: var(--ink-soft); font-weight: 700; }
.mlegend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mlegend .k { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) {
  .mlegend { gap: 6px; }
  .mlegend div { padding: 10px; }
  .mlegend b { font-size: 1.2rem; }
  .mlegend small { font-size: .74rem; display: block; }
  .mlegend .k { font-size: .72rem; gap: 5px; }
}

/* Black Week: ribbon superior */
.bw-ribbon { background: #0d0d0d; color: #fff; font-size: .88rem; position: relative; z-index: 51; }
.bw-in { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; padding: 6px 36px 6px 0; flex-wrap: wrap; text-align: center; }
.bw-tag { background: var(--orange); color: #0d0d0d; font-weight: 700; letter-spacing: .12em; font-size: .72rem; padding: 3px 8px; border-radius: 4px; }
.bw-txt { font-weight: 700; color: rgba(255,255,255,.88); }
.bw-cta { color: var(--orange); font-weight: 700; text-decoration: none; white-space: nowrap; }
.bw-cta:hover { text-decoration: underline; }
.bw-close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: rgba(255,255,255,.6); font-size: 1.3rem; cursor: pointer; width: 32px; height: 32px; }
.bw-close:hover { color: #fff; }
.bw-short { display: none; font-weight: 700; }
@media (max-width: 640px) { .bw-txt { display: none; } .bw-short { display: inline; } .bw-in { gap: 10px; padding-left: 8px; } }

/* Black Week: pop-up con la oferta (desde una semana antes) */
.bwp-back { position: fixed; inset: 0; z-index: 130; background: rgba(5,8,10,.72); display: none; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.bwp-back.open { display: flex; }
.bwp { position: relative; overflow: hidden; isolation: isolate; width: min(720px, 100%); border-radius: 24px; background: radial-gradient(120% 140% at 50% 0%, #1d2a33 0%, #101417 55%, #0a0c0e 100%); color: #fff; text-align: center; padding: 44px 28px 30px; box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: bwpIn .4s cubic-bezier(.2,.9,.3,1.1); margin: auto; }
@keyframes bwpIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.bwp .orb { position: absolute; z-index: -1; border-radius: 50%; }
.bwp .orb.o { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.55) 0 6%, rgba(240,163,92,.85) 18%, rgba(220,132,45,.75) 45%, rgba(150,78,18,.5) 75%, rgba(150,78,18,.12) 100%); }
.bwp .orb.t { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.55) 0 6%, rgba(143,220,210,.8) 18%, rgba(97,197,185,.65) 45%, rgba(40,120,110,.45) 75%, rgba(40,120,110,.1) 100%); }
.bwp .orb1 { width: 150px; height: 150px; left: -55px; top: -45px; } .bwp .orb2 { width: 90px; height: 90px; left: 30px; bottom: -35px; }
.bwp .orb3 { width: 110px; height: 110px; right: -40px; top: 40px; } .bwp .orb4 { width: 160px; height: 160px; right: -60px; bottom: -70px; }
.bwp-x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.35); color: #fff; font-size: 1.3rem; cursor: pointer; z-index: 2; }
.bwp-eyebrow { display: inline-block; color: var(--orange); font-weight: 700; letter-spacing: .2em; font-size: .78rem; margin-bottom: 4px; }
.bwp-title { font-family: "Bebas Neue", "Quicksand", sans-serif; font-weight: 400; font-size: clamp(3.2rem, 12vw, 6.2rem); line-height: .9; letter-spacing: .02em; margin: 0; color: #fff; }
.bwp-title .outline { color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.92); }
.bwp-script { display: block; font-family: "Yellowtail", cursive; font-size: clamp(2.4rem, 8vw, 4rem); line-height: 1; margin: -0.38em 0 .15em; transform: rotate(-7deg); background: linear-gradient(90deg, #f0a35c, var(--orange) 45%, #ff9a3c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bwp-sub { color: rgba(255,255,255,.8); max-width: 50ch; margin: 6px auto 18px; }
.bwp-sub strong { color: #fff; }
.bwp-form { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 8px; }
.bwp-form .input { border-color: transparent; }
.bwp .form-ok { margin: 0 auto; }
.bwp-small { display: block; margin-top: 12px; color: rgba(255,255,255,.5); }
.bwp-code { display: inline-grid; gap: 2px; margin: 0 auto 18px; padding: 10px 24px; border: 2px dashed var(--orange); border-radius: 14px; background: rgba(220,132,45,.12); color: #fff; cursor: pointer; font-family: "Bebas Neue", "Quicksand", sans-serif; font-size: 1.9rem; letter-spacing: .12em; }
.bwp-code small { font-family: "Quicksand", sans-serif; font-size: .74rem; letter-spacing: .04em; color: rgba(255,255,255,.65); }
.bwp-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; }
.bwp-price { display: grid; gap: 6px; padding: 18px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #fff; text-decoration: none; transition: transform .2s, border-color .2s; }
.bwp-price:hover { transform: translateY(-3px); border-color: var(--orange); }
.bwp-price.hot { border-color: var(--orange); background: rgba(220,132,45,.12); }
.bwp-pname { font-weight: 700; }
.bwp-amt { font-size: 1.7rem; font-weight: 700; }
.bwp-amt s { font-size: .95rem; color: rgba(255,255,255,.5); font-weight: 400; margin-left: 6px; }
.bwp-pdesc { color: rgba(255,255,255,.7); font-size: .9rem; }
.bwp-price .btn { justify-self: start; margin-top: 4px; }
@media (max-width: 640px) { .bwp { padding: 40px 18px 24px; } .bwp-form, .bwp-prices { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .bwp { animation: none; } }

/* Portadas con foto (artículos creados desde /admin) */
.post-cover--img { background: var(--cream); }
.post-cover--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-cover--img::before { display: none; }

/* ---------- Pop-up de la comunidad (js/site.js → openCommunityPopup) ---------- */
@property --cmp-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.cmp-back { position: fixed; inset: 0; z-index: 130; background: rgba(16,41,59,.62); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.cmp-back.open { display: flex; animation: cmpFade .3s ease; }
.cmp-ring { position: relative; width: min(520px, 100%); margin: auto; padding: 3px; border-radius: 28px; background: conic-gradient(from var(--cmp-a), var(--teal), var(--orange), #ffd29a, var(--teal)); animation: cmpDrop .7s cubic-bezier(.2,1.4,.4,1) both, cmpSpin 4s linear infinite; box-shadow: 0 30px 80px rgba(16,41,59,.45), 0 0 40px rgba(97,197,185,.35); }
.cmp { position: relative; overflow: hidden; border-radius: 25px; background: radial-gradient(120% 90% at 50% 0%, #24506d 0%, var(--navy) 55%, #132f43 100%); color: var(--on-navy); text-align: center; padding: 38px 26px 26px; animation: cmpShake .7s ease .75s both; }
.cmp.swap { animation: cmpPop .35s cubic-bezier(.2,1.3,.4,1); }
.cmp-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,250,245,.25); background: rgba(0,0,0,.2); color: var(--on-navy); font-size: 1.3rem; cursor: pointer; z-index: 2; }
.cmp-lock { font-size: 2.6rem; line-height: 1; display: inline-block; margin-bottom: 8px; animation: cmpWiggle 2.6s ease-in-out 1.4s infinite; transform-origin: 50% 80%; }
.cmp-eyebrow { display: block; color: var(--teal); font-weight: 700; letter-spacing: .16em; font-size: .74rem; text-transform: uppercase; margin-bottom: 6px; }
.cmp-title { font-size: clamp(1.7rem, 6vw, 2.3rem); color: var(--on-navy); margin: 0 0 8px; }
.cmp-title span { background: linear-gradient(90deg, var(--teal), #ffd29a, var(--orange), var(--teal)); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: cmpShine 3s linear infinite; }
.cmp-sub { color: rgba(255,250,245,.78); max-width: 40ch; margin: 0 auto 16px; }
.cmp-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.cmp-form .input { border-color: transparent; padding: 13px 16px; }
.cmp-form .btn { animation: cmpPulse 2s ease-in-out 1.6s infinite; }
.cmp-err { color: #ffb4a8; font-weight: 700; font-size: .9rem; min-height: 1.2em; margin: 6px 0 0; }
.cmp-no { background: none; border: 0; color: rgba(255,250,245,.75); font: inherit; font-weight: 700; font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px; }
.cmp-no:hover { color: var(--on-navy); }
.cmp-perks { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255,250,245,.14); display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cmp-perks li { display: inline-flex; gap: 6px; align-items: center; background: rgba(255,250,245,.1); border: 1px solid rgba(255,250,245,.16); border-radius: 999px; padding: 6px 12px; font-size: .82rem; font-weight: 700; animation: cmpPop .45s cubic-bezier(.2,1.4,.4,1) both; animation-delay: calc(1.1s + var(--i) * .12s); }
.cmp-perks.big { border-top: 0; padding-top: 0; margin: 0 0 16px; }
.cmp-perks.big li { animation-delay: calc(.1s + var(--i) * .1s); }
.cmp-actions { display: grid; gap: 8px; }
.cmp-spark { position: absolute; color: #ffd29a; font-size: 1rem; opacity: 0; animation: cmpSpark 2.4s ease-in-out infinite; pointer-events: none; }
.cmp-spark.s1 { left: 9%; top: 14%; animation-delay: .9s; } .cmp-spark.s2 { right: 14%; top: 26%; color: var(--teal); animation-delay: 1.5s; }
.cmp-spark.s3 { left: 16%; bottom: 22%; color: var(--teal); animation-delay: 2.1s; } .cmp-spark.s4 { right: 9%; bottom: 12%; animation-delay: 1.2s; }
@keyframes cmpFade { from { opacity: 0; } }
@keyframes cmpDrop { 0% { opacity: 0; transform: translateY(-60px) scale(.85) rotate(-3deg); } 100% { opacity: 1; transform: none; } }
@keyframes cmpSpin { to { --cmp-a: 360deg; } }
@keyframes cmpShake { 0%, 100% { transform: none; } 15% { transform: translateX(-9px) rotate(-1.5deg); } 30% { transform: translateX(8px) rotate(1.2deg); } 45% { transform: translateX(-6px) rotate(-.8deg); } 60% { transform: translateX(4px) rotate(.5deg); } 75% { transform: translateX(-2px); } }
@keyframes cmpWiggle { 0%, 70%, 100% { transform: none; } 75% { transform: rotate(-14deg) scale(1.1); } 82% { transform: rotate(12deg) scale(1.1); } 89% { transform: rotate(-6deg); } }
@keyframes cmpShine { to { background-position: 250% 0; } }
@keyframes cmpPulse { 0%, 100% { box-shadow: 0 8px 22px rgba(220,132,45,.35); } 50% { box-shadow: 0 8px 22px rgba(220,132,45,.35), 0 0 0 8px rgba(220,132,45,.18); } }
@keyframes cmpPop { from { opacity: 0; transform: scale(.7) translateY(8px); } }
@keyframes cmpSpark { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: 1; transform: scale(1.3) rotate(90deg); } }
@media (max-width: 480px) { .cmp { padding: 34px 18px 22px; } .cmp-form { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .cmp-ring, .cmp, .cmp.swap, .cmp-lock, .cmp-title span, .cmp-form .btn, .cmp-perks li, .cmp-spark { animation: none !important; } .cmp-spark { display: none; } }
.cmp-ba { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -26px 6px; padding: 4px 26px 8px; scrollbar-width: none; scroll-padding-left: 26px; }
.cmp-ba::-webkit-scrollbar { display: none; }
.cmp-ba img { flex: none; height: 220px; width: auto; min-width: 120px; border-radius: 14px; scroll-snap-align: start; background: rgba(255,250,245,.08); box-shadow: 0 8px 20px rgba(0,0,0,.25); animation: cmpPop .45s cubic-bezier(.2,1.4,.4,1) both; }
.cmp-ba img:nth-child(2) { animation-delay: .08s; } .cmp-ba img:nth-child(3) { animation-delay: .16s; } .cmp-ba img:nth-child(4) { animation-delay: .24s; } .cmp-ba img:nth-child(5) { animation-delay: .32s; }
.cmp-ba-note { font-size: .78rem; color: rgba(255,250,245,.6); margin: 0 0 14px; }
@media (max-width: 480px) { .cmp-ba { margin: 0 -18px 6px; padding: 4px 18px 8px; scroll-padding-left: 18px; } .cmp-ba img { height: 200px; min-width: 100px; } }
@media (prefers-reduced-motion: reduce) { .cmp-ba img { animation: none !important; } }

/* ---------- Guías premium (guías PDF de pago, js/guias-pago.js) ---------- */
[data-guias-pago][hidden] { display: none !important; }
.gp-list { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gp-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); padding: 24px; border: 2px solid var(--orange); box-shadow: var(--shadow); }
.gp-card h3 { font-size: 1.3rem; margin: 0 0 8px; }
.gp-card p { color: var(--ink-soft); font-size: .96rem; }
.gp-card .btn { margin-top: auto; }

/* Aviso de cookies */
.ck { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin: 0 auto; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 18px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgba(16,41,59,.22); }
.ck p { margin: 0; flex: 1 1 260px; font-size: .92rem; color: var(--ink-soft); }
.ck-btns { display: flex; gap: 8px; }
/* En móvil el aviso sube por encima de los botones fijos de abajo para no taparlos. */
@media (max-width: 760px) { .ck { bottom: 76px; } }
.gp-note { display: block; margin-top: 8px; color: var(--ink-soft); font-size: .85rem; }

/* Enlace «Saltar al contenido»: solo aparece al llegar con el teclado */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: var(--on-navy); padding: 10px 16px; border-radius: 12px; font-weight: 700; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
.footer-bottom a { color: inherit; }

/* Barra superior mínima + menú lateral derecho (2026-11-17) */
.nav { justify-content: space-between; }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { display: inline-flex !important; }
.menu-btn { display: block !important; margin: 0; }
.nav-drawer { padding-top: 26px; }
.nav-drawer .eyebrow { display: block; margin-bottom: 14px; }
.nav-me { margin: 0 0 8px; }
.nav-me .lbl { display: inline !important; }
.nav-group { margin-top: 18px; }
.nav-group h2 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 6px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav-list a { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 14px; text-decoration: none; font-weight: 700; font-size: 1.02rem; }
.nav-list a:hover { background: rgba(27,63,87,.06); }
.nav-list a[aria-current="page"] { background: var(--navy); color: var(--on-navy); }
.nav-list .tag-new { font-size: .62rem; background: var(--teal); color: var(--ink); padding: 2px 6px; border-radius: 6px; }
@media (max-width: 420px) { .nav-cta .btn { padding: 9px 14px; font-size: .86rem; } .brand { font-size: .82rem; letter-spacing: .05em; } }

/* Herramientas gratis en la barra superior (quiz, calculadora, guías); en pantallas estrechas pasan al menú */
.nav-top { display: flex; gap: 2px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-top a { display: block; text-decoration: none; font-weight: 700; font-size: .93rem; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.nav-top a:hover { background: rgba(27,63,87,.07); }
.nav-top a[aria-current="page"] { background: var(--navy); color: var(--on-navy); }
.nav-top + .nav-cta { margin-left: 8px; }
.nav-small-only { display: none; }
@media (max-width: 860px) { .nav-top a { padding: 8px 9px; font-size: .9rem; } .site-header .brand-txt { display: none; } }
@media (max-width: 580px) { .nav-top { display: none; } .nav-top + .nav-cta { margin-left: auto; } .nav-small-only { display: block; } .site-header .brand-txt { display: inline; } }
/* el texto del pie no debe ensanchar la columna en móvil */
.footer-grid > * { min-width: 0; }
.footer-grid p { max-width: min(34ch, 100%) !important; }

/* Modo oscuro, ajustes de piezas sueltas (al final para que ganen a las reglas de arriba) */
@media (prefers-color-scheme: dark) {
  .nav-links a:hover { background: rgba(231,238,243,.08); }
  .input::placeholder { color: #7f95a4; }
  .site-header { background: rgba(15, 32, 44, .88); }
  .chip.orange { background: rgba(220, 132, 45, .22); }
  .post-cat { color: #1b3f57; }
  .seg { background: rgba(231,238,243,.08); }
  .nav-list a:hover, .nav-top a:hover { background: rgba(231,238,243,.08); }
  img.logo-dark { display: inline-block; }
  img.logo-light { display: none; }
}
