/* =====================================================
   x un mundo mejor — Sistema de diseño
   Paleta clara y cálida · animaciones estilo Mistereia
   ===================================================== */

:root {
  color-scheme: light;

  /* Colores base */
  --bg:        #FAFAF8;
  --bg-2:      #F4F1EA;
  --surface:   #FFFFFF;
  --ink:       #26241F;
  --ink-soft:  #55514A;
  --muted:     #8B867B;
  --line:      #E9E4DA;

  /* Acentos de marca (extraídos de la ilustración) */
  --ochre:      #DDA23A;
  --ochre-deep: #C4871F;
  --ochre-light: #F3CD82;
  --ochre-light-deep: #E9BA5C;
  --teal:       #3E9AA6;
  --teal-deep:  #2E7B85;
  --wood:       #B99E7D;
  --green:      #6FA860;

  /* Tipografía */
  --font-display: "EB Garamond", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-body:    "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Métricas */
  --maxw: 1180px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(38,36,31,.05);
  --shadow-md: 0 14px 40px rgba(38,36,31,.09);
  --shadow-lg: 0 30px 70px rgba(38,36,31,.13);
  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 82px;
}

/* Escalado de texto (accesibilidad) */
html { font-size: calc(100% * var(--fs, 1)); }

/* =============== RESET =============== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
em { font-style: italic; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 44px); }
.section { padding-block: clamp(48px, 7vw, 96px); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 400;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s;
}

/* Visualmente oculto pero accesible: para el <h1> semántico del hero,
   que ya no se muestra como titular grande pero sigue existiendo para SEO
   y lectores de pantalla. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus { top: 12px; }

/* Foco visible accesible */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px;
}

/* =============== BARRA DE PROGRESO =============== */
.read-progress {
  position: fixed; top: 0; left: 0; height: 6px; width: 100%; z-index: 300;
  background: linear-gradient(90deg, var(--ochre) 0%, var(--ochre-deep) 30%, var(--teal) 65%, var(--teal-deep) 100%);
  box-shadow: 0 1px 12px rgba(196,135,31,.45), 0 0 4px rgba(62,154,166,.4);
  transform: scaleX(0); transform-origin: left;
  transition: transform .12s linear;
}

/* =============== BARRA DE DESPLAZAMIENTO (personalizada a la marca) =============== */
html { scrollbar-width: thin; scrollbar-color: var(--ochre) var(--bg-2); }
::-webkit-scrollbar { width: 13px; height: 13px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--ochre), var(--teal));
  border-radius: 100px; border: 3px solid var(--bg-2);
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--ochre-deep), var(--teal-deep)); background-clip: padding-box; }

/* =============== TIPOGRAFÍA COMÚN =============== */
.eyebrow, .kicker {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--ochre-deep);
}
.kicker { display: inline-block; margin-bottom: 14px; }
.kicker-light { color: var(--ochre); }

.section-head { max-width: 660px; margin-bottom: clamp(38px, 6vw, 60px); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(1.9rem, 4.4vw, 3rem); color: var(--ink); }
.section-sub { margin-top: 14px; color: var(--ink-soft); font-size: 1.05rem; }

/* Resaltado animado de palabras clave */
.hl {
  background-color: transparent;
  background-image: linear-gradient(120deg, rgba(221,162,58,.32), rgba(221,162,58,.32));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 0% 42%;
  transition: background-size .9s .35s var(--ease);
  padding: 0 .06em; border-radius: 3px; color: inherit;
}
.reveal.in .hl, .in .hl { background-size: 100% 42%; }

/* Reparto de palabras (title split) */
/* Sin overflow:hidden ni caja de máscara: con texto en cursiva con degradado
   (background-clip:text) un recorte por caja puede fallar en algunos
   navegadores y cortar la tinta real del glifo. En su lugar, cada palabra
   aparece con un fundido + ligero desplazamiento, sin ninguna caja que
   pueda recortar nada — a prueba de swashes, descendentes o degradados,
   también en apartados que se añadan en el futuro. */
[data-split] .w { display: inline-block; vertical-align: top; }
[data-split] .wi {
  display: inline-block; opacity: 0; transform: translateY(0.35em);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-split].in .wi { opacity: 1; transform: none; }

/* =============== BOTONES =============== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 100px;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s;
  will-change: transform;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--ochre-deep); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-3px); }
.btn-block { width: 100%; }

/* =============== HEADER =============== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(250,250,248,0);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.site-header.scrolled {
  height: 66px;
  background: rgba(250,250,248,.86);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
/* En dispositivos táctiles, el blur del backdrop repinta en cada frame de
   scroll y provoca tirones en móviles modestos. Usamos un fondo sólido. */
@media (hover: none), (pointer: coarse) {
  .site-header.scrolled {
    background: rgba(250,250,248,.97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { flex-shrink: 0; display: inline-flex; }
.brand-logo { height: 56px; width: auto; flex-shrink: 0; transition: height .4s var(--ease); }
.site-header.scrolled .brand-logo { height: 46px; }

.nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; }
.nav-link {
  position: relative; padding: 9px 10px; border-radius: 100px; white-space: nowrap;
  font-weight: 500; font-size: .85rem; color: var(--ink-soft);
  transition: color .25s, background .25s;
}
.nav-link::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px;
  background: var(--ochre); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-cta { background: var(--ink); color: #fff !important; padding-inline: 18px; margin-left: 10px; }
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--ochre-deep); }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; padding: 0 10px; z-index: 120; }
.nav-toggle span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============== HERO =============== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 12px); padding-bottom: 24px;
  background:
    radial-gradient(1100px 700px at 78% 12%, rgba(62,154,166,.10), transparent 60%),
    radial-gradient(900px 640px at 10% 90%, rgba(221,162,58,.12), transparent 62%),
    var(--bg);
  overflow: hidden;
}
.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.hero-glow {
  position: absolute; z-index: 0; top: 8%; right: 4%;
  width: 60vw; max-width: 720px; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,255,255,.9), rgba(255,255,255,0) 68%);
  filter: blur(10px);
}
/* Hero apilado: imagen -> logo -> texto de propósito, todo centrado */
.hero-stack {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: clamp(14px, 2.6vh, 28px);
}
/* Imagen sin tarjeta ni sombra: PNG/WebP con transparencia real recortada
   al contenido, así que se funde con el fondo sin ningún truco de blend.
   Prioriza el tamaño de la imagen y el logo sobre el del texto: en
   pantallas bajas (portátiles) ambos se muestran lo más grandes posible
   dentro del primer vistazo, y si el texto no cabe entero, se lee
   haciendo un pequeño scroll en vez de encoger la imagen o el logo. */
.hero-media { position: relative; width: 100%; max-width: min(860px, 74vh, 94%); }
.hero-media-frame { position: relative; animation: floaty 7s ease-in-out infinite; }
.hero-img { width: 100%; display: block; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

.hero-logo { height: clamp(76px, 15vh, 140px); width: auto; }

.hero-purpose {
  max-width: 700px; color: var(--ink);
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.12rem, 2.3vw, 1.46rem); line-height: 1.55;
}
.hero-purpose em { font-style: italic; color: var(--teal-deep); }

/* =============== CABECERA DE PÁGINA (subpáginas) =============== */
.page-hero {
  position: relative; padding-top: calc(var(--header-h) + 56px); padding-bottom: 56px;
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(62,154,166,.10), transparent 60%),
    radial-gradient(700px 460px at 5% 100%, rgba(221,162,58,.10), transparent 62%),
    var(--bg);
  overflow: hidden;
}
.page-hero .breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.page-hero .breadcrumb a { color: var(--ink-soft); transition: color .2s; }
.page-hero .breadcrumb a:hover { color: var(--ochre-deep); }
.page-hero .section-title { max-width: 760px; }
.page-hero .section-sub { max-width: 640px; }

/* =============== PROPÓSITO / MANIFIESTO =============== */
.proposito { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.manifiesto { max-width: 900px; }
.manifiesto-lead { font-size: clamp(1.15rem, 2.2vw, 1.42rem); line-height: 1.6; color: var(--ink); font-family: var(--font-display); font-weight: 400; }
.dropcap { float: left; font-family: var(--font-display); font-size: 4.2rem; line-height: .82; padding: 6px 12px 0 0; color: var(--ochre-deep); font-weight: 500; }
.pull-quote {
  margin: clamp(34px, 5vw, 54px) 0; padding: 8px 0 8px 30px;
  border-left: 3px solid var(--ochre);
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 2.3vw, 1.55rem);
  line-height: 1.45; color: var(--teal-deep); max-width: 800px;
}
.manifiesto-body { display: grid; gap: 18px; max-width: 780px; }
.manifiesto-body p { color: var(--ink-soft); font-size: 1.05rem; }
.manifiesto-body strong { color: var(--ink); }

.herramientas-label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-bottom: 16px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 9px 18px; border-radius: 100px; background: var(--surface);
  border: 1px solid var(--line); font-size: .92rem; font-weight: 500; color: var(--ink-soft);
  transition: transform .25s var(--ease), border-color .25s, color .25s;
}
.chips li:hover { transform: translateY(-3px); border-color: var(--ochre); color: var(--ink); }

/* =============== SOBRE MÍ =============== */
/* Imagen arriba a modo de banner centrado, y debajo todo el contenido
   en una columna centrada en la página (simétrica), en vez del grid a
   dos columnas anterior. */
.sobre-inner { display: flex; flex-direction: column; align-items: center; gap: clamp(32px, 5vw, 52px); }
/* Foto full-bleed (de punta a punta, sin bordes redondeados) */
.sobre-photo-full { width: 100%; margin: 0; line-height: 0; }
.sobre-photo-full img {
  width: 100%; height: auto; display: block; border-radius: 0;
  max-height: 620px; object-fit: cover; object-position: center;
}
.sobre-copy-wide { max-width: 820px; margin-inline: auto; }
.sobre-media { position: relative; width: 100%; max-width: 880px; }
.sobre-media-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.sobre-media-frame img { width: 100%; height: auto; max-height: 440px; object-fit: cover; display: block; }
.sobre-copy { max-width: 720px; width: 100%; }
.sobre-copy p { color: var(--ink-soft); margin-top: 16px; }
.quote-soft {
  margin: 22px 0; padding: 20px 24px; background: var(--surface);
  border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 14px;
  font-family: var(--font-display); font-style: italic; color: var(--ink); font-size: 1.05rem; line-height: 1.5;
}
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin: 30px 0 6px; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.6rem); color: var(--ink); font-weight: 600; line-height: 1; }
.stat-label { font-size: .82rem; color: var(--muted); margin-top: 6px; letter-spacing: .02em; text-align: center; }
.sobre-copy > .btn { margin: 26px auto 0; display: block; width: fit-content; }

/* =============== ÁREAS =============== */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.area-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 30px; box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.area-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: linear-gradient(135deg, var(--ochre), var(--teal));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s var(--ease); pointer-events: none;
}
.area-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(221,162,58,.20); }
.area-card:hover::after { opacity: 1; }
.area-icon {
  position: relative; width: 118px; height: 118px; margin-bottom: 20px;
  display: grid; place-items: center;
}
.area-icon::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  background: radial-gradient(circle, rgba(221,162,58,.18), transparent 70%);
  opacity: 0; transform: scale(.6); transition: opacity .5s, transform .5s var(--ease);
}
.area-card:hover .area-icon::before { opacity: 1; transform: scale(1); }
.area-icon img { width: 100%; height: 100%; object-fit: contain; transition: transform .55s var(--ease); }
.area-card:hover .area-icon img { transform: scale(1.12) rotate(-4deg); }
.area-card h3 { font-size: 1.4rem; margin-bottom: 10px; color: var(--ink); }
.area-card p { color: var(--ink-soft); font-size: .97rem; flex-grow: 1; }
.area-link { margin-top: 18px; font-weight: 600; font-size: .93rem; color: var(--ochre-deep); display: inline-flex; align-items: center; gap: 7px; }
.area-link::after { content: "→"; transition: transform .3s var(--ease); }
.area-card:hover .area-link::after { transform: translateX(5px); }

/* =============== BLOQUES DIVIDIDOS (media + texto) =============== */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 70px); align-items: center; }
.educativos { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.split-media { position: relative; }
.tilt-card, .split-media img { border-radius: var(--radius); }
.split-media img { width: 100%; box-shadow: var(--shadow-md); }
.tilt-card {
  overflow: hidden; box-shadow: var(--shadow-md);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tilt-card:hover { transform: perspective(900px) rotateX(2deg) rotateY(-4deg) translateY(-4px); box-shadow: var(--shadow-lg); }
.split-copy p { color: var(--ink-soft); margin-top: 16px; }
.feature-list { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 24px; }
.feature-list li {
  position: relative; padding: 8px 16px 8px 34px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 100px; font-size: .9rem; font-weight: 500; color: var(--ink-soft);
}
.feature-list li::before {
  content: "✓"; position: absolute; left: 14px; color: var(--green); font-weight: 700;
}
.feature-list-plain { flex-direction: column; flex-wrap: nowrap; gap: 10px; }
.feature-list-plain li { background: none; border: none; border-radius: 0; padding: 0 0 0 26px; font-weight: 400; font-size: 1rem; color: var(--ink-soft); }
.feature-list-plain li::before { left: 0; }

/* =============== PNL =============== */
.pnl-defs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 54px; }
.pnl-defs-2 { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin-left: auto; margin-right: auto; }
.def-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.def-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.def-card h3 { font-size: 1.35rem; margin-bottom: 12px; color: var(--ink); }
.def-card h3::before { content: ""; display: block; width: 40px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--ochre), var(--teal)); margin-bottom: 14px; }
.def-card p { color: var(--ink-soft); font-size: .98rem; }

.tabs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.tabs-head { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tab-btn {
  flex: 1; min-width: 110px; padding: 13px 18px; border-radius: 12px; font-weight: 600; font-size: .98rem;
  color: var(--ink-soft); transition: background .3s, color .3s;
}
.tab-btn:hover { background: var(--bg-2); }
.tab-btn.active { background: var(--ink); color: #fff; }
.tab-panel { display: none; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 44px); padding: clamp(24px, 4vw, 40px); align-items: center; }
.tab-panel.active { display: grid; animation: fadeIn .5s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tab-media { border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.tab-media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.tab-content h3 { font-size: 1.6rem; margin-bottom: 18px; color: var(--ink); }
.tag-list { display: flex; flex-wrap: wrap; row-gap: 14px; column-gap: 28px; }
.tag-list li {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  font-size: .95rem; font-weight: 600; color: var(--teal-deep); padding-bottom: 3px;
  opacity: 0; transform: translateY(6px); animation: tagIn .5s var(--ease) forwards;
}
.tag-list li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
  flex-shrink: 0; transition: transform .25s var(--ease), background .25s var(--ease);
}
.tag-list li::after {
  content: ""; position: absolute; left: 15px; right: 0; bottom: 0; height: 1.5px;
  background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.tag-list li:hover::before { transform: scale(1.5); background: var(--ochre); }
.tag-list li:hover::after { transform: scaleX(1); }
@keyframes tagIn { to { opacity: 1; transform: none; } }
.tag-list li:nth-child(1) { animation-delay: .03s; }
.tag-list li:nth-child(2) { animation-delay: .07s; }
.tag-list li:nth-child(3) { animation-delay: .11s; }
.tag-list li:nth-child(4) { animation-delay: .15s; }
.tag-list li:nth-child(5) { animation-delay: .19s; }
.tag-list li:nth-child(6) { animation-delay: .23s; }
.tag-list li:nth-child(7) { animation-delay: .27s; }
.tag-list li:nth-child(8) { animation-delay: .31s; }
.tag-list li:nth-child(9) { animation-delay: .35s; }
.tag-list li:nth-child(10) { animation-delay: .39s; }
.tag-list li:nth-child(11) { animation-delay: .43s; }
.tag-list li:nth-child(12) { animation-delay: .47s; }
.pnl-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 0; }

/* =============== VÍDEOS (facade con carga diferida) =============== */
/* La miniatura local se muestra al instante; el iframe pesado de YouTube
   solo se carga al pulsar (mejor rendimiento, LCP y privacidad). */
.video-feature { display: flex; flex-direction: column; align-items: center; gap: clamp(24px, 4vw, 40px); max-width: 880px; margin-inline: auto; }
.video-feature + .video-feature { margin-top: clamp(32px, 5vw, 56px); }
.video-facade {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; cursor: pointer; background: #0d0d0d;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease), filter .4s; }
.video-facade::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.34));
  transition: opacity .4s;
}
.video-facade:hover img { transform: scale(1.045); filter: saturate(1.05); }
.video-play {
  position: absolute; inset: 0; margin: auto; z-index: 2;
  width: clamp(64px, 9vw, 84px); height: clamp(64px, 9vw, 84px); border-radius: 50%;
  display: grid; place-items: center; padding-left: 4px;
  background: rgba(255,255,255,.94); color: var(--ochre-deep);
  box-shadow: 0 12px 34px rgba(0,0,0,.32);
  transition: transform .3s var(--ease), background .3s;
}
.video-facade:hover .video-play { transform: scale(1.1); background: #fff; }
.video-facade:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }
.video-facade.loaded { cursor: default; }
.video-facade.loaded::after, .video-facade.loaded .video-play { display: none; }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* =============== EDITORIAL =============== */
.editorial-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.ed-action {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.ed-action:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--ochre); }
.ed-action h3 { font-size: 1.18rem; color: var(--ink); margin-bottom: 8px; }
.ed-action p { color: var(--ink-soft); font-size: .95rem; }
.illustrators { margin-top: 8px; }

/* =============== RECURSOS =============== */
.recursos { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.audio-card {
  display: flex; align-items: center; gap: 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-md);
  max-width: 420px; text-decoration: none; color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
a.audio-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg, var(--shadow-md)); }
.audio-ico {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--ochre), var(--teal-deep));
  box-shadow: 0 8px 22px rgba(62,154,166,.3);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 8px 22px rgba(62,154,166,.3); } 50% { box-shadow: 0 8px 32px rgba(62,154,166,.5); } }
.audio-card strong { display: block; color: var(--ink); font-size: 1.05rem; }
.audio-card span { font-size: .88rem; color: var(--muted); }

/* =============== ACTIVIDADES =============== */
.act-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.act-card {
  display: block; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 26px 24px; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.act-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--ochre), var(--teal)); transform: scaleY(0); transform-origin: top;
  transition: transform .4s var(--ease);
}
.act-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.act-card:hover::before { transform: scaleY(1); }
.act-tag { display: inline-block; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--ochre-deep); margin-bottom: 10px; }
.act-card h3 { font-size: 1.14rem; color: var(--ink); line-height: 1.25; }

/* =============== TIENDA BANNER =============== */
.tienda-banner { padding-block: clamp(50px, 7vw, 80px); }
.tienda-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(221,162,58,.14), transparent 60%),
    linear-gradient(120deg, #24221d, #322d24);
  border-radius: 28px; padding: clamp(34px, 5vw, 56px); color: #f3efe6;
}
.tienda-inner .section-title { color: #fff; }
.tienda-inner p { color: #c9c2b5; margin-top: 8px; max-width: 460px; }
.tienda-inner .btn-primary { background: var(--ochre); color: #24221d; }
.tienda-inner .btn-primary:hover { background: #fff; }

/* =============== CTA / CONTACTO =============== */
.cta { background: var(--bg); }
.cta-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px);
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(62,154,166,.12), transparent 60%),
    linear-gradient(180deg, #fff, #fbfaf6);
  border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(34px, 5vw, 60px); box-shadow: var(--shadow-md);
}
.cta-text .section-title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.cta-text p { color: var(--ink-soft); margin-top: 14px; }
.contact-list { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; font-weight: 600; }
.contact-list a, .contact-list li { transition: color .25s; word-break: break-word; }
.contact-list a:hover { color: var(--ochre-deep); }
.contact-list .ci { display: inline-block; width: 22px; }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.social-row a { font-size: .86rem; font-weight: 600; padding: 7px 15px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink-soft); transition: border-color .25s, color .25s, transform .25s; }
.social-row a:hover { border-color: var(--ochre); color: var(--ochre-deep); transform: translateY(-2px); }

.cta-form { display: flex; flex-direction: column; gap: 16px; }
.cta-form[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 13px 15px; transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(62,154,166,.14); }
.form-note { font-size: .9rem; margin-top: 4px; min-height: 20px; }
.form-note.ok { color: var(--green); font-weight: 600; }
.form-note.err { color: #c0392b; font-weight: 600; }

.form-result {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: clamp(20px, 4vw, 32px) 10px;
}
.form-result[hidden] { display: none; }
.form-result-logo { width: 140px; height: auto; margin-bottom: 4px; }
.form-result h3 { font-size: 1.3rem; }
.form-result p { color: var(--ink-soft); max-width: 340px; }
.form-result-ok h3 { color: var(--green); }
.form-result-err h3 { color: #c0392b; }
.form-result button { margin-top: 6px; }

/* =============== FOOTER =============== */
.site-footer { background: #1f1d19; color: #cfc9bd; padding-top: clamp(56px, 8vw, 84px); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { height: 60px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 340px; color: #a8a296; font-size: .96rem; }
.site-footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 16px; font-family: var(--font-body); font-weight: 600; letter-spacing: .02em; }
.footer-nav ul, .footer-contact ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-contact a { color: #cfc9bd; font-size: .96rem; transition: color .25s; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--ochre); }
.social { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.social a { font-size: .84rem; padding: 7px 13px; border: 1px solid #3a3630; border-radius: 100px; transition: border-color .25s, color .25s; }
.social a:hover { border-color: var(--ochre); color: var(--ochre); }
.footer-bottom {
  border-top: 1px solid #33302a; padding: 22px 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 44px);
  font-size: .86rem; color: #8f897d;
}
.footer-bottom a:hover { color: var(--ochre); }
.credit-mistereia {
  font-weight: 800;
  animation: creditBlink 2.4s ease-in-out infinite;
}
.credit-mistereia:hover { animation-play-state: paused; color: var(--ochre) !important; }
@keyframes creditBlink {
  0%, 100% { color: var(--ochre); opacity: 1; }
  25% { color: #e0574a; opacity: .55; }
  50% { color: #6a8f6f; opacity: 1; }
  75% { color: #cfa23a; opacity: .55; }
}

/* =============== CONTACTO RAPIDO (panel) =============== */
.a11y-fab {
  position: fixed; left: 20px; bottom: 20px; z-index: 250;
  width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease), background .3s;
}
.a11y-fab::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--ochre); opacity: 0;
  animation: qc-pulse 2.6s ease-out infinite;
}
.a11y-fab svg { transition: transform .3s var(--ease); }
.a11y-fab:hover { transform: scale(1.08); background: var(--ochre-deep); }
.a11y-fab:hover svg { transform: rotate(-8deg) scale(1.05); }
@keyframes qc-pulse {
  0% { transform: scale(.92); opacity: .55; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { opacity: 0; }
}
.a11y-panel {
  position: fixed; left: 20px; bottom: 84px; z-index: 251; width: 280px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 20px;
  opacity: 0; transform: translateY(12px) scale(.96); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.a11y-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.a11y-head strong { font-family: var(--font-body); font-size: 1.05rem; }
.a11y-close { font-size: 1.6rem; line-height: 1; color: var(--muted); width: 30px; height: 30px; transition: color .2s, transform .2s; }
.a11y-close:hover { color: var(--ink); transform: rotate(90deg); }

.qc-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; }
.qc-list a { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .93rem; color: var(--ink); }
.qc-ico {
  display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px;
  border-radius: 50%; background: var(--bg-2); color: var(--ochre-deep);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.qc-ico svg { width: 18px; height: 18px; }
.qc-text { transition: color .25s; word-break: break-word; }
.qc-list a:hover .qc-ico { background: var(--ochre); color: #fff; transform: scale(1.08) rotate(-6deg); }
.qc-list a:hover .qc-text { color: var(--ochre-deep); }

.qc-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.qc-social a {
  font-size: .82rem; font-weight: 600; padding: 7px 14px; border: 1px solid var(--line);
  border-radius: 100px; color: var(--ink-soft);
  transition: border-color .25s, color .25s, background .25s, transform .25s;
}
.qc-social a:hover { border-color: var(--ochre); background: var(--ochre); color: #fff; transform: translateY(-2px); }

/* Entrada escalonada al abrir el panel */
.a11y-panel .qc-list li,
.a11y-panel .qc-social a {
  opacity: 0; transform: translateY(10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.a11y-panel.open .qc-list li,
.a11y-panel.open .qc-social a { opacity: 1; transform: none; }
.a11y-panel.open .qc-list li:nth-child(1) { transition-delay: .05s; }
.a11y-panel.open .qc-list li:nth-child(2) { transition-delay: .11s; }
.a11y-panel.open .qc-social a:nth-child(1) { transition-delay: .17s; }
.a11y-panel.open .qc-social a:nth-child(2) { transition-delay: .21s; }
.a11y-panel.open .qc-social a:nth-child(3) { transition-delay: .25s; }
.a11y-panel.open .qc-social a:nth-child(4) { transition-delay: .29s; }

/* =============== PANEL DE ACCESIBILIDAD =============== */
.acc-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 250;
  width: 52px; height: 52px; border-radius: 50%; background: var(--teal-deep); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-md); border: none; cursor: pointer;
  transition: transform .3s var(--ease), background .3s;
}
.acc-fab:hover { transform: scale(1.08); background: var(--teal); }
.acc-panel {
  position: fixed; right: 20px; bottom: 84px; z-index: 251; width: 280px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 20px;
  opacity: 0; transform: translateY(12px) scale(.96); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.acc-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.acc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 10px; font-size: .92rem; color: var(--ink-soft); }
.acc-btns { display: flex; gap: 6px; }
.acc-btns button {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--ink); font-weight: 700; font-size: .85rem; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.acc-btns button:hover { border-color: var(--teal); background: var(--bg); }
.acc-toggle {
  display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink-soft);
  padding: 8px 0; cursor: pointer;
}
.acc-toggle input { width: 17px; height: 17px; accent-color: var(--teal-deep); cursor: pointer; }
@media (max-width: 520px) { .acc-panel { width: calc(100vw - 40px); right: 20px; } }

/* Estados aplicados por el panel de accesibilidad */
html.a11y-underline a { text-decoration: underline; text-underline-offset: 2px; }
html.a11y-contrast {
  --bg: #000; --bg-2: #101010; --surface: #0d0d0d; --ink: #fff; --ink-soft: #f1f1f1;
  --line: #4a4a4a; --muted: #cfcfcf;
}
html.a11y-contrast img:not(.brand-logo):not(.hero-logo) { filter: brightness(.9) contrast(1.05); }
html.a11y-motion-off *, html.a11y-motion-off *::before, html.a11y-motion-off *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important;
  transition-duration: .1ms !important; scroll-behavior: auto !important;
}

/* =============== AVISO DE COOKIES =============== */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 260;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px;
  padding: 18px 24px; background: var(--ink); color: #fff;
  transform: translateY(100%); transition: transform .4s var(--ease);
}
.cookie-banner.in { transform: translateY(0); }
.cookie-banner p { margin: 0; max-width: 640px; font-size: .9rem; line-height: 1.5; color: #f2f2f0; }
.cookie-banner a { color: var(--ochre); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions .btn { padding: 10px 20px; font-size: .88rem; }
.cookie-actions .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.cookie-actions .btn-ghost:hover { border-color: #fff; }
@media (max-width: 640px) { .cookie-banner { justify-content: flex-start; text-align: left; } }

/* =============== ANIMACIONES DE SCROLL (REVEAL) =============== */
/* Base: entrada más marcada y fluida (desplazamiento + leve desenfoque). */
.reveal {
  opacity: 0; transform: translateY(34px); filter: blur(6px);
  transition: opacity .85s var(--ease), transform .9s var(--ease), filter .85s var(--ease);
}
.reveal.in { opacity: 1; transform: none; filter: none; }

/* Variantes (se asignan por JS a tarjetas, medios y bloques a 2 columnas). */
.reveal.rv-scale { transform: translateY(42px) scale(.93); }
.reveal.rv-scale.in { transform: none; }
.reveal.rv-zoom { transform: scale(1.09); }
.reveal.rv-zoom.in { transform: none; }
.reveal.rv-left { transform: translateX(-52px); }
.reveal.rv-left.in { transform: none; }
.reveal.rv-right { transform: translateX(52px); }
.reveal.rv-right.in { transform: none; }

/* =============== RESPONSIVE =============== */
/* El menú (9 enlaces) pasa a hamburguesa antes que el resto del layout,
   porque en horizontal no cabe con holgura por debajo de este ancho. */
@media (max-width: 1280px) {
  .nav-toggle { display: flex; align-items: center; flex-shrink: 0; }
  .nav-toggle span { width: 24px; align-self: center; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px;
    padding: calc(var(--header-h) + 20px) 28px 40px; background: var(--surface); box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .4s var(--ease);
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-link { padding: 14px 18px; font-size: 1.1rem; }
  .nav-link::after { display: none; }
  .nav-cta { text-align: center; margin-top: 10px; margin-left: 0; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 1020px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .pnl-defs { grid-template-columns: 1fr; }
  .editorial-actions { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .hero-media { max-width: min(560px, 66vh, 90vw); }
  .sobre-media-frame img { max-height: 340px; }
  .split-2 { grid-template-columns: 1fr; }
  .educativos .split-media, .recursos .split-media { max-width: 520px; }
  .tab-panel.active { grid-template-columns: 1fr; }
  .tab-media { max-width: 360px; }
  .cta-card { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .stats { gap: 22px; }
  .hero-br { display: none; } /* en móvil, el texto fluye de forma natural */
  /* Móvil: la imagen manda. En vez de encajar imagen+logo+texto dentro
     de una sola pantalla (lo que los encogía a todos), dejamos que el
     bloque crezca más de 100svh: así la imagen se ve grande y protagonista
     en el primer vistazo, y el logo/texto quedan un scroll más abajo. */
  .hero { overflow: visible; padding-bottom: 32px; }
  .hero-media { max-width: min(680px, 94vw); }
  /* espacio extra para que el botón fijo de contacto (abajo-izq) no
     tape el texto del pie cuando ocupa dos líneas */
  .footer-bottom { padding-bottom: 76px; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .areas-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .a11y-panel { width: calc(100vw - 40px); }
  .tienda-inner { flex-direction: column; align-items: flex-start; }
}

/* =============== MOVIMIENTO REDUCIDO (sistema) =============== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: none; }
  [data-split] .wi { transform: none !important; opacity: 1 !important; }
  .hl { background-size: 100% 42% !important; transition: none; }
  .hero-media-frame, .audio-ico, .read-progress { animation: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .1ms !important; }
}

/* =====================================================
   CUENTOS Y LIBROS — Material educativo, catálogo y ficha modal
   ===================================================== */

/* Material educativo — 2 tarjetas con imagen */
.material-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 3vw, 30px); margin-top: 8px;
}
.material-card {
  position: relative; display: block; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-md); background: var(--surface);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.material-card img { width: 100%; height: 100%; aspect-ratio: 2417 / 1092; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.material-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.material-card:hover img { transform: scale(1.04); }
.material-label {
  position: absolute; left: 0; bottom: 0; width: 100%;
  padding: 26px 22px 16px; color: #fff; font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 600;
  background: linear-gradient(to top, rgba(38,36,31,.72), rgba(38,36,31,0));
}

/* Intro Cuentos y libros */
.cuentos-intro-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); text-align: center;
  max-width: 900px; margin-inline: auto;
}
.cuentos-intro-card p { color: var(--ink-soft); }
.cuentos-availability {
  margin-top: 16px; font-weight: 600; color: var(--ink);
  padding-top: 16px; border-top: 1px solid var(--line);
}

/* Grid de portadas */
.cuentos-seccion .section-sub a { color: var(--teal-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cuentos-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: clamp(16px, 2.4vw, 26px); align-items: start; margin-top: 30px;
}
.cuento-card {
  position: relative; display: block; width: 100%; padding: 0;
  border-radius: var(--radius-sm); overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow-sm); cursor: pointer; line-height: 0;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.cuento-cover { width: 100%; height: auto; display: block; transition: transform .6s var(--ease); }
.cuento-card:hover, .cuento-card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-md); outline: none; }
.cuento-card:hover .cuento-cover { transform: scale(1.05); }
.cuento-card:focus-visible { box-shadow: 0 0 0 3px var(--ochre), var(--shadow-md); }
.cuento-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--ochre-light); color: #4a3708; font-family: var(--font-body);
  font-size: .68rem; font-weight: 600; letter-spacing: .02em;
  padding: 5px 10px; border-radius: 100px; box-shadow: var(--shadow-sm); line-height: 1.2;
}

/* Ficha modal */
.ficha-modal { position: fixed; inset: 0; z-index: 300; display: none; }
.ficha-modal.open {
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px; overflow-y: auto;
}
.ficha-overlay {
  position: absolute; inset: 0; background: rgba(38,36,31,.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: fichaFade .3s var(--ease);
}
@keyframes fichaFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fichaPop { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.ficha-dialog {
  position: relative; z-index: 1; max-width: 940px; width: calc(100% - 32px);
  max-height: calc(100vh - 48px); overflow-y: auto; margin: auto;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  animation: fichaPop .4s var(--ease);
}
.ficha-close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; font-size: 1.6rem; line-height: 1;
  background: var(--bg-2); color: var(--ink); box-shadow: var(--shadow-sm);
  transition: background .25s, transform .25s;
}
.ficha-close:hover { background: var(--ochre); color: #fff; transform: rotate(90deg); }
.ficha-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(20px, 3vw, 36px); padding: clamp(22px, 3.5vw, 40px); }
.ficha-cover { position: relative; align-self: start; }
.ficha-cover img { width: 100%; height: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow-md); display: block; }
.ficha-badge {
  position: absolute; top: 12px; left: 12px; background: var(--ochre-light); color: #4a3708;
  font-size: .72rem; font-weight: 600; padding: 6px 12px; border-radius: 100px; box-shadow: var(--shadow-sm);
}
.ficha-title { font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.12; }
.ficha-precio { font-family: var(--font-display); font-size: 1.4rem; color: var(--ochre-deep); font-weight: 600; margin-top: 6px; }
.ficha-carac { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.ficha-carac li {
  background: var(--bg-2); color: var(--ink-soft); font-size: .8rem; font-weight: 500;
  padding: 6px 12px; border-radius: 100px; border: 1px solid var(--line);
}
.ficha-video { margin: 18px 0; }
.ficha-video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-md); background: #000; }
.ficha-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ficha-video-link { display: inline-block; color: var(--teal-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ficha-resena { color: var(--ink-soft); line-height: 1.6; }
.ficha-resena p { margin-top: 4px; }
.ficha-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.ficha-actions .btn { flex: 1 1 200px; text-align: center; }
body.ficha-open { overflow: hidden; }

@media (max-width: 760px) {
  .material-grid { grid-template-columns: 1fr; }
  .ficha-grid { grid-template-columns: 1fr; }
  .ficha-cover { max-width: 260px; margin-inline: auto; }
}
@media (max-width: 520px) {
  .cuentos-grid { grid-template-columns: repeat(2, 1fr); }
  .ficha-actions .btn { width: 100%; text-align: center; }
}

/* =====================================================
   PROYECTOS EDUCATIVOS — banners de charlas / talleres / cursos
   ===================================================== */
.banner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: clamp(16px, 2.4vw, 26px); align-items: start; }
.banner-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .banner-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .banner-grid-3 { grid-template-columns: 1fr; } }
.promo-banner {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md); background: var(--surface);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.promo-banner img { width: 100%; height: auto; display: block; transition: transform .6s var(--ease); }
.promo-link:hover, .promo-banner:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.promo-link:hover img { transform: scale(1.03); }
.curso-modalidad {
  text-align: center; font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem); color: var(--ochre-deep);
  margin: clamp(26px, 4vw, 40px) 0;
}
/* Placeholder para imagen pendiente (charla horizontal aún no entregada) */
.promo-placeholder {
  aspect-ratio: 2417 / 1092; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  border: 2px dashed rgba(255,255,255,.5);
}
.promo-placeholder figcaption {
  color: #fff; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem); line-height: 1.25; max-width: 30ch;
}
.promo-placeholder::after {
  content: attr(data-pendiente); position: absolute; bottom: 10px; left: 0; width: 100%;
  font-family: var(--font-body); font-size: .68rem; color: rgba(255,255,255,.8); letter-spacing: .02em;
}
@media (max-width: 620px) {
  .banner-grid { grid-template-columns: 1fr; }
}

/* Apartados (diseño propio) de Proyectos educativos */
.apartado-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(18px, 2.6vw, 28px); }
.apartado-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: clamp(24px, 3vw, 34px); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.apartado-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--ochre); }
.apartado-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 4px;
  background: linear-gradient(135deg, var(--ochre) 0%, var(--teal) 130%); color: #fff;
}
.apartado-card h3 { font-size: 1.3rem; }
.apartado-card p { color: var(--ink-soft); font-size: .97rem; flex-grow: 1; }
.narrow-copy { max-width: 760px; margin-inline: auto; }
.narrow-copy p { color: var(--ink-soft); margin-top: 16px; }
.banner-note {
  padding: 14px 18px; text-align: center; font-family: var(--font-body);
  font-size: .95rem; color: var(--ink-soft); background: var(--bg-2);
}
.banner-note a { color: var(--teal-deep); font-weight: 700; }
.playmobil-note {
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  color: var(--ink); line-height: 1.5;
}
.playmobil-note a { color: var(--ochre-deep); font-weight: 700; }

/* =====================================================
   Ajustes v7 — intro alineada, badges de idioma, material único
   ===================================================== */
/* Intro de Proyectos educativos, alineada con el título de la cabecera */
.proyectos-intro { text-align: left; }
.proyectos-intro p { max-width: none; }
.proyectos-intro p { color: var(--ink-soft); margin-top: 16px; }
.chips-center { justify-content: flex-start; margin-top: 28px; }

/* Material educativo — banner a todo lo ancho del contenedor + nota e-books */
.material-single { width: 100%; }
/* Intro con oferta: texto a la izquierda, imagen a la derecha */
.material-oferta { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 54px); align-items: center; }
.material-oferta p { color: var(--ink-soft); font-size: 1.08rem; }
.material-oferta p + p { margin-top: 18px; }
.material-oferta img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }
@media (max-width: 760px) {
  .material-oferta { grid-template-columns: 1fr; }
  .material-oferta img { max-width: 320px; margin: 0 auto; }
}
.ebooks-note {
  max-width: 760px; margin: clamp(26px, 4vw, 40px) auto 0; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 38px); box-shadow: var(--shadow-sm);
}
.ebooks-note p { color: var(--ink-soft); }
.ebooks-note p + p { margin-top: 14px; }
.ebooks-note strong { color: var(--ink); }
.ebooks-note a { color: var(--teal-deep); font-weight: 700; }

/* Catálogo — portada + badge de idioma DEBAJO del libro */
.cuento-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cuento-item .cuento-card { width: 100%; }
.cuento-badge {
  position: static; align-self: center; display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, var(--ochre-light) 0%, var(--ochre-light-deep) 100%);
  color: #4a3708; font-family: var(--font-body); font-size: .72rem; font-weight: 700;
  letter-spacing: .01em; line-height: 1.2; padding: 4px 12px; border-radius: 100px;
  box-shadow: 0 2px 8px rgba(196,135,31,.18); max-width: 100%; text-align: center;
}
.cuento-badge::before { content: "🌐"; font-size: .82em; }

/* =====================================================
   EFECTOS PRODESIGN — tilt 3D, brillo de cursor, canvas
   ambiental, ken-burns e imanes en botones. Se activan por
   JS (main.js) y respetan prefers-reduced-motion + táctil.
   ===================================================== */

/* Canvas ambiental inyectado en cabeceras de subpágina y CTA */
.page-particles, .cta-particles {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.page-hero > .container, .page-hero .breadcrumb { position: relative; z-index: 2; }
.cta-card { position: relative; }

/* Tilt 3D + brillo que sigue al cursor (inyectado como <span class="tilt-glare">) */
.tilt-fx { position: relative; overflow: hidden; transform-style: preserve-3d; will-change: transform; }
.tilt-glare {
  position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.55), transparent 55%);
  opacity: 0; transition: opacity .4s var(--ease); mix-blend-mode: overlay;
}
.tilt-fx:hover .tilt-glare { opacity: 1; }
@media (prefers-reduced-motion: reduce), (hover: none) {
  .tilt-glare { display: none; }
}

/* Ken-burns suave en cabeceras a toda anchura */
.sobre-photo-full { overflow: hidden; }
.sobre-photo-full img {
  transform: scale(1.13);
  transition: transform 2.2s var(--ease);
}
.sobre-photo-full.in img { transform: scale(1); }

/* Foco de luz interactivo en el hero principal */
.hero-spotlight {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(480px 480px at var(--mx, 70%) var(--my, 20%), rgba(221,162,58,.16), transparent 70%);
  opacity: 0; transition: opacity .6s var(--ease);
}
.hero-spotlight.on { opacity: 1; }

/* Botones magnéticos (JS empuja el contenido hacia el cursor) */
.btn-magnetic { transition: transform .35s cubic-bezier(.2,.9,.3,1.3), background-color .25s, box-shadow .25s; }

/* Barra decorativa animada bajo el kicker (refuerzo de marca en cada sección) */
.kicker { position: relative; }
.kicker::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--ochre), var(--teal)); transition: width .8s var(--ease) .15s;
}
.reveal.in .kicker::after, .in .kicker::after { width: 34px; }

@media (prefers-reduced-motion: reduce) {
  .sobre-photo-full img { transition: none; transform: none; }
  .hero-spotlight { display: none; }
}

/* =====================================================
   NUEVO — Fotogalería con lightbox
   ===================================================== */
.galeria-grid {
  columns: 3 300px; column-gap: 18px;
}
.galeria-item {
  display: block; width: 100%; margin-bottom: 18px; padding: 0;
  border-radius: var(--radius-sm); overflow: hidden; break-inside: avoid;
  box-shadow: var(--shadow-sm); position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.galeria-item img { width: 100%; transition: transform .6s var(--ease); }
.galeria-item::after {
  content: "⤢"; position: absolute; right: 12px; bottom: 10px; z-index: 2;
  width: 34px; height: 34px; display: grid; place-items: center;
  background: rgba(255,255,255,.88); color: var(--ink); border-radius: 100px;
  font-size: 1rem; opacity: 0; transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.galeria-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.galeria-item:hover img { transform: scale(1.04); }
.galeria-item:hover::after { opacity: 1; transform: translateY(0); }

.lightbox {
  position: fixed; inset: 0; z-index: 500; display: none;
  align-items: center; justify-content: center;
  background: rgba(24,22,18,.92); backdrop-filter: blur(6px);
  padding: clamp(16px, 4vw, 48px);
}
.lightbox.open { display: flex; animation: lbFade .3s var(--ease); }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: min(1100px, 92vw); max-height: 86vh; width: auto; height: auto;
  border-radius: var(--radius-sm); box-shadow: 0 40px 90px rgba(0,0,0,.5);
  animation: lbZoom .35s var(--ease);
}
@keyframes lbZoom { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; z-index: 2; color: #fff; line-height: 1;
  width: 52px; height: 52px; display: grid; place-items: center;
  background: rgba(255,255,255,.12); border-radius: 100px;
  font-size: 1.9rem; transition: background .25s, transform .25s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.26); transform: scale(1.06); }
.lightbox-close { top: 20px; right: 22px; font-size: 1.5rem; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.08); }
@media (max-width: 640px) { .lightbox-prev, .lightbox-next { width: 42px; height: 42px; } }

/* Zoom genérico de imágenes */
.img-zoom-overlay {
  position: fixed; inset: 0; z-index: 500; display: none;
  align-items: center; justify-content: center;
  background: rgba(24,22,18,.92); backdrop-filter: blur(6px);
  padding: clamp(16px, 4vw, 48px);
}
.img-zoom-overlay.open { display: flex; animation: lbFade .3s var(--ease); }
.img-zoom-overlay img {
  max-width: min(1100px, 94vw); max-height: 90vh; width: auto; height: auto;
  border-radius: var(--radius-sm); box-shadow: 0 40px 90px rgba(0,0,0,.5);
  animation: lbZoom .35s var(--ease);
}
.img-zoom-close {
  position: absolute; z-index: 2; color: #fff; line-height: 1;
  width: 52px; height: 52px; display: grid; place-items: center;
  background: rgba(255,255,255,.12); border-radius: 100px;
  font-size: 1.5rem; top: 20px; right: 22px;
  transition: background .25s, transform .25s;
}
.img-zoom-close:hover { background: rgba(255,255,255,.26); transform: scale(1.06); }

/* =====================================================
   NUEVO — Blog
   ===================================================== */
.blog-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.blog-excerpt {
  margin-top: 10px; font-size: .92rem; color: var(--ink-soft); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.act-card .blog-excerpt + * { margin-top: 12px; }

/* Enlace externo sutil en tarjetas del blog */
.blog-grid .act-card::after {
  content: "Leer artículo →"; display: inline-block; margin-top: 14px;
  font-size: .82rem; font-weight: 700; color: var(--teal-deep);
  transition: transform .3s var(--ease);
}
.blog-grid .act-card:hover::after { transform: translateX(4px); }

/* =====================================================
   NUEVO — Correcciones 10/7: etiquetas, carrusel, grid cursos
   ===================================================== */
.banner-tag {
  position: absolute; right: 14px; bottom: 12px; z-index: 3;
  background: rgba(38,36,31,.82); color: #fff; backdrop-filter: blur(4px);
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 100px; pointer-events: none;
}

.cursos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cursos-grid .promo-banner img { aspect-ratio: 1 / 1; object-fit: cover; }
@media (max-width: 900px) { .cursos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cursos-grid { grid-template-columns: 1fr; } }

.carrusel {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 14px; scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.carrusel > figure {
  flex: 0 0 min(430px, 82%); margin: 0; scroll-snap-align: center;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  transition: transform .4s var(--ease);
}
.carrusel > figure:hover { transform: translateY(-4px); }
.carrusel img { width: 100%; display: block; }
.carrusel-hint {
  text-align: center; font-size: .85rem; color: var(--muted); margin-top: 6px;
}

/* --- Correcciones 13-7: saltos de linea controlados y banner estrecho --- */
@media (max-width: 640px) { .br-lg { display: none; } }
.banner-grid-narrow { max-width: 760px; margin-inline: auto; }

@media (min-width: 760px) { .banner-grid-half { max-width: calc(50% - 13px); margin-inline: auto; } }
/* Iguala la altura de tarjetas con imágenes de distinta proporción, sin recortarlas */
.banner-grid-equal .promo-banner img { aspect-ratio: 16 / 9.3; object-fit: contain; }
.banner-grid-equal .promo-banner img.zoomable { cursor: zoom-in; }
.tabs-lines .tag-list { flex-direction: column; row-gap: 10px; }
.plain-list { display: flex; flex-direction: column; align-items: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.plain-list li { font-size: 1rem; color: var(--ink-soft); }

/* =====================================================
   Ideas visuales — botón WhatsApp, stepper, timeline,
   overlays de recursos, carrusel de cursos, elige tu camino
   ===================================================== */

/* --- Botón WhatsApp destacado (panel de contacto rápido, todas las páginas) --- */
.qc-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 14px 0 4px; padding: 12px 16px; border-radius: 100px;
  background: #25D366; color: #fff; font-weight: 700; font-size: .92rem;
  box-shadow: 0 8px 20px rgba(37,211,102,.35);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.qc-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37,211,102,.45); }
.qc-whatsapp svg { flex-shrink: 0; }

/* --- Stepper de 3 pasos (Curso/RETO) --- */
.stepper { display: flex; align-items: flex-start; justify-content: center; gap: 0; max-width: 640px; margin: 0 auto clamp(24px,4vw,40px); }
.stepper-step { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; text-align: center; position: relative; text-decoration: none; color: inherit; }
.stepper-step:hover .stepper-num { border-color: var(--ochre); color: var(--ochre-deep); }
.stepper-num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--line); color: var(--ink-soft);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; z-index: 1;
}
.stepper-step.is-active .stepper-num { background: var(--ochre-deep); border-color: var(--ochre-deep); color: #fff; }
.stepper-label { font-size: .82rem; color: var(--ink-soft); max-width: 140px; }
.stepper-step:not(:last-child)::after {
  content: ""; position: absolute; top: 20px; left: calc(50% + 20px); right: calc(-50% + 20px);
  height: 2px; background: var(--line);
}

/* --- Timeline de 9 días (Reto online) --- */
.timeline9 { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; max-width: 760px; margin: 0 auto; }
.timeline9-day {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.timeline9-num { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ochre-deep); }
.timeline9-label { font-size: .72rem; color: var(--muted); text-align: center; line-height: 1.3; }

/* --- Overlay con título al pasar el ratón (Recursos gratuitos) --- */
.banner-caption {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end;
  padding: 18px; opacity: 0; transition: opacity .35s var(--ease);
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.72) 100%);
}
.promo-banner:hover .banner-caption, .promo-link:focus-visible .banner-caption { opacity: 1; }
.banner-caption span {
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  transform: translateY(6px); transition: transform .35s var(--ease);
}
.promo-banner:hover .banner-caption span { transform: none; }
@media (hover: none) {
  .banner-caption { opacity: 1; background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.66) 100%); }
  .banner-caption span { transform: none; }
}

/* --- "Elige tu camino" (Actividades) --- */
.camino-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.camino-card {
  display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.camino-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--ochre); }
.camino-card h3 { font-size: 1.08rem; color: var(--ink); }
.camino-card h3::before { content: ""; display: block; width: 40px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--ochre), var(--teal)); margin-bottom: 14px; }
.camino-card p { font-size: .9rem; color: var(--ink-soft); flex-grow: 1; }
.camino-card .area-link { margin-top: 4px; }
