/* =========================================================
   UX by Delfi — estilos
   Sistema visual tomado de la Bitácora del curso
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --ink: #1E1818;          /* texto principal, bordes */
  --ink-2: #4B4949;        /* texto secundario */
  --ink-3: #5E5959;        /* texto terciario / metadatos */
  --paper: #FEFFF1;        /* fondo crema */
  --card: #FFFFFF;         /* superficie de cards */
  --line: #DEDACB;         /* divisores suaves */
  --accent: #FFCC00;       /* amarillo de marca */

  --font-display: 'Abhaya Libre', Georgia, serif;
  --font-body: 'Noto Serif', Georgia, serif;

  --r-sm: 10px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 72px;
  --space-8: 112px;

  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--ink-2); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 800; line-height: 1; text-wrap: balance; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); padding: 8px 16px; border-radius: var(--r-pill); z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space-8) 0 0; }
.section:last-of-type { padding-bottom: var(--space-8); }

/* ---------- Tipografía ---------- */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.h1 { font-size: clamp(52px, 7.4vw, 104px); line-height: 0.9; letter-spacing: -0.01em; }
.h2 { font-size: clamp(36px, 5vw, 52px); }
.h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 2.4vw, 28px); line-height: 1.1; }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.num { font-family: var(--font-display); font-weight: 800; }
.section-head { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); max-width: 720px; }

/* Barra de degradé (separador de la bitácora) */
.bar { height: 8px; border-radius: var(--r-pill); background: url('../img/fondo.jpg') center/cover; }

/* ---------- Pills, chips, botones ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; background: var(--accent); color: var(--ink); padding: 6px 16px; border-radius: var(--r-pill); white-space: nowrap; }
.pill--line { background: transparent; border: 1px solid var(--ink); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px;
  font-family: var(--font-body); font-size: 16px; font-weight: 600; text-decoration: none;
  border-radius: var(--r-pill); border: 1px solid var(--ink);
  cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { color: var(--paper); background: #000; transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { color: var(--ink); box-shadow: 0 4px 0 var(--ink); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--card); color: var(--ink); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(254, 255, 241, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); height: 76px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--space-1); }
.nav a { text-decoration: none; font-size: 15px; padding: 8px 14px; border-radius: var(--r-pill); }
.nav a:hover { background: var(--card); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--accent); }
.nav .btn { margin-left: var(--space-1); min-height: 42px; padding: 8px 20px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--ink); border-radius: var(--r-pill); padding: 8px 16px; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: var(--space-3) var(--gutter) var(--space-4); background: var(--paper); border-bottom: 1px solid var(--ink); display: none; }
  .nav.is-open { display: flex; }
  .nav a { font-size: 18px; padding: 12px 16px; }
  .nav .btn { margin: var(--space-1) 0 0; }
}

/* ---------- Hero (portada de la bitácora) ---------- */
.frame { padding: clamp(12px, 2.4vw, 32px); background: url('../img/fondo.jpg') center/cover var(--ink); border-radius: calc(var(--r-lg) + 8px); }
.frame__inner { position: relative; overflow: hidden; background: var(--paper); border-radius: var(--r-lg); padding: clamp(32px, 6vw, 80px) clamp(24px, 6vw, 80px); }
.hero { padding-top: var(--space-5); }
.hero__content { position: relative; z-index: 1; max-width: min(640px, 78%); display: flex; flex-direction: column; gap: var(--space-3); }
.hero__content .lead { max-width: 540px; margin-top: 4px; }
.hero__content .btn-row { margin-top: var(--space-3); }
.hero__meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-5); }

/* Decoraciones */
.deco { position: absolute; pointer-events: none; color: var(--ink); }
.deco--ring { right: -360px; top: 52%; width: 620px; height: 300px; }
.deco--spark-lg { right: 9%; top: 16%; width: 44px; }
.deco--spark-sm { right: 6%; top: 26%; width: 20px; }
.deco--burst { right: 15%; bottom: 14%; width: 56px; }
@media (max-width: 720px) { .deco--ring, .deco--burst { display: none; } .deco--spark-lg { top: 5%; right: 6%; width: 32px; } .deco--spark-sm { top: 11%; right: 4%; } }

/* ---------- Quote (bloque amarillo) ---------- */
.quote { background: var(--accent); }
.quote p { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; text-wrap: balance; }
.quote cite { display: block; margin-top: var(--space-2); font-style: normal; font-size: 15px; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--ink); border-radius: var(--r-md); padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column; gap: var(--space-2); }
.card--accent { background: var(--accent); }
.card--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.card--dark .muted, .card--dark .small { color: #D9D5C7; }
.card .label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.card .italic { font-style: italic; }
.card__foot { margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); }

.grid { display: grid; gap: var(--space-2); }
.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)); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } .grid--4.grid--keep { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* Oferta (home) */
.offer { gap: var(--space-3); min-height: 100%; }
.offer .h3 { font-size: clamp(30px, 3.4vw, 40px); }
.offer ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }

/* Lista con puntos */
.dots li { position: relative; padding-left: 20px; font-size: 15.5px; line-height: 1.5; }
.dots li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* Filas numeradas (como "Clase por clase") */
.rows { display: flex; flex-direction: column; gap: var(--space-2); }
.row { display: flex; gap: var(--space-2); }
.row .num { flex: none; width: 30px; font-size: 20px; line-height: 1.3; }
.row p { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.row p strong { color: var(--ink); }

/* "Ya podés" */
.ya { margin-top: 6px; padding-top: var(--space-2); border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.ya strong { color: var(--ink); background: var(--accent); padding: 1px 8px; border-radius: var(--r-pill); }

/* Tiles de datos */
.tile { background: var(--card); border: 1px solid var(--ink); border-radius: var(--r-md); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.tile .num { font-size: clamp(28px, 3vw, 36px); line-height: 1; }
.tile p { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }

/* Stats */
.stat { border-top: 1px solid var(--ink); padding-top: var(--space-2); display: flex; flex-direction: column; gap: 4px; }
.stat .num { font-size: clamp(48px, 6vw, 72px); line-height: 0.9; }
.stat p { font-size: 15px; color: var(--ink-2); }

/* Índice / tabla de contenido */
.toc { display: flex; flex-direction: column; }
.toc a, .toc div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 16px; }
.toc a:last-child, .toc div:last-child { border-bottom: 0; }
.toc .num { font-size: 22px; }

/* Flujo (Antes → Durante → Después) */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); counter-reset: step; }
@media (max-width: 760px) { .flow { grid-template-columns: 1fr; } }

/* Programa (acordeón) */
.program { display: flex; flex-direction: column; gap: var(--space-2); }
.class { background: var(--card); border: 1px solid var(--ink); border-radius: var(--r-md); overflow: hidden; }
.class summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-3); padding: 20px clamp(20px, 2.6vw, 28px); }
.class summary::-webkit-details-marker { display: none; }
.class summary .num { font-size: 30px; width: 44px; }
.class summary .h3 { font-size: clamp(20px, 2.2vw, 26px); }
.class summary .chev { width: 36px; height: 36px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; transition: transform .2s ease, background .2s ease; }
.class[open] summary .chev { transform: rotate(45deg); background: var(--accent); }
.class__body { padding: 0 clamp(20px, 2.6vw, 28px) 24px calc(clamp(20px, 2.6vw, 28px) + 44px + var(--space-3)); }
@media (max-width: 620px) { .class__body { padding-left: clamp(20px, 2.6vw, 28px); } }

/* Precio */
.price { display: flex; flex-direction: column; gap: var(--space-3); }
.price__amount { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 5vw, 60px); line-height: 1; }
.price__alt { font-size: 15px; color: var(--ink-2); }

/* Timeline (Conoceme) */
.timeline { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 140px 1fr; gap: var(--space-4); padding: var(--space-4) 0; border-top: 1px solid var(--line); }
.tl-item:first-child { border-top: 1px solid var(--ink); }
.tl-item .num { font-size: 22px; }
.tl-item h3 { font-size: 24px; line-height: 1.15; }
.tl-item .co { font-size: 15px; font-weight: 600; margin-top: 2px; }
.tl-item p { margin-top: 6px; font-size: 15.5px; color: var(--ink-2); }
@media (max-width: 620px) { .tl-item { grid-template-columns: 1fr; gap: 4px; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--space-3); padding: 20px 0; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-display); font-size: 28px; line-height: 0.8; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 720px; }

/* ---------- Formulario ---------- */
.form { display: flex; flex-direction: column; gap: var(--space-3); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 13px; color: var(--ink-3); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--card); border: 1px solid var(--ink); border-radius: var(--r-sm);
  padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B3261E; }
.field .error { font-size: 13px; color: #B3261E; display: none; }
.field .error.is-visible { display: block; }
.form-status { display: none; padding: 14px 18px; border-radius: var(--r-sm); border: 1px solid var(--ink); font-size: 15px; }
.form-status.is-ok { display: block; background: var(--accent); }
.form-status.is-error { display: block; background: #FBE9E7; border-color: #B3261E; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- CTA final ---------- */
.cta-final .frame__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-5); align-items: end; }
.cta-final .btn-row { justify-content: flex-end; }
@media (max-width: 760px) { .cta-final .frame__inner { grid-template-columns: 1fr; } .cta-final .btn-row { justify-content: flex-start; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--ink); padding: var(--space-6) 0 var(--space-5); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-5); }
.site-footer img { height: 34px; width: auto; align-self: flex-start; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer a { text-decoration: none; font-size: 15px; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--line); }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > :first-child { grid-column: 1 / -1; } }

/* ---------- Utilidades ---------- */
.stack-1 { display: flex; flex-direction: column; gap: var(--space-1); }
.stack-2 { display: flex; flex-direction: column; gap: var(--space-2); }
.stack-3 { display: flex; flex-direction: column; gap: var(--space-3); }
.stack-4 { display: flex; flex-direction: column; gap: var(--space-4); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: start; }
.split--wide { grid-template-columns: 1.3fr 1fr; }
@media (max-width: 860px) { .split, .split--wide { grid-template-columns: 1fr; gap: var(--space-5); } }
.sticky { position: sticky; top: 100px; }
@media (max-width: 860px) { .sticky { position: static; } }
.mt-2 { margin-top: var(--space-2); } .mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

@media (max-width: 720px) { .hero__content { max-width: 100%; } }
.btn .label { font-size: inherit; letter-spacing: 0; text-transform: none; font-weight: inherit; }

/* ---------- Tema por oferta ----------
   Curso   → amarillo (--accent por defecto)
   Mentoría → violeta (el violeta de Figma del logo) */
.theme-mentoria {
  --accent: #E1D2F7;        /* fills: pills, cards destacadas, nav activo */
  --accent-deep: #3B1A6B;   /* superficies oscuras y botón primario */
}
.theme-mentoria .btn--primary { background: var(--accent-deep); border-color: var(--accent-deep); }
.theme-mentoria .btn--primary:hover { background: #26104A; }
.card--mentoria { background: #3B1A6B; color: var(--paper); border-color: #3B1A6B; }
.card--mentoria .muted, .card--mentoria .small { color: #DCD0EE; }
.card--mentoria .card__foot { border-color: #5C3C8C; }
/* El CTA del header lleva al curso: no toma el color de la mentoría */
.theme-mentoria .site-header .btn--primary { background: var(--ink); border-color: var(--ink); }
.theme-mentoria .site-header .btn--primary:hover { background: #000; }
/* Degradé propio de mentorías (zona azul del degradé de marca, virada a violeta) */
.theme-mentoria .frame,
.theme-mentoria .bar { background-image: url('../img/fondo-mentoria.jpg'); }
/* Degradé naranja (zona naranja del degradé de marca) */
.frame--naranja { background-image: url('../img/fondo-naranja.jpg'); }
/* La barra separadora toma el naranja dentro de páginas de contacto */
.theme-contacto .bar { background-image: url('../img/fondo-naranja.jpg'); }
.theme-contacto { --accent: #FDC6A3; }  /* tinte naranja: menú activo, foco, mensaje de éxito */
.theme-contacto .deco--ring, .theme-contacto .deco--burst { display: none; }
.frame__inner > div > .pill { white-space: normal; }
[hidden] { display: none !important; }

@media (max-width: 1100px) and (min-width: 901px) { .nav a { padding: 8px 10px; font-size: 14px; } }

/* ---------- Diálogo de compra de gift card ---------- */
.gift-price { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1; }
.gift-dialog {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto;
  padding: clamp(20px, 4vw, 32px); border: 1px solid var(--ink); border-radius: var(--r-md);
  background: var(--paper); color: var(--ink);
}
.gift-dialog::backdrop { background: rgba(30, 24, 24, .55); backdrop-filter: blur(2px); }
.gift-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.gift-dialog__close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink); }
.gift-dialog__close:hover { background: var(--accent); }
.pay-choice { border: 0; padding: 0; margin: 0; gap: 8px; }
.pay-choice legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.pay-option { display: flex; gap: 12px; align-items: center; min-height: 52px; padding: 12px 14px; border: 1px solid var(--ink); border-radius: var(--r-sm); background: var(--card); cursor: pointer; font-size: 15px; }
.pay-option:has(input:checked) { background: var(--accent); }
.pay-option input { width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.pay-price { color: var(--ink-2); }

/* ---------- Mentorías: en qué te puede ayudar ---------- */
.help-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-5); align-items: end; margin-bottom: var(--space-5); }
.help-head .lead { max-width: 440px; }
@media (max-width: 860px) { .help-head { grid-template-columns: 1fr; gap: var(--space-3); } }
.help-grid { gap: var(--space-2); }
.help-tile { background: var(--card); border: 1px solid var(--ink); border-radius: var(--r-md); padding: clamp(22px, 2.6vw, 30px); display: flex; flex-direction: column; gap: var(--space-2); transition: background .2s ease; }
.help-tile:hover { background: var(--accent); }
.help-tile .dots { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.help-tile .dots li { color: var(--ink-2); }
.help-tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--accent); padding: 4px 12px; border-radius: 999px; }
.help-tile:hover .help-tag { background: var(--card); }
.help-more { margin-top: var(--space-4); font-size: 16px; color: var(--ink-2); }

/* ---------- Citas con más onda ---------- */
.quote { position: relative; overflow: hidden; isolation: isolate; margin: 0; padding: clamp(40px, 6vw, 72px) clamp(28px, 6vw, 80px); padding-right: clamp(28px, 30%, 360px); border-radius: var(--r-lg); color: var(--ink); }
.quote blockquote { margin: 0; position: relative; z-index: 1; }
.quote blockquote p { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.1; text-wrap: balance; }
.quote mark { background: var(--paper); color: var(--ink); padding: 0 .18em; border-radius: .3em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.quote cite { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; margin-top: var(--space-4); font-style: normal; font-size: 15px; }
.quote cite::before { content: ''; width: 32px; height: 1px; background: currentColor; }
.quote__mark { position: absolute; z-index: -1; left: clamp(8px, 2vw, 28px); top: clamp(-40px, -3vw, -20px); font-family: var(--font-display); font-weight: 800; font-size: clamp(180px, 22vw, 300px); line-height: 1; opacity: .16; pointer-events: none; }
.quote__ring { position: absolute; z-index: -1; right: -290px; top: 50%; width: 560px; height: 270px; transform: translateY(-50%); }
.quote__burst { position: absolute; right: clamp(60px, 12%, 150px); bottom: 26%; width: clamp(56px, 7vw, 92px); }
.quote__spark { position: absolute; }
.quote__spark--lg { right: clamp(40px, 6%, 80px); top: 18%; width: clamp(30px, 3.4vw, 46px); }
.quote__spark--sm { right: clamp(90px, 13%, 150px); top: 12%; width: clamp(14px, 1.6vw, 20px); }
@media (max-width: 720px) {
  .quote { padding-right: clamp(28px, 6vw, 80px); padding-bottom: 120px; }
  .quote__ring { display: none; }
  .quote__burst { right: auto; left: 28px; bottom: 32px; width: 52px; }
  .quote__spark--lg { right: 28px; top: auto; bottom: 36px; }
  .quote__spark--sm { right: 72px; top: auto; bottom: 70px; }
}
/* Variante oscura: frase clave en el degradé de marca */
.quote--dark { background: var(--ink); color: var(--paper); }
.quote--dark mark { background: url('../img/fondo-naranja.jpg') 30% 40% / 160% auto; -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0; }
.quote--dark .quote__mark { opacity: .14; color: var(--paper); }


/* =========================================================
   Gift cards: estética "noche" de la campaña
   ========================================================= */
.theme-regalo {
  --accent: #DCE2FF;        /* nav activo, card destacada */
  --accent-deep: #0E1A4F;   /* botón primario */
}
.theme-regalo .btn--primary { background: var(--accent-deep); border-color: var(--accent-deep); }
.theme-regalo .btn--primary:hover { background: #060D30; }
.theme-regalo .site-header .btn--primary { background: var(--ink); border-color: var(--ink); }
.theme-regalo .bar { background: linear-gradient(90deg, #0B1640, #3A4BC4 55%, #B98AE6); }

.night {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg); color: #FFFFFF;
  background:
    radial-gradient(55% 70% at 92% 105%, rgba(178, 120, 230, .55), transparent 65%),
    radial-gradient(45% 60% at -5% 70%, rgba(45, 90, 220, .35), transparent 65%),
    url('../img/estrellas.svg') center / cover,
    linear-gradient(165deg, #040822 0%, #0A1440 55%, #172877 100%);
}
.night .lead { color: #C9D0EE; }
.night .pill { background: #FFCC00; color: var(--ink); font-weight: 700; }
.btn--night { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--night:hover { background: rgba(255,255,255,.1); color: #fff; }
.night .btn--accent:hover { box-shadow: 0 4px 0 #000; }

/* Hero */
.hero .night { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: var(--space-5); padding: clamp(36px, 6vw, 80px) clamp(24px, 6vw, 72px); min-height: 560px; }
.night__content { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.night__title { color: #fff; font-size: clamp(46px, 6.2vw, 88px); }
.night__content .btn-row { margin-top: var(--space-2); }
.night__cards { position: relative; height: clamp(260px, 30vw, 380px); }
.night__cards .gcard { position: absolute; width: min(100%, 400px); font-size: clamp(12px, 1.25vw, 16px); }
.night__cards .gcard--back { right: 0; top: 0; transform: rotate(8deg); }
.night__cards .gcard--front { left: 0; bottom: 0; transform: rotate(-6deg); }
.night__spark { position: absolute; color: #fff; opacity: .9; }
.night__spark--a { width: 26px; right: 7%; top: 12%; }
.night__spark--b { width: 16px; left: 46%; top: 18%; opacity: .6; }
@media (max-width: 860px) {
  .hero .night { grid-template-columns: 1fr; min-height: 0; }
  .night__cards { height: 300px; max-width: 420px; width: 100%; }
}

/* Tarjetas de regalo (escalan con font-size) */
.gcard { position: relative; overflow: hidden; aspect-ratio: 1.58; width: 100%; border-radius: 1.3em; padding: 1.3em 1.5em; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 1.4em 2.6em -1em rgba(0, 0, 0, .55); }
.gcard__logo { height: 2.1em; width: auto; align-self: flex-start; position: relative; z-index: 2; }
.gcard__body { position: relative; z-index: 2; display: flex; flex-direction: column; gap: .3em; }
.gcard__tag { font-size: .8em; font-weight: 600; opacity: .75; }
.gcard__name { font-family: var(--font-display); font-weight: 800; font-size: 2.1em; line-height: .95; max-width: 72%; }
.gcard__sub { font-size: .95em; opacity: .85; }
.gcard__para { margin-top: .6em; font-size: .85em; display: flex; gap: .5em; align-items: flex-end; width: 70%; }
.gcard__para::after { content: ''; flex: 1; border-bottom: 1px dashed currentColor; opacity: .6; margin-bottom: .25em; }
.gcard--curso { background: #F6F2E9; color: var(--ink); }
.gcard__ribbon-v, .gcard__ribbon-h { position: absolute; z-index: 1; background: #FFCC00; }
.gcard__ribbon-v { top: 0; bottom: 0; right: 16%; width: 1.4em; }
.gcard__ribbon-h { left: 0; right: 0; top: 30%; height: 1.4em; }
.gcard__bow { position: absolute; z-index: 3; width: 6.2em; right: calc(16% + .7em - 3.1em); top: calc(30% + .7em - 2.2em); }
.gcard--mentoria { color: #fff; background:
    radial-gradient(70% 90% at 0% 0%, #E59BE8 0%, transparent 60%),
    linear-gradient(150deg, #8B5BE0 0%, #3B4FD6 50%, #101B5E 100%); }
.gcard--mentoria .gcard__logo { filter: brightness(0) invert(1); }
.gcard--mentoria .gcard__body { align-items: flex-end; text-align: right; }
.gcard--mentoria .gcard__name { max-width: none; }

/* Sección "Elegí qué regalar": escenario oscuro para cada tarjeta */
.gcard-stage { border-radius: var(--r-md); padding: clamp(24px, 4vw, 44px); font-size: clamp(12px, 1.5vw, 16px);
  background: radial-gradient(60% 80% at 90% 110%, rgba(178,120,230,.45), transparent 65%), url('../img/estrellas.svg') center/cover, linear-gradient(165deg, #040822, #0F1C55); }

/* Bloque de la home */
.gift-band { display: grid; grid-template-columns: 1.3fr auto auto; align-items: center; gap: var(--space-5); padding: clamp(24px, 4vw, 44px); }
.gift-band .label { color: #FFCC00; }
.gift-band .muted { color: #C9D0EE; }
.gift-band .h3 { color: #fff; }
.gift-band .btn--primary { background: #FFCC00; border-color: #FFCC00; color: var(--ink); }
.gift-band .btn--primary:hover { background: #FFD633; color: var(--ink); }
.gift-band__minis { position: relative; width: 230px; height: 130px; }
.gcard--mini { position: absolute; width: 170px; font-size: 6.5px; }
.gift-band__minis .gcard--back { right: 0; top: 0; transform: rotate(8deg); }
.gift-band__minis .gcard--front { left: 0; bottom: 0; transform: rotate(-6deg); }
@media (max-width: 900px) { .gift-band { grid-template-columns: 1fr; } .gift-band__minis { order: -1; } }
.night .btn--accent { background: #FFCC00; border-color: #FFCC00; color: var(--ink); }
.gcard--mentoria { flex-direction: column-reverse; }
.gcard--mentoria .gcard__logo { align-self: flex-start; }
.night__cards .gcard { width: 82%; }
.night__cards .gcard--back { right: 0; top: 0; }
.night__cards .gcard--front { left: 0; bottom: 0; }
@media (max-width: 860px) { .night__spark--a { top: auto; bottom: 6%; right: 8%; } .night__spark--b { display: none; } }

/* ---------- Hero más compacto: entra en la primera pantalla ---------- */
.hero { padding-top: var(--space-4); }
.frame__inner { padding: clamp(28px, 4.5vw, 60px) clamp(24px, 5.5vw, 72px); }
.h1 { font-size: clamp(46px, 6vw, 84px); }
.hero__content { gap: var(--space-2); }
.hero__content .btn-row { margin-top: var(--space-2); }
.frame__inner > div[style*="margin-bottom"] { margin-bottom: var(--space-4) !important; }
.deco--ring { top: 46%; }
.deco--burst { bottom: 12%; }

/* ---------- Servicios (home) ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.svc { border: 1px solid var(--ink); border-radius: var(--r-md); padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.svc .h3 { font-size: clamp(26px, 2.4vw, 32px); }
.svc__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.svc .dots { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.svc__foot { margin-top: auto; padding-top: var(--space-3); border-top: 1px solid rgba(30,24,24,.18); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); }
.svc--curso { background: #FFCC00; }
.svc--curso .muted, .svc--curso .small { color: var(--ink); }
.svc--curso .pill { background: var(--paper); }
.svc--mentoria { background: #3B1A6B; color: var(--paper); border-color: #3B1A6B; }
.svc--mentoria .muted, .svc--mentoria .small { color: #DCD0EE; }
.svc--mentoria .svc__foot, .svc--regalo .svc__foot { border-color: rgba(255,255,255,.22); }
.svc--mentoria .btn--accent { background: #E1D2F7; border-color: #E1D2F7; color: var(--ink); }
.svc--regalo { border-color: #0A1440; }
.svc--regalo .h3 { color: #fff; }
.svc--regalo .label { color: #FFCC00; }
.svc--regalo .small { color: #C9D0EE; }
.svc__minis { position: relative; height: 104px; margin: 2px 0 4px; }
.svc__minis .gcard--mini { width: 150px; font-size: 5.8px; }
.svc__minis .gcard--back { left: 92px; top: 0; transform: rotate(8deg); }
.svc__minis .gcard--front { left: 0; top: 14px; transform: rotate(-6deg); }

/* Tablet y celular: una tarjeta abajo de la otra */
@media (max-width: 860px) {
  .services { grid-template-columns: 1fr; }
}
.svc--regalo .muted { color: #C9D0EE; }
/* Gift cards de la tarjeta de servicios: más aire arriba, centradas en el espacio libre */
.svc__minis { margin-top: auto; padding-top: 28px; box-sizing: content-box; }
.svc__minis .gcard--back { top: 28px; }
.svc__minis .gcard--front { top: 42px; }
.svc__minis { height: 150px; padding-top: 0; margin-top: auto; margin-bottom: 4px; }
.svc__minis .gcard--back { top: 16px; }
.svc__minis .gcard--front { top: 36px; }
.hero__content .lead { max-width: 640px; }
/* Todos los heros con la misma altura (escritorio) */
@media (min-width: 861px) {
  .hero .frame { min-height: 610px; display: flex; }
  .hero .frame__inner { flex: 1; display: flex; flex-direction: column; justify-content: center; }
}

/* ---------- Menú hamburguesa (mobile) ---------- */
.nav-toggle { width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: transparent; place-items: center; }
.nav-toggle:hover { background: var(--card); }
@media (max-width: 900px) { .nav-toggle { display: grid; } }
.burger { position: relative; width: 24px; height: 16px; display: block; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease, top .25s ease; }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 7px; }
.burger span:nth-child(3) { top: 14px; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(3) { top: 7px; transform: rotate(-45deg); }
