/* =========================================================
   Centro Lingüístico — hoja de estilos
   Colores tomados del logotipo: azul marino #002C50 y turquesa #01B3CC
   ========================================================= */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #002c50;
  --navy-800: #00223f;
  --navy-900: #001629;
  --cyan: #01b3cc;
  --brand: #02bace;     /* turquesa exacto del logotipo (SVG original) */
  --cyan-600: #00788a;   /* turquesa con contraste suficiente para texto */
  --cyan-50: #e8f8fb;
  --cyan-100: #c9eef4;
  --ink: #0f1f2e;
  --muted: #51606f;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f5f8fa;
  --white: #fff;
  --red: #e5413a;
  --wa: #15803d;        /* verde WhatsApp con contraste AA para texto blanco */
  --wa-hover: #116a32;        /* rojo "cabina de teléfono", solo como acento puntual */

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgb(0 44 80 / .06), 0 2px 8px rgb(0 44 80 / .05);
  --shadow: 0 10px 30px -10px rgb(0 44 80 / .18), 0 4px 10px -6px rgb(0 44 80 / .10);
  --shadow-lg: 0 30px 60px -20px rgb(0 44 80 / .30);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 120px);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
main, .footer { overflow-x: clip; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--cyan-600); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.85rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--muted); line-height: 1.6; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #d6e4ef; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .14em; color: var(--cyan-600);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: .7em; height: .7em; border-radius: 50%; background: var(--cyan); flex: none; }
.section--navy .eyebrow { color: var(--cyan); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ---------- Botones ---------- */
.btn {
  --b: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: -.005em;
  padding: .95em 1.55em; border-radius: 999px; border: 2px solid var(--b);
  background: var(--b); color: #fff; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--cyan { --b: var(--cyan); color: var(--navy-900); }
.btn--cyan:hover { color: var(--navy-900); background: #19c3db; border-color: #19c3db; }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--ghost-light { --b: rgb(255 255 255 / .5); background: transparent; color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--sm { padding: .65em 1.15em; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { font-family: var(--font-head); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; color: var(--navy); }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--navy-900); color: #b9cbda; font-size: .86rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: #e3eef6; text-decoration: none; display: inline-flex; align-items: center; gap: .45em; }
.topbar a:hover { color: var(--cyan); }
.topbar svg { width: 14px; height: 14px; opacity: .8; }
.topbar__links { display: flex; gap: 22px; flex-wrap: wrap; }
@media (max-width: 720px) { .topbar__note, .topbar__email { display: none; } .topbar .container { justify-content: center; } }

/* ---------- Cabecera ---------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgb(255 255 255 / .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgb(0 44 80 / .5); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.header__logo img { width: 218px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  display: block; padding: .55em .9em; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--navy); text-decoration: none;
  transition: background .2s, color .2s;
}
.nav__list a:hover { background: var(--cyan-50); color: var(--navy); }
.nav__list a[aria-current="page"] { background: var(--cyan-50); color: var(--navy); box-shadow: inset 0 0 0 1px var(--cyan-100); }
.nav__cta { margin-left: 10px; }
.nav-toggle { display: none; }

@media (max-width: 980px) {
  .header .container { min-height: 68px; }
  .header__logo img { width: 158px; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
    border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 16px;
    background: #fff; padding: 20px var(--gutter) 28px; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgb(0 44 80 / .35);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .22s ease;
    max-height: calc(100dvh - 68px); overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; }
  .nav__list a { padding: .85em 1em; font-size: 1.08rem; border-radius: 12px; }
  .nav__cta { margin: 0; }
  .nav__cta .btn { width: 100%; }
}

/* ---------- Hero portada ---------- */
.hero { position: relative; padding-block: clamp(40px, 6vw, 84px) clamp(64px, 8vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 20%, var(--cyan-50) 0%, transparent 70%),
    radial-gradient(40% 50% at 0% 100%, #f1f5f9 0%, transparent 70%);
}
.hero .container { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--cyan-600); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .16em; border-radius: 1em;
  background: var(--cyan); opacity: .35; z-index: -1;
}
.hero .lead { max-width: 560px; margin-bottom: 2rem; }
.hero__checks { list-style: none; padding: 0; margin: 2.2rem 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .95rem; color: var(--muted); }
.hero__checks li { display: inline-flex; gap: .5em; align-items: center; }
.hero__checks svg { width: 18px; height: 18px; color: var(--cyan-600); flex: none; }

.hero__media { position: relative; aspect-ratio: 1 / 1.02; }
.hero__img {
  position: absolute; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__img--a { inset: 0 18% 22% 0; border-top-right-radius: 160px; }
.hero__img--b { width: 52%; aspect-ratio: 1; right: 0; bottom: 0; border: 6px solid #fff; border-radius: 50% 50% 50% 18px; }
.hero__comma { position: absolute; top: -2%; right: 6%; width: 12%; color: var(--brand); filter: drop-shadow(0 12px 20px rgb(2 186 206 / .35)); }

.badge-card {
  position: absolute; z-index: 2; background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px; font-size: .88rem; line-height: 1.3; color: var(--muted);
}
.badge-card strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1rem; }
.badge-card--year { left: -4%; bottom: 14%; }
.badge-card--year .badge-card__num { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; color: var(--cyan-600); line-height: 1; }
.badge-card--cam { left: 6%; top: 6%; padding: 10px 14px; }
.badge-card--cam img { width: 150px; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__media { max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 480px) {
  .badge-card--year { left: 0; }
  .badge-card--cam img { width: 120px; }
}

/* ---------- Franja de datos ---------- */
.stats { margin-top: calc(var(--section) * -0.45); position: relative; z-index: 3; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 26px 26px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--navy); line-height: 1.1; letter-spacing: -.02em; }
.stat__num span { color: var(--cyan-600); }
.stat__label { color: var(--muted); font-size: .94rem; margin-top: 6px; }
@media (max-width: 860px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 420px) { .stat { padding: 20px 18px; } }
@media (max-width: 420px) { .form-card { padding: 22px 18px; } .seg label { padding-inline: .5em; } }

/* ---------- Tarjetas ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__img { aspect-ratio: 16 / 10; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(var(--z, 1) * var(--hz, 1))); transition: transform .5s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.card:hover .card__img img { --hz: 1.05; }
.card__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--muted); }
.card__body .link-arrow { margin-top: auto; }
.card__tag { font-family: var(--font-head); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-600); margin-bottom: .6rem; }

.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature__icon {
  flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--cyan-50); color: var(--cyan-600);
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.12rem; margin-bottom: .35em; }
.feature p { color: var(--muted); margin: 0; font-size: 1rem; }

/* ---------- Split (texto + imagen) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split > * { min-width: 0; }
.split--rev .split__media { order: -1; }
.split__media { position: relative; }
.split__media .zoom { position: relative; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; isolation: isolate; transform: translateZ(0); }
.split__media img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; transform: scale(var(--z, 1)); transition: transform .45s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.split__media::after {
  content: ""; position: absolute; z-index: -1; width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: var(--cyan-50); right: -8%; bottom: -10%;
}
.split--rev .split__media::after { right: auto; left: -8%; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev .split__media { order: 0; } }

/* ---------- Escalera de niveles Cambridge ---------- */
.cambridge { position: relative; overflow: hidden; }
.cambridge::after {
  content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%;
  right: -220px; top: -260px; background: radial-gradient(circle, rgb(1 179 204 / .22), transparent 65%);
}
.cambridge .split { position: relative; z-index: 1; }
.cambridge p { color: #c3d4e2; }
.ladder { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 8px; height: 380px; padding-top: 30px; }
.ladder__step {
  --h: 30%; height: var(--h); position: relative; border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, rgb(1 179 204 / .95), rgb(1 179 204 / .45));
  color: var(--navy-900); text-align: center;
  transform-origin: bottom; animation: rise .9s cubic-bezier(.2,.7,.2,1) both;
}
.ladder__step:nth-child(1) { --h: 30%; animation-delay: .00s; background: linear-gradient(180deg, #7fd9e6, #7fd9e680); }
.ladder__step:nth-child(2) { --h: 40%; animation-delay: .07s; background: linear-gradient(180deg, #5fd0e0, #5fd0e080); }
.ladder__step:nth-child(3) { --h: 50%; animation-delay: .14s; background: linear-gradient(180deg, #3ec6da, #3ec6da80); }
.ladder__step:nth-child(4) { --h: 60%; animation-delay: .21s; }
.ladder__step:nth-child(5) { --h: 71%; animation-delay: .28s; }
.ladder__step:nth-child(6) { --h: 84%; animation-delay: .35s; background: linear-gradient(180deg, #fff, #ffffff90); }
.ladder__step:nth-child(7) { --h: 100%; animation-delay: .42s; background: linear-gradient(180deg, #fff, #ffffff90); }
.ladder__lvl { position: absolute; bottom: calc(100% + 8px); left: 0; right: 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(.78rem, 1.5vw, 1.1rem); line-height: 1; color: #fff; white-space: nowrap; }
.ladder__name {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl; font-family: var(--font-head); font-weight: 700; font-size: clamp(.68rem, 1.1vw, .82rem); letter-spacing: .02em; white-space: nowrap;
}
@keyframes rise { from { transform: scaleY(.08); opacity: 0; } to { transform: none; opacity: 1; } }
.ladder-caption { display: flex; justify-content: space-between; color: #8fa8bc; font-size: .82rem; margin-top: 12px; font-family: var(--font-head); font-weight: 600; letter-spacing: .04em; }
@media (max-width: 520px) { .ladder { height: 300px; gap: 5px; } }

.check-list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 10px; }
.check-list li { display: flex; gap: .7em; align-items: flex-start; }
.check-list li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: .18em; border-radius: 50%;
  background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23001629' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- Cita ---------- */
.quote { position: relative; isolation: isolate; text-align: center; max-width: 980px; margin-inline: auto; padding-block: clamp(24px, 4vw, 48px); }
/* Punto y coma grande como marca de agua detrás de la cita (decorativo, aria-hidden) */
.quote__mark-wrap { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; pointer-events: none; }
.quote__mark { display: block; height: clamp(240px, 34vw, 400px); width: auto; color: var(--brand); opacity: .13; }
.quote blockquote { position: relative; margin: 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.7rem, 3.8vw, 3rem); line-height: 1.18; letter-spacing: -.025em; color: var(--navy); }
.quote blockquote span { color: var(--cyan-600); }
.quote figcaption { margin-top: 22px; color: var(--muted); }

/* ---------- Banda CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy);
  padding: clamp(36px, 6vw, 72px); color: #c9d9e6; display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { margin: 0; font-size: 1.1rem; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/cabinas-800.webp") right center / cover no-repeat; opacity: .14; mix-blend-mode: luminosity;
  transform: translate3d(0, var(--by, 0px), 0) scale(1.2);
}
.cta-band > * { position: relative; }
.cta-band__actions { display: grid; gap: 12px; justify-items: start; }
.cta-band__phone { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: #fff; text-decoration: none; letter-spacing: -.01em; }
.cta-band__phone:hover { color: var(--cyan); }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Cabecera de página interior ---------- */
.page-hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; transform: translate3d(0, var(--py, 0px), 0) scale(1.15); will-change: transform; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--navy) 30%, rgb(0 44 80 / .55) 70%, rgb(0 44 80 / .2)); }
.page-hero .container { position: relative; padding-block: clamp(64px, 10vw, 130px) clamp(56px, 8vw, 100px); }
.page-hero h1 { color: #fff; max-width: 780px; }
.page-hero .lead { color: #d0dfeb; max-width: 640px; margin: 0; }
.page-hero .eyebrow { color: var(--cyan); }
.breadcrumbs { font-size: .88rem; color: #9db5c8; margin-bottom: 1.5rem; }
.breadcrumbs a { color: #d8e6f0; text-decoration: none; }
.breadcrumbs a:hover { color: var(--cyan); }

/* ---------- Prosa ---------- */
.prose { max-width: 760px; }
.prose p, .prose li { color: #33424f; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }

/* ---------- Horarios ---------- */
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; }
.plan__hours { font-family: var(--font-head); font-weight: 800; font-size: 3.2rem; line-height: 1; color: var(--navy); letter-spacing: -.04em; }
.plan__hours small { font-size: 1rem; font-weight: 700; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.plan h3 { margin: 14px 0 8px; font-size: 1.1rem; }
.plan p { color: var(--muted); margin: 0; font-size: 1rem; }
.plan--featured { background: var(--navy); border-color: var(--navy); }
.plan--featured .plan__hours, .plan--featured h3 { color: #fff; }
.plan--featured p, .plan--featured .plan__hours small { color: #c2d3e1; }
.plan__flag { position: absolute; top: 18px; right: 18px; background: var(--cyan); color: var(--navy-900); font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.days { display: flex; gap: 6px; margin-top: 18px; }
.days span { flex: 1; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: .78rem; padding: 7px 0; border-radius: 8px; background: var(--bg-soft); color: #9aa7b3; }
.days span.on { background: var(--cyan-50); color: var(--cyan-600); box-shadow: inset 0 0 0 1px var(--cyan-100); }
.days span.opt { background: #fff; color: var(--cyan-600); box-shadow: inset 0 0 0 1.5px var(--cyan); border: 0; background-image: repeating-linear-gradient(135deg, transparent 0 4px, var(--cyan-50) 4px 8px); }
.days__legend { display: flex; align-items: center; gap: 8px; margin: 10px 0 0 !important; font-size: .82rem !important; color: var(--muted); }
.opt-dot { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--cyan); background-image: repeating-linear-gradient(135deg, transparent 0 3px, var(--cyan-50) 3px 6px); flex: none; }
.plan--featured .days span { background: rgb(255 255 255 / .07); color: #6e8aa1; }
.plan--featured .days span.on { background: var(--cyan); color: var(--navy-900); box-shadow: none; }

/* ---------- Píldoras de nivel ---------- */
.levels { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.level { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.level__cefr { flex: none; min-width: 58px; text-align: center; font-family: var(--font-head); font-weight: 800; font-size: .9rem; padding: 6px 8px; border-radius: 10px; background: var(--cyan-50); color: var(--cyan-600); }
.level__name { font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.level__name small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .88rem; }

.exam-group { background: var(--bg-soft); border-radius: var(--radius); padding: 28px; }
.exam-group h3 { display: flex; align-items: center; gap: 10px; }
.exam-group__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; }
.exam-group__icon svg { width: 22px; height: 22px; }
.exam-group > p { color: var(--muted); font-size: .98rem; }

/* ---------- Fichas de nivel ---------- */
.levels li { list-style: none; }
a.level--link { text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
a.level--link::after { content: "→"; margin-left: auto; color: var(--cyan-600); opacity: 0; transition: opacity .2s, transform .2s; }
a.level--link:hover { border-color: var(--cyan); box-shadow: var(--shadow-sm); transform: translateX(2px); }
a.level--link:hover::after { opacity: 1; transform: translateX(2px); }
.exam-details { display: grid; gap: 12px; }
.exam-detail { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; scroll-margin-top: 110px; }
.exam-detail[open] { border-color: var(--cyan-100); box-shadow: var(--shadow); }
.exam-detail summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 18px 22px; }
.exam-detail summary::-webkit-details-marker { display: none; }
.exam-detail summary .level__cefr { flex: none; min-width: 64px; text-align: center; font-family: var(--font-head); font-weight: 800; font-size: .95rem; padding: 8px; border-radius: 12px; background: var(--cyan-50); color: var(--cyan-600); }
.exam-detail[open] summary .level__cefr { background: var(--navy); color: #fff; }
.exam-detail__title { flex: 1; min-width: 0; }
.exam-detail__title strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.08rem; }
.exam-detail__title small { display: block; color: var(--muted); font-size: .9rem; }
.exam-detail__chev { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-soft); position: relative; transition: transform .25s, background .2s; }
.exam-detail__chev::before { content: ""; position: absolute; left: 50%; top: 46%; width: 9px; height: 9px; border-right: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy); transform: translate(-50%, -50%) rotate(45deg); }
.exam-detail[open] .exam-detail__chev { transform: rotate(180deg); background: var(--cyan-50); }
.exam-detail summary:hover .exam-detail__chev { background: var(--cyan-50); }
.exam-detail__body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; padding: 4px 22px 26px 102px; }
.exam-detail__body h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.3; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-600); margin: 14px 0 6px; }
.exam-detail__body p { color: #33424f; font-size: 1rem; margin: 0; }
.exam-parts { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.exam-parts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; font-size: .95rem; }
.exam-parts li + li { border-top: 1px solid var(--line); }
.exam-parts li span:first-child { font-weight: 600; color: var(--navy); }
.exam-parts li span:last-child { color: var(--muted); text-align: right; }
.exam-detail__note { margin-top: 14px !important; padding: 12px 14px; border-radius: 12px; background: var(--cyan-50); font-size: .93rem !important; }
@media (max-width: 760px) {
  .exam-detail summary { padding: 14px 16px; gap: 12px; }
  .exam-detail summary .level__cefr { min-width: 54px; font-size: .85rem; }
  .exam-detail__body { grid-template-columns: 1fr; padding: 0 16px 20px; }
}

/* ---------- Convocatorias ---------- */
.conv { --paper: #8a5a00; --paper-soft: #fbefd5; --urgent: #b93a0a; --urgent-soft: #ffedd5; --closed: #9a2c2c; --closed-soft: #f9e3e3; }
.conv__toolbar {
  display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: flex-end;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px;
}
.conv__group { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.conv__group--wide { flex-basis: 100%; }
.conv__group[hidden] { display: none; }
.conv__label { font-family: var(--font-head); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.conv__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.conv__chip {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .92rem; font-weight: 600; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.conv__chip:hover { border-color: var(--cyan-100); background: var(--cyan-50); }
.conv__chip .lvl { font-size: .76rem; color: var(--muted); font-weight: 700; }
.conv__chip[aria-pressed="true"] { color: #fff; background: var(--navy); border-color: var(--navy); }
.conv__chip[aria-pressed="true"] .lvl { color: rgb(255 255 255 / .7); }
.conv__seg { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-left: auto; }
.conv__seg button {
  font: inherit; font-family: var(--font-head); font-size: .88rem; font-weight: 700; border: 0; background: transparent; color: var(--muted);
  padding: 8px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s;
}
.conv__seg button[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.conv__seg--small { margin-left: 0; }
.conv__seg--small button { font-size: .82rem; padding: 5px 12px; }
.conv__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 16px 4px 12px; color: var(--muted); font-size: .94rem; }
.conv__count { font-weight: 600; color: var(--navy); }
.conv__meta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-left: auto; }
.conv__sort { display: flex; align-items: center; gap: 8px; }
.conv__reset { font: inherit; font-size: .94rem; background: none; border: 0; color: var(--navy); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }
.conv__reset[hidden] { display: none; }

.conv__results { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.conv__table { width: 100%; border-collapse: collapse; font-size: .96rem; font-variant-numeric: tabular-nums; }
.conv__table thead th {
  text-align: left; font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: var(--bg-soft); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.conv__table td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.conv__table tbody tr:last-child td { border-bottom: 0; }
.conv__table tbody tr:not(.c-month):hover { background: #f8fbfc; }
.conv__table .c-month th {
  text-align: left; font-family: var(--font-head); font-weight: 800; font-size: .95rem; color: var(--navy);
  background: #fff; padding: 18px 16px 8px; border-bottom: 2px solid var(--cyan-100);
}
.conv__table tbody tr:first-child.c-month th { padding-top: 12px; }
.c-exam { font-weight: 600; color: var(--navy); }
.c-note { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); }
.c-date { font-weight: 600; white-space: nowrap; }
.c-close { color: var(--muted); white-space: nowrap; }
.c-city { color: var(--muted); white-space: nowrap; }
.c-price { font-weight: 700; white-space: nowrap; text-align: right; color: var(--navy); }
.conv__table thead th.c-price { text-align: right; }
.conv--one-city .c-city { display: none; }
.weekday { display: inline-block; min-width: 2.1em; font-weight: 500; color: var(--muted); }
.cdate { white-space: nowrap; }

.cbadge { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.cbadge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cbadge--digital { color: var(--cyan-600); background: var(--cyan-50); }
.cbadge--paper { color: var(--paper); background: var(--paper-soft); }
.cbadge--soon { color: var(--muted); background: var(--bg-soft); }
.cbadge--closed { color: var(--closed); background: var(--closed-soft); }
.cbadge--flex { color: var(--navy); background: var(--cyan-50); }
.cbadge--urgent { color: var(--urgent); background: var(--urgent-soft); margin-left: 8px; }
.cbadge--critical { color: var(--closed); background: var(--closed-soft); }
.cbadge--critical::before { animation: cpulse 1.4s ease-in-out infinite; }
@keyframes cpulse { 50% { opacity: .25; } }
.cbtn {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-size: .86rem; font-weight: 700; color: #fff;
  background: var(--navy); text-decoration: none; padding: 7px 14px; border-radius: 999px; white-space: nowrap; transition: background .15s, transform .1s;
}
.cbtn:hover { background: var(--navy-800); color: #fff; }
.cbtn:active { transform: scale(.97); }
.cbtn svg { width: 14px; height: 14px; }
.cseats { display: block; margin-top: 4px; font-size: .78rem; font-weight: 700; color: var(--urgent); }

.conv__empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.conv__empty[hidden] { display: none; }
.conv__empty strong { display: block; color: var(--navy); font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 4px; }
.conv__empty span { display: block; max-width: 440px; margin: 0 auto; }
.conv__empty .btn { margin-top: 16px; }
.conv__empty-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 12px; border-radius: 50%; color: var(--cyan-600); background: var(--cyan-50); }
.conv__empty-icon svg { width: 26px; height: 26px; }
.conv.is-empty .conv__table { display: none; }
.conv__updated { margin: 12px 4px 0; font-size: .84rem; color: var(--muted); }

@media (max-width: 860px) {
  .conv__toolbar { padding: 16px; }
  .conv__group { flex-basis: 100%; }
  .conv__seg { width: 100%; margin-left: 0; }
  .conv__seg button { flex: 1; }
  .conv__seg--small { width: auto; }
  .conv__results { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .conv.is-empty .conv__results { background: #fff; border: 1px solid var(--line); }
  .conv__table thead { display: none; }
  .conv__table, .conv__table tbody { display: block; }
  .conv__table .c-month { display: block; }
  .conv__table .c-month th { display: block; background: transparent; padding: 18px 4px 8px; border: 0; font-size: 1.05rem; }
  .conv__table tbody tr:not(.c-month) {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "exam format" "date date" "close close" "city price" "form form";
    gap: 6px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px; margin-bottom: 12px;
  }
  .conv--one-city .conv__table tbody tr:not(.c-month) { grid-template-areas: "exam format" "date date" "close price" "form form"; }
  .conv__table td { padding: 0; border: 0; }
  .c-exam { grid-area: exam; font-size: 1.05rem; align-self: center; }
  .c-format { grid-area: format; align-self: center; }
  .c-date { grid-area: date; margin-top: 4px; font-size: 1rem; }
  .c-close { grid-area: close; font-size: .92rem; white-space: normal; }
  .c-city { grid-area: city; font-size: .92rem; align-self: center; }
  .c-price { grid-area: price; font-size: 1.1rem; align-self: end; }
  .c-form { grid-area: form; margin-top: 8px; }
  .c-date::before, .c-close::before, .c-city::before { content: attr(data-label) ": "; font-weight: 500; color: var(--muted); }
  .c-date .weekday { color: var(--ink); font-weight: 600; min-width: 0; }
  .c-close .cbadge--urgent { margin: 6px 0 0; display: flex; width: fit-content; }
  .c-form .cbtn, .c-form .cbadge { width: 100%; justify-content: center; padding: 11px 16px; font-size: .95rem; border-radius: 12px; }
  .c-form .cbadge::before { display: none; }
  .cseats { text-align: center; margin-top: 6px; font-size: .86rem; }
}

/* ---------- Comparativa ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.compare__col { padding: 30px; }
.compare__col + .compare__col { border-left: 1px solid var(--line); background: var(--cyan-50); }
.compare__col h3 { display: flex; align-items: center; gap: 10px; }
.compare__col h3 svg { width: 26px; height: 26px; color: var(--cyan-600); }
.compare ul { margin: 0; padding-left: 1.1em; color: #33424f; }
.compare li { margin-bottom: .6em; }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } .compare__col + .compare__col { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Destacado Linguaskill ---------- */
.highlight {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 48px); align-items: center;
  background: linear-gradient(135deg, var(--cyan-50), #fff 70%); border: 1px solid var(--cyan-100); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px);
}
.highlight__big { font-family: var(--font-head); font-weight: 800; font-size: clamp(3rem, 7vw, 5.4rem); line-height: .9; color: var(--cyan-600); letter-spacing: -.05em; text-align: center; }
.highlight__big small { display: block; font-size: .95rem; letter-spacing: .02em; color: var(--navy); margin-top: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.3rem; padding: 0; list-style: none; }
.pills li { background: #fff; border: 1px solid var(--cyan-100); color: var(--navy); font-weight: 600; font-size: .88rem; padding: 6px 12px; border-radius: 999px; }
@media (max-width: 700px) { .highlight { grid-template-columns: 1fr; } }

/* ---------- Línea de tiempo ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--cyan-100); }
.timeline li { position: relative; padding-left: 44px; padding-bottom: 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--cyan); }
.timeline__when { font-family: var(--font-head); font-weight: 800; color: var(--cyan-600); font-size: .95rem; letter-spacing: .04em; }
.timeline h3 { margin: 2px 0 6px; font-size: 1.15rem; }
.timeline p { color: var(--muted); margin: 0; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.gallery img:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; } }

/* ---------- Formulario ---------- */
.form-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 6px; }
.field label .req { color: var(--cyan-600); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg-soft);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); background: #fff; box-shadow: 0 0 0 4px rgb(1 179 204 / .15); }
.field--check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.field--check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.field--check label { font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .92rem; margin: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
/* ---------- Formulario con canal ---------- */
.cform fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cform__fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.cform__q { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1rem; margin-bottom: 10px; padding: 0; }
.no-js .cform__channel { display: none; }

.seg { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 5px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1em; border-radius: 999px; cursor: pointer; user-select: none;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem; color: var(--muted); transition: color .3s ease;
}
.seg label svg { width: 1.2em; height: 1.2em; }
.seg input:checked + label { color: #fff; }
.seg input:focus-visible + label { outline: 3px solid var(--cyan); outline-offset: 2px; }
.seg__thumb {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px;
  background: var(--navy); box-shadow: 0 6px 16px -6px rgb(0 44 80 / .45);
  transform: translateX(100%); transition: transform .4s cubic-bezier(.3,.9,.3,1.1), background .3s ease, box-shadow .3s ease;
}
.cform[data-mode="whatsapp"] .seg__thumb { transform: translateX(0); background: var(--wa); box-shadow: 0 6px 16px -6px rgb(21 128 61 / .5); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: .45em; padding: .55em 1.05em; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 500; font-size: .94rem;
  transition: background .2s, border-color .2s, color .2s;
}
.chip span::before {
  content: ""; width: 0; height: 14px; overflow: hidden; transition: width .2s ease;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300788a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.chip:hover span { border-color: var(--cyan-100); background: var(--cyan-50); }
.chip input:checked + span { border-color: var(--cyan); background: var(--cyan-50); color: var(--navy); font-weight: 600; }
.chip input:checked + span::before { width: 14px; }
.chip input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }

.cform__inputs { display: grid; gap: 12px; }
.only-email { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .35s ease, opacity .3s ease; }
.only-email__inner { min-height: 0; overflow: hidden; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 2px; margin: -2px; }
.cform[data-mode="whatsapp"] .only-email { grid-template-rows: 0fr; opacity: 0; }
.cform[data-mode="whatsapp"] .only-email__inner { visibility: hidden; transition: visibility 0s .35s; }
@media (max-width: 560px) { .only-email__inner { grid-template-columns: 1fr; } }

.ffield { position: relative; }
.ffield input, .ffield textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 14px; padding: 24px 15px 9px; transition: border-color .2s, box-shadow .2s;
}
.ffield textarea { min-height: 112px; resize: vertical; }
.ffield label {
  position: absolute; left: 16px; top: 17px; color: var(--muted); font-size: 1rem; pointer-events: none;
  transform-origin: left top; transition: transform .2s ease, color .2s ease;
}
.ffield input:focus, .ffield textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgb(1 179 204 / .15); }
.ffield input:focus + label, .ffield input:not(:placeholder-shown) + label,
.ffield textarea:focus + label, .ffield textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.76); color: var(--cyan-600); font-weight: 600; }
.ffield input:user-invalid { border-color: #d64545; }

.cform .field--check { display: flex; gap: 10px; align-items: flex-start; }
.cform .field--check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.cform .field--check label { color: var(--muted); font-size: .9rem; }
.only-wa { display: none; }
.cform[data-mode="whatsapp"] .only-wa { display: inline; }

.cform__send { width: 100%; padding-block: 1.05em; font-size: 1.05rem; white-space: normal; text-align: center; }
.cform[data-mode="email"] .send-wa, .cform[data-mode="whatsapp"] .send-email { display: none; }
.cform .form-status { margin-top: 0; }

.cform__done { display: none; text-align: center; padding: 24px 8px 8px; }
.cform__done:focus { outline: none; }
.cform.is-sent .cform__fields { display: none; }
.cform.is-sent .cform__done { display: block; animation: pop .45s cubic-bezier(.3,.9,.3,1.2) both; }
.cform__done-icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: #e7f7ee; color: #1a9e4b; }
.cform__done-icon svg { width: 38px; height: 38px; }
.cform__done p { color: var(--muted); }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }

.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-weight: 500; }
.form-status.is-ok { display: block; background: #e7f7ee; color: #14613a; }
.form-status.is-err { display: block; background: #fdecec; color: #8a1f1b; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 22px; }
.steps li { counter-increment: s; display: flex; gap: 16px; }
.steps li::before {
  content: counter(s); flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 800;
}
.steps h3 { font-size: 1.05rem; margin: 6px 0 4px; }
.steps p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Contacto ---------- */
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
a.contact-card:hover { border-color: var(--cyan); box-shadow: var(--shadow-sm); transform: translateY(-2px); color: var(--ink); }
.contact-card__icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--cyan-50); color: var(--cyan-600); }
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card small { display: block; color: var(--muted); font-size: .84rem; }
.contact-card strong { font-family: var(--font-head); color: var(--navy); font-size: 1.05rem; word-break: break-word; }

.map-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 320px; background: var(--navy); color: #fff; display: flex; align-items: flex-end; }
.map-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.map-card__body { position: relative; padding: 30px; background: linear-gradient(0deg, rgb(0 22 41 / .95), transparent); width: 100%; }
.map-card__title { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: #fff; margin: 0 0 4px; letter-spacing: -.01em; }
.map-card__body p { color: #c9d9e6; }

/* ---------- Pie ---------- */
.footer { background: var(--navy-900); color: #9fb3c4; padding-top: clamp(56px, 7vw, 88px); font-size: .96rem; }
.footer a { color: #d6e3ee; text-decoration: none; }
.footer a:hover { color: var(--cyan); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 48px; }
.footer__logo { width: 200px; margin-bottom: 18px; }
.footer__title { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__cam { background: #f2f2f2; border-radius: 12px; padding: 10px; width: 190px; margin-top: 18px; }
.footer__bottom { border-top: 1px solid rgb(255 255 255 / .08); padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 40; right: calc(22px + env(safe-area-inset-right, 0px)); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa); color: #fff; text-decoration: none; border-radius: 999px; padding: 12px 20px 12px 14px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  box-shadow: 0 12px 30px -8px rgb(21 128 61 / .5); transition: transform .2s, box-shadow .2s;
}
.wa-float svg { width: 28px; height: 28px; flex: none; }
.wa-float:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 16px 34px -8px rgb(21 128 61 / .6); }
.btn--wa { --b: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-hover); border-color: var(--wa-hover); color: #fff; }
.contact-card__icon--wa { background: #e7f9ee; color: #1a9e4b; }
@media (max-width: 720px) { .wa-float { display: none; } }
@media (max-width: 340px) { .fab .btn svg { display: none; } }

/* ---------- Botón flotante de llamada (móvil) ---------- */
.fab { display: none; }
@media (max-width: 720px) {
  .fab {
    display: flex; position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    gap: 10px; transform: translateY(140%); transition: transform .3s ease;
  }
  .fab.is-visible { transform: none; }
  .fab { gap: 8px; }
  .fab .btn { flex: 1 1 0; min-width: 0; box-shadow: var(--shadow-lg); padding: .85em .5em; font-size: .9rem; gap: .4em; }
  .fab .btn svg { width: 1.05em; height: 1.05em; }
  body { padding-bottom: 0; }
}

/* ---------- Capas con movimiento ---------- */
[data-parallax] { will-change: transform; }
.hero__media [data-parallax] { transition: transform .35s cubic-bezier(.2,.7,.2,1); }

/* ---------- Índice fijo de página ---------- */
html:has(.subnav) { scroll-padding-top: 150px; }
.subnav {
  position: sticky; top: calc(80px + env(safe-area-inset-top, 0px)); z-index: 45;
  background: rgb(255 255 255 / .92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.subnav .container { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.subnav__list {
  display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0;
  overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.subnav__list::-webkit-scrollbar { display: none; }
.subnav__list a {
  display: block; white-space: nowrap; padding: .5em 1em; border-radius: 999px; text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--muted); transition: background .25s, color .25s;
}
.subnav__list a:hover { color: var(--navy); background: var(--bg-soft); }
.subnav__list a.is-active { background: var(--navy); color: #fff; }
.subnav__cta { flex: none; }
.subnav__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; }
.subnav__progress span { display: block; height: 100%; width: 100%; background: var(--cyan); transform-origin: left; transform: scaleX(var(--p, 0)); }
.exam-detail { scroll-margin-top: 160px; }
@media (max-width: 980px) {
  .subnav { top: calc(68px + env(safe-area-inset-top, 0px)); }
  html:has(.subnav) { scroll-padding-top: 136px; }
}
@media (max-width: 560px) {
  .subnav__cta { display: none; }
  .subnav__list { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
}

/* ---------- Animación de entrada ---------- */
.reveal { transform: translateY(26px); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { transform: none; }
.no-js .reveal { transform: none; }

/* ---------- Utilidades ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.stack > * + * { margin-top: 1rem; }
.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: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; color: #fff; }
.placeholder { background: #fff6d6; border-bottom: 2px dashed #e0b400; padding: 0 4px; }

/* =========================================================
   Exams León — componentes propios (se añaden a la hoja común)
   ========================================================= */

/* ---------- Marca: punto y coma del logo + «Exams León» ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); margin: 0; }
.brand:hover { color: var(--navy); }
.brand__mark { flex: none; width: 46px; height: 46px; border-radius: 13px; background: var(--navy); display: grid; place-items: center; transition: transform .3s cubic-bezier(.3,.9,.3,1.2); }
.brand__mark svg { width: 13px; height: 32px; color: var(--brand); }
.brand:hover .brand__mark { transform: rotate(-8deg); }
.brand__text { display: grid; line-height: 1.05; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; }
.brand__name span { color: var(--cyan-600); }
.brand__sub { font-family: var(--font-head); font-weight: 600; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.brand--light .brand__mark { background: #fff; }
.brand--light .brand__mark svg { color: var(--navy); }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__name span { color: var(--cyan); }
.brand--light .brand__sub { color: #9fb3c4; }
.footer .brand { margin-bottom: 20px; }

/* Seis apartados en el menú: más compacto antes de pasar al menú móvil */
@media (min-width: 981px) {
  .nav__list a { white-space: nowrap; padding: .55em .72em; }
  .header .container { gap: 18px; }
}
@media (max-width: 1180px) and (min-width: 981px) {
  .header .container { gap: 14px; }
  .nav__list a { padding: .5em .62em; font-size: .9rem; }
  .nav__cta { margin-left: 4px; }
  .brand__sub { display: none; }
}
@media (max-width: 980px) {
  .brand__mark { width: 40px; height: 40px; border-radius: 11px; }
  .brand__mark svg { width: 11px; height: 28px; }
  .brand__name { font-size: 1.3rem; }
  .brand__sub { font-size: .62rem; }
}

/* ---------- Portada ---------- */
.hero h1 em { white-space: normal; }
.hero__img--a { border-top-right-radius: 160px; }
.badge-card--code { right: -3%; top: 40%; }
.badge-card--code .badge-card__num { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--navy); line-height: 1; letter-spacing: -.02em; }
@media (max-width: 480px) { .badge-card--code { right: 0; } }

/* Próximas convocatorias */
.next-conv { --paper: #8a5a00; --paper-soft: #fbefd5; --urgent: #b93a0a; --urgent-soft: #ffedd5; --closed: #9a2c2c; --closed-soft: #f9e3e3;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); min-height: 190px; }
.next-conv__card {
  display: flex; gap: 18px; align-items: flex-start; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.next-conv__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.next-conv__date { flex: none; width: 64px; padding: 10px 0 8px; border-radius: 16px; background: var(--navy); color: #fff; text-align: center; font-family: var(--font-head); line-height: 1; }
.next-conv__day { display: block; font-weight: 800; font-size: 1.9rem; letter-spacing: -.03em; }
.next-conv__month { display: block; margin-top: 4px; font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.next-conv__body { display: grid; gap: 8px; min-width: 0; }
.next-conv__top { display: flex; flex-wrap: wrap; gap: 6px; }
.next-conv__top .cbadge { margin: 0; }
.next-conv__title { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.02rem; line-height: 1.25; }
.next-conv__levels { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: .9rem; }
.next-conv__levels li + li::before { content: "·"; margin-right: 10px; color: var(--cyan-600); }
.next-conv__close { font-size: .86rem; color: var(--muted); }
.next-conv__empty { grid-column: 1 / -1; margin: 0; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px dashed var(--line); text-align: center; color: var(--muted); }
.next-conv__skeleton { border-radius: var(--radius); background: linear-gradient(90deg, #fff 0%, var(--bg-soft) 50%, #fff 100%); background-size: 200% 100%; border: 1px solid var(--line); animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.cbadge--open { color: #14613a; background: #e7f7ee; }
@media (max-width: 960px) { .next-conv { grid-template-columns: 1fr; min-height: 0; } .next-conv__skeleton { min-height: 120px; } }

/* Avisos */
.notices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.notice { position: relative; padding: 24px 24px 22px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; }
.notice::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--cyan); }
.notice__date { font-family: var(--font-head); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-600); margin: 0 0 8px; }
.notice h3 { font-size: 1.08rem; margin-bottom: .4em; }
.notice p { color: var(--muted); font-size: .98rem; margin: 0; }
@media (max-width: 900px) { .notices { grid-template-columns: 1fr; } }

/* ---------- Tarjetas de examen (portada y Exámenes) ---------- */
.exam-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.exam-tile {
  position: relative; display: flex; flex-direction: column; padding: 26px 24px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); overflow: hidden; isolation: isolate; transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.exam-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.exam-tile::after {
  content: ""; position: absolute; z-index: -1; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%;
  background: var(--cyan-50); transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.exam-tile:hover::after { transform: scale(1.5); }
.exam-tile__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--navy); color: #fff; display: grid; place-items: center; margin-bottom: 18px; }
.exam-tile__icon svg { width: 24px; height: 24px; }
.exam-tile__tag { font-family: var(--font-head); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-600); margin-bottom: 4px; }
.exam-tile h3 { font-size: 1.2rem; margin-bottom: .35em; }
.exam-tile p { color: var(--muted); font-size: .96rem; margin-bottom: 16px; }
.exam-tile__levels { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.exam-tile__levels span { font-family: var(--font-head); font-weight: 700; font-size: .8rem; padding: 4px 9px; border-radius: 8px; background: var(--bg-soft); color: var(--navy); }
@media (max-width: 1060px) { .exam-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .exam-tiles { grid-template-columns: 1fr; } }

/* Lista de exámenes por nivel (página Exámenes) */
.exam-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.exam-list a { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
.exam-list a:hover { border-color: var(--cyan); box-shadow: var(--shadow-sm); transform: translateY(-2px); color: var(--ink); }
.exam-list .level__cefr { min-width: 64px; }
.exam-list strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.05rem; }
.exam-list small { display: block; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.exam-list a::after { content: "→"; margin-left: auto; padding-left: 8px; color: var(--cyan-600); font-family: var(--font-head); font-weight: 700; transition: transform .2s; }
.exam-list a:hover::after { transform: translateX(4px); }
@media (max-width: 760px) { .exam-list { grid-template-columns: 1fr; } }

/* ---------- Ficha de examen ---------- */
.page-hero__mark {
  position: absolute; right: var(--gutter); bottom: -.18em; z-index: 0; pointer-events: none;
  font-family: var(--font-head); font-weight: 800; font-size: clamp(7rem, 22vw, 17rem); line-height: 1; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 2px rgb(1 179 204 / .45);
}
.page-hero .container > *:not(.page-hero__mark) { position: relative; z-index: 1; }
@media (max-width: 700px) { .page-hero__mark { font-size: 6.5rem; opacity: .6; } }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; margin-top: calc(var(--section) * -0.4); position: relative; z-index: 3; }
.fact { padding: 22px 24px; border-right: 1px solid var(--line); display: flex; gap: 14px; align-items: flex-start; }
.fact:last-child { border-right: 0; }
.fact svg { flex: none; width: 26px; height: 26px; color: var(--cyan-600); margin-top: 2px; }
.fact small { display: block; color: var(--muted); font-size: .84rem; }
.fact strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.05rem; line-height: 1.3; }
@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 460px) { .facts { grid-template-columns: 1fr; } .fact { border-right: 0; border-bottom: 1px solid var(--line); } .fact:last-child { border-bottom: 0; } }

.exam-info { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.exam-info h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.exam-info h3 { font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-600); margin: 1.6em 0 .5em; }
.exam-info h3:first-of-type { margin-top: .6em; }
.exam-info p, .exam-info li { color: #33424f; }
.exam-info .exam-parts { background: #fff; }
.exam-info .exam-detail__note { margin-top: 16px !important; }
.versions { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.versions li { padding: 16px 18px; border-radius: 14px; background: var(--bg-soft); }
.versions strong { display: block; font-family: var(--font-head); color: var(--navy); }
.versions span { color: var(--muted); font-size: .96rem; }
@media (max-width: 900px) { .exam-info { grid-template-columns: 1fr; } }

/* Escala de puntuación */
.scale { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.scale li { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 12px; font-size: .95rem; }
.scale b { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: .9rem; }
.scale span { padding: 8px 12px; border-radius: 10px; background: var(--bg-soft); color: #33424f; }
.scale .is-target span { background: var(--navy); color: #fff; font-weight: 600; }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--cyan-100); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 20px; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.05rem; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002c50' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s, background-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--cyan-50); }
.faq__a { padding: 0 20px 20px; color: #33424f; }
.faq__a p:last-child, .faq__a ul:last-child { margin-bottom: 0; }

/* ---------- Matrícula ---------- */
.bank { display: grid; gap: 4px; padding: 18px 20px; border-radius: 16px; background: var(--navy); color: #c9d9e6; margin: 14px 0 6px; }
.bank small { font-size: .82rem; letter-spacing: .04em; }
.bank__iban { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.bank__iban code { font-family: var(--font-head); font-weight: 700; font-size: clamp(1rem, 2.4vw, 1.2rem); color: #fff; letter-spacing: .04em; word-break: break-word; }
.copy-btn { font: inherit; font-family: var(--font-head); font-weight: 700; font-size: .82rem; color: var(--navy-900); background: var(--cyan); border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer; transition: background .2s; }
.copy-btn:hover { background: #19c3db; }
.no-js .copy-btn { display: none; }

.fees { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .98rem; }
.fees th, .fees td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.fees tr:last-child th, .fees tr:last-child td { border-bottom: 0; }
.fees th { font-weight: 500; color: #33424f; }
.fees td { text-align: right; font-family: var(--font-head); font-weight: 700; color: var(--navy); white-space: nowrap; }
.fees td small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .84rem; white-space: normal; }
.fees caption { text-align: left; font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.15rem; padding: 0 0 12px; }
.fine { font-size: .9rem; color: var(--muted); }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 32px); align-items: start; }
@media (max-width: 860px) { .cards-2 { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.panel h3 { margin-bottom: .5em; }
.panel p, .panel li { color: #33424f; }
.panel ul { padding-left: 1.1em; margin: 0 0 1em; }

/* ---------- Linguaskill: próximos viernes ---------- */
.ls-dates { list-style: none; margin: 0 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ls-dates li { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 14px; background: #fff; border: 1px solid var(--cyan-100); font-family: var(--font-head); font-weight: 700; color: var(--navy); line-height: 1.1; }
.ls-dates small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .78rem; }
.ls-dates__day { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 1.1rem; }

/* ---------- Recursos ---------- */
.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.res-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-family: var(--font-head); font-weight: 700; transition: border-color .2s, box-shadow .2s, transform .2s; }
.res-link:hover { border-color: var(--cyan); box-shadow: var(--shadow-sm); transform: translateY(-2px); color: var(--navy); }
.res-link .level__cefr { min-width: 56px; font-size: .82rem; }
.res-link svg { width: 16px; height: 16px; margin-left: auto; color: var(--cyan-600); flex: none; }
.res-link small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .84rem; }
@media (max-width: 900px) { .res-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .res-grid { grid-template-columns: 1fr; } }

/* Vídeo: enlace a YouTube sin cargar nada de terceros */
.video-card { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); color: #fff; text-decoration: none; box-shadow: var(--shadow-lg); isolation: isolate; }
.video-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; z-index: -1; transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.video-card:hover img { transform: scale(1.05); opacity: .3; }
.video-card:hover { color: #fff; }
.video-card__play { width: 78px; height: 78px; border-radius: 50%; background: var(--cyan); color: var(--navy-900); display: grid; place-items: center; box-shadow: 0 0 0 10px rgb(1 179 204 / .25); transition: transform .25s; }
.video-card:hover .video-card__play { transform: scale(1.08); }
.video-card__play svg { width: 30px; height: 30px; margin-left: 4px; }
.video-card__text { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 22px; background: linear-gradient(0deg, rgb(0 22 41 / .9), transparent); font-family: var(--font-head); font-weight: 700; }
.video-card__text small { display: block; font-family: var(--font-body); font-weight: 400; color: #c9d9e6; font-size: .86rem; }

/* ---------- Oposiciones ---------- */
.equiv { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .96rem; }
.equiv caption { text-align: left; font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.15rem; padding: 0 0 12px; }
.equiv th, .equiv td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.equiv thead th { font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--bg-soft); }
.equiv tbody th { font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.equiv tr:last-child th, .equiv tr:last-child td { border-bottom: 0; }
.equiv .lvl { display: inline-block; min-width: 38px; text-align: center; font-family: var(--font-head); font-weight: 800; font-size: .85rem; padding: 3px 8px; border-radius: 8px; background: var(--cyan-50); color: var(--cyan-600); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.callout { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; background: var(--cyan-50); border: 1px solid var(--cyan-100); color: #24404f; }
.callout svg { flex: none; width: 24px; height: 24px; color: var(--cyan-600); margin-top: 2px; }
.callout p { margin: 0; }

/* Índice fijo: menos apartados, sin botón en móvil */
.subnav__list a { white-space: nowrap; }

/* ---------- Oposiciones: calendario de próximas convocatorias ---------- */
.opo-cal { --paper: #8a5a00; --paper-soft: #fbefd5; --urgent: #b93a0a; --urgent-soft: #ffedd5; --closed: #9a2c2c; --closed-soft: #f9e3e3;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.opo-card {
  display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.opo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.opo-card__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.opo-card__top .cbadge { margin: 0; }
.opo-card__when { font-family: var(--font-head); font-weight: 700; font-size: .86rem; color: var(--cyan-600); }
.opo-card__title { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.12rem; line-height: 1.25; }
.opo-card__text { color: var(--muted); font-size: .95rem; }
@media (max-width: 1000px) { .opo-cal { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .opo-cal { grid-template-columns: 1fr; } }
.opo-cal--home .opo-card:nth-child(n+4) { display: none; }
