/* ==========================================================================
   PATINA KINESIS — Hoja de estilos principal
   Escuela de patinaje artístico y en línea · Zaragoza
   ========================================================================== */

/* ---------- Tipografías (alojadas localmente, sin llamadas a terceros) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
/* Tipografías del logo (Canva). Coloca los ficheros en /assets/fonts/ con estos nombres.
   Si no están, la web sigue usando Bricolage/Inter sin romper nada (ver .has-extenda / .has-script). */
@font-face {
  font-family: "Extenda 60";
  src: local("Extenda 60 Exa"), local("Extenda-60Exa"),
       url("../fonts/extenda-60.woff2") format("woff2");
  font-weight: 100 900; /* un solo peso: evita la negrita "falsa" del navegador */
  font-display: swap;
}
@font-face {
  font-family: "Nefelibata Script";
  src: local("Nefelibata Script Bold"), local("NefelibataScript-Bold"),
       url("../fonts/nefelibata-script-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ---------- Tokens de diseño ---------- */
:root {
  /* Colores de marca Kinesis */
  --turq: #01ced0;
  --turq-soft: #d9f8f8;
  --magenta: #fb0bb6;
  --magenta-strong: #d4009a; /* versión accesible para botones con texto blanco */
  --magenta-soft: #ffe1f4;

  /* Neutros */
  --ink: #0c0c10;
  --ink-2: #16161c;
  --ink-3: #24242c;
  --paper: #f6f6f2;
  --white: #ffffff;
  --muted: #5b5b66;
  --muted-on-dark: rgba(255, 255, 255, 0.72);
  --line: rgba(12, 12, 16, 0.1);
  --line-on-dark: rgba(255, 255, 255, 0.14);

  --gradient: linear-gradient(100deg, var(--turq) 0%, var(--magenta) 100%);

  /* Tipografía */
  --font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-title: "Extenda 60", var(--font-display);   /* títulos principales (como "KINESIS" del logo) */
  --font-script: "Nefelibata Script", var(--font-display); /* subtítulos (como "Patina" del logo) */
  /* Ajustes ópticos de Extenda (es muy condensada): retócalos aquí si hace falta */
  --title-scale: 1.32;
  --title-leading: 0.9;
  --title-tracking: 0.01em;

  --fs-hero: clamp(2.6rem, 1.2rem + 6.2vw, 7rem);
  --fs-h1: clamp(2.4rem, 1.4rem + 4.4vw, 5.25rem);
  --fs-h2: clamp(2rem, 1.3rem + 3vw, 4rem);
  --fs-h3: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.35vw, 1.3rem);
  --fs-article: clamp(2.2rem, 1.4rem + 3.4vw, 4.2rem);

  /* Espaciado y forma */
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 140px);
  --radius-xl: clamp(24px, 3vw, 40px);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow-soft: 0 1px 2px rgba(12, 12, 16, 0.04), 0 12px 40px -12px rgba(12, 12, 16, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
p { text-wrap: pretty; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--turq); color: var(--ink); }

.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 {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: var(--radius-pill);
}
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }

.section--dark {
  background: var(--ink); color: var(--white);
  border-radius: var(--radius-xl);
  margin-inline: clamp(8px, 1.2vw, 16px);
}
.section--dark .muted, .section--dark .section-head p { color: var(--muted-on-dark); }

.muted { color: var(--muted); }
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hl-turq { color: var(--turq); }
.hl-magenta { color: var(--magenta); }

/* ---------- Tipografías de marca (Extenda 60 + Nefelibata Script) ----------
   main.js añade .has-extenda / .has-script a <html> solo cuando cada fuente ha cargado,
   así los ajustes de tamaño nunca se aplican sobre la fuente de respaldo. */
.has-extenda {
  --fs-hero: calc(clamp(2.6rem, 1.2rem + 6.2vw, 7rem) * var(--title-scale));
  --fs-h1: calc(clamp(2.4rem, 1.4rem + 4.4vw, 5.25rem) * var(--title-scale));
  --fs-h2: calc(clamp(2rem, 1.3rem + 3vw, 4rem) * var(--title-scale));
  --fs-article: calc(clamp(2.2rem, 1.4rem + 3.4vw, 4.2rem) * var(--title-scale));
}
/* Títulos principales: todos los h1 y los h2 grandes (no los de artículos ni fichas pequeñas) */
.has-extenda :is(h1, h2):not(.prose h2, .info-card h2, .cal-head h2, .hours h2) {
  font-family: var(--font-title);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--title-tracking);
  line-height: var(--title-leading);
}
.has-extenda .form-card h2 { font-size: calc(clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem) * var(--title-scale)); }
.has-extenda .banner h2 { font-size: calc(clamp(1.8rem, 1.2rem + 2.2vw, 3.2rem) * var(--title-scale)); }

/* Subtítulos de sección (eyebrows) en script, como "Patina" bajo "KINESIS" */
.has-script .eyebrow:not(.ig-handle) {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
  color: var(--magenta-strong);
}
.has-script .section--dark .eyebrow:not(.ig-handle) { color: var(--magenta); }

/* ---------- Elementos base ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gradient);
}
.section--dark .eyebrow { color: var(--muted-on-dark); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  background: var(--white); border: 1px solid var(--line); color: var(--ink);
  white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; flex-shrink: 0; }
.chip--turq { background: var(--turq); border-color: var(--turq); color: var(--ink); }
.chip--magenta { background: var(--magenta-strong); border-color: var(--magenta-strong); color: var(--white); }
.chip--dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip--glass { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.24); color: var(--white); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

.btn {
  --btn-bg: var(--ink); --btn-fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 12px 0 24px;
  border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 0.98rem; letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background-color 0.25s, color 0.25s, box-shadow 0.35s var(--ease);
  white-space: nowrap;
}
.btn .btn__icon {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--btn-fg); color: var(--btn-bg);
  transition: transform 0.45s var(--ease);
}
.btn .btn__icon svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(12, 12, 16, 0.5); }
.btn:hover .btn__icon { transform: rotate(45deg); }
.btn--no-icon { padding: 0 26px; }
.btn--primary { --btn-bg: var(--magenta-strong); --btn-fg: var(--white); }
.btn--primary:hover { --btn-bg: #e6009f; }
.btn--turq { --btn-bg: var(--turq); --btn-fg: var(--ink); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--ink); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: rgba(12, 12, 16, 0.2); }
.btn--ghost .btn__icon { background: var(--ink); color: var(--white); }
.btn--glass { --btn-bg: rgba(255, 255, 255, 0.12); --btn-fg: var(--white); border-color: rgba(255, 255, 255, 0.28); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--glass .btn__icon { background: var(--white); color: var(--ink); }
.btn--whatsapp { --btn-bg: #25d366; --btn-fg: var(--ink); }
.btn--whatsapp .btn__icon { background: var(--ink); color: #25d366; }
.btn--block { width: 100%; justify-content: space-between; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
  border-bottom: 2px solid currentColor; padding-bottom: 2px;
  transition: gap 0.3s var(--ease), color 0.2s;
}
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { gap: 14px; color: var(--magenta-strong); }

/* ---------- Cabecera flotante ---------- */
.site-header {
  position: fixed; inset: 12px 0 auto; z-index: 100;
  pointer-events: none;
}
.site-header__bar {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1320px; margin-inline: auto;
  margin-inline: max(var(--gutter), calc((100% - 1320px) / 2 + var(--gutter)));
  padding: 8px 8px 8px 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 30px -12px rgba(12, 12, 16, 0.25);
  transition: transform 0.4s var(--ease), box-shadow 0.3s;
}
.site-header.is-scrolled .site-header__bar { box-shadow: 0 12px 40px -14px rgba(12, 12, 16, 0.35); }
.site-header.is-hidden .site-header__bar { transform: translateY(-140%); }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 16px; border-radius: var(--radius-pill);
  font-size: 0.95rem; font-weight: 500; color: var(--ink);
  transition: background-color 0.2s, color 0.2s;
}
.nav a:hover { background: rgba(12, 12, 16, 0.06); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .btn { min-height: 46px; }
.header-actions .btn .btn__icon { width: 30px; height: 30px; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--white);
  place-items: center;
}
.menu-toggle svg { width: 20px; height: 20px; }

/* Menú móvil a pantalla completa */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--ink); color: var(--white);
  padding: 110px var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  overflow-y: auto;
  clip-path: circle(0 at calc(100% - 44px) 44px);
  visibility: hidden;
  transition: clip-path 0.6s var(--ease), visibility 0s linear 0.6s;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; transition: clip-path 0.7s var(--ease); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(2.4rem, 11vw, 4rem); line-height: 1.1;
  padding-block: 6px; border-bottom: 1px solid var(--line-on-dark);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu nav a[aria-current="page"] { color: var(--turq); }
.mobile-menu nav a svg { width: 28px; height: 28px; opacity: 0.5; }
.mobile-menu__foot { display: grid; gap: 12px; color: var(--muted-on-dark); font-size: 0.95rem; }
.mobile-menu__foot a { color: var(--white); }
body.menu-open { overflow: hidden; }

/* ---------- Hero portada ---------- */
.hero {
  position: relative;
  margin: clamp(8px, 1.2vw, 16px);
  min-height: min(100svh - 2 * clamp(8px, 1.2vw, 16px), 980px);
  border-radius: var(--radius-xl);
  overflow: hidden; isolation: isolate;
  color: var(--white);
  display: flex; align-items: flex-end;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(1.06); animation: hero-zoom 14s var(--ease) forwards; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 12, 16, 0.55) 0%, rgba(12, 12, 16, 0) 30%),
    linear-gradient(20deg, rgba(12, 12, 16, 0.92) 0%, rgba(12, 12, 16, 0.55) 45%, rgba(12, 12, 16, 0.1) 75%);
}
@keyframes hero-zoom { to { transform: scale(1); } }

.hero__inner {
  width: 100%;
  padding: 140px clamp(20px, 4vw, 64px) clamp(28px, 4vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px;
}
.hero__title { font-size: var(--fs-hero); max-width: 13ch; margin-block: 18px 22px; }
.hero__lead { font-size: var(--fs-lead); max-width: 46ch; color: rgba(255, 255, 255, 0.85); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--turq); box-shadow: 0 0 0 0 rgba(1, 206, 208, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(1, 206, 208, 0); } 100% { box-shadow: 0 0 0 0 rgba(1, 206, 208, 0); } }

.hero-card {
  width: 300px;
  padding: 22px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.hero-card__row { display: flex; align-items: center; gap: 14px; padding-block: 12px; }
.hero-card__row + .hero-card__row { border-top: 1px solid rgba(255, 255, 255, 0.15); }
.hero-card__num { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: 1; min-width: 2ch; }
.hero-card__label { font-size: 0.9rem; line-height: 1.35; color: rgba(255, 255, 255, 0.85); }

/* ---------- Marquesina ---------- */
.marquee-wrap { position: relative; padding-block: clamp(40px, 6vw, 80px); overflow: hidden; }
.marquee {
  display: flex; overflow: hidden; user-select: none;
  padding-block: 18px;
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase;
  font-size: clamp(1.6rem, 1rem + 2.6vw, 3.2rem); line-height: 1;
}
.marquee--turq { background: var(--turq); color: var(--ink); transform: rotate(-2deg) scale(1.04); position: relative; z-index: 2; }
.marquee--magenta { background: var(--magenta); color: var(--white); transform: rotate(1.6deg) scale(1.04); margin-top: -8px; }
.marquee__track { display: flex; flex-shrink: 0; align-items: center; gap: 0.6em; padding-right: 0.6em; animation: marquee 32s linear infinite; }
.marquee--magenta .marquee__track { animation-direction: reverse; animation-duration: 40s; }
.marquee__track span { display: inline-flex; align-items: center; gap: 0.6em; white-space: nowrap; }
.marquee__track svg { width: 0.7em; height: 0.7em; flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Cabeceras de sección ---------- */
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { font-size: var(--fs-lead); color: var(--muted); max-width: 58ch; }
.section-head--split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 24px 64px; }
.section-head--center { text-align: center; justify-items: center; }

/* ---------- Bento "Qué ofrecemos" ---------- */
.offer { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.offer__intro { position: sticky; top: 120px; display: grid; gap: 20px; }
.offer__intro h2 { font-size: var(--fs-h2); }
.offer__intro p { color: var(--muted); font-size: 1.05rem; }
.offer__intro strong { color: var(--ink); }

.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: 14px; }
.tile {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.tile h3 { font-size: clamp(1.2rem, 1rem + 0.5vw, 1.45rem); overflow-wrap: anywhere; hyphens: auto; }
.tile--feature h3 { font-size: var(--fs-h3); }
.tile p { color: var(--muted); font-size: 0.97rem; line-height: 1.55; }
.tile__tag { align-self: flex-start; }
.tile__art { width: 100%; max-width: 220px; align-self: center; margin-block: -10px; transition: transform 0.6s var(--ease); }
.tile:hover .tile__art { transform: rotate(-4deg) scale(1.05); }
.tile--feature { grid-column: span 2; grid-row: span 2; background: linear-gradient(160deg, var(--white) 40%, var(--turq-soft)); }
.tile--feature .tile__art { max-width: 340px; }
.tile--magenta { background: var(--magenta-strong); border-color: transparent; color: var(--white); }
.tile--magenta p { color: rgba(255, 255, 255, 0.88); }
.tile--ink { background: var(--ink); border-color: transparent; color: var(--white); grid-column: span 2; }
.tile--ink p { color: var(--muted-on-dark); }
.tile--turq { background: var(--turq); border-color: transparent; grid-column: span 2; }
.tile--turq p { color: rgba(12, 12, 16, 0.78); }
.tile__icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.16);
}
.tile--turq .tile__icon { background: rgba(12, 12, 16, 0.1); }
.tile__icon svg { width: 26px; height: 26px; }
.tile .tile__big { color: inherit; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 3.2vw, 3rem); line-height: 0.95; letter-spacing: -0.04em; }

/* ---------- Tarjetas de cursos ---------- */
.courses-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 56px); }
.courses-head h2 { font-size: var(--fs-h2); max-width: 14ch; }
.scroller-controls { display: flex; gap: 10px; }
.icon-btn {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-on-dark); color: var(--white);
  transition: background-color 0.2s, color 0.2s, transform 0.3s var(--ease), opacity 0.2s;
}
.icon-btn:hover { background: var(--white); color: var(--ink); }
.icon-btn:disabled { opacity: 0.35; pointer-events: none; }
.icon-btn svg { width: 20px; height: 20px; }

.scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(270px, 30vw, 380px);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding-bottom: 8px; scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }

.course-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--ink-2); color: var(--white);
  border: 1px solid var(--line-on-dark);
  transition: transform 0.5s var(--ease), border-color 0.3s;
}
.course-card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.3); }
.course-card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.course-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.course-card:hover .course-card__media img { transform: scale(1.06); }
.course-card__tags { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.course-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px; flex: 1; }
.course-card__title { font-size: 1.45rem; letter-spacing: -0.025em; }
.course-card__meta { display: flex; align-items: center; gap: 8px; color: var(--muted-on-dark); font-size: 0.92rem; }
.course-card__meta svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--turq); }
.course-card__go {
  margin-top: auto; align-self: flex-end;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); color: var(--ink);
  transition: transform 0.45s var(--ease), background-color 0.25s;
}
.course-card__go svg { width: 18px; height: 18px; }
.course-card:hover .course-card__go { transform: rotate(45deg); background: var(--turq); }
.course-card > a::after { content: ""; position: absolute; inset: 0; } /* tarjeta clicable completa */

/* Versión clara (página de clases) */
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.course-grid .course-card { background: var(--white); color: var(--ink); border-color: var(--line); }
.course-grid .course-card:hover { border-color: rgba(12, 12, 16, 0.25); box-shadow: var(--shadow-soft); }
.course-grid .course-card__meta { color: var(--muted); }
.course-grid .course-card__meta svg { color: var(--magenta-strong); }
.course-grid .course-card__go { background: var(--ink); color: var(--white); }
.course-grid .course-card:hover .course-card__go { background: var(--magenta-strong); }
.course-card[hidden] { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter {
  padding: 10px 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--white);
  font-weight: 600; font-size: 0.92rem;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- Bloque dividido (Extraescolares, etc.) ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split__media { position: relative; }
.split__media > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-xl); }
.split__content { display: grid; gap: 22px; align-content: start; }
.split__content h2 { font-size: var(--fs-h2); }
.split__content > p { font-size: 1.08rem; color: var(--muted); }
.section--dark .split__content > p { color: var(--muted-on-dark); }

.checklist { display: grid; gap: 12px; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; }
.checklist .check {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--turq); color: var(--ink);
}
.checklist .check svg { width: 15px; height: 15px; }
.checklist li:nth-child(even) .check { background: var(--magenta-strong); color: var(--white); }
.checklist strong { display: block; }
.checklist span.desc { display: block; color: var(--muted); font-weight: 400; font-size: 0.97rem; margin-top: 2px; }
.section--dark .checklist span.desc { color: var(--muted-on-dark); }

/* Sello giratorio */
.stamp {
  position: absolute; right: -24px; bottom: -24px;
  width: clamp(120px, 14vw, 170px); aspect-ratio: 1;
  border-radius: 50%; background: var(--ink); color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 10px 40px -10px rgba(12, 12, 16, 0.5);
}
.stamp svg.stamp__text { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); animation: spin 18s linear infinite; }
.stamp__text text { font-family: var(--font-display); font-weight: 700; font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; fill: currentColor; }
.stamp__center { width: 42%; aspect-ratio: 1; border-radius: 50%; background: var(--gradient); display: grid; place-items: center; color: var(--ink); }
.stamp__center svg { width: 45%; height: 45%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sobre Alba (teaser) ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__photos { position: relative; aspect-ratio: 1 / 1.05; }
.about__photos img { position: absolute; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.about__photos img:nth-of-type(1) { left: 0; top: 0; width: 66%; height: 82%; }
.about__photos img:nth-of-type(2) { right: 0; bottom: 0; width: 50%; height: 56%; border: 6px solid var(--paper); }
.about__photos .badge {
  position: absolute; left: 50%; top: 6%; transform: translateX(-10%) rotate(6deg);
  background: var(--turq); color: var(--ink); padding: 12px 18px; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em;
  box-shadow: var(--shadow-soft);
}
.about__content { display: grid; gap: 22px; }
.about__content h2 { font-size: var(--fs-h2); }
.about__content blockquote {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem);
  line-height: 1.2; letter-spacing: -0.02em;
  padding-left: 22px; border-left: 4px solid var(--magenta);
}
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fact { padding: 18px; border-radius: var(--radius-md); background: var(--white); border: 1px solid var(--line); }
.fact b { display: block; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.fact span { color: var(--muted); font-size: 0.92rem; line-height: 1.45; display: block; }

/* ---------- Tips ---------- */
.tips-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tip-card { position: relative; display: flex; flex-direction: column; gap: 14px; }
.tip-card__media { aspect-ratio: 4 / 3.4; border-radius: var(--radius-lg); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.tip-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.tip-card:hover .tip-card__media img { transform: scale(1.05); }
.tip-card h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.15; }
.tip-card p { color: var(--muted); font-size: 0.95rem; }
.tip-card a::after { content: ""; position: absolute; inset: 0; }
.tip-card .link-arrow { align-self: flex-start; font-size: 0.92rem; }

/* ---------- CTA grande ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  margin-inline: clamp(8px, 1.2vw, 16px);
  border-radius: var(--radius-xl);
  padding: clamp(56px, 9vw, 130px) var(--gutter);
  text-align: center; color: var(--white);
  background: var(--ink);
}
.cta__bg { position: absolute; inset: 0; z-index: -2; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 15% 20%, rgba(1, 206, 208, 0.55), transparent 55%),
              radial-gradient(ellipse at 85% 80%, rgba(251, 11, 182, 0.55), transparent 55%),
              rgba(12, 12, 16, 0.55);
}
.cta h2 { font-size: var(--fs-h1); max-width: 14ch; margin: 18px auto 18px; }
.cta p { font-size: var(--fs-lead); color: rgba(255, 255, 255, 0.85); max-width: 52ch; margin-inline: auto; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* ---------- Pie de página ---------- */
.site-footer {
  background: var(--ink); color: var(--white);
  margin: clamp(8px, 1.2vw, 16px); margin-top: clamp(48px, 6vw, 80px);
  border-radius: var(--radius-xl);
  padding-top: clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand img { height: 64px; width: auto; background: var(--white); border-radius: 16px; padding: 6px 10px; }
.footer-brand p { color: var(--muted-on-dark); margin-top: 18px; max-width: 34ch; }
.footer-col h3 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-on-dark); margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--white); transition: color 0.2s; }
.footer-col a:hover { color: var(--turq); }
.footer-col li { color: var(--muted-on-dark); font-size: 0.95rem; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-on-dark); transition: background-color 0.2s, color 0.2s;
}
.socials a:hover { background: var(--white); color: var(--ink); }
.socials svg { width: 20px; height: 20px; }
.partner {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 24px;
  padding: 10px 18px 10px 10px; border-radius: var(--radius-pill);
  background: var(--ink-3); font-size: 0.88rem; color: var(--muted-on-dark);
}
.partner img { width: 40px; height: 40px; border-radius: 50%; background: var(--white); object-fit: contain; }
.partner b { color: var(--white); display: block; font-size: 0.95rem; }

.footer-wordmark {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.06em; line-height: 0.78;
  font-size: clamp(5rem, 22vw, 22rem); text-align: center;
  margin-top: clamp(40px, 6vw, 80px);
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-mask-image: linear-gradient(180deg, #000 25%, transparent 95%); mask-image: linear-gradient(180deg, #000 25%, transparent 95%);
  user-select: none; transform: translateY(8%);
}
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line-on-dark);
  padding-block: 22px; font-size: 0.88rem; color: var(--muted-on-dark);
}

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px); z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  height: 60px; padding: 0 22px 0 18px; border-radius: var(--radius-pill);
  background: #25d366; color: var(--ink); font-weight: 700;
  box-shadow: 0 14px 40px -10px rgba(37, 211, 102, 0.7);
  transition: transform 0.4s var(--ease);
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); }

/* ---------- Cabecera de páginas interiores ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin: clamp(8px, 1.2vw, 16px);
  border-radius: var(--radius-xl);
  padding: clamp(140px, 16vw, 200px) 0 clamp(48px, 6vw, 88px);
  background: var(--ink); color: var(--white);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 70% at 100% 0%, rgba(251, 11, 182, 0.45), transparent 60%),
              radial-gradient(ellipse 50% 60% at 0% 100%, rgba(1, 206, 208, 0.4), transparent 60%);
}
.page-hero--image .page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero--image .page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.page-hero h1 { font-size: var(--fs-h1); max-width: 16ch; margin-top: 18px; }
.page-hero__lead { font-size: var(--fs-lead); color: rgba(255, 255, 255, 0.82); max-width: 56ch; margin-top: 20px; }
.page-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.88rem; color: var(--muted-on-dark); }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.breadcrumb span[aria-hidden] { opacity: 0.5; }

/* ---------- Ficha de curso ---------- */
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.course-main { display: grid; gap: clamp(36px, 4vw, 56px); }
.course-main__media img { width: 100%; border-radius: var(--radius-xl); aspect-ratio: 16 / 11; object-fit: cover; }
.course-main__media--contain img { aspect-ratio: auto; object-fit: contain; background: var(--white); }

.info-card {
  position: sticky; top: 110px;
  border-radius: var(--radius-xl); background: var(--ink); color: var(--white);
  padding: 28px; display: grid; gap: 20px;
}
.info-card h2 { font-size: 1.5rem; }
.info-list { list-style: none; padding: 0; display: grid; }
.info-list li { display: flex; gap: 14px; padding-block: 14px; border-top: 1px solid var(--line-on-dark); }
.info-list li:first-child { border-top: 0; padding-top: 0; }
.info-list svg { width: 22px; height: 22px; color: var(--turq); flex-shrink: 0; margin-top: 2px; }
.info-list small { display: block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-on-dark); }
.info-list b { font-weight: 600; }
.info-card .btn { width: 100%; justify-content: space-between; }
.info-card__note { font-size: 0.85rem; color: var(--muted-on-dark); }
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px; border-radius: var(--radius-md);
  background: var(--magenta-soft); border: 1px solid rgba(212, 0, 154, 0.25);
}
.notice svg { width: 22px; height: 22px; color: var(--magenta-strong); flex-shrink: 0; margin-top: 2px; }

.calendar-card { border-radius: var(--radius-xl); background: var(--white); border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); display: grid; gap: 20px; scroll-margin-top: 110px; }
.calendar-card .legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.88rem; color: var(--muted); }
.calendar-card .legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }
.calendar-card .legend .lg-class { background: var(--turq); }
.calendar-card .legend .lg-off { background: var(--magenta-soft); border: 1px solid rgba(212, 0, 154, 0.35); }
.calendar-card .legend .lg-weekend { background: rgba(12, 12, 16, 0.06); }

.cal-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; }
.cal-head h2 { font-size: 1.6rem; }
.cal-head__kicker { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--magenta-strong); margin-bottom: 4px; }
.cal-head__meta { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }
.cal-head__meta b { color: var(--ink); }
.cal-actions { display: grid; gap: 6px; justify-items: start; }
.cal-actions__sub { font-size: 0.82rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.cal-actions__sub:hover { color: var(--ink); }

.cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 196px), 1fr)); gap: 22px 20px; }
.cal-month { width: 100%; border-collapse: separate; border-spacing: 2px; table-layout: fixed; font-variant-numeric: tabular-nums; }
.cal-month caption { text-align: left; padding: 0 2px 6px; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.cal-month caption span { font-weight: 500; color: var(--muted); font-size: 0.85rem; }
.cal-month th { font-size: 0.7rem; font-weight: 600; color: var(--muted); padding-bottom: 2px; }
.cal-month th abbr { text-decoration: none; }
.cal-month th.is-day { color: var(--magenta-strong); }
.cal-month td { text-align: center; font-size: 0.82rem; height: 28px; border-radius: 7px; color: var(--ink); }
.cal-month td.is-weekend { background: rgba(12, 12, 16, 0.05); color: var(--muted); }
.cal-month td.is-class { background: var(--turq); color: var(--ink); font-weight: 700; }
.cal-month td.is-off { background: var(--magenta-soft); color: var(--magenta-strong); font-weight: 600; text-decoration: line-through; cursor: help; }

.cal-off { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 12px; }
.cal-off h3 { font-size: 1.1rem; }
.cal-off ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px 24px; }
.cal-off li { display: grid; gap: 2px; font-size: 0.92rem; }
.cal-off li span { color: var(--muted); font-size: 0.85rem; }
.cal-off p { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 520px) {
  .cal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .cal-month { border-spacing: 1px; }
  .cal-month caption { font-size: 0.95rem; }
  .cal-month th { font-size: 0.62rem; }
  .cal-month td { font-size: 0.72rem; height: 24px; border-radius: 5px; }
}

.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feature { padding: 22px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.feature__num { font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; color: var(--magenta-strong); }
.feature h3 { font-size: 1.15rem; letter-spacing: -0.02em; }
.feature p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Texto largo (artículos y fichas) ---------- */
.prose { font-size: 1.08rem; line-height: 1.75; color: #2a2a33; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); color: var(--ink); margin-top: 1.8em; }
.prose h3 { font-size: 1.35rem; color: var(--ink); margin-top: 1.6em; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { color: var(--magenta-strong); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 0; list-style: none; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 30px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 12px; height: 12px; border-radius: 50%; background: var(--gradient); }
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; position: relative; padding-left: 44px; }
.prose ol li::before {
  content: counter(n); position: absolute; left: 0; top: 0.1em;
  width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--white);
  display: grid; place-items: center; font-size: 0.85rem; font-weight: 700; font-family: var(--font-display);
}
.prose figure img { border-radius: var(--radius-lg); width: 100%; background: var(--white); border: 1px solid var(--line); }
.prose figure figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 10px; }
.prose .callout { padding: 22px 24px; border-radius: var(--radius-lg); background: var(--turq-soft); border: 1px solid rgba(1, 206, 208, 0.4); }
.prose .lead { font-size: 1.25rem; line-height: 1.6; color: var(--ink); }

/* Artículo */
.article-hero-media { margin-top: calc(clamp(48px, 6vw, 88px) * -0.4); }
.article-hero-media img { width: 100%; max-height: 640px; object-fit: contain; border-radius: var(--radius-xl); background: var(--white); border: 1px solid var(--line); }

/* ---------- Historia ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.story__media { position: sticky; top: 110px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.story__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.story__media img:first-child { grid-column: span 2; aspect-ratio: 4 / 4.4; }
.story__media img:not(:first-child) { aspect-ratio: 1; }

.timeline { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: t; }
.timeline li {
  position: relative; padding: 26px 22px 24px; border-radius: var(--radius-lg);
  background: var(--ink-2); border: 1px solid var(--line-on-dark);
  display: grid; gap: 10px; align-content: start;
}
.timeline li::before { content: ""; position: absolute; top: 0; left: 22px; right: 22px; height: 3px; background: var(--gradient); border-radius: 0 0 4px 4px; }
.timeline .when { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; letter-spacing: -0.04em; line-height: 1; }
.timeline li:nth-child(odd) .when { color: var(--turq); }
.timeline li:nth-child(even) .when { color: var(--magenta); }
.timeline b { font-size: 1.05rem; line-height: 1.35; }
.timeline span { color: var(--muted-on-dark); font-size: 0.93rem; }

.cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.cloud .chip { font-size: 0.9rem; padding: 9px 16px; font-weight: 500; }

.career { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.career__item { padding: 28px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); display: grid; gap: 16px; align-content: start; }
.career__item h3 { font-size: 1.35rem; }
.career__item p { color: var(--muted); }

.manifesto { display: grid; gap: clamp(28px, 4vw, 48px); }
.manifesto__title { font-size: var(--fs-h1); max-width: 18ch; }
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mode { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 48px); min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.mode--turq { background: var(--turq); color: var(--ink); }
.mode--magenta { background: var(--magenta-strong); color: var(--white); }
.mode h3 { font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); }
.mode p { font-size: 1.15rem; max-width: 30ch; }
.mode .cloud .chip { background: rgba(255, 255, 255, 0.25); border-color: transparent; color: inherit; }
.quote-big { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 1rem + 2.4vw, 3rem); line-height: 1.12; letter-spacing: -0.03em; max-width: 26ch; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); transition: transform 0.6s var(--ease); }
.gallery img:hover { transform: scale(1.02) rotate(-0.6deg); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.contact-card {
  display: flex; align-items: center; gap: 18px;
  padding: 20px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.2s, box-shadow 0.4s var(--ease);
}
a.contact-card:hover { transform: translateY(-3px); border-color: rgba(12, 12, 16, 0.25); box-shadow: var(--shadow-soft); }
.contact-card__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; background: var(--turq); color: var(--ink); }
.contact-card:nth-child(even) .contact-card__icon { background: var(--magenta-strong); color: var(--white); }
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card small { display: block; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-card b { font-size: 1.12rem; font-family: var(--font-display); letter-spacing: -0.01em; word-break: break-word; }
.hours { padding: 24px; border-radius: var(--radius-lg); background: var(--ink); color: var(--white); display: grid; gap: 12px; }
.hours h2 { font-size: 1.3rem; }
.hours dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; }
.hours dt { color: var(--muted-on-dark); }
.hours dd { margin: 0; font-weight: 600; text-align: right; }
.hours p { color: var(--muted-on-dark); font-size: 0.92rem; }

.form-card { padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-xl); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.form-card h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); }
.form-card > p { color: var(--muted); margin-top: 10px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; font-weight: 600; }
.field label span { color: var(--magenta-strong); }
.field input, .field textarea, .field select {
  width: 100%; padding: 15px 18px; border-radius: 14px;
  background: var(--paper); border: 1.5px solid transparent;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%230c0c10' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: rgba(12, 12, 16, 0.15); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; background: var(--white); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(1, 206, 208, 0.35); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--magenta-strong); }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--magenta-strong); flex-shrink: 0; }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.form__hint { grid-column: 1 / -1; font-size: 0.85rem; color: var(--muted); }
.form__hint--ok, .form__hint--error { padding: 12px 16px; border-radius: 12px; font-size: 0.95rem; font-weight: 500; color: var(--ink); }
.form__hint--ok { background: rgba(1, 206, 208, 0.14); border: 1px solid rgba(1, 206, 208, 0.45); }
.form__hint--error { background: rgba(230, 0, 126, 0.08); border: 1px solid var(--magenta-strong); }
.form__actions .btn:disabled { opacity: 0.6; cursor: wait; }
/* Campo trampa para bots: fuera de pantalla, invisible para personas y lectores de pantalla */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Banner horizontal ---------- */
.banner {
  display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 32px; align-items: center;
  padding: clamp(28px, 4vw, 56px); border-radius: var(--radius-xl);
  background: var(--gradient); color: var(--ink);
}
.banner h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3.2rem); }
.banner p { font-size: 1.08rem; margin-top: 12px; max-width: 60ch; color: rgba(12, 12, 16, 0.85); }

/* ---------- Últimas novedades (Instagram) ---------- */
.ig-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 56px); }
.ig-head h2 { font-size: var(--fs-h2); margin-top: 18px; }
.ig-head p { color: var(--muted); font-size: var(--fs-lead); margin-top: 14px; max-width: 52ch; }
.ig-handle { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.ig-handle svg { width: 20px; height: 20px; }
.ig-updated { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

.ig-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ig-grid--bento .ig-card:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.ig-grid--bento .ig-card:first-child .ig-card__caption { -webkit-line-clamp: 4; font-size: 1.15rem; }

.ig-card {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  background: var(--ink-2); color: var(--white);
}
.ig-card__media { position: absolute; inset: 0; z-index: -2; }
.ig-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.ig-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12, 12, 16, 0) 35%, rgba(12, 12, 16, 0.6) 62%, rgba(12, 12, 16, 0.94) 100%);
  transition: opacity 0.4s;
}
.ig-card:hover .ig-card__media img { transform: scale(1.06); }
.ig-card__type {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(12, 12, 16, 0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ig-card__type svg { width: 16px; height: 16px; }
.ig-card__new { position: absolute; top: 12px; left: 12px; }
.ig-card__body { position: absolute; inset: auto 0 0 0; padding: 18px; display: grid; gap: 6px; }
.ig-card__date { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--turq); text-shadow: 0 1px 8px rgba(12, 12, 16, 0.6); }
.ig-card__caption {
  font-size: 0.92rem; line-height: 1.4; color: rgba(255, 255, 255, 0.92);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ig-card__cta {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.4s var(--ease), opacity 0.3s, margin 0.4s var(--ease);
}
.ig-card__cta svg { width: 14px; height: 14px; }
.ig-card:hover .ig-card__cta, .ig-card:focus-visible .ig-card__cta { max-height: 24px; opacity: 1; margin-top: 4px; }
.ig-card:focus-visible { outline-offset: 4px; }

/* Bloque alternativo cuando aún no hay feed */
.ig-follow {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 4vw, 56px); border-radius: var(--radius-xl);
  background: var(--ink); color: var(--white);
}
.ig-follow::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 80% at 0% 0%, rgba(1, 206, 208, 0.35), transparent 60%),
              radial-gradient(ellipse 60% 80% at 100% 100%, rgba(251, 11, 182, 0.4), transparent 60%);
}
.ig-follow h3 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3rem); margin-block: 16px; }
.ig-follow p { color: var(--muted-on-dark); margin-bottom: 28px; max-width: 44ch; }
.ig-follow__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--gradient); color: var(--ink); }
.ig-follow__icon svg { width: 32px; height: 32px; }
.ig-follow__photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ig-follow__photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-md); }
.ig-follow__photos img:nth-child(2) { transform: translateY(-14px); }

html:not(.no-js) [data-ig-feed][aria-busy="true"] .ig-follow { opacity: 0.001; }

@media (max-width: 1024px) {
  .ig-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ig-grid--bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ig-grid--bento .ig-card:first-child { grid-row: auto; aspect-ratio: 4 / 3; }
  .ig-grid--bento .ig-card:nth-child(n+6) { display: none; }
}
@media (max-width: 680px) {
  .ig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ig-card__body { padding: 12px; }
  .ig-card__caption { font-size: 0.82rem; }
  .ig-grid--bento .ig-card:first-child .ig-card__caption { font-size: 0.95rem; -webkit-line-clamp: 3; }
  .ig-follow { grid-template-columns: 1fr; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 70svh; display: grid; place-items: center; text-align: center; padding: 160px var(--gutter) 80px; }
.notfound__code { font-family: var(--font-display); font-weight: 800; font-size: clamp(7rem, 30vw, 16rem); line-height: 0.85; letter-spacing: -0.06em; }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .tips-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: grid; }
  .offer { grid-template-columns: 1fr; }
  .offer__intro { position: static; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-layout { grid-template-columns: 1fr; }
  .info-card { position: static; }
  .story { grid-template-columns: 1fr; }
  .story__media { position: static; }
  .career { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero-card { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; }
  .hero-card__row { flex-direction: column; align-items: flex-start; gap: 6px; padding: 0; }
  .hero-card__row + .hero-card__row { border-top: 0; }
  .hero-card__num { font-size: 1.6rem; }
  .hero-card__label { font-size: 0.8rem; }
  .section-head--split { grid-template-columns: 1fr; }
  .split, .about { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .split__media > img { aspect-ratio: 4 / 3.6; }
  .stamp { right: 12px; bottom: -28px; }
  .modes { grid-template-columns: 1fr; }
  .banner { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header { inset: 8px 0 auto; }
  .site-header__bar { padding: 6px 6px 6px 14px; margin-inline: 8px; }
  .brand img { height: 38px; }
  .hero { min-height: 92svh; }
  .hero__inner { padding: 120px 18px 18px; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: space-between; }
  .hero-card { grid-template-columns: 1fr 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .tile--feature, .tile--ink, .tile--turq { grid-column: span 2; grid-row: auto; }
  .tile { padding: 20px; min-height: 200px; }
  .tile__art { max-width: 150px; }
  .course-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:first-child { grid-column: span 2; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .form { grid-template-columns: 1fr; }
  .form__actions .btn { flex: 1 1 100%; justify-content: space-between; }
  .wa-float { width: 60px; padding: 0; justify-content: center; }
  .wa-float span { display: none; }
  .marquee--magenta { margin-top: -4px; }
  .cta__actions .btn { flex: 1 1 100%; justify-content: space-between; }
}

@media (max-width: 420px) {
  .bento { gap: 10px; }
  .tile { padding: 16px; min-height: 0; gap: 12px; }
  .tile p { font-size: 0.9rem; }
  .tile__art { max-width: 120px; margin-block: 0; }
  .tile--feature .tile__art { max-width: 220px; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 340px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile--feature, .tile--ink, .tile--turq { grid-column: auto; }
}
