/* Ayurveda Sivapriya — sitio público (Modelo 2 de la demo, producción 19-oct-2026).
   Petróleo profundo, papel y crema con acentos azafrán; Fraunces para títulos y DM Sans para
   el texto. El azafrán de la demo (#b8763b) no llega a 4,5:1 sobre fondo claro: en textos
   chicos va --saffron-text, más oscuro, y el original queda para detalles y fondos. */

:root {
  --bg: #f8fafc;
  --paper: #fffdf8;
  --cream: #f2eee5;
  --sand: #e7dcc9;
  --ink: #243841;
  --muted: #596b6c;
  --deep: #264152;
  --deep-2: #375d73;
  --night: #152c38;
  --blue: #37617c;
  --saffron: #b8763b;
  --saffron-text: #8f5524;
  --saffron-light: #efc796;
  --line: #d8dedc;
  --wa: #25d366;
  --error: #b42318;
  --ok: #2f6b45;
  --gutter: clamp(20px, 4.2vw, 68px);
  --section-pad-y: clamp(3.5rem, 7vw, 5.5rem);
  --fs-h1: clamp(2.75rem, 6vw, 6.4rem);
  --fs-h2: clamp(2.1rem, 3.3vw, 3.65rem);
  --alto-header: 92px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--alto-header) + 12px); overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
body.sin-scroll, body.menu-abierto { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p { margin-top: 0; }
[hidden] { display: none !important; }
::selection { background: #d9b38a; color: #172e3d; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }
.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; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--deep); color: #fff; font-weight: 700; border-radius: 4px; }
.skip-link:focus { top: 12px; }
.campo-trampa { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.shell, .wrap { width: min(calc(100% - 2 * var(--gutter)), 1280px); margin-inline: auto; }
.section { padding-block: var(--section-pad-y); }
.overline { font-size: .72rem; font-weight: 700; line-height: 1.35; letter-spacing: .18em; text-transform: uppercase; color: var(--saffron-text); margin-bottom: 18px; }
h1, h2, h3, .footer-brand { font-family: var(--serif); font-weight: 400; }
h1 { font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -.045em; }
h2 { font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -.035em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.25; }
.enlace { color: var(--deep); font-weight: 700; text-decoration: underline; text-decoration-color: #8fa5ad; text-underline-offset: 4px; }
.enlace:hover { text-decoration-color: var(--deep); }

/* ---------- Botones ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 50px; padding: 12px 22px; border: 1px solid transparent; border-radius: 4px; font-size: .88rem; font-weight: 700; line-height: 1.2; text-align: center; transition: background-color .2s, color .2s, transform .2s, border-color .2s; }
.button .flecha { font-size: 1.15rem; line-height: 1; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: scale(.97); }
.button[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.button-primary { background: var(--deep); color: #fff; }
.button-primary:hover { background: var(--deep-2); }
.button-outline { background: transparent; color: var(--deep); border-color: #9fb2b7; }
.button-outline:hover { border-color: var(--deep); background: #fff; }
.button-text { padding-inline: 4px; background: transparent; color: var(--deep); border-bottom: 1px solid #8fa5ad; border-radius: 0; }
.button-light { background: var(--paper); color: var(--deep); }
.button-light:hover { background: #fff; }
.button-ancho { width: 100%; }
.icono-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.icono-btn svg { width: 22px; height: 22px; }
.icono-btn:hover { border-color: var(--deep); }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.is-solido { box-shadow: 0 8px 28px rgba(36, 56, 65, .08); }
.header-inner { min-height: var(--alto-header); display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: clamp(1.45rem, 2vw, 1.95rem); line-height: .95; letter-spacing: -.04em; color: var(--deep); min-width: max-content; }
.brand strong { font-weight: 500; }
.brand-mark { font-size: 3rem; line-height: 1; color: var(--saffron); font-family: Georgia, serif; font-weight: 400; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(14px, 2vw, 30px); margin-left: auto; }
.main-nav > a { font-size: .84rem; font-weight: 700; white-space: nowrap; transition: color .2s; }
.main-nav > a:hover, .main-nav > a[aria-current="page"] { color: var(--saffron-text); }
.main-nav .nav-whatsapp { border-bottom: 1px solid var(--deep); padding-block: 6px; }
.header-acciones { display: flex; align-items: center; gap: 10px; }
.bag-button { position: relative; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: transparent; border-radius: 4px; min-height: 44px; padding: 8px 13px; white-space: nowrap; font-size: .82rem; font-weight: 700; color: var(--deep); }
.bag-button:hover { border-color: var(--deep); }
.carrito-cuenta { display: inline-grid; place-items: center; min-width: 23px; height: 23px; padding: 0 6px; border-radius: 999px; background: var(--saffron); color: #fff; font-size: .72rem; font-weight: 800; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; padding: 11px; flex-direction: column; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; height: 2px; width: 24px; background: var(--deep); border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (Modelo 2: foto a sangre con velo petróleo) ---------- */
.hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: min(780px, calc(100svh - var(--alto-header))); background: var(--night); color: #fff; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; animation: hero-image 1.5s ease-out both; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 36, 47, .9), rgba(24, 55, 71, .62) 58%, rgba(27, 52, 58, .45)); }
.hero-grid { position: relative; z-index: 1; display: flex; width: min(calc(100% - 2 * var(--gutter)), 1280px); padding-block: clamp(56px, 8vw, 96px); }
.hero-copy { width: min(100%, 860px); }
.hero-copy .overline { color: var(--saffron-light); margin-bottom: 24px; }
.hero h1 { max-width: 13ch; margin-bottom: 24px; }
.hero-lead { max-width: 51ch; font-size: clamp(1.05rem, 1.3vw, 1.22rem); line-height: 1.6; color: #ebf0ed; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 30px; }
.hero .button-primary { background: var(--paper); color: var(--deep); }
.hero .button-primary:hover { background: #fff; }
.hero .button-text { color: #fff; border-bottom-color: #d6e5e5; }
.hero-foot { font-size: .82rem; color: #dde6e4; margin: 30px 0 0; }
.hero-enter { animation: hero-enter .85s both; }
.hero-enter:nth-child(2) { animation-delay: .12s; }
.hero-enter:nth-child(3) { animation-delay: .24s; }
.hero-enter:nth-child(4) { animation-delay: .36s; }
.hero-enter:nth-child(5) { animation-delay: .48s; }
@keyframes hero-enter { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes hero-image { from { transform: scale(1.08); } to { transform: none; } }

/* ---------- Formaciones (tarjetas) ---------- */
.offer-section { background: var(--bg); border-top: 1px solid #ece9e2; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 28px; }
.section-heading h2 { max-width: 17ch; margin-bottom: 0; }
.section-heading > p { max-width: 40ch; color: var(--muted); margin-bottom: 4px; }
.catalog-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.search-box { position: relative; display: block; width: min(100%, 300px); }
.search-box input { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); padding: 9px 40px 9px 14px; color: var(--ink); outline: none; }
.search-box input:focus { border-color: var(--blue); }
.search-box span:last-child { position: absolute; right: 13px; top: 3px; font-size: 1.8rem; color: var(--muted); pointer-events: none; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.filter { min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 50px; background: transparent; color: var(--ink); font-size: .8rem; font-weight: 700; }
.filter:hover, .filter[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: #fff; }
.course-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.course-card { display: flex; flex-direction: column; min-width: 0; background: var(--paper); border: 1px solid var(--line); overflow: hidden; transition: border-color .2s, transform .25s, box-shadow .25s; }
.course-card:hover { transform: translateY(-3px); border-color: #a7b8b5; box-shadow: 0 12px 26px rgba(36, 56, 65, .07); }
.card-media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s; }
.course-card:hover .card-media img { transform: scale(1.04); }
.card-modalidad { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; background: rgba(255, 253, 248, .94); color: var(--deep); font-size: .7rem; font-weight: 700; letter-spacing: .04em; border-radius: 3px; }
.card-copy { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: clamp(18px, 2vw, 24px); }
.card-type { font-size: .68rem; color: var(--saffron-text); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0; }
.card-title { font-size: clamp(1.35rem, 1.75vw, 1.75rem); margin: 10px 0 8px; }
.card-title a:hover { color: var(--blue); }
.card-summary { color: var(--muted); font-size: .86rem; line-height: 1.5; margin: 0; }
.card-datos { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 12px 0 0; font-size: .78rem; color: var(--muted); }
.card-datos span { display: inline-flex; align-items: center; gap: 6px; }
.card-datos span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--saffron); }
.card-price { margin-top: auto; padding-top: 16px; }
.precio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; }
.precio-final { font-family: var(--serif); font-size: 1.55rem; color: var(--deep); letter-spacing: -.02em; }
.precio-periodo { font-size: .82rem; color: var(--muted); }
.precio-antes { font-size: .86rem; color: var(--muted); }
.precio-usd { flex-basis: 100%; font-size: .78rem; font-weight: 600; color: var(--blue); }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.card-link { font-weight: 700; font-size: .8rem; color: var(--deep); padding: 8px 0; }
.card-link:hover { text-decoration: underline; }
.card-add { min-height: 40px; padding: 8px 12px; border: 0; background: var(--sand); color: var(--deep); border-radius: 3px; white-space: nowrap; font-size: .8rem; font-weight: 700; }
.card-add:hover { background: #d7c5a6; }
.card-add[disabled] { background: var(--cream); color: var(--muted); cursor: not-allowed; }
/* La primera (destacada) ocupa dos columnas con la foto al costado. */
.course-card--destacada { grid-column: span 2; flex-direction: row; }
.course-card--destacada .card-media { aspect-ratio: auto; flex: 0 0 48%; min-height: 100%; }
.course-card--destacada .card-copy { padding: clamp(22px, 2.6vw, 34px); }
.course-card--destacada .card-title { font-size: clamp(1.7rem, 2.4vw, 2.4rem); }
.course-card--destacada .card-summary { font-size: .95rem; }
.result-line { font-size: .82rem; color: var(--muted); margin: 18px 0 0; }
.empty-state { grid-column: 1 / -1; min-height: 180px; display: grid; place-content: center; text-align: center; background: var(--cream); padding: 28px; }
.empty-state p { margin-bottom: 6px; }
.empty-state button { border: 0; background: none; color: var(--deep); text-decoration: underline; font-weight: 700; min-height: 44px; }
.ofertas-vacio { display: grid; justify-items: start; gap: 12px; padding: clamp(26px, 4vw, 44px); background: var(--cream); border: 1px solid var(--sand); }
.ofertas-vacio h3 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.ofertas-vacio p { color: var(--muted); max-width: 56ch; margin: 0; }
.pasos { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: paso; }
.paso { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); background: var(--paper); }
.paso-n { flex: none; font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--saffron); }
.paso h3 { font-size: 1.2rem; margin: 2px 0 4px; }
.paso p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------- Aprender para aplicar ---------- */
.practice-section { background: var(--paper); }
.practice-grid { display: grid; grid-template-columns: minmax(0, .52fr) minmax(0, 1fr); gap: clamp(35px, 5vw, 80px); }
.practice-heading h2 { max-width: 13ch; }
.practice-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.practice-items article { min-width: 0; }
.practice-image { aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream); }
.practice-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.practice-items article:hover .practice-image img { transform: scale(1.04); }
.practice-items h3 { font-size: 1.35rem; margin: 15px 0 5px; }
.practice-items p { font-size: .84rem; line-height: 1.55; color: var(--muted); }

/* ---------- Consultas ---------- */
.guide-section { background: var(--cream); }
.guide-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 8vw, 130px); }
.guide-media { position: relative; width: min(100%, 400px); aspect-ratio: 9 / 14; background: var(--sand); }
.guide-media img { width: 100%; height: 100%; object-fit: cover; }
.guide-media span { position: absolute; right: -28px; bottom: 24px; background: var(--saffron); color: #fff; padding: 13px 18px; font-family: var(--serif); font-size: 1.05rem; }
.guide-copy { max-width: 640px; }
.guide-copy h2 { max-width: 16ch; }
.guide-copy > p:not(.overline):not(.care-note) { color: var(--muted); max-width: 56ch; }
.guide-copy > .button { margin-top: 6px; }
.lead-caja { margin-top: 28px; padding: clamp(20px, 2.6vw, 28px); background: var(--paper); border: 1px solid var(--sand); display: grid; gap: 12px; }
.lead-titulo { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; margin: 0; color: var(--deep); }
.lead-texto { color: var(--muted); font-size: .9rem; margin: 0; }
.lead-campos { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 12px; }
.lead-caja .button { justify-self: start; }
.lead-estado { margin: 0; min-height: 1.3em; font-size: .88rem; font-weight: 600; }
.lead-estado.ok { color: var(--ok); }
.lead-estado.error { color: var(--error); }
.care-note { font-size: .78rem; line-height: 1.5; margin-top: 22px; max-width: 58ch; color: var(--muted); }

/* ---------- Ayurveda: una mirada integral ---------- */
.wisdom-section { background: var(--paper); }
.wisdom-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .68fr); gap: clamp(35px, 6vw, 100px); align-items: center; }
.wisdom-copy { max-width: 650px; }
.wisdom-copy h2 { margin-bottom: 23px; max-width: 16ch; }
.wisdom-copy > p:not(.overline) { color: var(--muted); max-width: 60ch; }
.wisdom-photo { aspect-ratio: 1 / 1; width: 100%; overflow: hidden; background: #ded5c5; }
.wisdom-photo img { width: 100%; height: 100%; object-fit: cover; }
.wisdom-list { margin-top: 28px; border-top: 1px solid #c9c7bd; }
.tema { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; border-bottom: 1px solid #c9c7bd; padding: 14px 0; }
.tema span { grid-row: span 2; color: var(--saffron-text); font-family: var(--serif); font-size: 1.25rem; }
.tema strong { font-size: .95rem; }
.tema p { font-size: .86rem; color: var(--muted); margin: 2px 0 0; }

/* ---------- Preguntas ---------- */
.faq-section { background: var(--bg); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1fr); gap: clamp(38px, 7vw, 110px); }
.faq-grid h2 { margin-bottom: 14px; }
.faq-grid > div:first-child > p:last-child { color: var(--muted); max-width: 35ch; }
.faq-list { border-top: 1px solid #c6c8c0; }
.faq-item { border-bottom: 1px solid #c6c8c0; padding: 0 4px; }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; cursor: pointer; font-weight: 700; font-size: .95rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; font-weight: 400; color: var(--saffron-text); }
.faq-item[open] summary::after { content: '−'; }
.faq-body p { font-size: .88rem; color: var(--muted); max-width: 62ch; padding-bottom: 16px; margin: 0; }

/* ---------- Cierre y pie ---------- */
.closing-section { background: var(--deep); color: #fff; padding-block: var(--section-pad-y); overflow: hidden; }
.closing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .75fr); gap: clamp(28px, 7vw, 100px); align-items: center; }
.closing-grid .overline { color: var(--saffron-light); }
.closing-grid h2 { max-width: 17ch; }
.closing-grid p:not(.overline) { color: #e2e9e8; max-width: 42ch; }
.closing-grid .button { margin-top: 10px; }
.closing-image { aspect-ratio: 16 / 10; overflow: hidden; }
.closing-image img { width: 100%; height: 100%; object-fit: cover; }
.site-footer { background: #203846; color: #e9eeec; padding: 48px 0 24px; }
.footer-main { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 30px; padding-bottom: 40px; }
.footer-brand { font-size: clamp(1.9rem, 3vw, 2.8rem); line-height: 1.05; color: #fff; }
.footer-brand em { font-weight: 400; }
.footer-main p { font-size: .85rem; color: #bcc9ca; margin-top: 13px; max-width: 32ch; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col strong { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #c5d6d3; margin-bottom: 8px; }
.footer-col a, .footer-bottom a { font-size: .84rem; width: fit-content; }
.footer-col a:hover, .footer-bottom a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px 30px; padding-top: 20px; border-top: 1px solid #49606b; color: #b9c8c8; font-size: .78rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 16px; }

/* ---------- WhatsApp flotante ---------- */
.wa-flotante { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 8px 24px rgba(23, 46, 61, .25); transition: transform .2s; }
.wa-flotante svg { width: 30px; height: 30px; }
.wa-flotante:hover { transform: scale(1.06); }
body.sin-scroll .wa-flotante, body.menu-abierto .wa-flotante { display: none; }

/* ---------- Capas: inscripción (carrito) y ficha ---------- */
.capa-fondo { position: fixed; inset: 0; z-index: 150; background: rgba(16, 38, 49, .66); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.carrito { position: fixed; top: 0; right: 0; bottom: 0; z-index: 160; width: min(100%, 470px); display: flex; flex-direction: column; background: var(--paper); box-shadow: -15px 0 50px rgba(16, 38, 49, .16); animation: entrar-derecha .28s ease; }
@keyframes entrar-derecha { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.carrito-cabeza { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.carrito-cabeza .overline { margin-bottom: 4px; }
.carrito-cabeza h2 { font-size: 1.6rem; margin: 0; }
.carrito-cuerpo { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 20px 22px 28px; display: grid; align-content: start; gap: 16px; }
.linea-carrito { display: grid; grid-template-columns: 70px minmax(0, 1fr) 36px; gap: 13px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.linea-carrito img { width: 70px; height: 70px; object-fit: cover; }
.linea-carrito strong { display: block; font-family: var(--serif); font-size: 1.08rem; font-weight: 400; line-height: 1.2; }
.linea-carrito small { display: block; color: var(--muted); font-size: .8rem; margin-top: 3px; }
.linea-carrito .quitar { width: 36px; height: 36px; border: 0; background: none; font-size: 1.4rem; color: var(--muted); }
.linea-carrito .quitar:hover { color: var(--error); }
.cantidad { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }
.cantidad button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: transparent; }
.cantidad output { min-width: 22px; text-align: center; font-weight: 700; }
.totales { display: grid; gap: 8px; padding: 16px; background: var(--cream); font-size: .92rem; }
.totales div { display: flex; justify-content: space-between; gap: 12px; }
.totales .descuento { color: var(--ok); }
.totales .total { padding-top: 10px; border-top: 1px solid var(--sand); font-family: var(--serif); font-size: 1.3rem; }
.totales .total-usd { font-weight: 700; color: var(--blue); }
.carrito-vacio { text-align: center; padding: 40px 10px; display: grid; gap: 12px; justify-items: center; }
.carrito-vacio h3 { margin: 0; }
.carrito-vacio p { color: var(--muted); margin: 0; }
.form-compra { display: grid; gap: 18px; }
.form-compra fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
.form-compra legend { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 8px; }
.grilla-campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grilla-campos .ancho { grid-column: 1 / -1; }
.campo { display: grid; gap: 5px; font-size: .86rem; font-weight: 600; color: var(--ink); }
.campo small { font-weight: 400; color: var(--muted); font-size: .78rem; }
.campo input, .campo select, .campo textarea { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid #c6d0cf; border-radius: 4px; background: #fff; color: var(--ink); font-size: 1rem; font-weight: 400; }
.campo textarea { min-height: 110px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(55, 97, 124, .15); }
.campo input[aria-invalid="true"], .campo textarea[aria-invalid="true"], .campo select[aria-invalid="true"] { border-color: var(--error); }
.opciones-pago { display: grid; gap: 10px; }
.opcion-radio { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 13px 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: border-color .2s, background-color .2s; }
.opcion-radio.marcada, .opcion-radio:has(input:checked) { border-color: var(--deep); background: #f3f6f7; }
.opcion-radio input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--deep); }
.opcion-radio strong { display: block; font-size: .95rem; }
.opcion-radio small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.cupon summary { cursor: pointer; width: fit-content; font-size: .88rem; }
.cupon .campo { margin-top: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--deep); flex: none; }
.form-error { color: var(--error); font-size: .88rem; min-height: 1.2em; margin: 0; }
.nota-segura { font-size: .82rem; color: var(--muted); text-align: center; }
.pago-seguro { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; margin: 0; font-weight: 600; }
.pago-seguro svg { width: 15px; height: 15px; flex: none; }
/* Mercado Pago: logo oficial en un chip blanco; PayPal: logotipo en texto con sus dos azules. */
.mp-logo { display: block; width: auto; height: 28px; margin-top: 6px; padding: 3px 7px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.pago-seguro .mp-logo { display: inline-block; height: 26px; margin: 0; }
.paypal-logo { display: inline-flex; width: fit-content; margin-top: 6px; padding: 3px 9px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); font: italic 800 1.05rem/1.4 'Verdana', 'DM Sans', sans-serif; letter-spacing: -.02em; }
.paypal-logo b { color: #003087; font-weight: 800; }
.paypal-logo i { color: #009cde; font-style: italic; }
.pago-seguro .paypal-logo { margin: 0; }
.resultado-compra { display: grid; gap: 14px; }
.resultado-compra h3 { margin: 0; font-size: 1.6rem; }
.resultado-compra p { color: var(--muted); margin: 0; }
.datos-banco { padding: 16px; background: var(--cream); display: grid; gap: 6px; }
.datos-banco b { color: var(--deep); }
.volver { border: 0; background: none; color: var(--muted); text-decoration: underline; justify-self: start; padding: 4px 0; font-size: .88rem; }
.ficha-capa { position: fixed; inset: 0; z-index: 170; display: grid; place-items: center; padding: 3vh 14px; pointer-events: none; }
.ficha-capa > * { pointer-events: auto; }
.ficha-cuerpo { position: relative; width: min(980px, 100%); max-height: 94vh; max-height: 94dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--paper); box-shadow: 0 20px 70px rgba(16, 38, 49, .3); animation: aparecer .25s ease; }
@keyframes aparecer { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.ficha-cerrar { position: absolute; top: calc(3vh + 12px); right: max(26px, calc(50vw - 490px + 12px)); z-index: 2; }
.modal-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
.modal-photo { min-height: 100%; background: var(--cream); }
.modal-photo img { width: 100%; height: 100%; min-height: 420px; max-height: 94vh; object-fit: cover; position: sticky; top: 0; }
.modal-copy { padding: clamp(24px, 4vw, 48px); display: grid; gap: 14px; align-content: start; }
.modal-copy .overline { margin: 0; }
.modal-copy h2 { font-size: clamp(2rem, 3.2vw, 3rem); margin: 0; }
.modal-descripcion { color: var(--muted); white-space: pre-line; margin: 0; }
.modal-program h3, .modal-lista h3 { font-size: 1.25rem; margin: 6px 0 8px; }
.modal-program details { border-top: 1px solid var(--line); padding: 10px 0; }
.modal-program summary { cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.modal-program summary small { font-weight: 500; color: var(--muted); white-space: nowrap; }
.modal-program ol { margin: 8px 0 2px; padding-left: 22px; color: var(--muted); font-size: .9rem; }
.lista-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lista-check li { position: relative; padding-left: 26px; color: var(--muted); }
.lista-check li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--saffron); border-bottom: 2px solid var(--saffron); transform: rotate(-45deg); }
.modal-docente { font-size: .9rem; color: var(--muted); margin: 0; }
.modal-compra { display: grid; gap: 12px; padding: 18px; background: var(--cream); }
.ficha-acciones { display: flex; flex-wrap: wrap; gap: 10px; }
.ficha-acciones .button { flex: 1 1 200px; }
.aviso { position: fixed; left: 50%; bottom: 88px; z-index: 200; transform: translateX(-50%); max-width: min(500px, calc(100% - 32px)); padding: 12px 20px; border-radius: 4px; background: var(--deep); color: #fff; font-size: .88rem; box-shadow: 0 10px 32px rgba(18, 44, 59, .25); text-align: center; }

/* ---------- Páginas internas (ficha, legales, resultado, 404) ---------- */
.pagina-interna { padding: clamp(36px, 6vw, 64px) 0 clamp(70px, 9vw, 110px); min-height: 70vh; }
.migas { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 28px; font-size: .84rem; color: var(--muted); }
.migas li + li::before { content: '/'; margin-right: 6px; opacity: .6; }
.migas a:hover { color: var(--deep); text-decoration: underline; }
.ficha-pagina { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.ficha-pagina-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--cream); }
.ficha-pagina-info { display: grid; gap: 16px; }
.ficha-pagina-info .overline { margin: 0; }
.ficha-pagina-info h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); margin: 0; }
.lead { color: var(--muted); font-size: 1.05rem; white-space: pre-line; margin: 0; }
.datos-lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 4px 0; }
.datos-lista div { padding: 13px 15px; border: 1px solid var(--line); background: var(--paper); }
.datos-lista dt { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--saffron-text); font-weight: 700; }
.datos-lista dd { margin: 4px 0 0; font-weight: 600; }
.compra-caja { display: grid; gap: 12px; padding: 22px; background: var(--cream); border: 1px solid var(--sand); }
.compra-caja .precio-final { font-size: 2.1rem; }
.compra-caja small { color: var(--muted); font-size: .82rem; }
.ficha-secciones { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ficha-seccion { padding: clamp(22px, 3vw, 30px); border: 1px solid var(--line); background: var(--paper); }
.ficha-seccion.ancha { grid-column: 1 / -1; }
.ficha-seccion h2 { font-size: 1.6rem; margin-bottom: 14px; }
.programa details { border-top: 1px solid var(--line); padding: 10px 0; }
.programa summary { cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.programa summary small { color: var(--muted); font-weight: 500; white-space: nowrap; }
.programa ol { margin: 10px 0 4px; padding-left: 22px; color: var(--muted); display: grid; gap: 6px; }
.estado-pagina { max-width: 760px; display: grid; gap: 16px; }
.estado-pagina h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 0; }
.estado-pagina > p:not(.overline) { color: var(--muted); font-size: 1.05rem; margin: 0; }
.estado-pagina .overline { margin: 0; }
.estado-acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.estado-pagina .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
.texto-legal { max-width: 820px; white-space: pre-wrap; color: var(--muted); line-height: 1.75; }
.legal-datos { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); max-width: 820px; }
.legal-datos dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 10px 0 0; }
.legal-datos dt { font-weight: 700; }
.legal-datos dd { margin: 0; }
.pagina-interna .form-compra { max-width: 560px; }

/* ---------- Animaciones ---------- */
[data-animate] { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s cubic-bezier(.22, 1, .36, 1); }
[data-animate].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-animate] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .main-nav { gap: 16px; }
  .main-nav > a { font-size: .78rem; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-media { aspect-ratio: 4 / 3; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-heading h2 { max-width: 22ch; }
}
@media (max-width: 960px) {
  :root { --alto-header: 76px; }
  .menu-toggle { display: inline-flex; }
  .main-nav { position: fixed; top: 0; right: 0; bottom: 0; z-index: 120; width: min(86vw, 360px); display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 0; margin: 0; padding: 80px 30px 30px; background: var(--paper); box-shadow: -18px 0 50px rgba(24, 45, 59, .18); transform: translateX(105%); visibility: hidden; transition: transform .3s, visibility .3s; overflow-y: auto; }
  .main-nav.abierto { transform: none; visibility: visible; }
  .main-nav > a { font-size: 1.1rem; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav .nav-whatsapp { border-bottom: 1px solid var(--line); color: var(--deep); }
  /* El velo queda debajo de la cabecera (que sube de capa con el menú abierto): si no, tapa el menú. */
  body.menu-abierto::after { content: ''; position: fixed; inset: 0; z-index: 110; background: rgba(16, 38, 49, .5); }
  body.menu-abierto .site-header { z-index: 130; }
  .header-acciones { margin-left: auto; position: relative; z-index: 121; }
  .brand { position: relative; z-index: 121; }
  .hero { min-height: 640px; }
  .guide-grid, .wisdom-grid, .faq-grid { gap: 38px; }
  .ficha-pagina, .ficha-secciones { grid-template-columns: minmax(0, 1fr); }
  .ficha-pagina-media img { aspect-ratio: 16 / 10; }
  .modal-grid { grid-template-columns: minmax(0, 1fr); }
  .modal-photo img { min-height: 0; aspect-ratio: 16 / 9; max-height: 34vh; position: static; }
  .ficha-cerrar { top: calc(3vh + 10px); right: 24px; }
  .pasos { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .section-heading { display: block; }
  .section-heading h2 { max-width: 19ch; margin-bottom: 14px; }
  .catalog-controls { display: block; }
  .search-box { width: 100%; margin-bottom: 12px; }
  .filter-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .course-grid, .estado-pagina .course-grid { grid-template-columns: minmax(0, 1fr); }
  .course-card, .course-card--destacada { grid-column: auto; flex-direction: column; }
  .course-card .card-media, .course-card--destacada .card-media { aspect-ratio: 4 / 3; flex: none; min-height: 0; }
  .guide-grid, .wisdom-grid, .faq-grid, .closing-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-media { order: 2; width: 100%; aspect-ratio: 4 / 3; max-height: 60svh; }
  .guide-media span { right: 0; bottom: 0; }
  .wisdom-photo { aspect-ratio: 4 / 3; max-height: 56svh; }
  .lead-campos { grid-template-columns: minmax(0, 1fr); }
  .lead-caja .button { width: 100%; justify-self: stretch; }
  .closing-image { max-height: 45svh; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .footer-bottom nav { justify-content: flex-start; }
  .grilla-campos, .datos-lista { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .brand { font-size: 1.32rem; gap: 9px; }
  .brand-mark { font-size: 2.3rem; }
  .main-nav { width: 100%; justify-content: flex-start; padding: calc(var(--alto-header) + 24px) 24px 30px; box-shadow: none; }
  .bag-button { padding: 8px 10px; }
  .bag-button .bag-texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .bag-button::before { content: ''; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9.5 12 5l10 4.5-10 4.5z'/%3E%3Cpath d='M6 11.5V16c0 1.2 2.7 2.5 6 2.5s6-1.3 6-2.5v-4.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9.5 12 5l10 4.5-10 4.5z'/%3E%3Cpath d='M6 11.5V16c0 1.2 2.7 2.5 6 2.5s6-1.3 6-2.5v-4.5'/%3E%3C/svg%3E") center / contain no-repeat; }
  .hero { min-height: calc(100svh - var(--alto-header)); }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 3.3rem); }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .button { width: 100%; }
  .hero-actions .button-text { justify-content: flex-start; }
  .practice-items { grid-template-columns: minmax(0, 1fr); }
  .practice-image { aspect-ratio: 4 / 3; }
  .practice-items p { font-size: .9rem; }
  .card-title { font-size: 1.55rem; }
  .card-summary { font-size: .9rem; }
  .card-bottom { flex-wrap: nowrap; }
  .card-add { min-height: 44px; padding-inline: 14px; }
  .footer-main { grid-template-columns: minmax(0, 1fr); }
  .footer-main > div:first-child { grid-column: auto; }
  .carrito-cabeza { padding: 14px 16px; }
  .carrito-cuerpo { padding: 16px 16px 26px; }
  .ficha-capa { padding: 0; }
  .ficha-cuerpo { width: 100%; max-height: 100vh; max-height: 100dvh; height: 100dvh; }
  .ficha-cerrar { top: 10px; right: 10px; }
  .modal-photo img { max-height: 28vh; }
  .ficha-acciones .button { flex-basis: 100%; }
  .wa-flotante { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .aviso { bottom: 80px; }
}
