/* ============================================================
   AULANUEVA — Overrides sobre Ketan / Variables & Custom CSS
   ============================================================ */

/* ── Google Fonts: se cargan desde includes/head.php (con preconnect), no con @import, que las demoraba ── */

/* ── CSS Custom Properties (remap 1-a-1 Ketan → Aulanueva) ── */
:root {
  /* Marca principal */
  --theme-color:          #A31418;   /* brand-accent (rojo) — CTAs secundarios, Nivel inicial*/
  --theme-color-strong:   #7A0F12;   /* hover/active de accent */
  --theme-color2:         #A31418;   /* era amarillo, lo unificamos al rojo institucional */
  --vs-secondary-color:   #31328F;   /* brand-primary (navy) — header, botones primarios, Nivel primario */
  --secondary-strong:     #1F2066;   /* hover/active de primary */

  /* Tints */
  --primary-tint:         #ECEDF7;   /* fondos suaves Primario */
  --accent-tint:          #FBEBEA;   /* fondos suaves Inicial */

  /* Superficies */
  --body-bg:              #FBF9F5;   /* surface-page (blanco cálido) */
  --smoke-color:          #F1ECE4;   /* surface-sunken */
  --surface-inverted:     #1B1B4D;   /* banners oscuros, footer */
  --light-color:          #ECEDF7;   /* brand-primary-tint */

  /* Texto */
  --title-color:          #24242B;   /* ink */
  --body-color:           #5B5B66;   /* ink-soft */
  --white-color:          #ffffff;
  --black-color:          #24242B;

  /* Grises */
  --neutral-600:          #6D6E70;
  --neutral-400:          #939498;

  /* Bordes */
  --border-color:         #E6E0D8;
  --vs-border-color:      #D4CEC6;

  /* Tipografía */
  --title-font:  "Fraunces", Georgia, serif;
  --body-font:   "Plus Jakarta Sans", system-ui, sans-serif;

  /* Semánticos (mantener para JS del template) */
  --success-color: #28a745;
  --error-color:   #dc3545;
  --yellow-color:  #A31418;   /* remapeado a rojo para coherencia */

  /* Servicio externo — no es color de marca */
  --wa-color: #25D366;

  /* Escala tipográfica */
  --type-h1: clamp(2rem, 4vw, 3.2rem);
  --type-h2: clamp(1.6rem, 3vw, 2.4rem);
  --type-h3: 1.3rem;
  --type-h4: 1rem;
  --type-body: 16px;
  --type-support: 15px;
  --type-small: 13.5px;
}

/* ── Base ─────────────────────────────────────────────────── */
body {
  background-color: var(--body-bg);
  font-family: var(--body-font);
  color: var(--body-color);
}
/* clip (no hidden): corta lo que sobresale a los costados sin volver al html/body un contenedor de scroll,
   que rompía position: sticky (columna "¿No encontrás lo que buscás?" de la FAQ). hidden queda para navegadores viejos. */
html, body {
  overflow-x: hidden;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6,
.sec-title, .sec-title2,
.testi-name, .class-title,
.service-title, .widget_title,
.category-name, .footer-widget h3 {
  font-family: var(--title-font);
  color: var(--title-color);
  text-transform: none;
}

/* ── Contextos oscuros: todo texto en blanco ─────────────── */
/* En cualquier sección con fondo oscuro (navy/rojo/inverted),
   headings y párrafos son blancos, nunca grises ni negros   */
.an-bilingual-banner h1,
.an-bilingual-banner h2,
.an-bilingual-banner h3,
.an-bilingual-banner h4,
.an-bilingual-banner h5,
.an-bilingual-banner h6,
.an-bilingual-banner .sec-title,
.an-bilingual-banner p,
.an-bilingual-banner li,
.an-page-header h1,
.an-page-header p,
.an-band h1, .an-band h2, .an-band h3,
.an-band h4, .an-band .sec-title, .an-band p,
.an-consultas-parallax h1, .an-consultas-parallax h2,
.an-consultas-parallax h3, .an-consultas-parallax .sec-title,
.an-consultas-parallax p,
.bg-inverted h1, .bg-inverted h2, .bg-inverted h3,
.bg-inverted h4, .bg-inverted h5, .bg-inverted h6,
.bg-inverted p,
.bg-navy h1, .bg-navy h2, .bg-navy h3,
.bg-navy h4, .bg-navy h5, .bg-navy h6,
.bg-navy p,
.bg-red h1, .bg-red h2, .bg-red h3,
.bg-red h4, .bg-red h5, .bg-red h6,
.bg-red p {
  color: #fff !important;
}
.an-bilingual-banner .sec-subtitle,
.an-band .sec-subtitle,
.an-consultas-parallax .sec-subtitle,
.an-page-header .sec-subtitle {
  color: rgba(255,255,255,.75) !important;
}

/* Párrafos, labels, botones → sans */
p, a, span, li, input, textarea, select, button,
.sec-text, .sec-subtitle, .vs-btn, .service-text,
.footer-text, .footer-info, .nav, .menu-item,
.accordion-button, .accordion-body {
  font-family: var(--body-font);
}

/* ── Botones — anulamos TODO el sistema de animación de Ketan ── */
/*
   Ketan usa ::before y ::after que se deslizan en hover creando
   un óvalo azul animado. Lo desactivamos completamente y
   reemplazamos por un simple brightness en hover.
   Todos los botones son pill (border-radius: 9999px) siempre.
*/
.vs-btn::before,
.vs-btn::after {
  display: none !important;
  content: none !important;
}

.vs-btn,
.vs-btn.btn-accent,
.vs-btn.btn-wa,
.vs-btn.btn-wa-outline,
.vs-btn.btn-faq-wa,
.vs-btn.btn-outline-white,
.vs-btn.btn-outline-navy {
  font-family: var(--body-font) !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  letter-spacing: .02em !important;
  border-radius: 9999px !important;
  transition: filter .2s ease, box-shadow .2s ease !important;
  overflow: hidden !important;
  text-transform: none !important;
}
.main-menu a,
.vs-mobile-menu ul li a {
  text-transform: none !important;
}
.header-top .vs-btn {
  font-size: 12px !important;
}

/* Hover keeps the same solid fill and only brightens it. */
.vs-btn:hover,
.vs-btn:focus-visible,
.vs-btn.btn-accent:hover,
.vs-btn.btn-accent:focus-visible,
.vs-btn.btn-wa:hover,
.vs-btn.btn-wa:focus-visible {
  filter: brightness(1.12) !important;
  color: #fff !important;
  transform: none !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.2) !important;
}
.vs-btn:hover,
.vs-btn:focus-visible {
  background-color: #31328F !important;
  border-color: #31328F !important;
}
.vs-btn.btn-accent:hover,
.vs-btn.btn-accent:focus-visible {
  background-color: #A31418 !important;
  border-color: #A31418 !important;
}
.vs-btn:focus-visible,
.vs-btn.btn-accent:focus-visible,
.vs-btn.btn-wa:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Colores base por variante */
.vs-btn {
  background-color: #31328F !important;
  border-color: #31328F !important;
  color: #fff !important;
}
.vs-btn.btn-accent {
  background-color: #A31418 !important;
  border-color: #A31418 !important;
  color: #fff !important;
}
.vs-btn.btn-wa {
  background-color: var(--wa-color) !important;
  border-color: var(--wa-color) !important;
  color: #fff !important;
}
.vs-btn.btn-wa:hover,
.vs-btn.btn-wa:focus-visible {
  background-color: var(--wa-color) !important;
  border-color: var(--wa-color) !important;
}
.vs-btn.btn-outline-white {
  background-color: transparent !important;
  border: 1px solid #fff !important;
  color: #fff !important;
}
.vs-btn.btn-outline-white:hover,
.vs-btn.btn-outline-white:focus-visible {
  background-color: transparent !important;
  border-color: #fff !important;
  color: #fff !important;
}
/* FAQ card only: lighter blue than the navy card, with a soft shadow. */
.vs-btn.btn-faq-wa {
  background-color: #383aa4 !important;
  border-color: #383aa4 !important;
  color: #fff !important;
  box-shadow: 0 8px 16px rgba(20, 18, 60, .32) !important;
}
.vs-btn.btn-faq-wa .fa-whatsapp {
  color: #fff !important;
}
.vs-btn.btn-faq-wa:hover,
.vs-btn.btn-faq-wa:focus-visible {
  background-color: #383aa4 !important;
  border-color: #383aa4 !important;
  color: #fff !important;
  filter: brightness(1.08) !important;
  box-shadow: 0 8px 16px rgba(20, 18, 60, .32) !important;
}
.vs-btn.btn-outline-navy,
.vs-btn.btn-wa-outline {
  overflow: visible !important;
  background-color: #383aa4 !important;
  border-color: #383aa4 !important;
  color: #fff !important;
  box-shadow: 0 8px 16px rgba(20, 18, 60, .32) !important;
}
.vs-btn.btn-outline-navy i,
.vs-btn.btn-wa-outline i,
.vs-btn.btn-wa-outline .fa-whatsapp {
  color: #fff !important;
}
.vs-btn.btn-outline-navy:hover,
.vs-btn.btn-outline-navy:focus-visible,
.vs-btn.btn-wa-outline:hover,
.vs-btn.btn-wa-outline:focus-visible {
  background-color: #383aa4 !important;
  border-color: #383aa4 !important;
  color: #fff !important;
  filter: brightness(1.08) !important;
  box-shadow: 0 8px 16px rgba(20, 18, 60, .32) !important;
}

/* ── Colores de fondo utilitarios ─────────────────────────── */
.bg-primary-tint  { background-color: var(--primary-tint); }
.bg-accent-tint   { background-color: var(--accent-tint); }
.bg-inverted      { background-color: var(--surface-inverted); }
.bg-sunken        { background-color: var(--smoke-color); }
.bg-navy          { background-color: var(--vs-secondary-color); }
.bg-red           { background-color: var(--theme-color); }

/* ── Header ───────────────────────────────────────────────── */
.vs-header .header-top > .container {
  position: relative;
  z-index: 1;
}
.sticky-active {
  background-color: #fff;
  box-shadow: 0 2px 16px rgba(31,32,102,.1);
}
.main-menu ul li a {
  font-family: var(--body-font);
  font-weight: 600;
  color: var(--title-color);
  font-size: 15px;
}
.main-menu ul li a:hover,
.main-menu ul li.active > a {
  color: var(--vs-secondary-color);
}
/* Logo pair: isologo + logotipo side by side */
.an-logo-pair {
  display: flex;
  align-items: center;
  gap: 0px;
  text-decoration: none;
}
.an-logo-pair img.isologo {
  height: 72px;
  width: auto;
}
.an-logo-pair img.logotipo {
  height: 58px;
  width: auto;
}
@media (max-width: 991px) {
  .an-logo-pair img.isologo { height: 56px; }
  .an-logo-pair img.logotipo { height: 46px; }
}
.footer-widget .an-logo-pair {
  display: inline-flex;
}
.footer-widget .an-logo-pair img.isologo { height: 64px; }
.footer-widget .an-logo-pair img.logotipo { height: 52px; }

/* ── Hero custom ──────────────────────────────────────────── */
.an-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background-color: var(--surface-inverted);
  overflow: hidden;
}
/* Fondo hero — imagen o video */
.an-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 1;
}
/* Modo video: contenedor y clips */
.an-hero__bg--video {
  background-image: none !important;
  overflow: hidden;
}
.an-hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}
.an-hero__video.active {
  opacity: 1;
}
/* Overlay oscuro que tapa ~80% la imagen → texto siempre legible */
.an-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(27,27,77,.90) 0%,
    rgba(27,27,77,.80) 55%,
    rgba(27,27,77,.50) 100%
  );
}
.an-hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding-top: 120px;
  padding-bottom: 100px;
}
.an-hero h1 {
  font-family: var(--title-font);
  font-size: var(--type-h1);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}
.an-hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 36px;
  max-width: 540px;
}

/* ── Sección tipo "about" ─────────────────────────────────── */
.an-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin: 32px 0;
}
.an-stat {
  text-align: center;
  min-width: 90px;
}
.an-stat__num {
  font-family: var(--title-font);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--vs-secondary-color);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.an-stat__label {
  font-size: 13px;
  color: var(--body-color);
  margin-top: 4px;
}

/* ── Cards de Nivel ───────────────────────────────────────── */
.an-nivel-row > [class*="col-"] {
  display: flex;
}
.an-nivel-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(31,32,102,.13);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  flex: 1 1 auto;
  /* hover: solo sombra, sin translate ni filter sobre toda la card */
  transition: box-shadow .25s ease;
}
.an-nivel-card:hover {
  box-shadow: 0 16px 48px rgba(31,32,102,.2);
}
.an-nivel-card__header {
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.an-nivel-card__header.inicial  { background-color: #A31418; }
.an-nivel-card__header.primario { background-color: #31328F; }
.an-nivel-card__header h3 {
  color: #fff !important;
  font-size: var(--type-h3);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  font-family: var(--title-font);
  text-transform: none !important;
}
.an-nivel-card__header i,
.an-nivel-card__header span { color: rgba(255,255,255,.85) !important; }

/* Wrapper de imagen: fuerza alto fijo y enmascara */
.an-nivel-card__img-wrap {
  width: 100%;
  aspect-ratio: 633 / 260; /* proporción fija (la de PC) en todos los anchos: las fotos se recortan a esta medida */
  overflow: hidden;
  flex-shrink: 0;
}
.an-nivel-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .4s ease;
}
.an-nivel-card:hover .an-nivel-card__img-wrap img {
  transform: scale(1.04);
}
/* Compatibilidad: si se usa img directo (sin wrap) */
.an-nivel-card__img {
  width: 100%;
  aspect-ratio: 633 / 260;
  object-fit: cover;
  object-position: center;
  display: block;
  flex-shrink: 0;
}
.an-nivel-card__body {
  padding: 28px 28px 24px;
  background: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.an-nivel-card__body p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.an-nivel-card__highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.an-nivel-card__highlights li {
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  font-family: var(--body-font);
}
.an-nivel-card__highlights li.inicial {
  background: var(--accent-tint);
  color: var(--theme-color-strong);
}
.an-nivel-card__highlights li.primario {
  background: var(--primary-tint);
  color: var(--secondary-strong);
}
.an-nivel-card__body .vs-btn { margin-top: auto; align-self: flex-start; }

/* ── Banner bilingüe (surface-inverted) ──────────────────── */
.an-bilingual-banner {
  color: #fff;
  padding: 80px 0;
}
.an-bilingual-banner h2 {
  color: #fff;
  font-family: var(--title-font);
  font-size: var(--type-h2);
  line-height: 1.2;
}
.an-bilingual-banner p,
.an-bilingual-banner li { color: rgba(255,255,255,.8); }
.an-bilingual-banner .sec-subtitle { color: rgba(255,255,255,.75) !important; }
.an-bilingual-banner li i { color: #fff !important; }

.an-bilingual-stats {
  display: flex;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
  margin: 48px 0;
}
.an-bilingual-stat {
  text-align: center;
  padding: 24px 40px;
  border-right: 1px solid rgba(255,255,255,.15);
  flex: 1;
  min-width: 160px;
}
.an-bilingual-stat:last-child { border-right: none; }
/* Tablet: 4 columnas no entran ("Certificaciones" desbordaba y se descentraba) → grilla 2×2 */
@media (min-width: 768px) and (max-width: 991px) {
  .an-bilingual-stat { flex: 0 0 50%; padding: 24px 20px; border-right: none; }
  .an-bilingual-stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.15); }
  .an-bilingual-stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.15); }
}
.an-bilingual-stat__icon {
  font-size: 2rem;
  color: rgba(255,255,255,.9);
  display: block;
  margin-bottom: 12px;
}
.an-bilingual-stat__title {
  font-family: var(--title-font);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  display: block;
}
.an-bilingual-stat__label {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  display: block;
  margin-top: 4px;
}

/* ── Pilares grid ─────────────────────────────────────────── */
.an-pilar-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(31,32,102,.07);
  transition: box-shadow .25s ease;
}
.an-pilar-card:hover {
  box-shadow: 0 8px 32px rgba(31,32,102,.15);
}
/* Wrapper imagen pilar: enmascarado uniforme */
.an-pilar-card__img-wrap {
  width: 100%;
  aspect-ratio: 410 / 200; /* proporción fija (la de PC) en todos los anchos: las fotos se recortan a esta medida */
  overflow: hidden;
  flex-shrink: 0;
}
.an-pilar-card__img-wrap img,
.an-pilar-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.an-pilar-card__body {
  padding: 20px 20px 22px;
}
.an-pilar-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  margin-bottom: 12px;
}
.an-pilar-card__icon.inicial { background-color: var(--theme-color); }
.an-pilar-card__icon.primario { background-color: var(--vs-secondary-color); }
.an-pilar-card__body h3 {
  font-size: var(--type-h4);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
  font-family: var(--title-font);
  color: var(--title-color);
}
.an-pilar-card__body p {
  font-size: var(--type-small);
  line-height: 1.6;
  margin: 0;
  color: var(--body-color);
}

/* ── Consultas Parallax ───────────────────────────────────── */
.an-consultas-parallax {
  position: relative;
  padding: 110px 0;
  background-color: #1B1B4D;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;  /* parallax */
}
/* gradiente rojo → azul oscuro semitransparente sobre la foto */
.an-consultas-parallax h2 {
  font-family: var(--title-font);
  font-size: var(--type-h2);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
.an-consultas-parallax::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(163,20,24,.72) 0%, rgba(27,27,77,.78) 100%);
  z-index: 1;
}
/* mobile: iOS no soporta fixed en background, fallback a scroll */
@media (max-width: 767px) {
  .an-consultas-parallax {
    background-attachment: scroll;
  }
}

/* ── CTA Admisiones — photographic close, not a cream band ─ */
.an-admisiones-cta {
  position: relative;
  background-color: var(--surface-inverted);
  background-size: cover;
  background-position: center;
  padding: 88px 0;
  text-align: center;
  overflow: hidden;
}
.an-admisiones-cta::after {
  content: '';
  position: absolute;
  inset: -24px;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  transform: scale(1.06);
  z-index: 0;
}
.an-admisiones-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(27, 27, 77, .78);
  z-index: 1;
}
.an-admisiones-cta .container { position: relative; z-index: 2; }
.an-admisiones-cta .sec-subtitle,
.an-admisiones-cta h2,
.an-admisiones-cta .sec-title,
.an-admisiones-cta p,
.an-admisiones-cta__note {
  color: #fff !important;
}
.an-admisiones-cta .sec-subtitle { color: rgba(255,255,255,.75) !important; }
.an-admisiones-cta p {
  max-width: 65ch;
  margin: 0 auto 32px;
  font-size: var(--type-body);
  line-height: 1.75;
}
.an-admisiones-cta__note {
  font-size: var(--type-small) !important;
  margin-top: 24px !important;
  margin-bottom: 0 !important;
  color: rgba(255,255,255,.75) !important;
}
.an-admisiones-cta .vs-btn:not(.btn-accent) {
  background-color: transparent !important;
  border: 1px solid #fff !important;
  color: #fff !important;
}
.an-admisiones-cta .vs-btn:not(.btn-accent):hover,
.an-admisiones-cta .vs-btn:not(.btn-accent):focus-visible {
  background-color: transparent !important;
  border-color: #fff !important;
  color: #fff !important;
}

.an-band {
  color: #fff;
  padding: 80px 0;
}
.an-band .sec-title {
  color: #fff;
  margin-bottom: 24px;
}

.an-external-form {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 8px 32px 0;
  text-align: center;
  box-shadow: none;
  max-width: 720px;
  margin: 0 auto;
}
.an-external-form p {
  max-width: 52ch;
  margin: 0 auto 28px;
  font-size: var(--type-body);
  line-height: 1.75;
  color: #fff !important;
}

.an-h3 {
  font-family: var(--title-font);
  font-size: var(--type-h3);
  font-weight: 700;
  line-height: 1.25;
  color: var(--vs-secondary-color);
  margin: 40px 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.accordion-style1 .accordion-item {
  border: none;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
  border-radius: 0 !important;
  overflow: visible;
  margin: 0;
}
.accordion-style1 .accordion-button,
.accordion-style1 .accordion-item:first-of-type .accordion-button,
.accordion-style1 .accordion-item:last-of-type .accordion-button {
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 15px;
  color: var(--title-color);
  background: transparent;
  box-shadow: none;
  margin: 6px 0 !important;
  width: 100% !important;
  min-height: 56px;
  padding: 10px 64px 10px 20px !important;
  border-radius: 14px !important;
  display: flex;
  align-items: center;
}
.accordion-style1 .accordion-button::before {
  right: 10px;
  width: 36px;
  height: 36px;
  line-height: 36px;
  margin-top: -18px;
  border-radius: 50%;
}
.accordion-style1 .accordion-button:hover {
  background-color: var(--vs-secondary-color) !important;
  color: #fff !important;
}
.accordion-style1 .accordion-button:not(.collapsed) {
  color: var(--vs-secondary-color);
  background: transparent;
}
.accordion-style1 .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2331328F'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.accordion-style1 .accordion-body {
  font-size: 14.5px;
  line-height: 1.75;
  padding: 0 0 20px;
  color: var(--body-color);
}

/* ── Tarjetas de contacto ─────────────────────────────────── */
.an-surface-card,
.an-contact-card {
  border: 1px solid rgba(49, 50, 143, .28);
}
.an-contact-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  height: 100%;
  color: var(--title-color);
  box-shadow: 0 6px 18px rgba(31, 32, 102, .06);
}
.an-contact-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--primary-tint);
  color: var(--vs-secondary-color);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.an-contact-card--wa .an-contact-card__icon {
  background-color: rgba(37, 211, 102, .14);
  color: var(--wa-color);
}
.an-contact-card h4 {
  font-size: var(--type-h4);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--title-color);
}
.an-contact-card p {
  font-size: 14.5px;
  color: var(--body-color) !important;
}
.an-contact-card a,
.an-contact-card a:hover {
  font-size: 14.5px;
  color: var(--vs-secondary-color) !important;
  font-weight: 600;
  text-decoration: none;
}
.an-contact-card--wa a,
.an-contact-card--wa a:hover {
  color: var(--title-color) !important;
}

/* ── Mapa embebido ────────────────────────────────────────── */
.an-map-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(31,32,102,.1);
}
.an-map-wrap iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* ── Iframe admisiones ────────────────────────────────────── */
.an-iframe-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(31,32,102,.12);
  background: #fff;
}
.an-iframe-wrap iframe {
  width: 100%;
  min-height: 700px;
  border: none;
  display: block;
}

/* ── Floating CTA ─────────────────────────────────────────── */
.an-float-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.an-float-cta__wa {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.an-float-cta__wa:hover {
  transform: scale(1.1);
  color: #fff;
  box-shadow: 0 6px 24px rgba(37,211,102,.55);
}
/* Instagram: mismo botón redondo que WhatsApp, con el degradé de la marca */
.an-float-cta__ig {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  box-shadow: 0 4px 20px rgba(214,36,159,.35);
}
.an-float-cta__ig:hover { box-shadow: 0 6px 24px rgba(214,36,159,.5); }
/* Contacto: separador de horarios (vertical en PC, horizontal en celular) */
.an-hours__sep { width: 1px; align-self: stretch; background: rgba(255,255,255,.28); }
@media (max-width: 575px) {
  .an-hours { flex-direction: column; align-items: center; gap: 20px !important; }
  .an-hours__sep { width: 60%; height: 1px; align-self: center; }
}
.an-float-cta__btn {
  background-color: var(--theme-color);
  color: #fff;
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 13px;
  padding: 12px 20px;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(163,20,24,.35);
  transition: background .2s, transform .2s, box-shadow .2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.an-float-cta__btn:hover {
  background-color: var(--theme-color);
  filter: brightness(1.12);
  color: #fff;
  transform: none;
  box-shadow: 0 6px 24px rgba(163,20,24,.45);
}

/* ── Sección title helpers ────────────────────────────────── */
.sec-subtitle {
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--theme-color);
  display: block;
  margin-bottom: 12px;
}
.sec-subtitle.primary { color: var(--vs-secondary-color); }

.sec-title {
  font-family: var(--title-font);
  color: var(--title-color);
  font-size: var(--type-h2);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.an-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 32px;
}
.an-filters button {
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: .01em;
  border-radius: 999px;
  padding: 8px 16px;
  background: #fff;
  cursor: pointer;
  transition: filter .2s ease, background-color .2s ease, color .2s ease;
  text-transform: none !important;
}
.an-filters--inicial button {
  border: 2px solid var(--theme-color);
  color: var(--theme-color-strong);
}
.an-filters--primario button {
  border: 2px solid var(--vs-secondary-color);
  color: var(--secondary-strong);
}
.an-filters--inicial button.is-active {
  background: var(--theme-color);
  border-color: var(--theme-color);
  color: #fff;
}
.an-filters--primario button.is-active {
  background: var(--vs-secondary-color);
  border-color: var(--vs-secondary-color);
  color: #fff;
}
.an-filters button:hover,
.an-filters button:focus-visible {
  filter: brightness(1.08);
}
.an-filters button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.an-card {
  transition: opacity .28s ease, transform .28s ease;
}
.an-card.is-hidden {
  display: none !important;
}
.an-card.an-card--leaving {
  opacity: 0 !important;
  transform: scale(0.9) translateY(6px) !important;
  pointer-events: none;
}
.an-card.an-card--entering {
  opacity: 0 !important;
  transform: translateY(14px) scale(0.96) !important;
}

/* ── Superficie de marca: degradado azul + patrón sutil ── */
.an-brand-bg {
  position: relative;
  overflow: hidden;
  background-color: #1B1B4D;
  background-image: linear-gradient(to bottom left, #1B1B4D, #2C2D7A);
}
.an-brand-bg .sec-title,
.an-brand-bg .sec-subtitle,
.an-brand-bg .an-on-brand,
.an-hours,
.an-hours p,
.an-hours span {
  color: #fff !important;
}
.an-brand-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .4;
  background-image:
    radial-gradient(ellipse at 88% 0%, rgba(255,255,255,.09), transparent 46%),
    repeating-linear-gradient(-28deg, rgba(255,255,255,.045) 0 1px, transparent 1px 16px);
}
.footer-wrapper .widget-area {
  position: relative;
  z-index: 1;
}

/* ── Textos del footer: solo blanco ── */
.footer-wrapper h1, .footer-wrapper h2,
.footer-wrapper h3, .footer-wrapper h4,
.footer-wrapper h5, .footer-wrapper h6,
.footer-wrapper .widget_title,
.footer-wrapper .footer-widget h3,
.footer-wrapper .text-white {
  color: #fff !important;
  font-family: var(--title-font);
}
.footer-wrapper p,
.footer-wrapper .footer-text,
.footer-wrapper .footer-info,
.footer-wrapper span:not(.vs-btn) {
  color: #fff !important;
  font-family: var(--body-font);
}
.footer-wrapper a {
  color: #fff !important;
  font-family: var(--body-font);
  font-size: 14px;
  text-decoration: none;
  text-transform: none !important;
}
.footer-wrapper a:hover { color: #fff !important; }

/* iconos en el footer */
.footer-wrapper i { color: #fff !important; }

/* Ketan pone background-color red en .footer-info i — neutralizar */
.footer-wrapper .footer-info i {
  background-color: transparent !important;
  width: auto !important;
  height: auto !important;
  line-height: inherit !important;
  border-radius: 0 !important;
  margin-right: 6px !important;
  color: #fff !important;
}

/* redes sociales */
.footer-social a {
  background: rgba(255,255,255,.1) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  color: rgba(255,255,255,.75) !important;
  transition: background .2s !important;
}
.footer-social a:hover {
  background: rgba(255,255,255,.22) !important;
  color: #fff !important;
}

/* copyright text */
.copyright-text,
.copyright-text a { color: rgba(255,255,255,.5) !important; }
.copyright-text a:hover { color: rgba(255,255,255,.85) !important; }

/* ── Mobile nav ───────────────────────────────────────────── */
.vs-menu-wrapper .vs-menu-area {
  width: 92vw;
  max-width: 420px;
}
.vs-menu-wrapper .mobile-logo {
  text-align: left !important;
  padding: 18px 16px 0 !important;
}
.vs-menu-wrapper .mobile-logo .an-logo-pair {
  justify-content: flex-start;
}
.vs-menu-wrapper .an-logo-pair img.isologo { height: 68px; }
.vs-menu-wrapper .an-logo-pair img.logotipo { height: 54px; }
.vs-menu-wrapper .vs-mobile-menu {
  margin-top: 10px !important;
  padding: 0 !important;
  overflow-y: auto;
}
.vs-menu-wrapper .vs-mobile-menu > ul {
  padding: 0 18px !important;
}
.vs-menu-wrapper .vs-mobile-menu > ul > li {
  opacity: 0;
  transform: translateX(-28px);
}
.vs-menu-wrapper.vs-body-visible .vs-mobile-menu > ul > li {
  opacity: 1;
  transform: none;
  transition: opacity .45s ease, transform .45s ease;
}
.vs-menu-wrapper.vs-body-visible .vs-mobile-menu > ul > li:nth-child(1) { transition-delay: .5s; }
.vs-menu-wrapper.vs-body-visible .vs-mobile-menu > ul > li:nth-child(2) { transition-delay: .58s; }
.vs-menu-wrapper.vs-body-visible .vs-mobile-menu > ul > li:nth-child(3) { transition-delay: .66s; }
.vs-menu-wrapper.vs-body-visible .vs-mobile-menu > ul > li:nth-child(4) { transition-delay: .74s; }
.vs-menu-wrapper.vs-body-visible .vs-mobile-menu > ul > li:nth-child(5) { transition-delay: .82s; }
.vs-menu-wrapper.vs-body-visible .vs-mobile-menu > ul > li:nth-child(6) { transition-delay: .9s; }
.vs-menu-wrapper.vs-body-visible .vs-mobile-menu > ul > li:nth-child(7) { transition-delay: .98s; }
.vs-menu-wrapper.vs-body-visible .vs-mobile-menu > ul > li:nth-child(8) { transition-delay: 1.06s; }
.vs-menu-wrapper .vs-mobile-menu ul li {
  border-bottom-color: rgba(36, 36, 43, .16);
}
.vs-menu-wrapper .vs-mobile-menu ul li a,
.vs-menu-wrapper .vs-mobile-menu .an-estudiantes-link {
  white-space: nowrap;
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}
.vs-menu-wrapper .vs-mobile-menu ul li a,
.vs-menu-wrapper .vs-mobile-menu .an-estudiantes-link {
  font-family: var(--body-font);
  color: var(--title-color) !important;
  font-weight: 600;
}
.vs-menu-wrapper .vs-mobile-menu .an-estudiantes-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.vs-menu-wrapper .vs-mobile-menu .an-estudiantes-link i {
  color: var(--vs-secondary-color);
  font-size: 18px;
}
.vs-menu-wrapper .vs-mobile-menu ul li a:hover,
.vs-menu-wrapper .vs-mobile-menu ul li.active > a,
.vs-menu-wrapper .vs-mobile-menu ul li.vs-active > a,
.vs-menu-wrapper .vs-mobile-menu .an-estudiantes-link:hover {
  color: var(--vs-secondary-color) !important;
}

/* ── Área estudiantes ─────────────────────────────────────── */
.an-estudiantes-btn {
  margin-left: 40px;
  flex: 0 0 auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--vs-secondary-color);
  cursor: pointer;
}
.an-estudiantes-btn i { font-size: 18px; }
.an-estudiantes-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--title-color);
  color: #fff;
  font-family: var(--body-font);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.an-estudiantes-btn:hover .an-estudiantes-tip,
.an-estudiantes-btn:focus-visible .an-estudiantes-tip {
  opacity: 1;
}

/* Desktop nav starts at 1360. Below that, the hamburger menu is used. */
@media (max-width: 1359px) {
  .vs-header .header-top,
  .vs-header .main-menu,
  .vs-header .an-estudiantes-btn {
    display: none !important;
  }
  .vs-header .sticky-wrap .vs-menu-toggle {
    display: inline-block !important;
  }
  .an-fiesta-years { display: none !important; }
  .an-fiesta-year { display: flex !important; }
}
@media (min-width: 1360px) {
  .vs-header .header-top { display: block !important; }
  .vs-header .main-menu { display: block !important; }
  .vs-header .an-estudiantes-btn { display: inline-flex !important; }
  .vs-header .sticky-wrap .vs-menu-toggle { display: none !important; }
}
.an-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000001;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.an-modal.is-open { display: flex; }
.an-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 27, 77, .55);
}
.an-modal__dialog {
  position: relative;
  width: min(100%, 420px);
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px 28px;
  box-shadow: 0 16px 48px rgba(31, 32, 102, .2);
}
.an-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--title-color);
  cursor: pointer;
}
.an-modal__dialog h2 {
  font-family: var(--title-font);
  font-size: 1.6rem;
  margin: 0 0 18px;
  color: var(--title-color);
}
.an-modal__dialog label {
  display: block;
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--title-color);
}
.an-modal__dialog input {
  width: 100%;
  border: 1px solid rgba(49, 50, 143, .28);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--body-font);
  font-size: 16px;
  margin-bottom: 16px;
}
.an-modal__error {
  color: var(--theme-color);
  font-size: 14px;
  margin: -8px 0 14px;
}
.an-fiesta {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(49, 50, 143, .28);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(31, 32, 102, .08);
}
.an-fiesta.is-hidden { display: none !important; }
.an-fiesta__poster {
  display: block;
  width: 100%;
  height: auto;
  background: #1B1B4D;
}
.an-fiesta__levels {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.an-fiesta__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.an-fiesta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.an-fiesta__actions[hidden] { display: none !important; }
@media (max-width: 767px) {
  .an-fiesta__row .vs-btn {
    padding: 16px 22px !important;
  }
}
.an-fiesta__actions .vs-btn {
  animation: an-fiesta-action-in .45s ease both;
}
.an-fiesta__actions .vs-btn:nth-child(2) {
  animation-delay: .18s;
}
@keyframes an-fiesta-action-in {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: none; }
}
.an-fiesta__row > .vs-btn {
  background-color: #fff !important;
  color: #31328F !important;
  border: 2px solid #31328F !important;
}
.an-fiesta__row > .vs-btn.is-active {
  background-color: #31328F !important;
  color: #fff !important;
}
.an-fiesta-year {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto 28px;
}
.an-fiesta-year span {
  margin: 0;
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--vs-secondary-color);
}
.an-fiesta-year select {
  width: auto;
  min-width: 140px;
  border: 2px solid var(--vs-secondary-color);
  border-radius: 999px;
  background: #fff;
  color: var(--secondary-strong);
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: 600;
  padding: 10px 18px;
}
.an-fiesta__body { padding: 28px; }
.an-fiesta__body h2 {
  font-family: var(--title-font);
  font-size: var(--type-h2);
  margin-bottom: 8px;
}
.an-fiesta__body p {
  margin-bottom: 24px;
  color: var(--body-color);
}

/* ── Header follows the scroll on every viewport ─────────── */
header.vs-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 16px rgba(31, 32, 102, .1);
}
body { padding-top: var(--an-header-h, 100px); }
.will-sticky .sticky-active,
.will-sticky .sticky-active.active {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transition: none !important;
}

/* ── Accordion color fix ──────────────────────────────────── */
.bg-smoke { background-color: var(--smoke-color); }
.bg-white  { background-color: #fff; }

/* ── Breadcrumb / page header ─────────────────────────────── */
.an-page-header {
  padding: 32px 0 28px;
}
.an-page-header__content {
  position: relative;
  z-index: 2;
  color: #fff;
}
.an-page-header h1 {
  font-family: var(--title-font);
  color: #fff;
  font-size: var(--type-h1);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
}
.an-page-header p {
  color: rgba(255,255,255,.78);
  font-size: 1.05rem;
  margin: 0;
}
.an-breadcrumb {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.an-breadcrumb li { font-size: 13px; color: rgba(255,255,255,.6); }
.an-breadcrumb li a { color: rgba(255,255,255,.75); text-decoration: none; }
.an-breadcrumb li a:hover { color: #fff; }
.an-breadcrumb li::after { content: '/'; margin-left: 8px; }
.an-breadcrumb li:last-child::after { display: none; }
.an-breadcrumb li:last-child { color: rgba(255,255,255,.9); }

/* ── Instagram grid placeholder ──────────────────────────── */
.an-ig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.an-ig-item {
  aspect-ratio: 3 / 4; /* como la grilla del perfil de Instagram */
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.an-ig-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.an-ig-item:hover img { transform: scale(1.06); }
.an-ig-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(31,32,102,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}
.an-ig-item:hover .an-ig-item__overlay { opacity: 1; }
.an-ig-item__overlay i { color: #fff; font-size: 22px; }

/* ── Utilities ────────────────────────────────────────────── */
.text-primary-brand { color: var(--vs-secondary-color); }
.text-accent-brand  { color: var(--theme-color); }
.space { padding-top: 100px; padding-bottom: 100px; }
.space-top { padding-top: 100px; }
.space-bottom { padding-bottom: 100px; }
.space-extra { padding-top: 120px; padding-bottom: 120px; }
.space-extra-bottom { padding-bottom: 120px; }

.rounded-xl { border-radius: 16px; }
.img-cover { width: 100%; height: 100%; object-fit: cover; }
.img-rounded { border-radius: 12px; }

@media (max-width: 767px) {
  .an-bilingual-stats { flex-direction: column; gap: 0; }
  .an-bilingual-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); }
  .an-bilingual-stat:last-child { border-bottom: none; }
  .an-ig-grid { grid-template-columns: repeat(2, 1fr); }
  .an-float-cta { bottom: 16px; right: 16px; }
  .an-hero { min-height: 70vh; }
  .an-hero__content {
    padding-top: 72px;
    padding-bottom: 56px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .space { padding-top: 64px; padding-bottom: 64px; }
  .an-admisiones-cta,
  .an-band { padding: 56px 0; }
  .an-external-form { padding: 32px 20px; }
  .an-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .an-filters button { flex: 0 0 auto; }
}

/* ── Scroll-to-top: reposition to bottom-left ─────────────── */
.scrollToTop {
  left: 24px !important;
  right: auto !important;
}
.scrollToTop.show {
  bottom: 24px !important;
}
@media (max-width: 767px) {
  .scrollToTop { left: 16px !important; right: auto !important; }
  .scrollToTop.show { bottom: 16px !important; }
}

/* ── Home scroll reveal: slide in from the left, staggered ─ */
html.an-motion .an-reveal {
  opacity: 0;
  transform: translateX(-36px);
}
html.an-motion .an-reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--an-delay, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  html.an-motion .an-reveal,
  .vs-menu-wrapper .vs-mobile-menu > ul > li,
  .vs-menu-wrapper.vs-body-visible .vs-mobile-menu > ul > li,
  .an-fiesta__actions .vs-btn {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
}

/* Slider de fotos (Institucional, historia): mismas proporciones que la foto de arriba; fundido entre fotos */
.an-slider { position: relative; overflow: hidden; aspect-ratio: 1486 / 956; background: #e9e6df; }
.an-slider__slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .8s ease;
}
.an-slider__slide.is-active { opacity: 1; }
.an-slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.85); color: var(--title-color); box-shadow: 0 2px 10px rgba(0,0,0,.18);
  transition: background .2s;
}
.an-slider__arrow:hover, .an-slider__arrow:focus-visible { background: #fff; }
.an-slider__arrow--prev { left: 14px; }
.an-slider__arrow--next { right: 14px; }
.an-slider__dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.an-slider__dot {
  width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.55); box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: background .2s, transform .2s;
}
.an-slider__dot.is-active { background: #fff; transform: scale(1.25); }
.an-slider__arrow svg { width: 18px; height: 18px; }
/* Pantallas táctiles: sin flechas, se pasa deslizando con el dedo (los puntos quedan como guía) */
@media (hover: none) and (pointer: coarse) { .an-slider__arrow { display: none; } }
@media (prefers-reduced-motion: reduce) { .an-slider__slide { transition: none; } }
