/* =========================================================
   IEM La Arboleda · Plantilla hija de Cassiopeia (Joomla 5)
   Paleta tomada del escudo institucional.
   ========================================================= */

:root {
  --arb-verde: #1B6B2F;
  --arb-verde-profundo: #0E3B1F;
  --arb-verde-medio: #2B5A3A;
  --arb-verde-claro: #EEF4EF;
  --arb-verde-suave: #DCE8DF;
  --arb-amarillo: #E2B33A;
  --arb-cafe: #6B4226;
  --arb-crema: #F6F4EC;
  --arb-blanco: #FFFFFF;
  --arb-tinta: #1A2A1F;
  --arb-gris: #4F5F53;
  --arb-borde: #E3E0D3;
  --arb-texto-oscuro-suave: #D3E3D7;

  --arb-fuente-titulos: "Bitter", Georgia, "Times New Roman", serif;
  --arb-fuente-texto: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arb-radio: 18px;
  --arb-sombra: 0 12px 32px rgba(14, 59, 31, .12);

  /* Variables de Cassiopeia */
  --cassiopeia-color-primary: var(--arb-verde-profundo);
  --cassiopeia-color-link: var(--arb-verde);
  --cassiopeia-color-hover: var(--arb-verde-profundo);
  --cassiopeia-font-family-body: var(--arb-fuente-texto);
  --cassiopeia-font-family-headings: var(--arb-fuente-titulos);
  --cassiopeia-font-weight-headings: 800;
  --link-color: var(--arb-verde);
  --link-hover-color: var(--arb-verde-profundo);
}

/* ---------- Base ---------- */
body.arboleda {
  margin: 0;
  font-family: var(--arb-fuente-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--arb-tinta);
  background: var(--arb-crema);
}

.arboleda h1, .arboleda h2, .arboleda h3,
.arboleda .h1, .arboleda .h2, .arboleda .h3 {
  font-family: var(--arb-fuente-titulos);
  color: var(--arb-verde-profundo);
  line-height: 1.2;
}

.arboleda a { color: var(--arb-verde); }
.arboleda a:hover, .arboleda a:focus { color: var(--arb-verde-profundo); }
.arboleda :focus-visible { outline: 3px solid var(--arb-amarillo); outline-offset: 2px; }

.arb-contenedor {
  box-sizing: border-box;
  width: 100%;
  max-width: 1248px;
  margin-inline: auto;
  padding-inline: 24px;
}

.arb-saltar {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--arb-amarillo);
  color: var(--arb-verde-profundo) !important;
  font-weight: 800;
  text-decoration: none;
}
.arb-saltar:focus { top: 12px; }

/* ---------- Botones ---------- */
.arb-btn,
.arboleda .btn-arb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.arb-btn:hover, .arboleda .btn-arb:hover { transform: translateY(-1px); }

.arb-btn--primario,
.arboleda .btn-arb-primario {
  background: var(--arb-verde);
  color: var(--arb-blanco) !important;
}
.arb-btn--primario:hover,
.arboleda .btn-arb-primario:hover { background: var(--arb-verde-profundo); }

.arboleda .btn-arb-amarillo {
  background: var(--arb-amarillo);
  color: var(--arb-verde-profundo) !important;
}
.arboleda .btn-arb-amarillo:hover { background: #EDC45A; }

.arboleda .btn-arb-borde {
  border-color: currentColor;
  color: var(--arb-blanco) !important;
  background: transparent;
}
.arboleda .btn-arb-borde:hover { background: rgba(255, 255, 255, .1); }

/* Botones de Joomla (formularios, leer más) */
.arboleda .btn-primary {
  --btn-bg: var(--arb-verde);
  background-color: var(--arb-verde);
  border-color: var(--arb-verde);
}
.arboleda .btn-primary:hover, .arboleda .btn-primary:focus {
  background-color: var(--arb-verde-profundo);
  border-color: var(--arb-verde-profundo);
}

/* ---------- Franja superior ---------- */
.arb-topbar {
  background: var(--arb-verde-profundo);
  color: var(--arb-texto-oscuro-suave);
  font-size: .8125rem;
}
.arb-topbar__fila {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  padding-block: 8px;
}
.arb-topbar a { color: var(--arb-texto-oscuro-suave); text-decoration: none; }
.arb-topbar a:hover { color: var(--arb-blanco); text-decoration: underline; }
.arb-topbar .mod-menu,
.arb-topbar ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.arb-topbar p { margin: 0; }

/* ---------- Encabezado ---------- */
.container-header.arb-header {
  display: block;
  background: var(--arb-blanco);
  background-image: none;
  box-shadow: none;
  border-bottom: 1px solid var(--arb-borde);
  color: var(--arb-tinta);
}
.container-header.arb-header--fija {
  position: sticky;
  top: 0;
  z-index: 50;
}
.arb-header__fila {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 14px;
}

.arb-marca {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--arb-tinta) !important;
  text-decoration: none !important;
}
.arb-escudo {
  width: 58px;
  height: 52px;
  object-fit: contain;
}
.arb-marca__textos { display: flex; flex-direction: column; line-height: 1.15; }
.arb-marca__kicker {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--arb-gris);
}
.arb-marca__nombre {
  font-family: var(--arb-fuente-titulos);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--arb-verde-profundo);
}

.arb-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 18px;
  flex: 1 1 auto;
}

/* Menú principal (diseño "Desplegable plegable" de Cassiopeia) */
.container-header.arb-header nav { margin-top: 0; }
.container-header.arb-header .mod-menu {
  color: var(--arb-tinta);
  font-weight: 700;
}
.container-header.arb-header .mod-menu > li > a,
.container-header.arb-header .mod-menu > li > span,
.container-header.arb-header .mod-menu > li > button {
  color: var(--arb-tinta);
}
.container-header.arb-header .mod-menu > li.active > a,
.container-header.arb-header .mod-menu > li.current > a {
  color: var(--arb-verde);
}
.container-header.arb-header .metismenu.mod-menu .metismenu-item {
  padding: 8px 10px;
  font-size: 1rem;
}
.container-header.arb-header .metismenu > li > a:hover::after,
.container-header.arb-header .metismenu > li > button:hover::before,
.container-header.arb-header .metismenu > li.active > a::after,
.container-header.arb-header .metismenu > li.active > button::before,
.container-header.arb-header .mod-menu > li.active::after,
.container-header.arb-header .mod-menu > li:hover::after {
  background: var(--arb-verde);
  opacity: 1;
}
.container-header.arb-header .metismenu .mm-collapse {
  border-radius: 12px;
  border: 1px solid var(--arb-borde);
  overflow: hidden;
}
.container-header.arb-header .metismenu .mm-collapse a {
  color: var(--arb-tinta);
}
.container-header.arb-header .metismenu .mm-collapse a:hover {
  color: var(--arb-verde);
}
.container-header.arb-header .navbar-toggler {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--arb-borde);
  background: var(--arb-verde-claro);
  color: var(--arb-verde-profundo);
}
.container-header.arb-header .mod-finder,
.container-header.arb-header .mod-finder a:not(.jmodedit) { color: var(--arb-tinta); }

@media (min-width: 768px) {
  .container-header.arb-header .mod-menu {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
  }
}

@media (max-width: 767.98px) {
  .arb-nav { flex: 0 0 auto; }
  .arb-cta { display: none; }
  .container-header.arb-header .navbar-collapse.show,
  .container-header.arb-header .navbar-collapse.collapsing {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 100%;
    z-index: 60;
    padding: 8px;
    border-radius: 16px;
    background: var(--arb-blanco);
    box-shadow: var(--arb-sombra);
  }
  .container-header.arb-header .navbar-collapse .mod-menu { width: 100%; flex-direction: column; }
  .container-header.arb-header { position: relative; }
}

/* ---------- Menú principal (diseño "arb-megamenu") ---------- */
.arb-mm { position: static; }
.arb-mm__lista { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.arb-mm__item { position: relative; }
.arb-mm__boton {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--arb-tinta) !important;
  font: inherit;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.arb-mm__boton:hover,
.arb-mm__boton[aria-expanded="true"] { background: var(--arb-verde-claro); color: var(--arb-verde) !important; }
.arb-mm__item.is-en-ruta > .arb-mm__boton,
.arb-mm__boton.is-actual { background: var(--arb-verde-claro); color: var(--arb-verde) !important; box-shadow: inset 0 -3px 0 var(--arb-verde); }
.arb-mm__flecha { font-size: .7rem; transition: transform .2s ease; }
.arb-mm__boton[aria-expanded="true"] .arb-mm__flecha { transform: rotate(180deg); }

.arb-mm__sub {
  display: none;
  position: absolute;
  z-index: 70;
  top: calc(100% + 10px);
  left: 50%;
  width: min(640px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid var(--arb-borde);
  border-radius: 20px;
  background: var(--arb-blanco);
  box-shadow: 0 18px 40px rgba(14, 59, 31, .16);
  transform: translateX(-50%);
}
.arb-mm__sub::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  border-top: 1px solid var(--arb-borde);
  border-left: 1px solid var(--arb-borde);
  background: var(--arb-blanco);
  transform: translateX(-50%) rotate(45deg);
}
.arb-mm__item.is-abierto > .arb-mm__sub { display: block; animation: arb-mm-entrar .18s ease-out; }
@keyframes arb-mm-entrar { from { opacity: 0; margin-top: -6px; } to { opacity: 1; margin-top: 0; } }
.arb-mm__sub-titulo {
  margin: 0 6px 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--arb-borde);
  font-family: var(--arb-fuente-titulos);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--arb-verde-profundo);
}
.arb-mm__sub-titulo small { margin-left: 6px; font-family: var(--arb-fuente-texto); font-size: .8125rem; font-weight: 600; color: var(--arb-gris); }
.arb-mm__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.arb-mm__enlace {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  color: var(--arb-tinta) !important;
  text-decoration: none !important;
  transition: background-color .15s ease;
}
.arb-mm__enlace:hover, .arb-mm__enlace:focus-visible, .arb-mm__enlace.is-actual { background: var(--arb-verde-claro); }
.arb-mm__icono {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--arb-verde-claro);
  color: var(--arb-verde);
  font-size: 1rem;
}
.arb-mm__enlace:hover .arb-mm__icono, .arb-mm__enlace.is-actual .arb-mm__icono { background: var(--arb-verde); color: var(--arb-blanco); }
.arb-mm__textos { display: flex; flex-direction: column; line-height: 1.25; }
.arb-mm__textos strong { font-weight: 800; }
.arb-mm__textos small { margin-top: 2px; font-size: .8125rem; color: var(--arb-gris); }

.arb-mm__abrir, .arb-mm__cabecera { display: none; }

/* Encabezado fijo que se encoge al bajar */
.arb-header { transition: box-shadow .2s ease; }
.arb-header .arb-header__fila { transition: padding .2s ease; }
.arb-header .arb-escudo { transition: width .2s ease, height .2s ease; }
.arb-header.arb-header--encogida { box-shadow: 0 6px 20px rgba(14, 59, 31, .1); }
.arb-header.arb-header--encogida .arb-header__fila { padding-block: 6px; }
.arb-header.arb-header--encogida .arb-escudo { width: 44px; height: 40px; }

/* Buscador en la franja superior */
.arb-topbar__enlaces { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; }
.arb-topbar .mod-finder { margin: 0; }
.arb-topbar .mod-finder .input-group { flex-wrap: nowrap; }
.arb-topbar .mod-finder input {
  width: 190px;
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px 0 0 999px;
  background: rgba(255, 255, 255, .1);
  color: var(--arb-blanco);
  font-size: .8125rem;
}
.arb-topbar .mod-finder input::placeholder { color: var(--arb-texto-oscuro-suave); }
.arb-topbar .mod-finder .btn {
  min-height: 30px;
  padding: 4px 12px;
  border: 0;
  border-radius: 0 999px 999px 0;
  background: var(--arb-amarillo);
  color: var(--arb-verde-profundo);
  font-size: .8125rem;
  font-weight: 800;
}

@media (max-width: 991.98px) {
  .arb-mm__abrir {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid var(--arb-borde);
    border-radius: 999px;
    background: var(--arb-verde-claro);
    color: var(--arb-verde-profundo);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
  }
  .arb-mm__panel {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    overflow-y: auto;
    padding: 0 16px 32px;
    background: var(--arb-blanco);
  }
  .arb-mm.is-abierto .arb-mm__panel { display: block; animation: arb-mm-panel .2s ease-out; }
  @keyframes arb-mm-panel { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
  .arb-mm__cabecera {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--arb-borde);
    background: var(--arb-blanco);
  }
  .arb-mm__cabecera-titulo { font-family: var(--arb-fuente-titulos); font-size: 1.375rem; font-weight: 800; color: var(--arb-verde-profundo); }
  .arb-mm__cerrar {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: var(--arb-verde-claro);
    color: var(--arb-verde-profundo);
    font-size: 1.25rem;
    cursor: pointer;
  }
  .arb-mm__lista { flex-direction: column; align-items: stretch; gap: 0; padding-top: 8px; }
  .arb-mm__item { border-bottom: 1px solid var(--arb-borde); }
  .arb-mm__boton { width: 100%; justify-content: space-between; padding: 16px 6px; border-radius: 0; font-size: 1.125rem; }
  .arb-mm__boton:hover, .arb-mm__boton[aria-expanded="true"],
  .arb-mm__item.is-en-ruta > .arb-mm__boton, .arb-mm__boton.is-actual { background: transparent; box-shadow: none; }
  .arb-mm__sub {
    position: static;
    width: auto;
    padding: 0 0 14px;
    border: 0;
    box-shadow: none;
    transform: none;
  }
  .arb-mm__sub::before, .arb-mm__sub-titulo { display: none; }
  .arb-mm__grid { grid-template-columns: 1fr; }
  body.arb-mm-bloqueo { overflow: hidden; }
  .arb-header__fila { flex-wrap: nowrap; }
  .arb-marca { min-width: 0; }
  .arb-nav { flex: 0 0 auto; }
}

@media (max-width: 419.98px) {
  .arb-mm__abrir { width: 46px; padding: 0; justify-content: center; }
  .arb-mm__abrir span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- Hero (módulo "Personalizado" en la posición banner) ---------- */
.arb-banner {
  background: var(--arb-verde-profundo);
  color: var(--arb-blanco);
}
.arb-banner .mod-custom { margin: 0; }
.hero {
  box-sizing: border-box;
  max-width: 1248px;
  margin-inline: auto;
  padding: 72px 24px 96px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}
.hero__texto {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero__antetitulo {
  margin: 0;
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--arb-amarillo);
}
.arboleda .hero h1,
.arboleda .hero h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.08;
  font-weight: 800;
  color: var(--arb-blanco);
}
.hero__resumen {
  margin: 0;
  max-width: 34rem;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--arb-texto-oscuro-suave);
}
.hero__botones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 6px 0 0;
}
.hero__foto {
  flex: 1 1 400px;
  min-width: 0;
  margin: 0;
}
.hero__foto img {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 28px 28px 28px 120px;
}

/* ---------- Slider de destacados (posición banner, diseño "arb-slider") ---------- */
.arb-slider {
  position: relative;
  overflow: hidden;
  background: var(--arb-verde-profundo);
}
.arb-slider__pista {
  position: relative;
  height: clamp(440px, 72vh, 600px);
}
.arb-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility 0s linear .8s;
}
.arb-slide.is-activa {
  opacity: 1;
  visibility: visible;
  transition: opacity .8s ease;
}
.arb-slide__fondo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 7s ease-out;
}
.arb-slide.is-activa .arb-slide__fondo { transform: scale(1); }
.arb-slide:not(.arb-slide--solo-imagen)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 59, 31, .92) 0%, rgba(14, 59, 31, .72) 45%, rgba(14, 59, 31, .1) 100%);
}
.arb-slide--solo-imagen .arb-slide__fondo { object-fit: contain; transform: none; }
.arb-slide__enlace-total { position: absolute; inset: 0; z-index: 1; }
.arb-slide__contenido {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  max-width: 1248px;
  height: 100%;
  margin-inline: auto;
  padding: 48px 24px 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.arb-slide__contenido > * { max-width: 40rem; margin: 0; }
.arboleda .arb-slide__titulo {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  font-weight: 800;
  color: var(--arb-blanco);
}
.arb-slide__texto { font-size: 1.1875rem; color: var(--arb-texto-oscuro-suave); }
.arb-slide__texto p { margin: 0; }
.arb-slide__texto .arb-pendiente { color: var(--arb-blanco); }

.arb-slider__controles {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 64px;
  transform: translateX(-50%);
  box-sizing: border-box;
  width: 100%;
  max-width: 1248px;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.arb-slider__boton {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  background: rgba(14, 59, 31, .4);
  color: var(--arb-blanco);
  cursor: pointer;
}
.arb-slider__boton:hover { background: var(--arb-amarillo); border-color: var(--arb-amarillo); color: var(--arb-verde-profundo); }
.arb-slider__puntos { display: flex; gap: 8px; }
.arb-slider__punto {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: width .3s ease, background-color .3s ease;
}
.arb-slider__punto.is-activo { width: 32px; background: var(--arb-amarillo); }
.arb-slider__pausa { margin-left: auto; }

/* ---------- Accesos rápidos (menú con diseño "accesos") ---------- */
.arb-accesos { position: relative; z-index: 2; }
.arb-banner + .arb-accesos { margin-top: -40px; }
.arb-accesos__lista {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 20px;
  list-style: none;
  background: var(--arb-blanco);
  border-radius: 22px;
  box-shadow: var(--arb-sombra);
}
.arb-acceso {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  box-sizing: border-box;
  padding: 18px 18px 22px;
  border-radius: 16px;
  background: var(--arb-verde-claro);
  color: var(--arb-tinta) !important;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none !important;
  transition: color .3s ease, transform .3s cubic-bezier(.2, .8, .2, 1.2), box-shadow .3s ease;
}
/* Relleno verde que sube desde abajo al pasar el ratón */
.arb-acceso::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, var(--arb-verde) 0%, var(--arb-verde-profundo) 100%);
  transform: translateY(101%);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
/* Flecha que aparece en la esquina */
.arb-acceso::after {
  content: "\2192";
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-size: 1.15rem;
  color: var(--arb-amarillo);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .3s ease, transform .3s ease;
}
.arb-acceso__icono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--arb-blanco);
  color: var(--arb-verde);
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(14, 59, 31, .08);
  transition: transform .4s cubic-bezier(.3, 1.6, .5, 1), background-color .3s ease, color .3s ease;
}
.arb-acceso:hover, .arb-acceso:focus-visible {
  color: var(--arb-blanco) !important;
  transform: translateY(-6px);
  box-shadow: 0 16px 28px rgba(14, 59, 31, .22);
}
.arb-acceso:hover::before, .arb-acceso:focus-visible::before { transform: translateY(0); }
.arb-acceso:hover::after, .arb-acceso:focus-visible::after { opacity: 1; transform: none; }
.arb-acceso:hover .arb-acceso__icono, .arb-acceso:focus-visible .arb-acceso__icono {
  background: var(--arb-amarillo);
  color: var(--arb-verde-profundo);
  transform: rotate(-8deg) scale(1.12);
}
.arb-acceso:active { transform: translateY(-2px) scale(.98); }

/* En tableta, 3 columnas parejas (6 accesos = 2 filas completas) */
@media (min-width: 576px) and (max-width: 1099.98px) {
  .arb-accesos__lista { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Entrada escalonada al cargar la portada */
@keyframes arb-subir { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.arb-accesos__lista > li { animation: arb-subir .6s cubic-bezier(.2, .8, .2, 1) both; }
.arb-accesos__lista > li:nth-child(1) { animation-delay: .15s; }
.arb-accesos__lista > li:nth-child(2) { animation-delay: .23s; }
.arb-accesos__lista > li:nth-child(3) { animation-delay: .31s; }
.arb-accesos__lista > li:nth-child(4) { animation-delay: .39s; }
.arb-accesos__lista > li:nth-child(5) { animation-delay: .47s; }
.arb-accesos__lista > li:nth-child(6) { animation-delay: .55s; }
/* El icono «saluda» una vez después de entrar */
@keyframes arb-saludo { 0%, 100% { transform: none; } 30% { transform: rotate(-12deg) scale(1.1); } 60% { transform: rotate(8deg); } }
.arb-accesos__lista > li .arb-acceso__icono { animation: arb-saludo .7s ease 1s both; }
.arb-accesos__lista > li:nth-child(2) .arb-acceso__icono { animation-delay: 1.1s; }
.arb-accesos__lista > li:nth-child(3) .arb-acceso__icono { animation-delay: 1.2s; }
.arb-accesos__lista > li:nth-child(4) .arb-acceso__icono { animation-delay: 1.3s; }
.arb-accesos__lista > li:nth-child(5) .arb-acceso__icono { animation-delay: 1.4s; }
.arb-accesos__lista > li:nth-child(6) .arb-acceso__icono { animation-delay: 1.5s; }

/* Texto de las diapositivas: entra en cascada cada vez que cambia la diapositiva */
.arb-slide.is-activa .arb-slide__contenido > * { animation: arb-subir .7s cubic-bezier(.2, .8, .2, 1) both; }
.arb-slide.is-activa .arb-slide__contenido > *:nth-child(2) { animation-delay: .12s; }
.arb-slide.is-activa .arb-slide__contenido > *:nth-child(3) { animation-delay: .24s; }
.arb-slide.is-activa .arb-slide__contenido > *:nth-child(4) { animation-delay: .36s; }

/* Pilares del escudo: se elevan y el icono gira al pasar */
.pilar { transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease; }
.pilar__icono { display: inline-block; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.pilar:hover { transform: translateY(-6px); background: var(--arb-blanco); box-shadow: var(--arb-sombra); }
.pilar:hover .pilar__icono { transform: rotate(-10deg) scale(1.2); }

/* ---------- Cuerpo ---------- */
.arb-cuerpo {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  padding-block: 40px 64px;
}
.arb-principal { flex: 999 1 620px; min-width: 0; }
.arb-lateral {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.arb-componente:empty { display: none; }

.arb-modulo + .arb-modulo { margin-top: 40px; }
.arb-modulo__titulo {
  margin: 0 0 20px;
  font-size: clamp(1.6rem, 2.6vw, 2.125rem);
}
.arb-lateral .arb-modulo + .arb-modulo { margin-top: 0; }

/* Tarjeta blanca (clase del módulo: "tarjeta") */
.arb-modulo.tarjeta,
.arb-lateral .arb-modulo {
  padding: 24px;
  border-radius: var(--arb-radio);
  border: 1px solid var(--arb-borde);
  background: var(--arb-blanco);
}
.arb-lateral .arb-modulo__titulo { font-size: 1.5rem; margin-bottom: 16px; }

/* Migas de pan */
.arboleda .mod-breadcrumbs__wrapper,
.arboleda .breadcrumb {
  margin-bottom: 16px;
  font-size: .9375rem;
  background: none;
  padding: 0;
}

/* ---------- Noticias (Artículos - Noticias, diseño horizontal; clase "noticias") ---------- */
.arboleda .noticias .newsflash-horiz {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.arboleda .noticias .newsflash-horiz > li {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0 0 18px;
  overflow: hidden;
  border-radius: var(--arb-radio);
  border: 1px solid var(--arb-borde);
  background: var(--arb-blanco);
  flex: none;
  width: auto;
}
.arboleda .noticias .newsflash-image {
  order: -1;
  margin: 0 0 14px;
}
.arboleda .noticias .newsflash-image img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}
.arboleda .noticias .newsflash-title {
  margin: 4px 18px 8px;
  font-size: 1.1875rem;
  line-height: 1.3;
}
.arboleda .noticias .newsflash-title a { color: var(--arb-tinta); text-decoration: none; }
.arboleda .noticias .newsflash-title a:hover { color: var(--arb-verde); text-decoration: underline; }
.arboleda .noticias .newsflash-horiz > li > p,
.arboleda .noticias .newsflash-horiz > li > div:not(.newsflash-image) {
  margin: 0 18px;
  color: var(--arb-gris);
}
.arboleda .noticias .readmore { margin: 12px 18px 0; }
.arboleda .noticias .readmore .btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--arb-verde);
  font-weight: 800;
}

/* ---------- Eventos (módulo personalizado; clase "eventos") ---------- */
.evento-lista { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.evento { display: flex; align-items: center; gap: 14px; }
.evento__fecha {
  flex: none;
  width: 56px;
  height: 60px;
  border-radius: 12px;
  background: var(--arb-verde);
  color: var(--arb-blanco);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.evento__dia { font-size: 1.375rem; font-weight: 800; }
.evento__mes { font-size: .75rem; font-weight: 700; text-transform: uppercase; margin-top: 3px; }
.evento__nombre { font-weight: 700; line-height: 1.3; }

/* ---------- Banda de pilares (posición bottom-a; clase "pilares") ---------- */
.arb-banda {
  background: var(--arb-blanco);
  border-top: 1px solid var(--arb-borde);
  border-bottom: 1px solid var(--arb-borde);
  padding-block: 64px;
}
.antetitulo {
  margin: 0 0 6px;
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--arb-cafe);
}
.arboleda .pilares h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.125rem);
}
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.pilar {
  padding: 26px;
  border-radius: 20px;
  background: var(--arb-verde-claro);
}
.pilar__icono { font-size: 2rem; color: var(--arb-verde); }
.arboleda .pilar h3 { margin: 12px 0 8px; font-size: 1.25rem; color: var(--arb-tinta); }
.pilar p { margin: 0; color: var(--arb-gris); }

/* ---------- Pie de página ---------- */
.arb-footer {
  background: var(--arb-verde-profundo);
  color: var(--arb-texto-oscuro-suave);
  font-size: .9375rem;
}
.arb-footer__columnas {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  padding-block: 56px 32px;
}
.arb-footer__marca {
  flex: 1 1 260px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.arb-footer__marca .arb-escudo {
  width: 64px;
  height: 58px;
  padding: 4px;
  border-radius: 12px;
  background: var(--arb-blanco);
}
.arb-footer__marca strong {
  font-family: var(--arb-fuente-titulos);
  font-size: 1.25rem;
  color: var(--arb-blanco);
}
.arb-footer__col { flex: 1 1 200px; min-width: 0; }
.arboleda .arb-footer .arb-modulo + .arb-modulo { margin-top: 24px; }
.arboleda .arb-footer .arb-modulo__titulo {
  margin: 0 0 10px;
  font-family: var(--arb-fuente-texto);
  font-size: 1rem;
  font-weight: 800;
  color: var(--arb-amarillo);
}
.arb-footer a { color: var(--arb-texto-oscuro-suave); }
.arb-footer a:hover { color: var(--arb-blanco); }
.arb-footer ul { margin: 0; padding: 0; list-style: none; }
.arb-footer li + li { margin-top: 6px; }
.arb-footer p { margin: 0 0 6px; }
.arb-footer__legal {
  padding-block: 18px 28px;
  border-top: 1px solid var(--arb-verde-medio);
  font-size: .875rem;
  color: #A9C2B0;
}

/* ---------- Contenido de Joomla (blog, artículos) ---------- */
.arboleda .com-content-category-blog__item,
.arboleda .blog-item {
  padding: 22px;
  border-radius: var(--arb-radio);
  border: 1px solid var(--arb-borde);
  background: var(--arb-blanco);
}
.arboleda .com-content-article {
  padding: clamp(20px, 4vw, 40px);
  border-radius: var(--arb-radio);
  border: 1px solid var(--arb-borde);
  background: var(--arb-blanco);
}
.arboleda .item-image img,
.arboleda .com-content-article img { border-radius: 12px; max-width: 100%; height: auto; }
.arboleda .page-link { color: var(--arb-verde); }
.arboleda .page-item.active .page-link {
  background-color: var(--arb-verde);
  border-color: var(--arb-verde);
}

/* Documentos institucionales (calendario, etc.) */
.arboleda .com-content-article h2 { margin: 36px 0 14px; font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.arb-doc-cabecera {
  margin-bottom: 8px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--arb-verde-claro);
}
.arb-doc-cabecera p:not(.antetitulo) { margin: 0 0 14px; }
.arb-doc-cabecera p:last-child { margin-bottom: 0; }
.arb-tabla {
  overflow-x: auto;
  border: 1px solid var(--arb-borde);
  border-radius: 14px;
}
.arb-tabla table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9375rem; }
.arb-tabla th, .arb-tabla td { padding: 12px 14px; border-bottom: 1px solid var(--arb-borde); text-align: left; vertical-align: top; }
.arb-tabla thead th { background: var(--arb-verde-profundo); color: var(--arb-blanco); font-weight: 800; }
.arb-tabla tbody th { background: var(--arb-verde-claro); color: var(--arb-verde-profundo); font-weight: 800; }
.arb-tabla tbody tr:last-child > * { border-bottom: 0; }
.arb-tabla tbody tr:hover td { background: #FBFAF5; }
.arb-fechas { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.arb-fechas li { display: flex; align-items: center; gap: 14px; }
.arb-fechas__dia {
  flex: none;
  min-width: 118px;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--arb-verde);
  color: var(--arb-blanco);
  font-weight: 800;
  font-size: .875rem;
  text-align: center;
}
.arb-nota { margin-top: 10px; font-size: .875rem; color: var(--arb-gris); }
.arb-fuente {
  margin-top: 32px;
  padding-top: 14px;
  border-top: 1px dashed var(--arb-borde);
  font-size: .8125rem;
  color: var(--arb-gris);
}

/* Sedes con mapa (Contacto, Sedes y jornadas) */
.arb-sedes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 24px 0; }
.arb-sede {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--arb-borde);
  border-radius: 18px;
  background: var(--arb-blanco);
}
.arb-sede__mapa { aspect-ratio: 4 / 3; background: var(--arb-verde-claro); }
.arb-sede__mapa iframe { display: block; width: 100%; height: 100%; border: 0; }
.arb-sede__datos { padding: 18px 20px 20px; }
.arboleda .com-content-article .arb-sede h3 { margin: 0 0 10px; font-size: 1.25rem; }
.arb-sede__datos p { margin: 0 0 8px; }
.arb-sede__datos .fa-solid { width: 18px; color: var(--arb-verde); }
.arb-sede__datos .btn-arb .fa-solid { width: auto; color: inherit; }
.arb-sede__nota { color: var(--arb-gris); font-size: .9375rem; }

.arb-sede__botones { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 12px !important; }
.arb-sede__abrir { font-weight: 800; }

/* Matrícula 2027 */
.arb-botones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px !important; }
.arboleda .btn-arb-borde-verde { border-color: var(--arb-verde); color: var(--arb-verde) !important; background: var(--arb-blanco); }
.arboleda .btn-arb-borde-verde:hover { background: var(--arb-verde); color: var(--arb-blanco) !important; }
.arb-matricula-fechas { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 12px 0 8px; }
.arb-matricula-grado { padding: 20px; border: 1px solid var(--arb-borde); border-top: 5px solid var(--arb-verde); border-radius: 16px; background: var(--arb-blanco); }
.arb-matricula-grado--datos { border-top-color: var(--arb-amarillo); background: var(--arb-verde-claro); }
.arboleda .com-content-article .arb-matricula-grado h3 { margin: 0 0 12px; font-size: 1.2rem; }
.arb-matricula-grado h3 .fa-solid { color: var(--arb-verde); margin-right: 4px; }
.arb-matricula-grado p { margin: 10px 0 0; font-size: .9375rem; color: var(--arb-gris); }
.arb-matricula-grado--datos p { color: var(--arb-tinta); }
.arb-tabla--requisitos td { width: 110px; text-align: center; vertical-align: middle; }
.arb-tabla--requisitos tbody th { background: transparent; color: var(--arb-tinta); font-weight: 600; }
.arb-si { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; background: var(--arb-verde); color: var(--arb-blanco); font-size: .8rem; }
.arb-no { color: #A0A8A2; font-weight: 800; }
.arb-lista-formatos { columns: 2 280px; column-gap: 32px; }
.arb-lista-formatos li { break-inside: avoid; margin-bottom: 6px; }
.arb-aviso-matricula { margin: 16px 0; padding: 18px 22px; border-radius: 16px; background: #FBF3DC; }
.arb-aviso-matricula p { margin: 0 0 8px; }
.arb-aviso-matricula p:last-child { margin-bottom: 0; }
.arb-descargas { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.arb-descargas a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--arb-borde); border-radius: 12px; background: var(--arb-blanco); font-weight: 700; text-decoration: none; }
.arb-descargas a:hover { border-color: var(--arb-verde); background: var(--arb-verde-claro); }
.arb-descargas .fa-file-pdf { color: #B3261E; font-size: 1.2rem; }

/* Propuesta de uniformes */
.arb-colores { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px !important; }
.arb-color { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9375rem; }
.arb-color::before { content: ""; width: 22px; height: 22px; border-radius: 999px; border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 1px var(--arb-borde); }
.arb-uniforme {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 24px 32px;
  align-items: start;
  margin: 28px 0;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--arb-borde);
}
.arb-uniforme__foto { margin: 0; overflow: hidden; border-radius: 18px; background: #F2F2F0; }
.arb-uniforme__foto img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; border-radius: 0 !important; }
.arboleda .com-content-article .arb-uniforme h2 { margin-top: 0; }
.arb-prendas { margin: 0; padding: 0; list-style: none; counter-reset: prenda; display: grid; gap: 12px; }
.arb-prendas li { counter-increment: prenda; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; }
.arb-prendas li::before {
  content: counter(prenda);
  grid-row: span 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 10px;
  background: var(--arb-verde-claro); color: var(--arb-verde); font-weight: 800;
}
.arb-prendas strong { color: var(--arb-verde-profundo); }
.arb-prendas span { color: var(--arb-gris); font-size: .9375rem; }
.arb-aviso-uniforme { margin: 28px 0 8px; padding: 22px 24px; border-radius: 18px; background: #FBF3DC; }
.arboleda .com-content-article .arb-aviso-uniforme h2 { margin-top: 0; }
@media (max-width: 767.98px) { .arb-uniforme { grid-template-columns: 1fr; } }

/* Google Calendar incrustado */
.arb-gcal { margin: 16px 0; }
.arb-gcal--listo { overflow: hidden; border: 1px solid var(--arb-borde); border-radius: 16px; }
.arb-gcal iframe { display: block; width: 100%; height: 640px; border: 0; }
@media (max-width: 575.98px) { .arb-gcal iframe { height: 520px; } }

/* Ranking Saber 11 */
.arb-tabla--ranking td:nth-child(1), .arb-tabla--ranking td:nth-child(2), .arb-tabla--ranking td:nth-child(4) { text-align: center; white-space: nowrap; }
.arb-tabla--ranking th small { display: block; font-weight: 600; font-size: .8125rem; color: var(--arb-gris); }
.arb-tabla--ranking tbody th { background: transparent; color: var(--arb-tinta); font-weight: 700; }
.arb-tabla--ranking td:last-child { min-width: 170px; }
.arb-barra { display: block; height: 8px; margin-top: 4px; border-radius: 999px; background: var(--arb-verde-claro); overflow: hidden; }
.arb-barra > span { display: block; height: 100%; border-radius: 999px; background: #9DB8A4; }
.arb-barra--arboleda > span { background: var(--arb-amarillo); }
.arb-tabla tbody tr.arb-fila-destacada > * { background: #FBF3DC; }
.arb-tabla tbody tr.arb-fila-destacada th { color: var(--arb-verde-profundo); font-weight: 800; }
.tarjeta-info--destacada { background: var(--arb-verde-profundo); }
.arboleda .com-content-article .tarjeta-info--destacada h3 { color: var(--arb-amarillo); }
.tarjeta-info--destacada p { color: var(--arb-blanco); font-size: 1.75rem; }
.tarjeta-info p small { font-size: .9rem; font-weight: 600; opacity: .8; }
.arb-desplegable { margin: 18px 0; }
.arb-desplegable > summary {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--arb-verde-claro);
  color: var(--arb-verde-profundo);
  font-weight: 800;
  cursor: pointer;
}
.arb-desplegable[open] > summary { margin-bottom: 12px; }

/* Línea de tiempo (Historia) */
.arb-linea { position: relative; margin: 8px 0 24px; padding-left: 28px; border-left: 3px solid var(--arb-verde-suave); }
.arb-linea__hito { position: relative; margin-bottom: 22px; }
.arb-linea__hito::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 4px;
  width: 15px;
  height: 15px;
  border: 3px solid var(--arb-blanco);
  border-radius: 999px;
  background: var(--arb-verde);
  box-shadow: 0 0 0 2px var(--arb-verde);
}
.arb-linea__anio { font-family: var(--arb-fuente-titulos); font-size: 1.375rem; font-weight: 800; color: var(--arb-verde-profundo); }
.arb-linea__hito p { margin: 4px 0 0; }

/* Símbolos y tarjetas informativas */
.arb-simbolo { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.arb-simbolo img { flex: none; border-radius: 22px; box-shadow: var(--arb-sombra); }
.arb-simbolo > div { flex: 1 1 280px; }
.arb-tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 18px 0; }
.tarjeta-info { padding: 18px; border-radius: 16px; background: var(--arb-verde-claro); }
.arboleda .com-content-article .tarjeta-info h3 { margin: 0 0 4px; font-family: var(--arb-fuente-texto); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--arb-cafe); }
.tarjeta-info p { margin: 0; font-weight: 800; font-size: 1.125rem; color: var(--arb-verde-profundo); }
.evento-lista__mas { margin: 16px 0 0; font-weight: 800; }

/* Volver arriba */
.arboleda .back-to-top-link {
  background: var(--arb-verde);
  border-radius: 999px;
  color: var(--arb-blanco);
}

/* ---------- Franjas a todo el ancho (posiciones franja-1 a franja-4) ---------- */
.arb-franja {
  padding-block: 72px;
  background: var(--arb-crema);
}
.arb-franja.fondo-blanco {
  background: var(--arb-blanco);
  border-top: 1px solid var(--arb-borde);
  border-bottom: 1px solid var(--arb-borde);
}
.arb-franja.fondo-verde {
  background: var(--arb-verde-profundo);
  color: var(--arb-texto-oscuro-suave);
}
.arboleda .fondo-verde h2,
.arboleda .fondo-verde h3 { color: var(--arb-blanco); }
.fondo-verde .antetitulo { color: var(--arb-amarillo); }
.fondo-verde a:not(.btn-arb) { color: var(--arb-amarillo); }

.arb-franja__titulo,
.arboleda .arb-intro h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}
.arb-intro {
  max-width: 46rem;
  margin-bottom: 36px;
}
.arb-intro--centro {
  margin-inline: auto;
  text-align: center;
}
.arb-intro p:not(.antetitulo) {
  margin: 12px 0 0;
  font-size: 1.125rem;
  color: var(--arb-gris);
}
.fondo-verde .arb-intro p:not(.antetitulo) { color: var(--arb-texto-oscuro-suave); }

/* Texto por completar: se ve resaltado para que el editor lo encuentre */
.arb-pendiente {
  background: rgba(226, 179, 58, .22);
  border-radius: 4px;
  padding: 0 4px;
}

/* ---------- Cifras (clase del módulo: "cifras") ---------- */
.cifras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cifra {
  padding: 28px 24px;
  border-radius: var(--arb-radio);
  background: var(--arb-verde-medio);
  text-align: center;
}
.cifra__numero {
  display: block;
  font-family: var(--arb-fuente-titulos);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--arb-amarillo);
  font-variant-numeric: tabular-nums;
}
.cifra__etiqueta {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  color: var(--arb-blanco);
}
.cifra__nota {
  display: block;
  margin-top: 4px;
  font-size: .875rem;
  color: var(--arb-texto-oscuro-suave);
}

/* ---------- Niveles educativos (clase del módulo: "niveles") ---------- */
.niveles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.nivel {
  --nivel-color: var(--arb-verde);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  border-radius: var(--arb-radio);
  border-top: 6px solid var(--nivel-color);
  background: var(--arb-blanco);
  box-shadow: 0 1px 0 var(--arb-borde);
  transition: transform .2s ease, box-shadow .2s ease;
}
.nivel:hover { transform: translateY(-4px); box-shadow: var(--arb-sombra); }
.nivel--amarillo { --nivel-color: var(--arb-amarillo); }
.nivel--cafe { --nivel-color: var(--arb-cafe); }
.nivel--profundo { --nivel-color: var(--arb-verde-profundo); }
.nivel__icono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--arb-verde-claro);
  color: var(--arb-verde);
  font-size: 1.5rem;
}
.arboleda .nivel h3 { margin: 4px 0 0; font-size: 1.375rem; }
.nivel__grados {
  margin: 0;
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--arb-cafe);
}
.nivel p { margin: 0; color: var(--arb-gris); }
.nivel__enlace { margin-top: auto; padding-top: 8px; font-weight: 800; }

/* ---------- Galería (clase del módulo: "galeria") ---------- */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 180px;
  gap: 14px;
}
.galeria__item {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin: 0;
  border-radius: 16px;
  background: var(--arb-verde-suave);
  color: var(--arb-verde-profundo);
  text-decoration: none !important;
}
.galeria__item--alto { grid-row: span 2; }
.galeria__item--ancho { grid-column: span 2; }
.galeria__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.galeria__item:hover img { transform: scale(1.05); }
.galeria__pie {
  position: relative;
  width: 100%;
  padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(14, 59, 31, .85));
  color: var(--arb-blanco);
  font-weight: 700;
  font-size: .9375rem;
}
.galeria__item--pendiente {
  align-items: center;
  justify-content: center;
  border: 2px dashed #B9CDBE;
  background: var(--arb-verde-claro);
  font-weight: 700;
  font-size: .9375rem;
  text-align: center;
}
.galeria__mas { margin: 24px 0 0; text-align: center; }

/* ---------- Vida escolar: cinta de álbumes (diseño arb-galeria) ---------- */
.vida__cinta {
  overflow: hidden;
  margin-inline: -24px;
  padding: 10px 0 18px;
  /* Bordes que se desvanecen */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.vida__pista {
  display: flex;
  gap: 18px;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: vida-desplazar 45s linear infinite;
}
/* La pista tiene dos copias de los álbumes: moverla la mitad (más medio espacio) la deja igual que al inicio */
.vida:hover .vida__pista, .vida:focus-within .vida__pista { animation-play-state: paused; }
@keyframes vida-desplazar { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 9px)); } }
.vida__elemento { flex: none; }
.vida__elemento:nth-child(odd) { margin-top: 26px; }
.vida__album {
  position: relative;
  display: block;
  width: 300px;
  height: 230px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--arb-verde-suave);
  color: var(--arb-blanco) !important;
  text-align: left;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(14, 59, 31, .14);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1.2), box-shadow .35s ease;
}
.vida__album img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.vida__album::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(14, 59, 31, .88)); transition: background .35s ease; }
.vida__info { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: flex; flex-direction: column; }
.vida__info strong { font-family: var(--arb-fuente-titulos); font-size: 1.2rem; line-height: 1.2; }
.vida__info small { color: var(--arb-amarillo); font-weight: 800; }
.vida__ver {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--arb-amarillo);
  color: var(--arb-verde-profundo);
  font-size: .8125rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .3s ease, transform .3s ease;
}
.vida__album:hover, .vida__album:focus-visible { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 20px 36px rgba(14, 59, 31, .26); }
.vida__album:hover img, .vida__album:focus-visible img { transform: scale(1.08); }
.vida__album:hover .vida__ver, .vida__album:focus-visible .vida__ver { opacity: 1; transform: none; }
.vida__sin-foto { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--arb-verde-profundo); font-weight: 700; }
.vida__ayuda { margin: 4px 0 0; text-align: center; font-size: .875rem; color: var(--arb-gris); }

/* Visor del álbum */
.vida-visor {
  width: min(96vw, 1200px);
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #0A2414;
  color: var(--arb-blanco);
  overflow: hidden;
}
.vida-visor::backdrop { background: rgba(5, 18, 10, .9); }
.vida-visor[open] { animation: arb-subir .35s ease both; }
.vida-visor__cabecera { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 12px 22px; }
.vida-visor__titulo { margin: 0; font-family: var(--arb-fuente-titulos); font-size: 1.25rem; font-weight: 800; }
.vida-visor__contador { color: var(--arb-amarillo); font-weight: 800; white-space: nowrap; }
.vida-visor__escena { position: relative; display: flex; align-items: center; justify-content: center; height: min(72vh, 720px); background: #000; touch-action: pan-y; }
.vida-visor__escena img { max-width: 100%; max-height: 100%; object-fit: contain; animation: vida-foto .45s ease both; }
@keyframes vida-foto { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.vida-visor__pie { margin: 0; padding: 12px 22px 16px; color: var(--arb-texto-oscuro-suave); font-size: .9375rem; }
.vida-visor button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .14); color: var(--arb-blanco); font-size: 1.2rem; cursor: pointer;
}
.vida-visor button:hover { background: var(--arb-amarillo); color: var(--arb-verde-profundo); }
.vida-visor__ant, .vida-visor__sig { position: absolute; top: 50%; transform: translateY(-50%); }
.vida-visor__ant { left: 12px; }
.vida-visor__sig { right: 12px; }
.vida-visor__miniaturas { display: flex; gap: 8px; overflow-x: auto; padding: 0 22px 18px; }
.vida-visor__miniaturas img { flex: none; width: 74px; height: 52px; object-fit: cover; border-radius: 8px; opacity: .55; cursor: pointer; border: 2px solid transparent; }
.vida-visor__miniaturas img.is-actual { opacity: 1; border-color: var(--arb-amarillo); }
body.vida-abierto { overflow: hidden; }

/* Álbum dentro de su página: mosaico de fotos */
.arb-album { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 18px 0; }
.arb-album .galeria__item { aspect-ratio: 4 / 3; }

/* Visor de fotos (se abre al pulsar una foto de la galería) */
.arb-visor {
  max-width: min(92vw, 1100px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--arb-verde-profundo);
  color: var(--arb-blanco);
}
.arb-visor::backdrop { background: rgba(10, 30, 16, .85); }
.arb-visor img { display: block; max-width: 100%; max-height: 80vh; margin-inline: auto; }
.arb-visor figcaption { padding: 12px 18px; font-weight: 700; }
.arb-visor__cerrar {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--arb-amarillo);
  color: var(--arb-verde-profundo);
  font-size: 1.4rem;
  font-weight: 800;
  cursor: pointer;
}

/* ---------- Testimonios (clase del módulo: "testimonios") ---------- */
.testimonios-pista {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0 0 8px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.testimonios-pista::-webkit-scrollbar { display: none; }
.testimonio {
  flex: 0 0 min(100%, 380px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 28px;
  border-radius: var(--arb-radio);
  background: var(--arb-verde-medio);
}
.testimonio__icono { font-size: 1.75rem; color: var(--arb-amarillo); }
.testimonio blockquote { margin: 0; font-size: 1.0625rem; color: var(--arb-blanco); }
.testimonio figcaption { margin-top: auto; font-size: .9375rem; }
.testimonio figcaption strong { display: block; color: var(--arb-blanco); }
.testimonios-controles {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.testimonios-controles button {
  width: 46px;
  height: 46px;
  border: 2px solid var(--arb-amarillo);
  border-radius: 999px;
  background: transparent;
  color: var(--arb-amarillo);
  font-size: 1.1rem;
  cursor: pointer;
}
.testimonios-controles button:hover { background: var(--arb-amarillo); color: var(--arb-verde-profundo); }

/* Franja que continúa la anterior (mismo fondo, sin espacio arriba) */
.arb-franja.arb-franja--continua { padding-top: 0; }

/* Eventos con enlace y lugar */
.evento__nombre a { color: var(--arb-tinta); text-decoration: none; }
.evento__nombre a:hover { color: var(--arb-verde); text-decoration: underline; }
.evento__lugar { display: block; font-size: .8125rem; font-weight: 600; color: var(--arb-gris); }

.testimonio blockquote p { margin: 0; }

/* Buscador (Smart Search) en el encabezado */
.arb-buscar .mod-finder { display: flex; }
.arb-buscar .awesomplete { flex: 1 1 auto; }
.arb-buscar input[type="text"],
.arb-buscar input[type="search"] {
  min-height: 42px;
  border: 1px solid var(--arb-borde);
  border-radius: 999px 0 0 999px;
  background: var(--arb-verde-claro);
}
.arb-buscar .btn {
  border-radius: 0 999px 999px 0;
  background: var(--arb-verde);
  border-color: var(--arb-verde);
  color: var(--arb-blanco);
}

/* Llamado final (dentro de una franja) */
.arb-llamado {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 56px;
  padding: 32px;
  border-radius: 24px;
  background: var(--arb-amarillo);
  color: var(--arb-verde-profundo);
}
.arboleda .arb-llamado h3 { margin: 0; font-size: 1.5rem; color: var(--arb-verde-profundo); }
.arb-llamado p { margin: 6px 0 0; }

/* Foto del hero aún no disponible */
.hero__foto--pendiente {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  padding: 24px;
  border-radius: 28px 28px 28px 120px;
  background: var(--arb-verde-medio);
  color: #C5D9CB;
  font-weight: 700;
  text-align: center;
}

/* ---------- Animación al aparecer (la activa user.js) ---------- */
.arb-revelar.arb-oculto {
  opacity: 0;
  transform: translateY(28px);
}
.arb-revelar.arb-oculto.es-visible {
  opacity: 1;
  transform: none;
  transition: opacity .7s ease, transform .7s ease;
}

/* ---------- Tableta ---------- */
@media (max-width: 991.98px) {
  .galeria-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Celular ---------- */
@media (max-width: 575.98px) {
  .arb-franja { padding-block: 48px; }
  .arb-intro { margin-bottom: 24px; }
  .cifras-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cifra { padding: 20px 12px; }
  .galeria-grid { grid-auto-rows: 140px; gap: 10px; }
  .vida__album { width: 240px; height: 190px; }
  .vida__cinta { margin-inline: -16px; }
  .vida-visor__escena { height: 58vh; }
  .vida-visor__ant, .vida-visor__sig { width: 40px; height: 40px; }
  .galeria__item--ancho { grid-column: span 2; }
  .hero__foto--pendiente { min-height: 200px; border-radius: 22px 22px 22px 70px; }
  .arb-llamado { padding: 24px; }
  .arb-llamado .btn-arb { flex: 1 1 100%; }
  .arb-slider__pista { height: 520px; }
  .arb-slide__contenido { padding: 32px 16px 120px; justify-content: flex-end; }
  .arb-slide:not(.arb-slide--solo-imagen)::after {
    background: linear-gradient(0deg, rgba(14, 59, 31, .95) 0%, rgba(14, 59, 31, .75) 55%, rgba(14, 59, 31, .2) 100%);
  }
  .arb-slider__controles { bottom: 60px; padding-inline: 16px; }
  .arb-contenedor { padding-inline: 16px; }
  .arb-topbar__texto { display: none; }
  .arb-escudo { width: 44px; height: 40px; }
  .arb-marca__nombre { font-size: 1.2rem; }
  .hero { padding: 36px 16px 64px; gap: 24px; }
  .hero__foto img { height: 200px; border-radius: 22px 22px 22px 70px; }
  .hero__botones .btn-arb { flex: 1 1 100%; }
  .arb-accesos__lista {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
  }
  .arb-acceso {
    align-items: center;
    padding: 14px 6px;
    font-size: .8125rem;
    text-align: center;
  }
  .arb-cuerpo { padding-block: 28px 48px; gap: 28px; }
  .arb-banda { padding-block: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .arb-btn, .arboleda .btn-arb, .arb-acceso, .arb-acceso::before, .arb-acceso__icono, .nivel, .pilar, .galeria__item img { transition: none; }
  .arb-btn:hover, .arboleda .btn-arb:hover, .arb-acceso:hover, .nivel:hover, .pilar:hover,
  .arb-acceso:hover .arb-acceso__icono, .pilar:hover .pilar__icono { transform: none; }
  .arb-accesos__lista > li, .arb-accesos__lista > li .arb-acceso__icono,
  .arb-slide.is-activa .arb-slide__contenido > * { animation: none; }
  /* Sin movimiento: la cinta se convierte en una fila que se desliza con el dedo o la rueda */
  .vida__pista { animation: none; }
  .vida__cinta { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .vida__elemento[aria-hidden="true"] { display: none; }
  .vida__album, .vida__album img, .vida-visor[open], .vida-visor__escena img { transition: none; animation: none; }
  .galeria__item:hover img { transform: none; }
  .testimonios-pista { scroll-behavior: auto; }
  .arb-mm__item.is-abierto > .arb-mm__sub, .arb-mm.is-abierto .arb-mm__panel { animation: none; }
  .arb-slide, .arb-slide.is-activa, .arb-slide__fondo, .arb-slider__punto { transition: none; }
  .arb-slide__fondo { transform: none; }
  .arb-revelar.arb-oculto { opacity: 1; transform: none; }
}
