/* ============================================================ */
/* === FONTS — binarios embebidos como data: URI            === */
/* ============================================================ */
/* Generated by tools/extract-bundle.mjs — edit freely. */

/* latin-ext */

/* latin */

/* latin-ext */

/* latin */

/* latin-ext */

/* latin */

/* latin-ext */

/* latin */

/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-400-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-400-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-400-greek-ext.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}

/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-400-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-400-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/inter-500-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/inter-500-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/inter-500-greek-ext.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}

/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/inter-500-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/inter-500-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/inter-500-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/inter-500-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-600-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-600-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-600-greek-ext.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}

/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-600-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-600-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-600-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-600-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/inter-700-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/inter-700-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/inter-700-greek-ext.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}

/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/inter-700-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/inter-700-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/inter-700-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/inter-700-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic-ext */

/* cyrillic */

/* greek */

/* vietnamese */

/* latin-ext */

/* latin */

/* cyrillic-ext */

/* cyrillic */

/* greek */

/* vietnamese */

/* latin-ext */

/* latin */

/* cyrillic-ext */

/* cyrillic */

/* greek */

/* vietnamese */

/* latin-ext */

/* latin */

/* cyrillic-ext */

/* cyrillic */

/* greek */

/* vietnamese */

/* latin-ext */

/* latin */

/* ============================================================ */
/* === VARIABLES — :root con tokens (colores, sombras, etc) === */
/* ============================================================ */
/* Generated by tools/extract-bundle.mjs — edit freely. */

/* === Colegio de Higienistas Dentales · Castilla-La Mancha === */

:root {
  --teal-900: #0a6d72;
  --teal-700: #0B7A7F;       /* Teal oscuro · CTAs, titulares, enlaces.
                                Era #0E8F94, que daba 3,9:1 sobre blanco (pide 4,5:1):
                                no lo vuelvas a aclarar. Este da 5,1:1. */
  --teal-500: #2BA8AD;
  --aqua-400: #6EC7CD;       /* Aqua medio · acentos */
  --aqua-200: #B8E2E5;
  --aqua-100: #D6EFF1;       /* Aqua claro · fondo dominante */
  --aqua-50:  #EBF7F8;

  --accent: #A51C30;           /* Carmesí institucional · contraste cálido al teal */
  --accent-soft: #D58390;
  --accent-50: #F8E5E8;

  --white: #FFFFFF;
  --ink-900: #0F1A1B;
  --ink-700: #2D3748;        /* Texto largo */
  --ink-500: #4A5568;        /* Texto secundario */
  --ink-400: #6B7785;
  --ink-300: #9AA5B1;
  --ink-200: #CBD5DC;
  --ink-100: #E5ECEE;
  --ink-50:  #F4F8F9;

  --shadow-sm: 0 1px 2px rgba(14,143,148,0.06);
  --shadow-md: 0 2px 8px rgba(14,143,148,0.08);
  --shadow-lg: 0 12px 32px rgba(14,143,148,0.12);
  --shadow-xl: 0 24px 60px rgba(14,143,148,0.18);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --max-w: 1240px;
  --gutter: 24px;

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Poppins', system-ui, -apple-system, sans-serif;

  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================ */
/* === STYLES — base, layout y componentes BEM              === */
/* ============================================================ */
/* Generated by tools/extract-bundle.mjs — edit freely. */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

/* Corta cualquier desborde horizontal accidental (p. ej. los elementos
   [data-reveal="left|right"] arrancan desplazados ±32px antes de animarse,
   lo que creaba scroll lateral en móvil). "clip" no rompe position:sticky
   ni crea un contenedor de scroll, a diferencia de "hidden". */
html, body { overflow-x: clip; }

a { color: var(--teal-700); text-decoration: none; transition: color var(--transition); }

a:hover { color: var(--teal-900); }

/* Enlace "‹ Volver a…" (admin, área privada y fichas públicas).
   inline-flex: evita que el svg (display:block global) parta la línea. */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--teal-700);
  text-decoration: none;
  font-weight: 500;
}
.back-link:hover { color: var(--teal-900); text-decoration: underline; }
.back-link svg { display: inline-block; flex: none; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--teal-900);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: balance;
  font-variation-settings: "opsz" 144;
}

h1 { font-size: clamp(46px, 6vw, 78px); font-weight: 500; line-height: 1.02; letter-spacing: -0.02em; }

/* Cualquier <em> dentro de un titular: italic Fraunces + granate (igual que hero) */
h2 em, h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-variation-settings: "opsz" 144;
}

h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 600; line-height: 1.15; }

h3 { font-size: 22px; font-weight: 600; line-height: 1.25; }

h4 { font-size: 17px; font-weight: 600; color: var(--ink-900); }

p { margin: 0; text-wrap: pretty; }

/* === Foco accesible === */
:focus-visible {
  outline: 2.5px solid var(--teal-700);
  outline-offset: 3px;
  border-radius: 3px;
}
.site-footer :focus-visible { outline-color: var(--white); }

/* === Accesibilidad: texto solo para lectores de pantalla y salto al contenido === */
.sr-only {
  position: absolute !important;
  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: 1000;
  padding: 10px 16px; border-radius: 8px;
  background: var(--teal-900); color: var(--white);
  font-weight: 600; font-size: 15px;
  transition: top .15s;
}
.skip-link:focus, .skip-link:focus-visible { top: 12px; color: var(--white); outline-color: var(--white); }
/* El <main> recibe el foco al saltar (tabindex=-1): sin recuadro alrededor de toda la página */
main[tabindex="-1"]:focus { outline: none; }

/* === Container === */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* === Botones === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  min-height: 48px;
}

.btn-primary {
  background: var(--teal-700);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--teal-900);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--teal-700);
  border-color: var(--teal-700);
}

.btn-secondary:hover {
  background: var(--teal-700);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--teal-700);
  padding: 10px 14px;
}

.btn-ghost:hover { background: var(--aqua-100); }

.btn-sm { padding: 9px 16px; font-size: 14px; min-height: 38px; }

/* === Header === */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1280px;         /* pill centrada con espacio para el botón derecho */
  z-index: 100;
  border-radius: 100px;
  /* Estado base sobre el hero: sin background/borde/blur — solo elementos */
  background: transparent;
  border: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transition:
    background 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    backdrop-filter 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    -webkit-backdrop-filter 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Solo al scrollear aparece el background del pill */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 24px rgba(14, 143, 148, 0.10);
}

/* Anula el .container interno para que el pill ocupe su propio ancho */
.site-header > .container { max-width: none; padding: 0; }

@media (max-width: 700px) {
  .site-header { top: 10px; width: calc(100% - 20px); }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
  padding: 0 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  margin-left: 10px;
}

.brand__logo { width: 44px; height: 44px; flex: 0 0 44px; }

.brand__txt { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }

.brand__txt-top { font-size: 11px; letter-spacing: 0.1em; color: var(--teal-700); font-weight: 500; }

.brand__txt-bot { font-size: 19px; font-weight: 700; color: var(--teal-700); letter-spacing: 0.01em; margin-top: 2px; }

.brand--img { padding: 0; }

.brand__img {
  height: 44px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  display: block;
  mix-blend-mode: multiply;
}

@media (max-width: 600px) {
  .brand__img { height: 40px; }
  .brand__txt-bot { font-size: 15px; }
  .brand__txt-top { font-size: 9px; }
}

.nav { display: flex; align-items: center; gap: 4px; }

.nav__item {
  background: none;
  border: 0;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: 8px;
  white-space: nowrap;
  transition:
    color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav__item:hover {
  color: var(--teal-700);
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.site-header.is-scrolled .nav__item:hover {
  background: var(--aqua-50);
}

.nav__item--active { color: var(--teal-700); font-weight: 600; }

.nav__item--active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  animation: nav-underline-grow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left center;
}

@keyframes nav-underline-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.header-actions { display: flex; align-items: center; gap: 10px; }

/* ════════════════════════════════════════════════════════════════════════
   Menú hamburguesa móvil — botón que aparece <=1100px y abre el .nav como
   drawer lateral. Botón inyectado dinámicamente por js/main.js para no
   tocar el HTML de cada página.
════════════════════════════════════════════════════════════════════════ */
.nav-burger {
  display: none;
  background: transparent;
  border: 0;
  width: 42px; height: 42px;
  padding: 0;
  cursor: pointer;
  color: var(--ink-900);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.nav-burger:hover, .nav-burger:focus-visible {
  background: var(--aqua-50);
  outline: none;
}
.nav-burger svg { width: 22px; height: 22px; }

@media (max-width: 1100px) {
  .nav-burger { display: inline-flex; }

  /* El nav pasa a ser un drawer lateral oculto por defecto */
  .nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(86%, 340px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 88px 22px 28px;
    background: #fff;
    box-shadow: -16px 0 40px rgba(0, 0, 0, 0.18);
    transform: translateX(105%);
    transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__item {
    display: block;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
  }
  .nav__item:hover { background: var(--aqua-50); }
  .nav__item--active { background: var(--aqua-50); color: var(--teal-700); }
  .nav__item--active::after { display: none; }   /* el subrayado animado solo en desktop */

  /* Backdrop oscuro cuando el menú está abierto */
  body.nav-open { overflow: hidden; }
  body.nav-open::before {
    content: "";
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.42);
    z-index: 90;
    animation: navBackdropFade 220ms ease-out;
  }
  @keyframes navBackdropFade { from { opacity: 0; } to { opacity: 1; } }

  /* En móvil ocultamos el texto del botón "Acceso colegiados" para liberar
     espacio. El icono se mantiene como pista visual. */
  .header-actions .btn-ghost.btn-sm { padding: 8px; }
  .header-actions .btn-ghost.btn-sm svg { margin: 0; }
  @media (max-width: 480px) {
    .header-actions .btn-ghost.btn-sm > :not(svg) { display: none; }
  }
}

/* === Footer === */
.site-footer {
  background: var(--teal-900);
  color: rgba(255,255,255,0.85);
  margin-top: 80px;
  /* Garantiza que aparece siempre por encima de cualquier elemento decorativo
     absolute/sticky del contenido (p.ej. .page-hero::after del arc) */
  position: relative;
  z-index: 2;
  clear: both;
}

.site-footer__top {
  padding: 72px 0 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}

.site-footer h4,
.site-footer .footer-title {
  line-height: 1.4;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.site-footer .footer-link {
  display: block;
  color: rgba(255,255,255,0.85);
  font-size: 14.5px;
  padding: 5px 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: color var(--transition);
}

.site-footer .footer-link:hover { color: var(--white); }

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-footer__brand .brand__txt-top { color: rgba(255,255,255,0.6); }

.site-footer__brand .brand__txt-bot { color: var(--white); }

.site-footer__brand p { font-size: 14.5px; color: rgba(255,255,255,0.85); max-width: 320px; }

/* Logo del footer: misma imagen que el header pero invertido a blanco
   para que se lea sobre fondo oscuro */
.footer-brand-img {
  height: 56px;
  width: auto;
  max-width: none;
  align-self: flex-start;     /* evita que el flex-column padre estire el ancho */
  flex-shrink: 0;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  user-select: none;
  -webkit-user-drag: none;
}

.site-footer__social { display: flex; gap: 10px; margin-top: 4px; }

.site-footer__social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: var(--white);
  transition: all var(--transition);
}

.site-footer__social a:hover { background: var(--aqua-400); color: var(--teal-900); }

.site-footer__bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

.site-footer__bottom .legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
/* Sin esto los enlaces legales heredaban el teal de los enlaces: 1,6:1 sobre el pie */
.site-footer__bottom .legal a { color: rgba(255,255,255,0.85); }
.site-footer__bottom .legal a:hover { color: var(--white); text-decoration: underline; }

@media (max-width: 900px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer__bottom { flex-direction: column; gap: 12px; }
}

/* === Page hero (interior) ===
   Mismo patrón visual que `.hero-frame` del index: una "caja" flotante con
   las 4 esquinas redondeadas y aire en todos los lados. Antes solo redondeaba
   arriba (`36px 36px 0 0`) y no tenía margen abajo, lo que hacía que se viera
   "cortado" al encontrarse con la siguiente sección blanca. */
.page-hero {
  background: linear-gradient(180deg, var(--aqua-100) 0%, var(--aqua-50) 100%);
  padding: 130px 0 90px;     /* top extra para librar el pill flotante */
  position: relative;
  overflow: hidden;
  margin: 16px;
  border-radius: 36px;
}

@media (max-width: 700px) {
  .page-hero { margin: 8px; border-radius: 24px; padding: 110px 0 60px; }
}

.page-hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: var(--white);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.page-hero h1 { max-width: 760px; }

.page-hero p.lead {
  margin-top: 20px;
  font-size: 19px;
  max-width: 640px;
  color: var(--ink-700);
  line-height: 1.5;
}

.page-hero__deco {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 360px;
  height: 360px;
  opacity: 0.08;
  pointer-events: none;
}

/* === Section === */
section.section {
  padding: 96px 0;
}

section.section--tight { padding: 64px 0; }

section.section--aqua { background: var(--aqua-50); }

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aqua-400);
  margin-bottom: 14px;
}

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

.section-head { margin-bottom: 48px; max-width: 720px; }

.section-head p { color: var(--ink-500); margin-top: 14px; font-size: 18px; }

/* === Card base === */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid var(--ink-100);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--aqua-200);
}

.card--accent { border-top: 3px solid var(--accent); }

.card__body { padding: 24px; }

/* === Tags / chips === */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  background: var(--aqua-100);
  color: var(--teal-900);
}

.tag--outline {
  background: transparent;
  border: 1px solid var(--ink-200);
  color: var(--ink-500);
}

/* === Form === */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }

.field label { font-size: 13px; font-weight: 500; color: var(--ink-700); }

.field input, .field textarea, .field select {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--ink-200);
  background: var(--white);
  color: var(--ink-900);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(110,199,205,0.18);
}

.field textarea { resize: vertical; min-height: 120px; }

/* En móvil los campos van a 16px: por debajo de eso iOS hace zoom
   automático al enfocar un input, lo que desorienta al usuario. */
@media (max-width: 640px) {
  .field input, .field textarea, .field select { font-size: 16px; }

  /* Formularios públicos (colegiación, publicar oferta…) con rejillas de
     2 columnas definidas inline: en un teléfono los campos quedarían
     estrechísimos — pasan a una columna. El !important es necesario
     porque un style="" inline gana a cualquier regla normal. */
  form fieldset [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}

/* === Page transition === */
.page-fade {
  animation: pageFade 380ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes pageFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Utility === */
.grid { display: grid; gap: 24px; }

.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: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.stack { display: flex; flex-direction: column; }

.row { display: flex; align-items: center; }

.gap-8 { gap: 8px; }

.gap-12 { gap: 12px; }

.gap-16 { gap: 16px; }

.gap-24 { gap: 24px; }

/* Photo placeholder */
.photo-ph {
  background: linear-gradient(135deg, var(--aqua-200), var(--aqua-100));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-700);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-lg);
}

.photo-ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(14,143,148,0.18), transparent 50%);
}

.photo-ph__label { position: relative; z-index: 1; opacity: 0.7; }

/* Icons */
.icon { width: 22px; height: 22px; stroke-width: 1.75; }

/* Red de seguridad para los <svg data-icon> que js/icons.js aún no ha hidratado
   (o no puede: si el nombre no existe en la librería hace `return` y los deja
   sin width/height). Un SVG inline sin dimensiones se dibuja al tamaño por
   defecto del navegador (~300x150) y revienta el contenedor: botones que se
   convierten en cajas gigantes con el texto desplazado.
   `icons.js` marca los ya hidratados con data-icon-ready, así que en cuanto
   hidrata deja de aplicarse esta regla y manda el tamaño real de data-size. */
svg[data-icon]:not([data-icon-ready]) {
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
}

.icon-sm { width: 18px; height: 18px; stroke-width: 1.75; }

.icon-lg { width: 32px; height: 32px; stroke-width: 1.5; }

/* === Estilos específicos de Home === */

/* === HERO ASIMÉTRICO === */
/* La caja única que engloba hero + tarjetas QuickAccess */
.hero-frame {
  position: relative;
  margin: 16px;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(170deg, var(--aqua-200) 0%, var(--aqua-100) 50%, var(--aqua-50) 100%);
}

@media (max-width: 700px) {
  .hero-frame { margin: 8px; border-radius: 24px; }
}

.hero--asym {
  position: relative;
  /* dentro de .hero-frame el fondo lo pone el frame; sin margen ni radius */
  background: transparent;
  overflow: hidden;
  padding: 130px 0 80px;
}

@media (max-width: 700px) {
  .hero--asym { padding: 110px 0 60px; }
}

/* Cuando QuickAccess está dentro del frame, sus tarjetas se asientan sobre
   el final del gradiente; añadimos padding inferior para respirar antes de
   la curva del frame. */
.hero-frame .quick-access {
  padding-bottom: 64px;
}

.hero__bg-logo {
  position: absolute;
  left: -180px;
  top: -120px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.hero__bg-logo-img {
  width: 900px;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Logo como filigrana de fondo (decoración) — heredan width inline por sitio */
.bg-logo-img {
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Variante para fondos oscuros (ej: CTABand) — invertido a blanco semitransparente */
.bg-logo-img--white {
  filter: brightness(0) invert(1);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__copy h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-variation-settings: "opsz" 144;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: rgba(255,255,255,0.7);
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--aqua-200);
  margin-bottom: 24px;
}

.hero__eyebrow .dot {
  width: 7px; height: 7px;
  background: var(--aqua-400);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero__lead {
  margin-top: 24px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-500);
  max-width: 560px;
}

.hero__cta {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__stats {
  margin-top: 56px;
  display: flex;
  gap: 48px;
  border-top: 1px solid var(--aqua-200);
  padding-top: 32px;
}

.hero__stats > div {
  display: flex;
  flex-direction: column;
}

.hero__stats strong {
  font-size: 32px;
  font-weight: 700;
  color: var(--teal-700);
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero__stats span {
  font-size: 13px;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

.hero__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__photo {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
}

.hero__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-xl);
  /* Crossfade del slideshow: la opacidad la controla React (1 = activa, 0 = oculta) */
  transition: opacity 1.5s ease-in-out;
}

/* Herramienta dental completa (mango + espejo) — sólido rígido pivotado en
   su extremo derecho (fuera de pantalla). Imita una mano sujetándola desde
   la derecha. La oscilación la aplica el useEffect en HeroAsymmetric. */
.hero__tool {
  position: absolute;
  top: 50%;
  right: -400px;             /* el extremo derecho cae fuera de la pantalla */
  width: 700px;              /* mango más largo */
  height: 220px;
  margin-top: -110px;
  pointer-events: none;
  transform-origin: 100% 50%; /* pivotamos en el extremo derecho */
  z-index: 3;
}

@media (max-width: 900px) {
  .hero__tool { display: none; } /* en móvil no hay espacio para la herramienta */
}

.hero__handle {
  position: absolute;
  top: 50%;
  left: 65px;                /* arranca dentro del cabezal (oculto bajo él) */
  right: 0;                  /* hasta el pivote */
  height: 5px;               /* sección fina pulida — cuello cerca del cabezal */
  margin-top: -2.5px;
  /* Acabado metálico cromado (gradiente vertical = iluminación cenital) */
  background: linear-gradient(to bottom,
    rgba(110, 120, 130, 0.55) 0%,
    rgba(225, 230, 235, 0.95) 30%,
    rgba(170, 180, 190, 0.80) 50%,
    rgba(225, 230, 235, 0.95) 70%,
    rgba(110, 120, 130, 0.55) 100%);
  border-radius: 100px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 2px 8px rgba(14, 143, 148, 0.22);
}

/* Empuñadura: los últimos ~70% del mango son más gruesos, como en el
   espejo dental real (sección pulida fina + cuerpo de agarre más recio). */
.hero__handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 30%;
  right: 0;
  height: 10px;
  margin-top: -5px;
  background: linear-gradient(to bottom,
    rgba(95, 105, 115, 0.6) 0%,
    rgba(220, 225, 230, 0.95) 28%,
    rgba(160, 170, 180, 0.85) 52%,
    rgba(220, 225, 230, 0.95) 72%,
    rgba(95, 105, 115, 0.6) 100%);
  border-radius: 100px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 3px 10px rgba(14, 143, 148, 0.25);
}

.hero__mirror {
  position: absolute;
  top: 50%;
  left: 0;                   /* extremo izquierdo del mango = cabezal */
  width: 130px;
  height: 130px;
  margin-top: -65px;
  /* Inclinación tipo espejo dental: el cabezal va angulado respecto al mango */
  transform: rotate(-15deg);
  transform-origin: 50% 50%;
  border-radius: 50%;
  /* Lupa: la foto magnificada. JS recalcula size/position cada frame. */
  background-image: url('assets/images/foto-hero.webp');
  background-repeat: no-repeat;
  background-size: 170%;
  background-position: center;
  /* Aro cromado del espejo */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(14, 143, 148, 0.22),
    0 0 0 1.5px rgba(255, 255, 255, 0.6),
    0 18px 40px rgba(14, 143, 148, 0.32);
  will-change: transform;
}

/* Brillo del cristal de la lupa (glare) */
.hero__mirror::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse 70% 55% at 30% 25%,
    rgba(255, 255, 255, 0.32) 0%,
    rgba(255, 255, 255, 0.10) 30%,
    transparent 55%);
  pointer-events: none;
}

.hero__badge {
  position: absolute;
  bottom: 24px;
  left: -24px;
  background: var(--white);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 3px solid var(--aqua-400);
}

.hero__badge svg { color: var(--teal-700); }

.hero__badge strong { display: block; font-size: 14px; color: var(--ink-900); font-weight: 600; }

.hero__badge span { font-size: 12px; color: var(--ink-500); }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__stats { gap: 24px; flex-wrap: wrap; }
}

/* === HERO EDITORIAL === */
.hero--editorial {
  padding: 72px 0 80px;
  background: var(--white);
}

.hero__editorial-h1 {
  font-size: clamp(48px, 7vw, 96px) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.04em !important;
  margin-top: 24px;
  max-width: 1100px;
}

.hero__editorial-h1 em {
  font-style: normal;
  color: var(--aqua-400);
}

.hero__editorial-bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
  margin-top: 36px;
  padding-bottom: 40px;
}

.hero__editorial-img {
  margin-top: 20px;
}

.hero__editorial-img .photo-ph { aspect-ratio: 21/9; border-radius: var(--radius-lg); }

@media (max-width: 800px) {
  .hero__editorial-bottom { grid-template-columns: 1fr; }
}

/* === HERO SPLIT === */
.hero--split {
  position: relative;
  background: linear-gradient(135deg, var(--aqua-100) 0%, var(--white) 60%);
  padding: 100px 0 120px;
  overflow: hidden;
}

.hero__split-deco {
  position: absolute;
  right: -120px;
  bottom: -120px;
  opacity: 0.05;
  pointer-events: none;
}

.hero__split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.hero__split-card {
  background: var(--white);
  padding: 48px 40px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--ink-100);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition);
}

.hero__split-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.hero__split-card--alt {
  background: var(--teal-700);
  color: var(--white);
  border-color: var(--teal-700);
}

.hero__split-card--alt h2,
.hero__split-card--alt .hero__eyebrow {
  color: var(--white);
}

.hero__split-card--alt p { color: rgba(255,255,255,0.8); }

.hero__split-card--alt .hero__eyebrow {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

.hero__split-card--alt .btn-primary {
  background: var(--white);
  color: var(--teal-700);
}

.hero__split-card--alt .btn-primary:hover {
  background: var(--aqua-100);
  color: var(--teal-900);
}

.hero__split-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--aqua-100);
  color: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.hero__split-card--alt .hero__split-icon {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.hero__split-card .btn { align-self: flex-start; margin-top: 12px; }

.hero__split-card p { color: var(--ink-500); font-size: 16px; }

@media (max-width: 800px) {
  .hero__split-inner { grid-template-columns: 1fr; }
}

/* === Quick access === */
.quick-access {
  padding: 0 0 24px;
  margin-top: -32px;
  position: relative;
  z-index: 5;
}

.qa-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.qa-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--aqua-200);
}

.qa-card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--aqua-100);
  color: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.qa-card__title {
  font-weight: 600;
  font-size: 17px;
  color: var(--ink-900);
}

.qa-card__desc {
  font-size: 14px;
  color: var(--ink-500);
}

.qa-card__arrow {
  position: absolute;
  top: 24px; right: 24px;
  color: var(--ink-300);
  transition: all var(--transition);
}

.qa-card:hover .qa-card__arrow {
  color: var(--teal-700);
  transform: translateX(4px);
}

/* === Check list === */
.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--ink-700);
}

.check-list li svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--teal-700);
  background: var(--aqua-100);
  border-radius: 50%;
  padding: 3px;
  width: 22px;
  height: 22px;
}

/* === About photo grid === */
/* === Tarjetas azules de Quiénes somos · layout asimétrico magazine === */
.about-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 16px;          /* row 28 · col 16 — más aire vertical */
  align-items: start;
}

.about-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 12px;
  border: 0;
  cursor: pointer;
  padding: 26px 24px;
  border-radius: 18px;
  color: var(--white);
  overflow: hidden;
  aspect-ratio: 5 / 6;
  /* Offset y se compone con el escalado del hover vía la var --y */
  transform: translateY(var(--y, 0));
  /* Estado inicial de la cortina: el card está totalmente colapsado en su borde superior */
  clip-path: inset(0 0 100% 0);
  transition:
    clip-path 1s cubic-bezier(0.65, 0, 0.35, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 14px 32px rgba(14, 143, 148, 0.22);
}

/* Variantes de fondo — cuatro tonos distintos dentro del rango aqua/teal */
.about-card--1 { background: linear-gradient(150deg, var(--teal-700) 0%, var(--teal-500) 100%); }
.about-card--2 { background: linear-gradient(150deg, var(--aqua-400) 0%, var(--teal-500) 100%); }
.about-card--3 { background: linear-gradient(150deg, var(--accent) 0%, #7A1422 100%); }
.about-card--4 { background: linear-gradient(150deg, var(--aqua-200) 0%, var(--aqua-400) 100%); color: var(--teal-900); }

/* Offsets asimétricos estilo magazine — todos positivos para no colisionar */
.about-card--1 { --y: 0; }
.about-card--2 { --y: 40px; }
.about-card--3 { --y: 14px; }
.about-card--4 { --y: 44px; }

.about-card:hover {
  transform: translateY(calc(var(--y, 0) - 6px));
  box-shadow: 0 22px 44px rgba(14, 143, 148, 0.30);
}

/* Cortina disparada por IntersectionObserver: stagger entre cards */
.about-cards-grid.is-revealed .about-card { clip-path: inset(0); }
.about-cards-grid.is-revealed .about-card--1 { transition-delay: 0s, 0s, 0s; }
.about-cards-grid.is-revealed .about-card--2 { transition-delay: 0.18s, 0s, 0s; }
.about-cards-grid.is-revealed .about-card--3 { transition-delay: 0.36s, 0s, 0s; }
.about-cards-grid.is-revealed .about-card--4 { transition-delay: 0.54s, 0s, 0s; }

.about-card__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: currentColor;
}
.about-card--4 .about-card__icon { background: rgba(255, 255, 255, 0.45); }

.about-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-top: 4px;
}

.about-card__desc {
  font-size: 14.5px;
  line-height: 1.45;
  opacity: 0.86;
}

.about-card__arrow {
  position: absolute;
  bottom: 22px;
  right: 22px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
}
.about-card--4 .about-card__arrow { background: rgba(255, 255, 255, 0.45); }

.about-card:hover .about-card__arrow {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.32);
}
.about-card--4:hover .about-card__arrow { background: rgba(255, 255, 255, 0.65); }

/* Reduced motion: sin cortina */
@media (prefers-reduced-motion: reduce) {
  .about-card { clip-path: none; transition: none; }
}

/* Mobile: rejilla 1 columna, sin offsets ni asimetría */
@media (max-width: 700px) {
  .about-cards-grid { grid-template-columns: 1fr; }
  .about-card,
  .about-card--1, .about-card--2, .about-card--3, .about-card--4 {
    --y: 0;
    aspect-ratio: auto;
    min-height: 180px;
  }
}

/* === News card === */
.news-card { display: flex; flex-direction: column; }

.news-card .photo-ph { border-radius: 0; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--teal-700);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: gap var(--transition);
}

.link-arrow:hover { gap: 10px; }

/* === Resource card === */
.resource-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--ink-100);
  transition: all var(--transition);
}

.resource-card:hover {
  border-color: var(--aqua-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.resource-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--aqua-100), var(--aqua-200));
  color: var(--teal-700);
  margin-bottom: 16px;
}

/* === Course card mini === */
.course-card-mini {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.course-card-mini__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-card-mini__price {
  font-weight: 700;
  font-size: 18px;
  color: var(--teal-700);
}

.course-card-mini__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-500);
  margin-top: 14px;
}

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--teal-900), var(--teal-700));
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-band__inner {
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cta-band__deco {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  pointer-events: none;
}

.cta-band__copy h2 { color: #FFF; max-width: 600px; }

.cta-band__copy p {
  margin-top: 16px;
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
}

.cta-band__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.btn-cta-light {
  background: var(--white);
  color: var(--teal-700);
}

.btn-cta-light:hover { background: var(--aqua-100); color: var(--teal-900); transform: translateY(-1px); }

.btn-cta-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn-cta-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); color: var(--white); }

@media (max-width: 800px) {
  .cta-band__inner { grid-template-columns: 1fr; }
}

/* === Estilos páginas internas === */

/* === Prose & values === */
.prose p { font-size: 17px; line-height: 1.7; color: var(--ink-700); }

.prose p + p { margin-top: 16px; }

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all var(--transition);
}

.value-card:hover { border-color: var(--aqua-200); box-shadow: var(--shadow-md); }

.value-card__icon {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--aqua-100);
  color: var(--teal-700);
  margin-bottom: 12px;
}

.value-card p {
  font-size: 14px;
  color: var(--ink-500);
  margin-top: 4px;
  line-height: 1.5;
}

/* === Person card === */
.person-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-100);
  overflow: hidden;
  transition: all var(--transition);
}

.person-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.person-card .photo-ph { border-radius: 0; }

/* Carta de bienvenida de la Junta de Gobierno */
.junta-welcome {
  max-width: 760px;
  margin: 0 auto 56px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-700);
}

.junta-welcome p { margin-bottom: 14px; }

.junta-welcome__lead {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.3;
  color: var(--teal-900);
  letter-spacing: -0.01em;
  margin-bottom: 22px !important;
  font-variation-settings: "opsz" 144;
}

.junta-welcome__sign {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--accent);
  margin-top: 22px !important;
  text-align: right;
}

@media (max-width: 700px) {
  .junta-welcome__lead { font-size: 22px; }
}

/* === Timeline === */
.timeline {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-left: 2px solid var(--aqua-200);
  padding-left: 24px;
  position: relative;
}

.timeline__item { position: relative; }

.timeline__item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 6px;
  width: 12px; height: 12px;
  background: var(--teal-700);
  border-radius: 50%;
  border: 3px solid var(--aqua-100);
}

.timeline__year {
  display: inline-block;
  font-weight: 700;
  color: var(--teal-700);
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-right: 12px;
}

.timeline__text { color: var(--ink-700); font-size: 15.5px; }

/* === Steps (colegiación) === */
.steps {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.steps__item {
  display: flex;
  gap: 16px;
  background: var(--white);
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--ink-100);
}

.steps__num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--aqua-100);
  color: var(--teal-900);     /* teal-700 sobre aqua-100 no llega a 4,5:1 */
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.04em;
}

.steps__item strong { font-size: 16px; color: var(--ink-900); }

.steps__item p { font-size: 14px; color: var(--ink-500); margin-top: 4px; }

/* === Cuota card === */
.cuota-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-top: 4px solid var(--teal-700);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.cuota-card__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 8px;
}

.cuota-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cuota-card__price strong {
  font-size: 64px;
  font-weight: 700;
  color: var(--teal-700);
  line-height: 1;
  letter-spacing: -0.03em;
}

.cuota-card__price span { font-size: 18px; color: var(--ink-500); font-weight: 500; }

.cuota-card__sub { font-size: 14px; color: var(--ink-500); margin-top: 8px; }

.cuota-card__list {
  list-style: none;
  padding: 24px 0;
  margin: 24px 0;
  border-top: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cuota-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-700);
}

.cuota-card__list li svg {
  color: var(--teal-700);
  background: var(--aqua-100);
  border-radius: 50%;
  padding: 2px;
  width: 18px; height: 18px;
}

.cuota-card__note {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--aqua-100);
  color: var(--teal-900);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
}

/* === Filter bar (formación) === */
.filter-bar {
  display: inline-flex;
  background: var(--ink-50);
  padding: 4px;
  border-radius: 100px;
  gap: 2px;
}

.filter-bar__btn {
  padding: 8px 16px;
  border: 0;
  background: transparent;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-500);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-bar__btn:hover { color: var(--teal-700); }

.filter-bar__btn.is-active {
  background: var(--white);
  color: var(--teal-700);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

/* === Course card (full) === */
.course-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-top: 3px solid var(--aqua-400);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.course-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-top-color: var(--teal-700); }

.course-card__head { display: flex; gap: 8px; flex-wrap: wrap; }

.course-card__meta {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--ink-100);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.course-card__meta div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-500);
}

.course-card__meta svg { color: var(--teal-700); }

.course-card__foot {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-card__price {
  font-size: 22px;
  font-weight: 700;
  color: var(--teal-700);
  letter-spacing: -0.02em;
}

.course-card__price small {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-500);
  letter-spacing: 0;
}

/* === Filtros de catálogo (formación / empleo) === */
.course-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(14, 143, 148, 0.04);
}

/* Botones pill para modalidad */
.pill-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  background: var(--ink-50);
  border-radius: 100px;
  border: 1px solid var(--ink-100);
}

/* Reset agresivo: anulamos el estilo nativo del <button> */
.pill {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-500);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
  white-space: nowrap;
  line-height: 1;
}

.pill:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--teal-700);
}

.pill:focus { outline: none; }
.pill:focus-visible {
  outline: 2px solid var(--teal-500, var(--teal-700));
  outline-offset: 2px;
}

.pill:active { transform: scale(0.97); }

.pill.is-active {
  background: var(--teal-700);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(14, 143, 148, 0.25);
}

.pill.is-active:hover {
  background: var(--teal-900, var(--teal-700));
  color: var(--white);
}

.pill svg {
  flex-shrink: 0;
  color: currentColor;
  opacity: 0.85;
}

.pill.is-active svg { opacity: 1; }

/* Selector de provincia */
.course-filters__province {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 0 12px;
  height: 38px;
  border: 1px solid var(--ink-100);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink-500);
}

.course-filters__province select {
  height: 36px;
  padding: 0 14px 0 4px;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: var(--ink-700);
  cursor: pointer;
}

.course-filters__province select:focus { outline: none; }

@media (max-width: 700px) {
  .course-filters { padding: 14px; flex-direction: column; align-items: stretch; }
  .pill-group { justify-content: center; }
}

/* === Stat cards === */
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--ink-100);
  display: flex;
  flex-direction: column;
}

.stat-card strong {
  font-size: 36px;
  font-weight: 700;
  color: var(--teal-700);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-card span {
  font-size: 13px;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 8px;
}

/* === Empleo === */
.empleo-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink-100);
}

.empleo-bar__count {
  font-size: 16px;
  color: var(--ink-500);
}

.empleo-bar__count strong {
  font-size: 28px;
  color: var(--teal-700);
  font-weight: 700;
  margin-right: 6px;
}

.empleo-bar__filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-select {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-select span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.filter-select select {
  font-family: inherit;
  padding: 8px 12px;
  border: 1.5px solid var(--ink-200);
  border-radius: 8px;
  background: var(--white);
  font-size: 14px;
  color: var(--ink-900);
  min-height: 38px;
}

.filter-select select:focus { outline: none; border-color: var(--teal-500); }

.empleo-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.job-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  transition: all var(--transition);
}

.job-card:hover { border-color: var(--aqua-200); box-shadow: var(--shadow-md); }

.job-card__clinic {
  margin-top: 8px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.job-card__clinic strong { color: var(--ink-700); font-size: 14px; font-weight: 600; }

.job-card__clinic span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-500); }

.job-card__side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  text-align: right;
}

.job-card__salary {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
  color: var(--teal-700);
}

.job-card__date { font-size: 12px; color: var(--ink-400); }

@media (max-width: 700px) {
  .job-card { grid-template-columns: 1fr; }
  .job-card__side { align-items: flex-start; text-align: left; }
}

.empleo-cta {
  margin-top: 56px;
  padding: 32px 36px;
  background: var(--aqua-50);
  border: 1px dashed var(--aqua-400);
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* === Featured news === */
.featured-news {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--ink-100);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.featured-news .photo-ph { border-radius: 0; height: 100%; }

.featured-news__body { padding: 48px; }

.featured-news__date { font-size: 13px; color: var(--ink-400); }

@media (max-width: 800px) {
  .featured-news { grid-template-columns: 1fr; }
  .featured-news__body { padding: 32px; }
}

/* === Newsletter === */
.newsletter-band {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  border: 1px solid var(--ink-100);
}

.newsletter-form {
  display: flex;
  gap: 8px;
  background: var(--ink-50);
  padding: 8px;
  border-radius: 100px;
  border: 1.5px solid var(--ink-100);
  transition: border-color var(--transition);
}

.newsletter-form:focus-within { border-color: var(--teal-500); background: var(--white); }

.newsletter-form input {
  border: 0;
  background: transparent;
  flex: 1;
  padding: 8px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink-900);
  outline: none;
  min-width: 0;
}

.newsletter-form button { border-radius: 100px; }

@media (max-width: 800px) {
  .newsletter-band { grid-template-columns: 1fr; padding: 32px; }
}

/* === Contact === */
.contact-side { display: flex; flex-direction: column; gap: 16px; }

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-100);
  padding: 24px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-700);
}

.contact-list li svg { color: var(--teal-700); flex-shrink: 0; margin-top: 2px; }

.contact-list li span { color: var(--ink-500); font-size: 13.5px; }

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--ink-500);
  cursor: pointer;
  margin-top: 8px;
}

.checkbox input { margin-top: 3px; accent-color: var(--teal-700); }

/* === Login === */
.login-page {
  min-height: calc(100vh - 76px);
  background: linear-gradient(135deg, var(--aqua-100) 0%, var(--white) 80%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 64px 0;
}

.login-deco {
  position: absolute;
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.05;
  pointer-events: none;
}

.login-container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.login-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--ink-100);
  position: relative;
}

.login-back {
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink-500);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  padding: 0;
  transition: color var(--transition);
}

.login-back:hover { color: var(--teal-700); }

.login-card__head { text-align: center; margin-bottom: 32px; }

.login-card__head svg { margin: 0 auto; }

.input-with-action { position: relative; display: flex; }

.input-with-action input { flex: 1; padding-right: 44px; }

.input-action {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-400);
  cursor: pointer;
  border-radius: 6px;
  transition: color var(--transition);
}

.input-action:hover { color: var(--teal-700); }

.login-divider {
  text-align: center;
  margin: 28px 0;
  position: relative;
}

.login-divider::before {
  content: '';
  position: absolute;
  inset: 50% 0 0;
  border-top: 1px solid var(--ink-100);
}

.login-divider span {
  position: relative;
  background: var(--white);
  padding: 0 16px;
  font-size: 13px;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.login-foot {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--ink-500);
}

.login-foot .link-arrow { display: inline-flex; vertical-align: baseline; }

/* === Sponsors === */
.sponsor-grid {
  display: grid;
  gap: 16px;
}

.sponsor-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: all var(--transition);
}

.sponsor-card:hover { border-color: var(--aqua-200); box-shadow: var(--shadow-md); }

.sponsor-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--aqua-100), var(--aqua-200));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: var(--teal-700);
  letter-spacing: 0.02em;
}

.sponsor-name {
  font-size: 13.5px;
  color: var(--ink-700);
  font-weight: 500;
  text-align: center;
}

@media (max-width: 700px) {
  .sponsor-grid { grid-template-columns: 1fr 1fr !important; }
}

/* ============================================================ */
/* === ENTRADAS · animaciones de carga del header + hero    === */
/* ============================================================ */

@keyframes header-fall {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-soft {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Header — escalonado */
.brand           { animation: header-fall 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s backwards; }
.nav__item       { animation: header-fall 0.65s cubic-bezier(0.16, 1, 0.3, 1) var(--stagger, 0.2s) backwards; }
.header-actions  { animation: header-fall 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.78s backwards; }

/* Hero — texto sube con stagger después del header */
.hero__copy h1   { animation: hero-rise 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.40s backwards; }
.hero__lead      { animation: hero-rise 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.70s backwards; }
.hero__cta       { animation: hero-rise 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.88s backwards; }

/* Herramienta — solo opacity (el JS controla transform).
   La filigrana del bg logo NO se anima: tiene opacity 0.06 estática y la
   animación de fade-soft a 1 hacía que mostrara el logo "completo" un instante
   al terminar antes de volver al 0.06 del CSS. */
.hero__tool      { animation: fade-soft 1.2s ease-out 1.00s backwards; }

/* Página entera (cambio de vista en el router): fade-in suave del contenido */
[data-page-fade] { animation: fade-soft 0.5s ease-out backwards; }

@media (prefers-reduced-motion: reduce) {
  .brand, .nav__item, .header-actions,
  .hero__copy h1, .hero__lead, .hero__cta,
  .hero__tool,
  [data-page-fade] {
    animation: none !important;
  }
  .nav__item--active::after { animation: none !important; }
}

/* ════════════════════════════════════════════════════════════════════════
   REFINAMIENTO VISUAL — Septiembre 2026
   Bloque aditivo que da carácter al sitio sin romper lo existente.
   Aplicado en: páginas de catálogo (formacion, empleo, actualidad) y
   fichas individuales (curso, oferta, noticia). El home NO se toca.
   ════════════════════════════════════════════════════════════════════════ */

/* ============================================================ */
/* === FIRMA GRÁFICA · el "smile arc"                       === */
/* ============================================================ */
/* Motivo distintivo: arco orgánico fino que evoca una sonrisa  */
/* dental. Se aplica como background-image SVG inline para no   */
/* sumar peticiones de red. Stroke teal con opacidad variable.  */

:root {
  /* Arco amplio horizontal · esquina decorativa de heroes */
  --arc-deco: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 280 70' fill='none'><path d='M4 56 C 60 16, 120 4, 200 16 C 240 22, 264 36, 276 54' stroke='%230E8F94' stroke-width='2.5' stroke-linecap='round' stroke-opacity='0.6'/><circle cx='276' cy='54' r='3' fill='%230E8F94' fill-opacity='0.6'/></svg>");

  /* Arco corto subrayado · bajo h2/h3 destacados */
  --arc-underline: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' fill='none'><path d='M2 10 C 25 2, 60 2, 100 8 C 108 9, 114 10, 118 11' stroke='%230E8F94' stroke-width='3' stroke-linecap='round' stroke-opacity='0.5'/></svg>");

  /* Línea ondulada larga · separador entre secciones */
  --arc-divider: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 24' preserveAspectRatio='none' fill='none'><path d='M0 12 C 100 4, 200 20, 300 12 C 400 4, 500 20, 600 12' stroke='%230E8F94' stroke-width='1.5' stroke-linecap='round' stroke-opacity='0.25'/></svg>");
}

/* Page hero — base */
.page-hero {
  position: relative;
}

/* ============================================================ */
/* === DECORACIONES POR PÁGINA · siluetas dentales          === */
/* ============================================================ */
/* Cada página decora su hero con un icono SVG específico       */
/* (cepillo, hilo dental, maletín, etc.) en line-art stroke     */
/* teal con opacidad sutil. El SVG vive inline en el HTML       */
/* dentro de un `.page-hero__icon`.                              */

.page-hero__icon {
  position: absolute;
  right: 7%;
  top: 50%;
  transform: translateY(-50%);
  width: 190px;
  height: 190px;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero__icon svg {
  width: 100%;
  height: 100%;
  color: var(--teal-700);
  opacity: 0.42;
  /* Trazo fino continuo, como un solo hilo dental. */
  stroke-width: 1.8;
  filter: drop-shadow(0 2px 8px rgba(14, 143, 148, 0.08));
}

/* Animación de entrada para las figuras/imágenes de los heros.
   Va al contenido interno (svg / img) — no al contenedor — para no
   interferir con su transform de posicionamiento absoluto. Se ejecuta
   una vez al cargar la página, con delay para que entre después del
   eyebrow + h1 + lead. Dos keyframes para preservar la opacidad base
   de cada tipo (svg termina en 0.42, img termina en 1). */
.page-hero__icon > svg {
  animation: heroIconRevealSvg 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}
.page-hero__icon > img,
.page-hero__icon--img > img {
  animation: heroIconRevealImg 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

@keyframes heroIconRevealSvg {
  from { opacity: 0;    transform: translateY(18px) scale(0.94); }
  to   { opacity: 0.42; transform: translateY(0)    scale(1);    }
}
@keyframes heroIconRevealImg {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero__icon > svg,
  .page-hero__icon > img,
  .page-hero__icon--img > img {
    animation: none;
  }
}

/* Variante con imagen (foto/ilustración) en lugar de silueta SVG.
   Estática, pegada a la esquina inferior derecha del hero (a hueso con
   los bordes derecho e inferior; la recorta el border-radius del hero).
   A pleno tamaño (escritorio) se muestra a opacidad completa; solo en
   pantallas medianas/estrechas (≤1024px, ver más abajo) pasa detrás del
   texto y se atenúa, que es cuando llegaría a solaparse con el título. */
.page-hero__icon--img {
  right: 0;
  bottom: 0;
  top: auto;
  transform: none;
  width: 560px;
  height: auto;
  align-items: flex-end;
  justify-content: flex-end;
}
.page-hero__icon--img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: right bottom;
}

@media (max-width: 1100px) {
  .page-hero__icon { width: 150px; height: 150px; right: 5%; }
  .page-hero__icon--img { width: 420px; right: 0; }
}

/* En pantallas medianas (≤1024px) las imágenes/figuras empiezan a solapar
   con el título. En vez de ocultarlas o moverlas, las ponemos DETRÁS del
   texto y bajamos la opacidad para que el contenido siga siendo legible
   pero la figura se mantenga como ambient visual.
   El !important es necesario para vencer la animación de entrada
   (heroIconRevealImg / heroIconRevealSvg) que tiene animation-fill-mode:both
   y deja al elemento en opacity:1 tras finalizar — las animaciones ganan
   en la cascada normal salvo declaraciones !important. */
@media (max-width: 1024px) {
  .page-hero__icon { z-index: 0; }
  .page-hero > .container { position: relative; z-index: 2; }
  .page-hero__icon > img,
  .page-hero__icon--img > img { opacity: 0.45 !important; }
  /* Los SVG ya terminan en opacity:0.42 por su keyframe — no hay que forzar */
}

/* En móvil/tablet la ocultamos: el hero es estrecho y la silueta estorbaría
   al texto. La identidad de marca se mantiene en desktop. */
@media (max-width: 820px) {
  .page-hero__icon { display: none; }
}

/* Subrayado a mano en titulares destacados */
.arc-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}
.arc-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 220px;
  height: 14px;
  background: var(--arc-underline) left center / contain no-repeat;
}

/* Separador ondulado entre secciones */
.arc-divider {
  width: 100%;
  max-width: 600px;
  height: 24px;
  margin: 64px auto;
  background: var(--arc-divider) center / contain no-repeat;
  display: block;
  border: 0;
}
@media (max-width: 700px) {
  .arc-divider { margin: 48px auto; }
}

/* Versión corta centrada — para separar dentro de un bloque o card */
.arc-divider--short {
  max-width: 220px;
  height: 18px;
  margin: 24px auto;
}

/* Versión sutil — para zonas con poco margen */
.arc-divider--soft {
  opacity: 0.55;
  margin: 40px auto;
}

/* Marco con hilo dental arriba y abajo — para destacar bloques (CTAs, mensajes
   importantes, citas). El bloque queda "cosido" entre dos puntadas. */
.arc-frame {
  position: relative;
  padding: 32px 0;
}
.arc-frame::before,
.arc-frame::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(280px, 80%);
  height: 18px;
  background: var(--arc-divider) center / contain no-repeat;
  opacity: 0.7;
  pointer-events: none;
}
.arc-frame::before { top: 0; }
.arc-frame::after  { bottom: 0; transform: translateX(-50%) scaleY(-1); }

/* Bullet con mini-arco para listas con personalidad */
.arc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.arc-list > li {
  position: relative;
  padding: 6px 0 6px 32px;
  line-height: 1.6;
}
.arc-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 22px;
  height: 8px;
  background: var(--arc-underline) center / contain no-repeat;
  opacity: 0.7;
}

/* ============================================================ */
/* === TAGS · sistema de variantes consolidado              === */
/* ============================================================ */
/* Sustituye los `style="background:..."` inline por clases.   */

.tag--neutral { background: var(--ink-100); color: var(--ink-700); }
.tag--success { background: var(--aqua-50);  color: var(--teal-700); }
.tag--warning { background: #FFE6CC;          color: #9A4508; }   /* #B5530A no llegaba a 4,5:1 */
.tag--accent  { background: var(--accent-50); color: var(--accent); }
.tag--info    { background: var(--aqua-100); color: var(--teal-900); }

.tag {
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.course-card:hover .tag,
.card:hover .tag {
  transform: scale(1.04);
}

/* ============================================================ */
/* === CONTADORES EDITORIALES                               === */
/* ============================================================ */
/* Reemplaza el "N cursos · M ya en marcha" plano por algo con */
/* personalidad: número grande Fraunces + slash + label italic. */

.editorial-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 24px 40px;
  margin: 0 0 32px;
  padding-top: 4px;
}

.editorial-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-500);
}

.editorial-stat__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.editorial-stat__sep {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--teal-700);
  opacity: 0.45;
  margin: 0 2px;
}

.editorial-stat__label {
  font-style: italic;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink-700);
}

/* ============================================================ */
/* === BREADCRUMB sutil                                     === */
/* ============================================================ */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--ink-500);
  letter-spacing: 0.01em;
}

.breadcrumb a {
  color: var(--ink-500);
  text-decoration: none;
  transition: color 0.18s;
}
.breadcrumb a:hover { color: var(--teal-700); }

.breadcrumb__sep {
  color: var(--ink-300, var(--ink-400));
  font-size: 14px;
  opacity: 0.6;
}

.breadcrumb__current {
  color: var(--ink-700);
  font-weight: 500;
  /* Trunca si es muy largo */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 360px;
}

/* ============================================================ */
/* === ARTICLE BODY · tipografía editorial                  === */
/* ============================================================ */
/* Aplicar a la descripción/cuerpo de fichas individuales:     */
/*   curso.php → descripción del curso                          */
/*   oferta.php → descripción del puesto                        */
/*   noticia.php → cuerpo de la noticia                         */

.article-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-700);
  text-align: justify;
  /* Guiones automáticos (lang="es"): evita "ríos" de espacios al justificar. */
  -webkit-hyphens: auto;
  hyphens: auto;
}
.article-body figcaption { text-align: left; hyphens: none; }
.article-body .art-img--full figcaption { text-align: center; }

.article-body > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.8em;
  float: left;
  line-height: 0.95;
  /* margin-top pequeño positivo: empuja la letra hacia abajo para que su
     cap-top se alinee con el text-top de la primera línea, en vez de
     dejar el texto "flotando" encima. */
  margin: 4px 10px 0 0;
  color: var(--teal-700);
  font-variation-settings: "opsz" 144;
}

.article-body p { margin: 0 0 18px; }

/* Hero de la ficha de noticia · layout 2-columnas (texto + imagen).
   El texto y la imagen no se solapan: cuando hay imagen, el texto se
   limita a la columna izquierda. El título siempre queda alineado con
   el cuerpo del artículo (mismos max-widths). */
.noticia-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin-top: 18px;
}
.noticia-hero--with-image {
  /* 2 columnas: contenido (flex 1) + imagen (~38% del container) */
  grid-template-columns: minmax(0, 1fr) clamp(260px, 36%, 380px);
}
.noticia-hero__main { min-width: 0; }
/* Titular más comedido en la ficha de noticia — los titulares pueden
   ser largos y al estar en una columna estrecha (cuando hay imagen)
   con el tamaño por defecto se rompía mal. */
.noticia-hero__main h1 {
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.12;
}
.noticia-hero__media {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--ink-100);
  box-shadow: 0 12px 32px rgba(14, 143, 148, 0.18);
}
.noticia-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 820px) {
  .noticia-hero,
  .noticia-hero--with-image {
    grid-template-columns: minmax(0, 1fr);
  }
  .noticia-hero__media {
    aspect-ratio: 16 / 9;
    max-height: 320px;
  }
  .noticia-hero__media img { object-position: center; }
}
.article-body p:last-child { margin-bottom: 0; }

.article-body strong { color: var(--ink-900); }

.article-body h2, .article-body h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--ink-900);
}

@media (max-width: 700px) {
  .article-body > p:first-of-type::first-letter {
    font-size: 2.4em;
    margin: 3px 8px 0 0;
  }
}

/* ─── Imágenes insertadas dentro del cuerpo (editor del panel) ───────── */
/* Clearfix: evita que una imagen flotante desborde la hoja del artículo. */
.article-body::after { content: ""; display: block; clear: both; }

.article-body .art-img { margin: 6px 0 24px; }
.article-body .art-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(14, 143, 148, 0.16);
}
.article-body .art-img figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  font-style: italic;
  color: var(--ink-500);
}
.article-body .art-img--full { width: 100%; }
.article-body .art-img--full figcaption { text-align: center; }
.article-body .art-img--left {
  float: left;
  width: min(46%, 340px);
  margin: 6px 28px 14px 0;
}
.article-body .art-img--right {
  float: right;
  width: min(46%, 340px);
  margin: 6px 0 14px 28px;
}
/* Los encabezados no deben quedar "abrazados" por una imagen flotante. */
.article-body h2, .article-body h3 { clear: both; }

@media (max-width: 640px) {
  .article-body .art-img--left,
  .article-body .art-img--right {
    float: none;
    width: 100%;
    margin: 6px 0 24px;
  }
}

/* ============================================================ */
/* === NOTICIA · maquetación "hoja de periódico"            === */
/* ------------------------------------------------------------ */
/* El único elemento con fondo azul es el menú (la franja que   */
/* hace de fondo del pill). El artículo va sobre un fondo neutro */
/* dentro de una "hoja" blanca con un filete fino azul.         */
/* Todo bajo .page-noticia para no afectar a otras páginas.     */
/* ============================================================ */
.page-noticia { background: #F1F4F5; }

/* Franja azul: solo sirve de fondo al menú flotante */
.noticia-menuband {
  height: 96px;
  margin: 16px 16px 0;
  border-radius: 30px;
  background: linear-gradient(180deg, var(--aqua-100) 0%, var(--aqua-50) 100%);
}
@media (max-width: 700px) {
  .noticia-menuband { height: 80px; margin: 8px 8px 0; border-radius: 22px; }
}

/* Zona del artículo (fondo neutro) */
.noticia-wrap { padding: 40px 0 64px; }
@media (max-width: 700px) { .noticia-wrap { padding: 24px 0 44px; } }

/* La hoja de periódico */
.noticia-sheet {
  position: relative;
  background: var(--white);
  border: 1px solid var(--teal-700);
  border-radius: 8px;
  padding: 52px 56px;
  margin-top: 18px;
  box-shadow: 0 18px 44px rgba(14, 143, 148, 0.10);
}
/* Segundo filete fino interior · remate de "periódico" */
.noticia-sheet::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(14, 143, 148, 0.18);
  border-radius: 4px;
  pointer-events: none;
}
@media (max-width: 700px) {
  .noticia-sheet { padding: 28px 20px; border-radius: 6px; }
}

/* Cabecera tipo masthead (centrada) */
.noticia-sheet__head { text-align: center; position: relative; }
.noticia-sheet__kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.noticia-sheet__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  margin: 10px 0 0;
  color: var(--ink-900);
}
.noticia-sheet__byline {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--ink-500);
}
.noticia-sheet__rule {
  border: 0;
  border-top: 1px solid var(--teal-700);
  opacity: 0.28;
  margin: 26px 0;
  position: relative;
}
.noticia-sheet__lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-700);
  font-weight: 500;
  margin: 0 0 24px;
}
.noticia-sheet__media {
  margin: 0 0 28px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--ink-100);
  background: var(--ink-100);
  aspect-ratio: 16 / 9;
}
.noticia-sheet__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Navegación anterior / siguiente noticia */
.noticia-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.noticia-nav__btn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
a.noticia-nav__btn:hover {
  border-color: var(--teal-700);
  box-shadow: 0 8px 22px rgba(14, 143, 148, 0.10);
  transform: translateY(-2px);
}
.noticia-nav__btn--next { text-align: right; align-items: flex-end; }
.noticia-nav__dir {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.noticia-nav__tit {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-900);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.noticia-nav__btn.is-empty {
  background: transparent;
  border: 0;
  box-shadow: none;
  pointer-events: none;
}
@media (max-width: 600px) {
  .noticia-nav { grid-template-columns: 1fr; }
  .noticia-nav__btn--next { text-align: left; align-items: flex-start; }
  .noticia-nav__btn.is-empty { display: none; }
}

/* ============================================================ */
/* === SIDEBAR INFO · cajitas de datos en fichas            === */
/* ============================================================ */

.info-sidebar {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg, 14px);
  padding: 22px 24px;
  box-shadow: 0 1px 2px rgba(14, 143, 148, 0.04);
}

.info-sidebar__title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  margin: 0 0 16px;
  font-weight: 600;
}

.info-sidebar__list {
  display: grid;
  gap: 14px;
  font-size: 14px;
}

.info-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 12px;
}

.info-row__icon {
  color: var(--teal-700);
  opacity: 0.7;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.info-row__body {
  min-width: 0;
}

.info-row__label {
  color: var(--ink-500);
  font-size: 12px;
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}

.info-row__value {
  color: var(--ink-900);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.info-sidebar--accent {
  background: var(--aqua-50);
  border-color: var(--teal-700);
  border-left-width: 3px;
}

/* ============================================================ */
/* === FICHA INDIVIDUAL · grid responsive (curso/oferta)    === */
/* ============================================================ */
/* Grid 2-col en desktop, 1-col en móvil — robusto frente a       */
/* drop-cap (float) y contenido variable. Evita que la sidebar    */
/* se "atornille" o que el footer quede oculto.                   */

.ficha-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* Clearfix por si el drop-cap deja float colgando */
.ficha-grid > *::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 768px) {
  .ficha-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ============================================================ */
/* === FILTROS STICKY (solo desktop)                        === */
/* ============================================================ */

@media (min-width: 900px) {
  .filters-sticky {
    position: sticky;
    top: 14px;
    z-index: 5;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.92);
  }
}

/* ============================================================ */
/* === MICROINTERACCIONES                                   === */
/* ============================================================ */

/* Hover refinado de course-card (sobrescribe la regla 2289) */
.course-card {
  transition:
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.28s;
}
.course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(14, 143, 148, 0.16);
  border-top-color: var(--teal-700);
}

/* Botón primario con flecha que se desliza al hover */
.btn-primary .icon,
.btn-primary svg {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-primary:hover svg { transform: translateX(3px); }

/* CTA principal con arco decorativo bajo el texto en hover */
.btn-arc {
  position: relative;
  overflow: visible;
}
.btn-arc::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -8px;
  height: 12px;
  background: var(--arc-underline) center / contain no-repeat;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.btn-arc:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Header con efecto glass al hacer scroll */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(14, 143, 148, 0.12);
}

/* Microscale en el botón de acceso del header */
.header-actions .btn {
  transition: transform 0.18s, background 0.18s, color 0.18s;
}
.header-actions .btn:hover {
  transform: scale(1.03);
}

/* ============================================================ */
/* === REFINAMIENTOS TIPOGRÁFICOS TRANSVERSALES            === */
/* ============================================================ */

/* Numerales tabulares en precios, contadores y fechas */
.course-card__price,
.editorial-stat__num,
.featured-news time,
.admin-stat__value {
  font-variant-numeric: tabular-nums;
}

/* Eyebrows con italic editorial */
.section-eyebrow,
.page-hero__eyebrow {
  font-style: italic;
  letter-spacing: 0.18em;
  font-variation-settings: "opsz" 9, "SOFT" 100;
}

/* h1 del page-hero con eje óptico grande de Fraunces */
.page-hero h1 {
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
}

/* ════════════════════════════════════════════════════════════════════════
   FIN DEL BLOQUE DE REFINAMIENTO VISUAL
   ════════════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════════════
   FAQ — Preguntas frecuentes (contacto.html)
   Acordeón nativo con <details>/<summary>: accesible y sin JS.
   ════════════════════════════════════════════════════════════════════════ */
.faq {
  max-width: 780px;
  margin: 0;        /* alineadas a la izquierda, bajo el section-head */
}
.faq details {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.faq details[open] {
  border-color: var(--aqua-200);
  box-shadow: 0 8px 26px rgba(14, 143, 148, .10);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink-900);
}
.faq summary:hover { color: var(--teal-700); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  flex: none;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: var(--teal-700);
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p,
.faq details ol,
.faq details ul {
  margin: 0;
  padding: 0 22px 18px;
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1.65;
}
.faq details ol,
.faq details ul { padding-left: 42px; }
.faq details li { margin-bottom: 4px; }
.faq details a {
  color: var(--teal-700);
  font-weight: 500;
}

/* ── Contacto: sede en el hero · formulario + mapa en dos columnas ───────── */
.contact-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
}
.contact-card--hero {
  /* Tarjeta "cristal": translúcida sobre el degradado aqua del hero,
     con borde teal oscuro. El blur mantiene legible el texto aunque
     el sobre decorativo asome por detrás. */
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border: 1.5px solid rgba(10, 109, 114, 0.55);   /* --teal-900 */
  box-shadow: 0 10px 30px rgba(10, 109, 114, 0.12);
  position: relative;
  z-index: 1;
}
.contact-card--hero h3 { color: var(--teal-900) !important; }
.contact-card--hero .contact-list li { color: var(--ink-900); }
@media (max-width: 900px) {
  .contact-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-card--hero { max-width: 420px; }
}

.contact-layout .section-head { margin-bottom: 28px; }

/* Sobre decorativo del hero de contacto: marca de agua grande y tenue en la
   esquina inferior derecha, DETRÁS de la tarjeta de sede (que va en z-index 1). */
.page-hero__icon--bg {
  width: 360px;
  height: 360px;
  right: -36px;
  top: auto;
  bottom: -48px;
  transform: rotate(-8deg);
  z-index: 0;
}
.page-hero__icon--bg > svg {
  animation-name: heroIconRevealBg;
}
@keyframes heroIconRevealBg {
  from { opacity: 0;    transform: translateY(18px) scale(0.94); }
  to   { opacity: 0.13; transform: translateY(0)    scale(1);    }
}
@media (max-width: 900px) {
  .page-hero__icon--bg { display: none; }   /* en móvil la tarjeta ocupa esa zona */
}

/* ════════════════════════════════════════════════════════════════════════
   GALERÍA DE LOGOS (colaboradores.html)
   Tarjetas editoriales con la firma "arco de sonrisa": al pasar el ratón
   se dibuja un arco teal bajo el logo (guiño dental sin diente literal),
   la tarjeta se eleva con sombra teal y un brillo recorre el interior.
   ════════════════════════════════════════════════════════════════════════ */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}
.logo-grid--featured {           /* Patrocinadores: tarjetas más grandes */
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 22px;
}

.logo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: 18px;
  padding: 30px 22px 22px;
  text-decoration: none;
  overflow: hidden;
  transition:
    transform   .35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow  .35s ease,
    border-color .35s ease;
}
.logo-card:hover {
  transform: translateY(-5px);
  border-color: var(--aqua-200);
  box-shadow: 0 16px 36px rgba(14, 143, 148, 0.15);
}

/* Área del logo (o monograma placeholder mientras no haya imagen) */
.logo-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
}
.logo-grid--featured .logo-card__media { height: 72px; }
.logo-card__media img {
  max-height: 100%;
  max-width: 84%;
  object-fit: contain;
  border-radius: 8px;          /* suaviza logos con fondo de color sólido */
  filter: grayscale(1) opacity(.72);
  transition: filter .35s ease;
}
.logo-card:hover .logo-card__media img { filter: none; }
.logo-card__ph {
  font-weight: 700;
  font-size: 19px;
  color: var(--teal-700);
  text-align: center;
  line-height: 1.2;
}
.logo-grid--featured .logo-card__ph { font-size: 23px; }

/* La firma: arco de sonrisa que se dibuja al pasar el ratón */
.logo-card__arc {
  width: 46px;
  height: 13px;
  margin: 4px 0 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 16'%3E%3Cpath d='M4 4 C 20 15, 40 15, 56 4' fill='none' stroke='%230E8F94' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0;
  transform: scaleX(.35);
  transition:
    opacity   .35s ease,
    transform .5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo-card:hover .logo-card__arc { opacity: 1; transform: scaleX(1); }

.logo-card__name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-500);
  text-align: center;
  line-height: 1.45;
  transition: color .3s ease;
}
.logo-card:hover .logo-card__name { color: var(--teal-700); }

/* Flechita ↗ que asoma al pasar el ratón — pista de "se abre su web" */
.logo-card__ext {
  display: inline-block;
  font-size: 12px;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity .3s ease, transform .3s ease;
}
.logo-card:hover .logo-card__ext { opacity: 1; transform: translate(0, 0); }

/* Brillo que recorre la tarjeta en hover */
.logo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(184, 226, 229, 0.35), transparent);
  transform: skewX(-18deg);
  transition: left .65s ease;
  pointer-events: none;
}
.logo-card:hover::before { left: 135%; }

/* Entrada escalonada (el IntersectionObserver de main.js añade .is-revealed) */
.logo-grid > [data-reveal]:nth-child(1).is-revealed { transition-delay: 0s;    }
.logo-grid > [data-reveal]:nth-child(2).is-revealed { transition-delay: 0.07s; }
.logo-grid > [data-reveal]:nth-child(3).is-revealed { transition-delay: 0.14s; }
.logo-grid > [data-reveal]:nth-child(4).is-revealed { transition-delay: 0.21s; }
.logo-grid > [data-reveal]:nth-child(5).is-revealed { transition-delay: 0.28s; }
.logo-grid > [data-reveal]:nth-child(6).is-revealed { transition-delay: 0.35s; }
.logo-grid > [data-reveal]:nth-child(7).is-revealed { transition-delay: 0.42s; }
.logo-grid > [data-reveal]:nth-child(8).is-revealed { transition-delay: 0.49s; }

@media (max-width: 520px) {
  .logo-grid,
  .logo-grid--featured { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .logo-card { padding: 22px 12px 16px; }
  .logo-card__ph { font-size: 16px; }
  .logo-grid--featured .logo-card__ph { font-size: 18px; }
  .logo-card__name { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-card,
  .logo-card::before,
  .logo-card__arc,
  .logo-card__ext { transition: none; }
}

/* ════════════════════════════════════════════════════════════════════════
   FICHA DE CURSO — datos e inscripción en bandas horizontales
   La banda de datos reutiliza .info-row (icono + label + valor) pero los
   distribuye en columnas fluidas en vez de apilarlos en vertical.
   ════════════════════════════════════════════════════════════════════════ */
.info-band {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
}
.info-band__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 0 0 16px;
}
.info-band__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px 26px;
}

/* Banda de inscripción (curso.php): precio a la izquierda, aviso al centro,
   CTA a la derecha. Usa su propia clase para NO colisionar con el CTA oscuro
   de invitación (.cta-band), que comparte prefijo en sus sub-elementos. */
.cta-band--inscribe {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 28px;
  background: var(--aqua-50);
  border: 1.5px solid var(--teal-700);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}
.cta-band__price {
  font-size: 32px;
  font-weight: 600;
  color: var(--teal-700);
  line-height: 1;
  white-space: nowrap;
}
.cta-band__pricenote {
  font-size: 12.5px;
  color: var(--ink-500);
  margin-top: 4px;
}
.cta-band__spacer { flex: 1 1 auto; }
.cta-band__urgency {
  font-size: 13px;
  font-weight: 500;
  color: #B5530A;
  margin: 0;
  white-space: nowrap;
}
.cta-band__action { min-width: 220px; text-align: center; }
.cta-band__msg {
  font-size: 12px;
  color: var(--ink-500);
  margin: 8px 0 0;
}
.cta-band__msg a { color: var(--teal-700); }

@media (max-width: 700px) {
  .cta-band--inscribe { flex-direction: column; align-items: stretch; text-align: center; }
  .cta-band__spacer { display: none; }
  .cta-band__urgency { white-space: normal; }
  .cta-band__action { min-width: 0; }
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 44px;
  align-items: start;
}
.contact-aside { position: sticky; top: 96px; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-aside { position: static; width: 100%; max-width: 480px; margin: 0 auto; justify-self: center; }
}

/* ════════════════════════════════════════════════════════════════════════
   MODAL genérico (overlay + caja) — usado por el pop-up de inscripción
   ════════════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 27, 0.55);
  backdrop-filter: blur(2px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  z-index: 1000;
}
.modal-overlay.is-open { display: flex; }
.modal {
  position: relative;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(15, 26, 27, 0.30);
  width: 100%;
  max-width: 760px;
  margin: auto;
  padding: 30px 30px 26px;
  animation: modalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--ink-50);
  color: var(--ink-500);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.modal__close:hover { background: var(--accent-50); color: var(--accent); }
.modal__title { font-size: 22px; margin: 0 0 4px; }
.modal__subtitle { font-size: 14px; color: var(--ink-500); margin: 0 0 20px; }

/* Pantalla inicial: elección de grupo (opciones grandes) */
.modal-choices { display: flex; flex-direction: column; gap: 10px; }
.modal-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 1.5px solid var(--ink-100);
  background: var(--white);
  border-radius: 12px;
  padding: 16px 18px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.modal-choice:hover:not(:disabled) {
  border-color: var(--teal-700);
  background: var(--aqua-50);
  transform: translateY(-1px);
}
.modal-choice__label { flex: 1 1 auto; font-size: 15px; font-weight: 600; color: var(--ink-900); }
.modal-choice__price { font-size: 14px; font-weight: 600; color: var(--teal-700); white-space: nowrap; }
.modal-choice svg { color: var(--teal-700); flex: none; }
.modal-choice:disabled { opacity: 0.55; cursor: not-allowed; }
.modal-choice:disabled .modal-choice__label { color: var(--ink-500); }
.modal-choice:disabled .modal-choice__price { color: var(--ink-400); font-weight: 500; }

/* Botón "‹ Volver" dentro de un panel de formulario */
.modal-back {
  border: 0;
  background: transparent;
  color: var(--ink-500);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: 12px;
}
.modal-back:hover { color: var(--teal-700); }

.modal-panel { display: none; }
.modal-panel.is-active { display: block; }

/* Precio destacado dentro del panel */
.modal-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}
.modal-price strong { font-size: 26px; color: var(--teal-700); }
.modal-price span { font-size: 13px; color: var(--ink-500); }

/* Aviso de grupo no admitido */
.modal-blocked {
  padding: 18px;
  background: var(--ink-50);
  border-radius: 12px;
  font-size: 14px;
  color: var(--ink-500);
  text-align: center;
  line-height: 1.55;
}

/* Bloque "acceso colegiada CLM" separado por línea azul */
.modal-cta-clm {
  border-top: 1px solid var(--aqua-200);
  margin-top: 22px;
  padding-top: 20px;
  text-align: center;
}
.modal-cta-clm p { font-size: 13.5px; color: var(--ink-500); margin: 0 0 12px; }

/* Formularios del modal */
.modal-form .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-form .field { margin-bottom: 14px; }
.modal-form input[type="file"] {
  width: 100%;
  font-size: 13px;
  padding: 10px;
  border: 1px dashed var(--ink-200);
  border-radius: 8px;
  background: var(--ink-50);
  cursor: pointer;
}
.modal-form__note { font-size: 12px; color: var(--ink-500); margin: 4px 0 0; line-height: 1.5; }

@media (max-width: 600px) {
  .modal { padding: 24px 18px 20px; }
  .modal-form .grid-2 { grid-template-columns: 1fr; }
}

/* Tarjeta de curso finalizado: atenuada, sin realce, en el histórico. */
.course-card--finalizado {
  opacity: 0.78;
  background: var(--ink-50);
}
.course-card--finalizado:hover { opacity: 1; }
.course-card--finalizado .tag {
  background: var(--ink-100);
  color: var(--ink-500);
}
