/* =========================================================
   Spanish with Héctor — site styles
   Tokens: fondo claro, banda oscura, UN acento (amarillo de
   la portada del pódcast) y un color exclusivo para el CTA (rojo).
   ========================================================= */

/* ---------- Fuentes auto-alojadas (sep 2026) ----------
   Antes venian de fonts.googleapis.com y bloqueaban el primer pintado ~750 ms (PageSpeed).
   Son los MISMOS woff2 variables que servia Google (mismos rangos unicode, display swap),
   descargados una vez a public/fonts/. Cero peticiones a terceros; el navegador solo baja
   el subconjunto que usa (latin; latin-ext para tildes raras). ---------- */

/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/6NU78FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0KxCFTeO-U.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/6NU78FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0KxC9TeA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/6NU78FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0KxCFTeO-U.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/6NU78FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0KxC9TeA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/6NU78FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0KxCFTeO-U.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/6NU78FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0KxC9TeA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Paleta "Mediterráneo" (elegida por el cliente, ago 2026):
       azul marino + blanco de cal + sol + terracota. */
    --bg: #f7f4ec;
    --surface: #ffffff;
    --ink: #14304d;
    --muted: #5b6470;
    --line: #e3ded2;
    --accent: #e9b44c;
    --accent-ink: #1d1a0c;
    --cta: #d2622a;
    --cta-hover: #b85222;
    --dark: #14304d;
    --dark-muted: #aebbc9;

    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --container: 1120px;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(20,20,20,.06);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0 0 .5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

.container.narrow { max-width: 720px; }

.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

.eyebrow {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .75rem;
}

.eyebrow::before {
    content: "";
    display: inline-block;
    width: 10px; height: 10px;
    background: var(--accent);
    border-radius: 2px;
    margin-right: .6rem;
    vertical-align: 1px;
}

.eyebrow--dark { color: var(--accent-ink); }

.skip-link {
    position: absolute; left: -999px; top: 8px;
    background: var(--ink); color: #fff; padding: .5rem .75rem; border-radius: 6px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: .85rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background .15s, color .15s, border-color .15s, transform .15s;
    cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }

.btn--cta { background: var(--cta); color: #fff; }
.btn--cta:hover { background: var(--cta-hover); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }

.btn--sm { padding: .55rem 1.1rem; font-size: .95rem; }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.1rem; }

/* ---------- Header ---------- */

.site-header {
    background: var(--dark);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 68px;
}

.brand {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    white-space: nowrap;
}
.brand__with { font-style: italic; font-weight: 500; color: var(--accent); }

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}
.site-nav a:not(.btn) {
    color: var(--dark-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: .98rem;
    padding: .25rem 0;
    border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover,
.site-nav a.is-active { color: #fff; border-bottom-color: var(--accent); }

.nav-toggle {
    display: none;
    background: none; border: 0; padding: .5rem; cursor: pointer;
    flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; }

@media (max-width: 820px) {
    .nav-toggle { display: flex; }
    .site-nav {
        display: none;
        position: absolute;
        left: 0; right: 0; top: 100%;
        background: var(--dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 20px 1.5rem;
        gap: 1rem;
        border-top: 1px solid #2a2a2a;
    }
    .site-nav.is-open { display: flex; }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); }

.hero__grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.5rem 0 1rem; }

.hero__note { font-size: .95rem; color: var(--muted); }

.podcast-card {
    background: var(--accent);
    color: var(--accent-ink);
    border-radius: var(--radius);
    padding: 2rem;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.podcast-card::before {
    content: "";
    position: absolute;
    width: 60%; aspect-ratio: 1;
    border-radius: 50%;
    background: var(--cta);
    top: -18%; right: -14%;
    opacity: .95;
}
.podcast-card > * { position: relative; }
.podcast-card__label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin: 0 0 .3rem; }
.podcast-card__title { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.05; margin: 0 0 .4rem; }
.podcast-card__sub { margin: 0 0 1rem; font-weight: 500; }
.podcast-card__links { display: flex; flex-wrap: wrap; gap: .5rem; }
.podcast-card__links a {
    font-size: .85rem; font-weight: 600; text-decoration: none;
    background: rgba(0,0,0,.85); color: #fff; padding: .35rem .7rem; border-radius: 999px;
}
.podcast-card__more { margin: .8rem 0 0; font-size: .85rem; font-weight: 600; }
.podcast-card__more a { color: var(--accent-ink); }

/* Variante con la foto recortada de Héctor (public/img/hector-cutout.*):
   texto arriba a la izquierda, Héctor abajo a la derecha, sin pisarse. */
.podcast-card--photo { justify-content: flex-start; aspect-ratio: 1 / 1.15; }
.podcast-card--photo .podcast-card__title { font-size: clamp(1.7rem, 2.6vw, 2.2rem); white-space: nowrap; }
.podcast-card--photo .podcast-card__sub { white-space: nowrap; font-size: .95rem; }
.podcast-card__photo {
    position: absolute; right: -4%; bottom: -1px;
    height: 58%; width: auto; max-width: none;
    filter: drop-shadow(0 18px 28px rgba(20,48,77,.28));
    pointer-events: none;
}

@media (max-width: 820px) {
    .hero__grid { grid-template-columns: 1fr; }
    .podcast-card { aspect-ratio: auto; padding-top: 4rem; }
    .podcast-card--photo { min-height: 0; aspect-ratio: 1 / 0.82; padding-top: 2rem; }
    .podcast-card--photo .podcast-card__sub { white-space: normal; }
    .podcast-card__photo { height: 62%; }
}
@media (max-width: 480px) {
    .podcast-card--photo > *:not(.podcast-card__photo) { max-width: 100%; }
    /* En móvil el hueco para la foto se reserva en función del ANCHO (la foto mide 62% de ancho
       y su alto es ~52% del ancho de la tarjeta), así nunca pisa el texto ni las pastillas. */
    .podcast-card--photo { aspect-ratio: auto; padding-bottom: 58%; min-height: 0; }
    .podcast-card--photo .podcast-card__title { white-space: normal; }
    .podcast-card__photo { height: auto; width: 88%; right: -4%; }
}

/* ---------- Hero en triángulo (clases arriba; newsletter + foto + pódcast abajo) ---------- */

.hero--tri { padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; }
.hero--tri__eyebrow { text-align: center; }
.hero--tri__eyebrow::before { display: none; }
.hero--tri__title { text-align: center; max-width: 21ch; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.hero--tri__title em { font-style: italic; color: var(--cta); }

.tri {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "classes classes" "newsletter podcast";
    gap: 1.4rem;
    align-items: stretch;
}
.tri-card {
    border-radius: var(--radius);
    padding: clamp(1.4rem, 3vw, 2rem);
    box-shadow: var(--shadow);
    display: flex; flex-direction: column; gap: .6rem;
}
.tri-card h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin: 0; }
.tri-card p { margin: 0; }
.tri-card__kicker { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.tri-card__note { font-size: .9rem; opacity: .8; }
.tri-card .hero__actions { margin: .6rem 0 .2rem; }
.tri-card .btn { align-self: flex-start; }

.tri-card--classes {
    grid-area: classes;
    background: var(--dark); color: #fff;
    text-align: center; align-items: center;
    padding: clamp(1.8rem, 4vw, 2.6rem);
}
.tri-card--classes h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.tri-card--classes p { color: var(--dark-muted); }
.tri-card--classes .hero__actions { justify-content: center; }
.tri-card--classes .btn { align-self: center; }
.btn--ghost-dark { border-color: #fff; color: #fff; }
.btn--ghost-dark:hover { background: #fff; color: var(--dark); }

.tri-card--newsletter { grid-area: newsletter; background: var(--surface); border: 1px solid var(--line); }
.tri-card--podcast { grid-area: podcast; background: var(--accent); color: var(--accent-ink); }
.tri-card--podcast .btn--dark { background: var(--accent-ink); }

@media (max-width: 600px) {
    .tri { grid-template-columns: 1fr; grid-template-areas: "classes" "newsletter" "podcast"; }
}

/* Semana conectada (miércoles / viernes / semana siguiente) */
.steps--week .step__day {
    display: inline-block; background: var(--dark); color: #fff;
    font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    padding: .3rem .8rem; border-radius: 999px; margin-bottom: .8rem;
}
.steps--week .step:nth-child(2) .step__day { background: var(--cta); }
.steps--week .step:nth-child(3) .step__day { background: var(--accent); color: var(--accent-ink); }

/* ---------- Metrics ---------- */

.metrics { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.metrics__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.5rem 0;
}
.metric { text-align: center; }
.metric strong { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; line-height: 1.1; }
.metric span { font-size: .9rem; color: var(--muted); }

@media (max-width: 820px) {
    .metrics__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Sections ---------- */

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section__head { max-width: 720px; margin-bottom: 2.5rem; }
.section__head--row {
    max-width: none;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
}
.section__head--row > div { max-width: 720px; }
.section__foot { margin-top: 2rem; color: var(--muted); }

.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--3 { grid-template-columns: 1fr; } .section__head--row { flex-direction: column; align-items: flex-start; } }

/* ---------- Cards (classes) ---------- */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    box-shadow: var(--shadow);
    position: relative;
}
.card--highlight { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242,194,0,.25), var(--shadow); }
.card--highlight::after {
    content: "Most popular";
    position: absolute; top: -.8rem; right: 1.2rem;
    background: var(--accent); color: var(--accent-ink);
    font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: .25rem .6rem; border-radius: 999px;
}
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.card__top h3 { margin: 0; }
.card__tag { font-size: .85rem; color: var(--muted); margin: 0; }
.card p { margin: 0; }
.card__bottom { margin-top: auto; padding-top: .8rem; border-top: 1px dashed var(--line); }
.price { margin: 0; color: var(--muted); }
.price strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); margin-left: .15rem; }
.durations { margin: 0; font-size: .9rem; color: var(--muted); }
.card__link { font-weight: 600; text-decoration: none; color: var(--ink); margin-top: .4rem; }
.card__link:hover { text-decoration: underline; }

.badge {
    display: inline-block;
    background: var(--ink); color: #fff;
    font-size: .72rem; font-weight: 700; letter-spacing: .06em;
    padding: .2rem .55rem; border-radius: 6px; white-space: nowrap;
}

/* ---------- Steps ---------- */

.steps {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
    counter-reset: step;
}
.step__num {
    display: inline-grid; place-items: center;
    width: 2.4rem; height: 2.4rem; border-radius: 50%;
    background: var(--accent); color: var(--accent-ink);
    font-weight: 700; margin-bottom: .8rem;
}
.step h3 { margin-bottom: .3rem; }
.step p { margin: 0; color: var(--muted); }

@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Episodes ---------- */

.episode {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem;
    box-shadow: var(--shadow);
}
.episode__meta { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.episode__num { font-family: var(--font-display); color: var(--muted); font-weight: 600; }
.episode h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.episode h3 a { text-decoration: none; }
.episode h3 a:hover { text-decoration: underline; }
.episode__date { margin: 0; font-size: .9rem; color: var(--muted); }

/* ---------- Testimonials ---------- */

.testimonial {
    margin: 0;
    background: var(--bg);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.4rem 1.5rem;
}
.testimonial p { font-size: 1rem; margin-bottom: 1rem; }
.testimonial footer { font-size: .92rem; color: var(--muted); }
.testimonial footer strong { color: var(--ink); }

/* ---------- Newsletter ---------- */

.newsletter { background: var(--accent); color: var(--accent-ink); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.newsletter__inner {
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.newsletter__inner > div { max-width: 640px; }
.newsletter h2 { margin-bottom: .4rem; }
.newsletter p { margin: 0; }

@media (max-width: 820px) { .newsletter__inner { flex-direction: column; align-items: flex-start; } }

.substack-embed { max-width: 100%; border: 1px solid rgba(0,0,0,.12); border-radius: 12px; background: #fff; flex-shrink: 0; }

/* Ejemplos bilingües del "Sobre mí" (sección del guía) */
.examples { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .7rem; }
.examples li { background: var(--bg); border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; padding: .8rem 1rem; }
.examples em { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; }
.examples span { color: var(--muted); font-size: .9rem; }

/* ---------- CTA band ---------- */

.cta-band { background: var(--dark); color: #fff; padding: clamp(3rem, 7vw, 5rem) 0; text-align: center; }
.cta-band h2 { margin-bottom: .3rem; }
.cta-band p { color: var(--dark-muted); margin-bottom: 1.5rem; }

/* ---------- Page band (cabecera de páginas interiores) ---------- */

.page-band { background: var(--dark); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.page-band .eyebrow { color: var(--dark-muted); }
.page-band h1 { margin: 0; }
.page-band__sub { margin: .6rem 0 0; color: var(--dark-muted); font-size: 1.15rem; max-width: 60ch; }
.page-band__sub-inline { display: block; font-family: var(--font-body); font-weight: 400; font-size: 1.1rem; color: var(--dark-muted); margin-top: .5rem; }
a.choice { text-decoration: none; }

.page-band__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.page-band__row > div:first-child { max-width: 720px; }
.page-band__aside { display: grid; gap: 1rem; justify-items: end; }
.page-band__cover { width: 180px; height: 180px; border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.episode-cover { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 820px) { .page-band__aside { justify-items: start; } .page-band__cover { width: 140px; height: 140px; } }
.page-band__back { color: var(--dark-muted); text-decoration: none; }
.page-band__back:hover { color: #fff; }
.page-band__kicker { color: var(--dark-muted); font-weight: 600; }
.page-band .episode__meta { margin-bottom: .6rem; }
@media (max-width: 820px) { .page-band__row { flex-direction: column; align-items: flex-start; } }

.platform-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.platform-links a {
    font-size: .85rem; font-weight: 600; text-decoration: none;
    border: 1.5px solid var(--dark-muted); color: #fff; padding: .4rem .8rem; border-radius: 999px;
}
.platform-links a:hover { background: #fff; color: var(--dark); border-color: #fff; }
.platform-links--inline a { border-color: var(--line); color: var(--ink); }
.platform-links--inline a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Podcast: filtros + buscador ---------- */

.filters { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 68px; z-index: 40; }
.filters__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
    text-decoration: none; font-size: .9rem; font-weight: 600;
    padding: .4rem .9rem; border-radius: 999px;
    border: 1.5px solid var(--line); color: var(--muted); background: var(--surface);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.search { display: flex; gap: .5rem; }
.search input {
    font: inherit; font-size: .95rem; padding: .5rem .9rem; min-width: 220px;
    border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink);
}
.search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

.results-note { color: var(--muted); margin-bottom: 1.5rem; }
.filters__note { margin: 0; font-size: .92rem; color: var(--muted); max-width: 48ch; }
.substack-embed--bar { height: 210px; }
.ep-card__excerpt { margin: .4rem 0 0; font-size: .9rem; color: var(--muted); }

/* ---------- Podcast: tarjetas ---------- */

.ep-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column;
}
/* La imagen va en absoluto DENTRO de una caja 16:9: una imagen absoluta no puede empujar a su
   contenedor, así que la caja manda siempre. Con display:grid + height:100% las portadas cuadradas
   (3000x3000) estiraban la caja (min-height:auto) y en Safari iOS la imagen se salía del hueco. */
.ep-card__media {
    position: relative; display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--cta)));
    color: var(--accent-ink);
    text-decoration: none;
}
.ep-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ep-card__num {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-family: var(--font-display); font-size: 2.2rem; font-weight: 700;
}
.ep-card__body { padding: 1.2rem 1.4rem 1.4rem; }
.ep-card h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.ep-card h3 a { text-decoration: none; }
.ep-card h3 a:hover { text-decoration: underline; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 2.5rem; }
.pagination__btn { text-decoration: none; font-weight: 600; padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--ink); color: var(--ink); }
.pagination__btn:hover { background: var(--ink); color: #fff; }
.pagination__btn.is-disabled { opacity: .35; border-color: var(--muted); color: var(--muted); pointer-events: none; }
.pagination__info { color: var(--muted); font-size: .95rem; }

/* ---------- Podcast: ficha de episodio ---------- */

.episode-layout { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
/* Las columnas de una rejilla llevan min-width:auto ("no encojas por debajo del contenido"):
   una URL larga sin espacios en la descripción (las hay de 100+ caracteres) ensanchaba la
   columna a 741px y rompía toda la página en móvil. */
.episode-layout > * { min-width: 0; }
.prose, .ep-nav__link strong { overflow-wrap: anywhere; }
.episode-aside { display: grid; gap: 1.2rem; position: sticky; top: 88px; }
.badge--accent { background: var(--accent); color: var(--accent-ink); }

.player {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.4rem; margin-bottom: 2rem; box-shadow: var(--shadow);
}
.player audio { width: 100%; margin-bottom: 1rem; }
.player iframe { width: 100%; border: 0; border-radius: 8px; margin-bottom: 1rem; }
.player__fallback { margin: 0 0 .8rem; color: var(--muted); }

.prose { font-size: 1.08rem; max-width: 68ch; }
.prose p { margin-bottom: 1.1em; }

.ep-nav { display: flex; justify-content: space-between; gap: 1.5rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.ep-nav__link { text-decoration: none; display: grid; gap: .15rem; max-width: 45%; }
.ep-nav__link span { font-size: .85rem; color: var(--muted); font-weight: 600; }
.ep-nav__link strong { font-family: var(--font-display); font-weight: 600; }
.ep-nav__link:hover strong { text-decoration: underline; }
.ep-nav__link--right { text-align: right; margin-left: auto; }

.facts--accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.facts--accent h3 { color: var(--accent-ink); }
.facts p { font-size: .98rem; margin-bottom: 1rem; }

@media (max-width: 820px) {
    .episode-layout { grid-template-columns: 1fr; }
    .episode-aside { position: static; }
    .filters { position: static; }
    .search input { min-width: 0; width: 100%; }
    .search { width: 100%; }
}

/* ---------- Classes: fichas de tipo de clase ---------- */

.plans { display: grid; gap: 1.4rem; }
.plan {
    display: grid; grid-template-columns: 3fr 2fr; gap: clamp(1.5rem, 4vw, 3rem);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow);
    scroll-margin-top: 140px;
}
.plan__desc { margin: .6rem 0 0; color: var(--ink); }
.plan__note { margin: .8rem 0 0; font-size: .92rem; color: var(--muted); }
.plan__prices { border-left: 1px solid var(--line); padding-left: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; }
.plan__prices-title { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem; }
.price-list { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.price-list span { color: var(--muted); }
.price-list strong { font-family: var(--font-display); font-size: 1.45rem; }
.plan__prices .btn { align-self: flex-start; margin-top: auto; }

@media (max-width: 820px) {
    .plan { grid-template-columns: 1fr; }
    .plan__prices { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1.2rem; }
}

/* ---------- Forms (contacto) ---------- */

.form { display: grid; gap: 1.2rem; max-width: 560px; }
.form__row { display: grid; gap: .35rem; }
.form label { font-weight: 600; font-size: .95rem; }
.form input, .form textarea {
    font: inherit; padding: .7rem .9rem;
    border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form textarea { resize: vertical; min-height: 140px; }
.form__error { margin: 0; font-size: .88rem; color: #b3261e; }
.form__privacy { font-size: .85rem; color: var(--muted); margin: 0; }
.form .btn { justify-self: start; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.5rem; font-weight: 500; }
.alert--success { background: #e7f3ea; color: #1d4d2b; border: 1px solid #bfe0c8; }

/* ---------- Substack posts (home) ---------- */

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.post {
    display: grid; gap: .3rem; text-decoration: none;
    background: rgba(255,255,255,.55); border: 1px solid rgba(0,0,0,.08); border-radius: 12px; padding: 1.1rem 1.2rem;
    color: var(--accent-ink);
}
.post:hover { background: rgba(255,255,255,.8); }
.post__date { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.post__title { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.25; }
.post__excerpt { font-size: .9rem; opacity: .85; }

@media (max-width: 820px) { .posts { grid-template-columns: 1fr; } }

/* ---------- Booking: pasos guiados ---------- */

/* Barra "¿ya tienes bono?" (encima del paso 1) */
.package-bar { background: var(--accent); color: var(--accent-ink); border-bottom: 1px solid rgba(0,0,0,.08); }
.package-bar__inner { display: flex; align-items: center; gap: 1rem; padding: .8rem 0; flex-wrap: wrap; }
.package-bar strong { font-family: var(--font-display); font-size: 1.05rem; white-space: nowrap; }
.package-bar span { font-size: .95rem; flex: 1; min-width: 260px; }
.package-bar .btn { flex-shrink: 0; }

.option__per { font-size: .85rem; color: var(--muted); background: var(--bg); border: 1px solid var(--line); padding: .15rem .55rem; border-radius: 999px; }
/* Rejilla con estructura fija (insignia | título, fecha debajo): con flex-wrap, según el ancho
   de pantalla unas filas partían y otras no, y la lista quedaba desalineada y a trompicones.
   OJO: selector con las DOS clases porque `.option__info { display:flex }` va más abajo en el
   archivo y, a igual especificidad, ganaría y dejaría esta rejilla muerta. */
.option__info.option__info--wrap {
    display: grid; grid-template-columns: auto 1fr;
    align-items: baseline; column-gap: .8rem; row-gap: .4rem;
}
.option__info.option__info--wrap strong { grid-column: 2; grid-row: 1; font-size: 1.05rem; }
.option__info.option__info--wrap .option__per { grid-column: 2; justify-self: start; }
.option__actions { display: flex; gap: .5rem; flex-shrink: 0; }

.book-step { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 2rem; }
.book-step .step__num { flex-shrink: 0; margin: .2rem 0 0; }
.book-step h2 { margin-bottom: .3rem; }
.book-step .lead { margin: 0; }

.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.choices--categories { grid-template-columns: repeat(3, 1fr); }
.choice {
    font: inherit; text-align: left; cursor: pointer;
    display: flex; flex-direction: column; gap: .5rem;
    background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius);
    padding: 1.4rem; box-shadow: var(--shadow); color: var(--ink);
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.choice:hover { border-color: var(--ink); transform: translateY(-2px); }
.choice:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice[aria-pressed="true"] { border-color: var(--cta); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cta) 22%, transparent), var(--shadow); }
.choice[aria-pressed="true"]::after {
    content: "Selected"; align-self: flex-start;
    background: var(--cta); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: .2rem .6rem; border-radius: 999px; margin-top: .2rem;
}
.choice strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
/* Las tarjetas del paso 1 (Group / One-to-one / Packages) más grandes — petición de Héctor */
.choices--categories .choice { padding: 1.8rem; gap: .65rem; }
.choices--categories .choice strong { font-size: 1.5rem; }
.choices--categories .choice__desc { font-size: 1.02rem; }
.choice__top { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.choice__desc { color: var(--muted); font-size: .95rem; }
.choice__meta { font-size: .85rem; color: var(--muted); font-weight: 600; margin-top: auto; padding-top: .4rem; border-top: 1px dashed var(--line); }
.choice__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); display: grid; place-items: center; margin-bottom: .2rem; position: relative; }
.choice__icon::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-ink); opacity: .85; }
.choice__icon--group::before { box-shadow: -12px 0 0 -4px var(--accent-ink), 12px 0 0 -4px var(--accent-ink); }
.choice__icon--individual::before { border-radius: 50% 50% 6px 6px; }
.choice__icon--course::before { border-radius: 3px; width: 20px; height: 14px; }
.choice__icon--package { background: var(--ink); }
.choice__icon--package::before { background: #fff; border-radius: 4px; width: 20px; height: 16px; }

/* Con JS, los pasos 2 y 3 solo se ven cuando se elige algo; sin JS, todo visible. */
.js .book-panel { display: none; }
.js .book-panel.is-active { display: block; }
.book-panel { scroll-margin-top: 84px; }

.book-options { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.option-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.option {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.1rem 1.4rem; box-shadow: var(--shadow);
}
.option__info { display: flex; align-items: baseline; gap: 1rem; }
.option__info strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.option__price { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.facts dt { min-width: 1.2rem; }
.facts__note { font-size: .92rem; color: var(--muted); margin: 1rem 0 0; padding-top: 1rem; border-top: 1px dashed var(--line); }

@media (max-width: 900px) { .choices, .choices--categories { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
    .choices, .choices--categories { grid-template-columns: 1fr; }
    .book-options { grid-template-columns: 1fr; }
    .option { flex-direction: column; align-items: flex-start; }
}

/* ---------- Legal pages ---------- */

.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4rem; }
.legal p, .legal li { font-size: 1rem; color: var(--ink); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .35rem; }
.legal__meta { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.table-wrap { overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1rem 0; }
.legal-table th, .legal-table td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.legal-table code { font-size: .85rem; background: var(--surface); padding: .1rem .35rem; border-radius: 4px; border: 1px solid var(--line); }

/* ---------- Cookie banner ---------- */

.cookie-banner {
    position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%);
    z-index: 90; width: min(100% - 2rem, 720px);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    background: var(--dark); color: #fff; padding: .9rem 1.2rem; border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: .92rem; color: var(--dark-muted); }
.cookie-banner a { color: #fff; }
@media (max-width: 600px) { .cookie-banner { flex-direction: column; align-items: flex-start; } }

/* ---------- Photos (marcadores hasta tener fotos reales) ---------- */

.photo {
    margin: 0;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px dashed var(--line);
    display: grid; place-items: center;
    text-align: center; color: var(--muted); font-size: .95rem; line-height: 1.4;
    overflow: hidden;
}
.photo small { font-size: .8rem; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo picture { display: contents; }
.photo--real { border: 0; background: var(--line); box-shadow: var(--shadow); }
.photo--portrait { aspect-ratio: 4 / 5; }
.photo--landscape { aspect-ratio: 4 / 3; }
.photo--square { aspect-ratio: 1; }
.about-grid__side { display: grid; gap: 1.2rem; align-content: start; }

/* Selector English / Español del Sobre mí */
.about-intro__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.about-intro__head .eyebrow { margin-bottom: 0; }
.lang-toggle { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.lang-toggle button {
    font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
    border: 0; background: transparent; color: var(--muted); padding: .4rem .95rem;
}
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- About ---------- */

.about-intro {
    display: grid;
    grid-template-columns: minmax(260px, 2fr) 3fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.about-intro__text .lead { margin-bottom: 1.2rem; }

.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
    content: "✓";
    position: absolute; left: 0; top: .1rem;
    width: 1.35rem; height: 1.35rem; border-radius: 50%;
    background: var(--accent); color: var(--accent-ink);
    font-size: .8rem; font-weight: 700;
    display: grid; place-items: center;
}

.facts {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
}
.facts h3 { margin-bottom: 1rem; }
.facts dl { margin: 0 0 1.4rem; display: grid; gap: .9rem; }
.facts dt { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: .15rem 0 0; }

.about-podcast {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

@media (max-width: 820px) {
    .about-intro, .about-grid, .about-podcast { grid-template-columns: 1fr; }
    .about-intro .photo { max-width: 360px; }
    .about-podcast .photo { order: -1; }
}

/* ---------- Sobre mí en la home (teaser hacia /about) ----------
   La foto entra por la izquierda y la tarjeta de texto se monta sobre su esquina
   (rejilla de 12 columnas, se solapan en la 7). Bajada un poco para romper la simetría. */

.about-teaser { display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; }
.about-teaser__photo {
    grid-area: 1 / 1 / 2 / 8;
    margin: 0; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); aspect-ratio: 4 / 3;
}
.about-teaser__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-teaser__text {
    grid-area: 1 / 7 / 2 / 13; align-self: center; margin-top: 3.5rem;
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow);
}
.about-teaser__text .lead { margin-bottom: 1.4rem; }

/* En móvil no hay sitio para el solape: foto arriba y texto debajo, sin tarjeta. */
@media (max-width: 820px) {
    .about-teaser { grid-template-columns: 1fr; gap: 1.6rem; }
    .about-teaser__photo, .about-teaser__text { grid-area: auto; margin-top: 0; }
    .about-teaser__text { background: transparent; border: 0; box-shadow: none; padding: 0; }
}

/* ---------- Home corta en móvil (petición de Héctor, 31 ago 2026) ----------
   En móvil la home termina tras "My goal…": clases, "how it works", episodios y newsletter
   se ocultan (.home-desktop-only) y en su lugar salen tres botones, uno por caja del
   triángulo y con su mismo color (marino / claro / amarillo). En escritorio, al revés:
   los botones no existen y todo se ve como siempre. */

.quick-links { display: none; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: color-mix(in srgb, var(--accent) 85%, black); }

@media (max-width: 820px) {
    .home-desktop-only { display: none; }
    .quick-links { display: block; }
    .quick-links__inner { display: grid; gap: .9rem; }
    .quick-links .btn { text-align: center; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--dark); color: var(--dark-muted); padding: 3.5rem 0 1.5rem; margin-top: 0; }
.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 2rem;
}
.site-footer__brand p { margin-top: .8rem; max-width: 32ch; font-size: .95rem; }
.brand--footer { font-size: 1.2rem; }
.site-footer h3 { color: #fff; font-family: var(--font-body); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--dark-muted); text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom { border-top: 1px solid #2a2a2a; margin-top: 2.5rem; padding-top: 1.2rem; font-size: .85rem; }
.site-footer__bottom p { margin: 0; }

@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Fundido al hacer scroll (solo móvil, todas las páginas) ----------
   Lo pidió Héctor (ago 2026): al bajar, el bloque que sale se desvanece mientras
   entra el siguiente. Es CSS puro (scroll-driven animations), sin JavaScript.

   Detalles importantes:
   - Se anima el .container, no la <section>: así las bandas de color y sus bordes
     se quedan quietos y solo cruza el contenido.
   - Se excluye la PRIMERA sección de cada página (el hero de la home y la .page-band
     del resto): al cargar ya está "medio entrada" en su recorrido y se vería atenuada.
   - La ÚLTIMA solo tiene entrada, no salida: al final de la página no queda scroll
     para completar la salida y el CTA de reserva se quedaría a medio borrar.
   - Exclusiones obligadas, no manías:
       .filters       → es position:sticky; se quedaría pegada arriba y vacía.
       .episode-layout→ contiene .episode-aside, que es sticky; transform y filter
                        en un ancestro rompen el sticky de sus descendientes.
       :has(form)     → al abrir el teclado en el móvil cambia el viewport, se
                        recalcula la animación y da saltos mientras escribes.
   - Si el navegador no soporta scroll-driven animations (hoy, Firefox) el @supports
     lo descarta entero y todo se ve normal. Y se respeta prefers-reduced-motion. */

@keyframes swh-scroll-fade {
    entry 0%   { opacity: 0; transform: translateY(4rem) scale(.84); filter: blur(6px); }
    entry 70%  { opacity: 1; transform: none; filter: blur(0); }
    exit  30%  { opacity: 1; transform: none; filter: blur(0); }
    exit  100% { opacity: 0; transform: translateY(-3rem) scale(.88); filter: blur(6px); }
}
@keyframes swh-scroll-fade-in {
    entry 0%   { opacity: 0; transform: translateY(4rem) scale(.84); filter: blur(6px); }
    entry 70%  { opacity: 1; transform: none; filter: blur(0); }
}

@media (max-width: 820px) and (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        #main > section:not(:first-child):not(:last-child):not(.filters):not(:has(form)) > .container:not(.episode-layout) {
            animation: swh-scroll-fade linear both;
            animation-timeline: view();
        }
        #main > section:last-child:not(:first-child):not(.filters):not(:has(form)) > .container:not(.episode-layout) {
            animation: swh-scroll-fade-in linear both;
            animation-timeline: view();
        }
    }
}

/* ---------- Viajes de inmersión (/trips, oct 2026) ---------- */

/* Plan del viaje: checklist a la izquierda, tarjeta de preinscripción a la derecha */
.trip-plan { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; margin-top: clamp(2rem, 5vw, 3.5rem); }
.trip-plan h3 { margin-bottom: 1rem; }
.trip-cta .btn { margin-bottom: 1rem; }
.facts--accent .facts__note { color: var(--accent-ink); opacity: .8; }

/* Reseña larga a toda columna */
.testimonial--big { max-width: none; }
.testimonial--big p { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; }

/* Galería: cajas 4:3 uniformes (las verticales se recortan al centro con object-fit) */
/* 8 fotos → 4+4 en escritorio (a 3 columnas quedaba una fila coja), 2+2+2+2 en móvil */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery__item { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--line); position: relative; }
.gallery__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery__item picture { display: contents; }

@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .trip-plan { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } }

/* "¿Te suena?": texto + foto al lado (en móvil, foto encima) */
.trip-why { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.trip-why__photo { aspect-ratio: 4 / 5; position: sticky; top: 88px; }
.trip-plan__side { display: grid; gap: 1.2rem; }
.gallery__item a { display: block; position: absolute; inset: 0; cursor: zoom-in; }
@media (max-width: 820px) {
    .trip-why { grid-template-columns: 1fr; }
    /* En móvil el mapa va DESPUÉS del texto (petición de Andrey): primero el gancho, luego el dónde */
    .trip-why__photo { order: 1; aspect-ratio: 4 / 3; position: static; }
}
/* En móvil, la galería de dos en dos (petición de Andrey): 4 filas compactas en vez de 8 pantallazos */
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: .6rem; } }

/* ---------- Visor de fotos (lightbox) — JS en site.js, sin dependencias ----------
   Lo crea el JS como hijo directo de <body>: dentro de un .container animado por el fundido
   al scroll (transform/filter) un position:fixed dejaría de ser "fixed". */
.lightbox {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(20, 48, 77, .96);
    display: flex; align-items: center; justify-content: center;
    touch-action: pan-y; user-select: none;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
    max-width: 100vw; max-height: 100vh; width: auto; height: auto;
    object-fit: contain; cursor: zoom-out;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox__btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255,255,255,.14); color: #fff; font-size: 1.6rem; line-height: 1;
    display: grid; place-items: center;
}
.lightbox__btn:hover { background: rgba(255,255,255,.28); }
.lightbox__btn--prev { left: .8rem; }
.lightbox__btn--next { right: .8rem; }
.lightbox__close { position: absolute; top: .8rem; right: .8rem; transform: none; }
.lightbox__count {
    position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
    color: #fff; font-size: .9rem; font-weight: 600; letter-spacing: .06em;
    background: rgba(0,0,0,.35); padding: .3rem .8rem; border-radius: 999px;
}
/* En móvil las flechas estorban al deslizar: se ocultan, queda deslizar + contador + X */
@media (max-width: 600px) { .lightbox__btn--prev, .lightbox__btn--next { display: none; } }

/* Imágenes de contexto de /trips (libres, Wikimedia Commons; créditos al pie de la galería) */
.trip-why__photo.trip-map {
    aspect-ratio: auto; max-width: 320px; margin: 0 auto;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.2rem 1.2rem 1rem; text-align: center; box-shadow: var(--shadow);
}
.trip-map img { width: 100%; height: auto; display: block; }
.trip-photo { margin: 0; }
.trip-photo img { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: var(--shadow); }
.trip-map figcaption, .trip-photo figcaption { font-size: .85rem; color: var(--muted); margin-top: .7rem; line-height: 1.4; }
.credits { font-size: .78rem; color: var(--muted); margin: 2rem 0 0; }
.credits a { color: inherit; }

/* Banda final con la playa de Calblanque detrás (CC0), oscurecida para que el texto se lea */
.cta-band--photo {
    background-color: var(--dark);
    background-image: linear-gradient(rgba(20,48,77,.78), rgba(20,48,77,.78)), url(../img/trips/context/calblanque-1600.jpg);
    background-size: cover; background-position: center;
}
@supports (background-image: image-set(url("a.webp") type("image/webp"))) {
    .cta-band--photo {
        background-image: linear-gradient(rgba(20,48,77,.78), rgba(20,48,77,.78)),
            image-set(url(../img/trips/context/calblanque-1600.webp) type("image/webp"), url(../img/trips/context/calblanque-1600.jpg) type("image/jpeg"));
    }
}
@media (max-width: 820px) { .trip-why__photo.trip-map { max-width: 260px; } }

/* Reparto del plan del viaje: texto (col 1, fila 1) + tarjeta (col 1, fila 2) | foto (col 2, las dos filas).
   En móvil se apila en orden natural: lista → foto → tarjeta. */
.trip-plan { grid-template-rows: auto auto; }
.trip-plan__text { grid-column: 1; grid-row: 1; }
.trip-plan .trip-cta { grid-column: 1; grid-row: 2; align-self: start; }
.trip-plan__side { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 820px) {
    .trip-plan { grid-template-rows: none; }
    .trip-plan__text, .trip-plan .trip-cta, .trip-plan__side { grid-column: auto; grid-row: auto; }
    .trip-plan__text { order: 1; } .trip-plan__side { order: 2; } .trip-plan .trip-cta { order: 3; }
}
/* El mapa llena su columna (a 320px se veía minúsculo en pantallas grandes) */
.trip-why__photo.trip-map { max-width: none; padding: 1.6rem 1.6rem 1.2rem; }
@media (max-width: 820px) { .trip-why__photo.trip-map { max-width: 420px; } }

/* Créditos de las imágenes libres: pequeños y pegados a SU imagen (nunca junto a las fotos de Héctor) */
.credit { display: block; font-size: .72rem; color: var(--muted); margin-top: .35rem; line-height: 1.4; }
.credit a { color: inherit; }
.cta-band--photo { position: relative; }
.cta-band__credit { position: absolute; right: 1rem; bottom: .6rem; margin: 0; color: rgba(255,255,255,.55); text-align: right; }
.cta-band__credit a { color: inherit; }
/* Fondo de la banda: recorte panorámico 8:3 nítido (2400 px; 1200 en móvil), sustituye al de 1600 que se veía pixelado */
.cta-band--photo {
    background-image: linear-gradient(rgba(20,48,77,.72), rgba(20,48,77,.72)), url(../img/trips/context/calblanque-wide-2400.jpg);
}
@supports (background-image: image-set(url("a.webp") type("image/webp"))) {
    .cta-band--photo {
        background-image: linear-gradient(rgba(20,48,77,.72), rgba(20,48,77,.72)),
            image-set(url(../img/trips/context/calblanque-wide-2400.webp) type("image/webp"), url(../img/trips/context/calblanque-wide-2400.jpg) type("image/jpeg"));
    }
}
@media (max-width: 820px) {
    .cta-band--photo { background-image: linear-gradient(rgba(20,48,77,.72), rgba(20,48,77,.72)), url(../img/trips/context/calblanque-wide-1200.jpg); padding-bottom: 3.2rem; }
    .cta-band__credit { right: 0; left: 0; text-align: center; }
}

/* Plan del viaje sin foto lateral (oct 2026): lista a la izquierda, tarjeta de preinscripción a la derecha */
.trip-plan .trip-cta { grid-column: 2; grid-row: 1; }
@media (max-width: 820px) { .trip-plan .trip-cta { grid-column: auto; grid-row: auto; } }

/* Tira de contexto: 4 fotos verticales 3:4 (tradición x2 + comida x2); 2 x 2 en móvil */
.trip-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: clamp(2rem, 5vw, 3.5rem); }
.trip-strip__item { margin: 0; }
.trip-strip__img {
    display: block; position: relative; aspect-ratio: 3 / 4; overflow: hidden;
    border-radius: var(--radius); box-shadow: var(--shadow); background: var(--line); cursor: zoom-in;
}
.trip-strip__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trip-strip__img picture { display: contents; }
.trip-strip figcaption { font-size: .88rem; color: var(--muted); margin-top: .6rem; line-height: 1.4; }
@media (max-width: 820px) { .trip-strip { grid-template-columns: repeat(2, 1fr); gap: .7rem; } }

/* Reparto final de /trips (5 oct 2026): tradición junto al plan, comida junto a la reseña.
   Plan a dos mitades: lista + tarjeta a la izquierda | par de fotos de tradición a la derecha. */
.trip-plan { grid-template-columns: 1fr 1fr; }
.trip-plan .trip-cta { grid-column: 1; grid-row: 2; }
.trip-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.trip-review { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 820px) {
    .trip-plan { grid-template-columns: 1fr; }
    .trip-plan .trip-cta { grid-column: auto; grid-row: auto; }
    .trip-review { grid-template-columns: 1fr; }
}

/* ---------- /trips: "El viaje" en bento (maqueta de Andrey, 5 oct 2026) ----------
   Rejilla de 3 columnas: resumen (2 col) + foto de Héctor (col 3, tres filas) / 4 puntos en 2x2 /
   foto del Bando (1 col) + tarjeta de preinscripción (2 col). Tarjetas blancas sobre el fondo crema. */
.trip-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.trip-bento [hidden] { display: none !important; } /* las píldoras llevan display propio: que el selector de idioma mande */
.bento-card { background: var(--surface); border-radius: 20px; padding: clamp(1.4rem, 3vw, 2.4rem); }
.bento-card--intro { grid-column: 1 / span 2; }
.bento-card--intro h2 { margin-bottom: .6rem; }
.bento-card--intro .lead { max-width: none; margin-bottom: 1.2rem; font-size: 1.05rem; }

.pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill { display: inline-flex; align-items: center; padding: .45rem .95rem; border-radius: 999px; font-size: .9rem; font-weight: 600; }
.pill--dark { background: var(--dark); color: #fff; }
.pill--cta { background: color-mix(in srgb, var(--cta) 18%, #fff); color: #9c4317; }
.pill--accent { background: color-mix(in srgb, var(--accent) 30%, #fff); color: #6b4e0c; }

.bento-card--point { padding: clamp(1.2rem, 2.4vw, 1.8rem); }
.bento-num { display: block; font-family: var(--font-display); font-weight: 600; font-size: 2rem; line-height: 1; color: var(--cta); margin-bottom: .7rem; }
.bento-card--point h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; margin-bottom: .4rem; }
.bento-card--point p { margin: 0; color: var(--muted); font-size: .95rem; }

.bento-photo { margin: 0; position: relative; border-radius: 20px; overflow: hidden; background: var(--line); }
.bento-photo > a { position: absolute; inset: 0; display: block; cursor: zoom-in; }
.bento-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento-photo picture { display: contents; }
.bento-photo--hector { grid-column: 3; grid-row: 1 / span 3; min-height: 480px; }
.bento-photo--bando { grid-column: 1; aspect-ratio: 7 / 5; }
/* Pie en tarjeta blanca sobre la foto de Héctor */
.bento-photo__card {
    position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
    background: var(--surface); border-radius: 12px; padding: .8rem 1rem;
    font-size: .92rem; font-weight: 600; color: var(--ink); box-shadow: var(--shadow);
}
/* Pie + crédito sobre la foto del Bando, con degradado para que se lea */
.bento-photo__overlay {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1rem .8rem;
    background: linear-gradient(transparent, rgba(0,0,0,.72));
    color: #fff; font-size: .88rem; font-weight: 600; line-height: 1.35;
}
.bento-photo__overlay .credit { color: rgba(255,255,255,.8); font-weight: 400; }

.bento-cta { grid-column: 2 / span 2; background: var(--dark); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.bento-cta h3 { color: #fff; font-size: 1.7rem; margin-bottom: .5rem; }
.bento-cta p { color: var(--dark-muted); margin-bottom: 1.3rem; }
.bento-cta p strong { color: var(--accent); }

@media (max-width: 820px) {
    .trip-bento { grid-template-columns: 1fr 1fr; }
    .bento-card--intro, .bento-photo--hector, .bento-photo--bando, .bento-cta { grid-column: 1 / -1; grid-row: auto; }
    .bento-card--intro { order: 0; } .bento-photo--hector { order: 1; min-height: 0; aspect-ratio: 4 / 5; }
    .bento-card--point { order: 2; } .bento-photo--bando { order: 3; aspect-ratio: 4 / 3; } .bento-cta { order: 4; }
}
@media (max-width: 600px) { .bento-card--point { grid-column: 1 / -1; } }

/* ---------- /trips: mosaico reseña + fotos (maqueta de Andrey, 5 oct 2026) ----------
   Escritorio: 4 columnas, la cita ocupa el centro (2x2). Móvil: 2 columnas, las apaisadas de
   grupo y la cita a todo el ancho. El orden del HTML es el del móvil; aquí manda grid-area. */
.mosaic {
    display: grid; gap: .9rem;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, minmax(210px, auto));
    grid-template-areas:
        "sev  sev  tree cast"
        "chur q    q    mar"
        "cald q    q    gift"
        "aut  fie  fie  bar";
}
.mosaic__item { margin: 0; position: relative; border-radius: 16px; overflow: hidden; background: var(--line); min-height: 0; }
.mosaic__item > a { position: absolute; inset: 0; display: block; cursor: zoom-in; }
.mosaic__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mosaic__item picture { display: contents; }
.mosaic__label {
    position: absolute; left: .7rem; bottom: .7rem; pointer-events: none;
    background: var(--surface); color: var(--ink); border-radius: 8px;
    padding: .3rem .7rem; font-size: .82rem; font-weight: 600; box-shadow: var(--shadow);
}
.mosaic__quote {
    margin: 0; background: var(--dark); color: #fff; border-radius: 16px;
    padding: clamp(1.4rem, 3vw, 2.4rem); display: flex; flex-direction: column; justify-content: center;
}
.mosaic__mark { font-family: var(--font-display); font-size: 3.2rem; line-height: .7; color: var(--accent); margin-bottom: .6rem; }
.mosaic__quote p { font-family: var(--font-display); font-size: clamp(1.02rem, 1.45vw, 1.22rem); line-height: 1.5; margin-bottom: 1.1rem; }
.mosaic__quote footer { font-size: .9rem; color: var(--dark-muted); }
.mosaic__quote footer strong { color: #fff; }

@media (max-width: 820px) {
    .mosaic {
        grid-template-columns: 1fr 1fr; gap: .6rem;
        grid-template-rows: none; grid-auto-rows: minmax(150px, auto);
        grid-template-areas:
            "sev  sev"
            "tree cast"
            "q    q"
            "chur cald"
            "mar  gift"
            "fie  fie"
            "aut  bar";
    }
    .mosaic__item[style*="sev"], .mosaic__item[style*="fie"] { min-height: 210px; }
}

/* ---------- Logo: la H de Héctor delante del nombre (oct 2026) ----------
   Monograma amarillo + tilde terracota: solo sobre fondo marino (cabecera y pie).
   El PNG se reconstruyó a 1200 px desde el original de 138 px (contenido/logo/). */
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand__logo { height: 2.3rem; width: auto; flex-shrink: 0; }
.brand--footer .brand__logo { height: 2rem; }

/* ---------- /trips: "Why this trip" en comparativa (maqueta de Andrey, 5 oct 2026) ---------- */
.why-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.why-head h2 { margin: 0; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.compare__card { background: var(--surface); border-radius: 20px; padding: clamp(1.4rem, 3vw, 2.2rem); }
.compare__card--dark { background: var(--dark); color: #fff; }
.compare__label { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.compare__card--dark .compare__label { color: var(--accent); }
.compare__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.compare__list li { position: relative; padding-left: 2.2rem; }
.compare__list li::before { position: absolute; left: 0; top: -.05em; font-size: 1.2rem; font-weight: 600; line-height: 1.4; }
.compare__list--no li::before { content: "✕"; color: var(--muted); }
.compare__list--yes li::before { content: "✓"; color: var(--accent); }

.why-story { display: grid; grid-template-columns: 2fr 3fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; margin-top: clamp(2rem, 4vw, 2.8rem); }
.why-map { margin: 0; background: var(--surface); border-radius: 20px; padding: 1.5rem 1.5rem 1.2rem; }
.why-story__text h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-bottom: 1rem; }
.why-story__text p { color: var(--muted); font-size: 1.05rem; }
.why-story__text p:last-child { margin-bottom: 0; }

@media (max-width: 820px) {
    .compare, .why-story { grid-template-columns: 1fr; }
    .why-map { order: 1; max-width: 420px; margin-inline: auto; } /* en móvil el mapa va después del texto */
}
