/* ==========================================================================
   ESCUELA SECUNDARIA NO. 42 "IGNACIO MANUEL ALTAMIRANO"
   Estilos Principales - Paleta Institucional: Azul (#0f2b5c / #1d4ed8), Rojo (#dc2626 / #b91c1c), Blanco (#ffffff)
   ========================================================================== */

:root {
  --color-primary-dark: #1447e6;
  --color-primary: #113dc0;
  --color-primary-light: #1447e6;
  --color-primary-subtle: #e3f2fd;
  
  --color-accent: #DC2626;
  --color-accent-dark: #B91C1C;
  --color-accent-light: #FEE2E2;
  
  --color-neutral-dark: #1447e6;
  --color-neutral-gray: #1e40af;
  --color-neutral-light: #e3f2fd;
  --color-neutral-border: #bbdefb;
  --color-white: #FFFFFF;

  --sidebar-width: 290px;
  --header-height: 70px;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #e3f2fd;
  color: #1447e6;
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-light);
}

/* ==========================================================================
   SIDEBAR / NAVEGACIÓN LATERAL IZQUIERDA
   ========================================================================== */

.sidebar-container {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: #0e3ca9;
  background: linear-gradient(180deg, 
    #0e3ca9 0%, 
    #2563eb 45%, 
    #f97316 100%
  );
  background: linear-gradient(in oklab 180deg, 
    #0e3ca9 0%, 
    #2563eb 45%, 
    #f97316 100%
  );
  color: var(--color-white);
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 25px rgba(14, 60, 169, 0.35);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Marca / Logo institucional */
.sidebar-brand {
  padding: 1.4rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  z-index: 10;
}

/* Botón para cerrar menú lateral (oculto en desktop) */
.sidebar-close-btn {
  display: none;
}

.brand-logo-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-white);
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: #93C5FD;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.brand-cct {
  font-size: 0.72rem;
  color: #FFFFFF;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Menú de Navegación */
.sidebar-nav {
  padding: 1.25rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-grow: 1;
}

.nav-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 0.75rem 0.25rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Elementos de Menú y Submenús */
.menu-item-wrapper {
  position: relative;
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

.menu-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.menu-trigger-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-icon {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  transition: transform 0.2s ease, color 0.2s ease;
}

.chevron-icon {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

/* Hover y Estados Activos */
.menu-item-wrapper:hover .menu-trigger,
.menu-item-wrapper.active .menu-trigger {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.menu-item-wrapper:hover .menu-icon,
.menu-item-wrapper.active .menu-icon {
  color: #60A5FA;
  transform: scale(1.1);
}

.menu-item-wrapper:hover .chevron-icon,
.menu-item-wrapper.is-open .chevron-icon {
  color: #FFFFFF;
  transform: rotate(90deg);
}

/* Menú 1: Inscripciones con destaque especial */
.menu-item-wrapper.highlight-item .menu-trigger {
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.18) 0%, rgba(220, 38, 38, 0.06) 100%);
  border: 1px solid rgba(220, 38, 38, 0.35);
  color: #FFFFFF;
}
.menu-item-wrapper.highlight-item .menu-icon {
  color: #EF4444;
}
.menu-item-wrapper.highlight-item:hover .menu-trigger {
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.3) 0%, rgba(220, 38, 38, 0.15) 100%);
  border-color: rgba(220, 38, 38, 0.6);
}

/* Submenús desplegables (Al pasar scroll / hover) */
.submenu-list {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding-left: 2rem;
  margin-top: 0.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-left: 2px solid rgba(255, 255, 255, 0.12);
  margin-left: 1.5rem;
}

/* Despliegue en Hover / Scroll en desktop */
.menu-item-wrapper:hover .submenu-list,
.menu-item-wrapper.is-open .submenu-list {
  max-height: 450px;
  opacity: 1;
  transform: translateY(0);
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.submenu-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
}

.submenu-link::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.submenu-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(4px);
}

.submenu-link:hover::before {
  transform: scale(1.6);
  background: #FFFFFF;
}

.badge-new-pill {
  font-size: 0.62rem;
  background: var(--color-accent);
  color: #FFFFFF;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  font-weight: 800;
  margin-left: auto;
}

/* Footer de Sidebar */
.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.15);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.turno-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.2);
  color: #FFFFFF;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   CONTENIDO PRINCIPAL
   ========================================================================== */

.main-wrapper {
  margin-left: var(--sidebar-width);
  flex-grow: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #e3f2fd;
  color: #1447e6;
  width: calc(100% - var(--sidebar-width));
}

/* Barra Superior / Top Navigation */
.top-header {
  height: var(--header-height);
  background: #ffffff;
  border-bottom: 1px solid #bbdefb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 8px rgba(20, 71, 230, 0.06);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-neutral-dark);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
}

.header-search {
  position: relative;
  width: 340px;
}
.header-search input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.4rem;
  font-size: 0.85rem;
  border-radius: 9999px;
  border: 1px solid var(--color-neutral-border);
  background: #F1F5F9;
  outline: none;
  transition: all 0.2s ease;
}
.header-search input:focus {
  border-color: var(--color-primary-light);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}
.header-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-neutral-gray);
  width: 16px;
  height: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-sos {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-sos:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

/* Área de Contenido Principal */
.content-area {
  padding: 2.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* ==========================================================================
   TÍTULO PRINCIPAL & HERO BANNER
   ========================================================================== */

.page-title-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  align-items: center;
  text-align: center;
}

/* ==========================================================================
   BOTONES DE ACCESO RÁPIDO: CONTACTO, UBICACIÓN, CALENDARIO ESCOLAR
   (Arriba de Pensamiento del Día - Tamaño y Presencia Ampliados)
   ========================================================================== */

.official-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: -1rem;
  width: 100%;
}

.official-badge-row .badge-btn,
.badge-sep,
.badge-red:not(.slide-badge-category) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.55rem 1.15rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(7, 25, 79, 0.08);
  letter-spacing: 0.01em;
  text-decoration: none;
  user-select: none;
}

.badge-sep,
.badge-contacto {
  background: #EFF6FF;
  color: #1447e6;
  border: 1.5px solid #1447e6;
  font-weight: 800;
}

.badge-sep:hover,
.badge-contacto:hover {
  background: #DBEAFE;
  border-color: #0c2356;
  color: #0c2356;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(20, 71, 230, 0.2);
}

.badge-red:not(.slide-badge-category),
.badge-ubicacion {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1.5px solid #FECACA;
}

.badge-red:not(.slide-badge-category):hover,
.badge-ubicacion:hover {
  background: #FEE2E2;
  border-color: #FCA5A5;
  color: #991B1B;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(185, 28, 28, 0.16);
}

.badge-calendario {
  background: #EFF6FF;
  color: #1447e6;
  border: 1.5px solid #1447e6;
  font-weight: 800;
}

.badge-calendario:hover {
  background: #DBEAFE;
  border-color: #0c2356;
  color: #0c2356;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(20, 71, 230, 0.2);
}

.official-badge-row .badge-btn:active,
.badge-sep:active,
.badge-red:not(.slide-badge-category):active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(7, 25, 79, 0.08);
}

.main-page-title {
  font-family: 'Playfair Display', 'Merriweather', Georgia, 'Times New Roman', serif;
  letter-spacing: -0.015em;
  line-height: 1.22;
  margin-top: 0.35rem;
  margin-bottom: 0.25rem;
  text-align: center;
  width: 100%;
}

.title-school-name {
  display: block;
  font-size: 2.7rem;
  font-weight: 800;
  color: #0c2356;
}

.title-honor-name {
  display: block;
  font-size: 2.45rem;
  font-weight: 700;
  color: #07194f; /* Azul obscuro */
  margin-top: 0.25rem;
}

/* ==========================================================================
   Sección de Bienvenida: Título y Mensaje antes de la Imagen + Mural Escolar
   ========================================================================== */
.welcome-section-card {
  position: relative;
  width: 100%;
  background: #FFFFFF;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px -5px rgba(7, 25, 79, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 1.75rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: box-shadow 0.3s ease;
}

.welcome-section-card:hover {
  box-shadow: 0 16px 36px -6px rgba(7, 25, 79, 0.12), 0 6px 16px -2px rgba(0, 0, 0, 0.06);
}

.welcome-header-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1rem;
}

.welcome-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
  color: #1E40AF;
  border: 1px solid #C7D2FE;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 6px rgba(30, 64, 175, 0.08);
}

.welcome-banner-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  color: #07194f;
  margin: 0 auto 0.85rem;
  text-align: center;
  max-width: 760px;
}

.welcome-banner-desc {
  font-family: 'Comic Sans MS', 'Comic Sans', cursive, sans-serif;
  font-size: 1.13rem;
  color: #1e293b;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.65;
  font-weight: 500;
}

.welcome-desc-line {
  margin-bottom: 0.45rem;
  text-align: center;
}

.welcome-desc-highlight {
  margin-top: 0.85rem;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1447e6;
  letter-spacing: 0.02em;
  text-align: center;
}

/* ==========================================================================
   Sección de Bienvenida: Escudo Oficial (Superior Izq.) + Fachada (Centrada)
   ========================================================================== */
/* Tarjeta del Escudo Oficial (Lado Superior Izquierdo) */
.welcome-crest-card {
  position: absolute;
  top: 1.75rem;
  left: 1.75rem;
  z-index: 10;
  width: 125px;
  height: 140px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, #FFFFFF 0%, #F1F5F9 100%);
  border: 2px solid #E2E8F0;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem;
}

.welcome-crest-card:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.15);
  border-color: #93C5FD;
}

.welcome-crest-img {
  width: auto;
  height: 100%;
  max-height: 120px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.08));
}

.welcome-crest-card:hover .welcome-crest-img {
  transform: scale(1.06);
}

/* Contenedor y Tarjeta de Fachada del Plantel Centrada */
.welcome-facility-centered-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 0.25rem;
}

.welcome-facility-card {
  position: relative;
  width: 100%;
  max-width: 880px;
  height: 350px;
  border-radius: 24px;
  overflow: hidden;
  background: #0f172a;
  border: 2px solid #E2E8F0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.welcome-facility-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
}

.welcome-facility-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
  transition: transform 0.4s ease;
}

.welcome-facility-card:hover .welcome-facility-img {
  transform: scale(1.02);
}

/* Adaptación Responsiva */
@media (max-width: 960px) {
  .welcome-crest-card {
    position: static;
    margin: 0 auto 0.5rem;
    width: 120px;
    height: 135px;
  }
}

@media (max-width: 640px) {
  .welcome-section-card {
    padding: 1.75rem 1rem 2rem;
    gap: 1.25rem;
  }
  .welcome-facility-card {
    height: 220px;
    border-radius: 16px;
  }
  .welcome-banner-desc {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   Carrete de Galería (Imágenes de Doctos) - Arriba de Avisos
   ========================================================================== */
.doctos-carousel-section {
  background: #FFFFFF;
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 16px rgba(7, 25, 79, 0.05);
  padding: 1.15rem 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.doctos-carousel-section:hover {
  box-shadow: 0 8px 24px rgba(7, 25, 79, 0.09);
}

.doctos-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.35rem;
}

.doctos-carousel-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #07194f;
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: capitalize;
}

.doctos-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.doctos-carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.35rem 0.25rem 0.6rem;
}

.doctos-carousel-track::-webkit-scrollbar {
  display: none;
}

.doctos-slide-card {
  flex: 0 0 280px;
  height: 195px;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  border: 2px solid #E2E8F0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
  position: relative;
}

.doctos-slide-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  border-color: #93C5FD;
}

.doctos-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.doctos-slide-card:hover .doctos-slide-img {
  transform: scale(1.06);
}

@media (max-width: 640px) {
  .doctos-slide-card {
    flex: 0 0 230px;
    height: 160px;
  }
}

/* ==========================================================================
   CARRETE DE IMÁGENES / GALERÍA DE ACTIVIDADES (DEBAJO DE HERO BANNER)
   ========================================================================== */

.gallery-carousel-section {
  background: #FFFFFF;
  border-radius: 24px;
  border: 1px solid var(--color-neutral-border);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem 1.85rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.gallery-carousel-section:hover {
  box-shadow: var(--shadow-md);
}

.gallery-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.gallery-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1d4ed8 0%, #0e3ca9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(14, 60, 169, 0.25);
  flex-shrink: 0;
}

.gallery-badge-icon.badge-icon-security {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.25);
}

.gallery-pill-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #EFF6FF;
  color: #1d4ed8;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid #BFDBFE;
}

.gallery-pill-tag.tag-security {
  background: #E0F2FE;
  color: #0369a1;
  border-color: #BAE6FD;
}

.gallery-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0c2356;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.gallery-nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-control-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.carousel-control-btn:hover {
  background: #1d4ed8;
  color: #FFFFFF;
  border-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.carousel-control-btn:active {
  transform: translateY(0);
}

/* Track y Carrete Deslizable */
.gallery-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
}

.gallery-carousel-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.5rem;
}

.gallery-carousel-track::-webkit-scrollbar {
  display: none;
}

/* Tarjetas individuales del carrete */
.gallery-slide-card {
  flex: 0 0 calc((100% - 2.5rem) / 3);
  min-width: 290px;
  scroll-snap-align: start;
  background: #F8FAFC;
  border-radius: 18px;
  border: 1px solid #E2E8F0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.gallery-slide-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px -4px rgba(15, 43, 92, 0.12), 0 4px 6px -2px rgba(15, 43, 92, 0.05);
  border-color: #93C5FD;
  background: #FFFFFF;
}

.slide-image-container {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #0f2b5c;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slide-card:hover .slide-image {
  transform: scale(1.08);
}

.slide-badge-category {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  z-index: 2;
}

.slide-badge-category.badge-blue { background: #2563EB; }
.slide-badge-category.badge-red { background: #DC2626; }
.slide-badge-category.badge-indigo { background: #4F46E5; }
.slide-badge-category.badge-purple { background: #7C3AED; }
.slide-badge-category.badge-emerald { background: #059669; }

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(15, 23, 42, 0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.gallery-slide-card:hover .slide-overlay {
  opacity: 1;
}

.slide-zoom-btn {
  background: rgba(255, 255, 255, 0.95);
  color: #0F172A;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transform: scale(0.85);
  transition: all 0.3s ease;
}

.gallery-slide-card:hover .slide-zoom-btn {
  transform: scale(1.08);
}

.slide-info {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-grow: 1;
}

.slide-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.3;
}

.slide-desc {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.5;
}

/* Indicadores de Paginación */
.gallery-carousel-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: #CBD5E1;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.carousel-dot.active {
  width: 28px;
  background: #1d4ed8;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.3);
}

/* ==========================================================================
   MODAL LIGHTBOX PARA FOTOS DE GALERÍA
   ========================================================================== */

.image-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.image-lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 36, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox-content-box {
  position: relative;
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  z-index: 2;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.image-lightbox-modal.open .lightbox-content-box {
  transform: scale(1);
}

.lightbox-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: #DC2626;
  transform: rotate(90deg) scale(1.1);
}

.lightbox-img-wrapper {
  width: 100%;
  max-height: 65vh;
  background: #0B132B;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-img-wrapper img {
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  padding: 1.25rem 1.5rem;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
}

.lightbox-caption.is-hidden,
.lightbox-caption[style*="display: none"] {
  display: none !important;
  padding: 0 !important;
  border: none !important;
}

.lightbox-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 0.25rem;
}

.lightbox-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.5;
}

.lightbox-caption-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.lightbox-caption-info {
  flex: 1 1 280px;
}

.lightbox-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.lightbox-download-btn:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
}

.lightbox-download-btn:active {
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .gallery-slide-card {
    flex: 0 0 calc((100% - 1.25rem) / 2);
  }
}

@media (max-width: 680px) {
  .gallery-slide-card {
    flex: 0 0 100%;
    min-width: 250px;
  }
  .gallery-carousel-section {
    padding: 1.25rem 1rem;
  }
  .slide-image-container {
    height: 200px;
  }
  .gallery-section-title {
    font-size: 1.15rem;
  }
}

/* ==========================================================================
   TRES COLUMNAS DIVIDIDAS: CONTACTO, UBICACIÓN, CALENDARIO ESCOLAR
   ========================================================================== */

.three-columns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.info-card {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid var(--color-neutral-border);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-primary-light);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #CBD5E1;
}

.info-card:hover::before {
  opacity: 1;
}

.info-card.card-accent-red::before {
  background: var(--color-accent);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #F1F5F9;
}

.card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon-blue {
  background: #EFF6FF;
  color: var(--color-primary-light);
}

.card-icon-red {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.card-subtitle {
  font-size: 0.75rem;
  color: var(--color-neutral-gray);
  font-weight: 600;
}

/* Columna 1: Contacto */
.contact-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-item-icon {
  width: 18px;
  height: 18px;
  color: var(--color-primary-light);
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-item-text {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-neutral-gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-neutral-dark);
  text-decoration: none;
}

.contact-value:hover {
  color: var(--color-primary-light);
}

.btn-card-action {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--color-neutral-border);
  background: #F8FAFC;
  color: var(--color-primary-dark);
}
.btn-card-action:hover {
  background: var(--color-primary-dark);
  color: #FFFFFF;
  border-color: var(--color-primary-dark);
}

/* Columna 2: Ubicación */
.location-map-container {
  width: 100%;
  height: 145px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid #E2E8F0;
  background: #E2E8F0;
  position: relative;
}

.location-map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.location-address {
  font-size: 0.85rem;
  line-height: 1.45;
  color: #1447e6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Columna 3: Calendario Escolar */
.calendar-preview-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.calendar-mini-event {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.75rem;
  background: #F8FAFC;
  border-radius: 10px;
  border-left: 3px solid var(--color-primary-light);
}

.calendar-mini-event.event-urgent {
  border-left-color: var(--color-accent);
  background: #FEF2F2;
}

.event-date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 0.2rem 0.4rem;
  background: #FFFFFF;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid #E2E8F0;
}

.event-month {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-accent);
}

.event-day {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1;
}

.event-info {
  display: flex;
  flex-direction: column;
}

.event-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-neutral-dark);
}

.event-type {
  font-size: 0.7rem;
  color: var(--color-neutral-gray);
}

/* ==========================================================================
   UNA SOLA COLUMNA COMPLETA: AVISOS PADRES DE FAMILIA
   ========================================================================== */

.notices-section-container {
  background: #FFFFFF;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.7);
  box-shadow: 0 0 0 1mm rgba(255, 44, 44, 0.20), 0 4px 20px 1mm rgba(255, 44, 44, 0.14), 0 2px 8px rgba(15, 23, 42, 0.05);
  padding: 1.85rem 2.25rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.notices-section-container:hover {
  box-shadow: 0 0 0 1.2mm rgba(255, 44, 44, 0.28), 0 6px 26px 1.5mm rgba(255, 44, 44, 0.18), 0 4px 12px rgba(15, 23, 42, 0.08);
}

.notices-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.notices-title-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.notices-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #113dc0 0%, #1447e6 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(17, 61, 192, 0.28);
  flex-shrink: 0;
}

/* Insignia con imagen de Bocina estilo GIF animado */
.notices-gif-badge {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 2px solid #BFDBFE;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.notices-gif-badge:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

.notices-gif-img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  transform-origin: 25% 65%;
  animation: megaphoneVibrate 2.4s infinite ease-in-out;
  display: block;
  z-index: 2;
  position: relative;
}

.sound-wave-pulse {
  position: absolute;
  inset: -5px;
  border-radius: 20px;
  border: 2px solid rgba(37, 99, 235, 0.5);
  pointer-events: none;
  animation: soundWaveRipple 2.4s infinite cubic-bezier(0.1, 0.2, 0.8, 1);
  z-index: 1;
}

.sound-wave-pulse.wave-2 {
  animation-delay: 1.2s;
}

@keyframes megaphoneVibrate {
  0% {
    transform: rotate(0deg) scale(1);
  }
  15% {
    transform: rotate(-10deg) scale(1.08);
  }
  30% {
    transform: rotate(11deg) scale(1.1);
  }
  45% {
    transform: rotate(-8deg) scale(1.06);
  }
  60% {
    transform: rotate(9deg) scale(1.08);
  }
  75% {
    transform: rotate(-6deg) scale(1.04);
  }
  90% {
    transform: rotate(4deg) scale(1.02);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}

@keyframes soundWaveRipple {
  0% {
    transform: scale(0.92);
    opacity: 0.9;
  }
  60% {
    opacity: 0.4;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

.notices-main-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  letter-spacing: -0.02em;
}

.notices-subtitle {
  font-size: 1rem;
  color: #666666;
  font-weight: 500;
  margin-top: 0.2rem;
  line-height: 1.45;
}

.notices-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-btn {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  border-width: 1.5px;
  border-style: solid;
}

/* Botón 1: AVISOS con Megáfono de 80px incrustado */
.btn-notice-avisos {
  background: #EFF6FF;
  border: 2px solid #1447e6;
  color: #1447e6;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.4rem 1.6rem 0.4rem 0.85rem;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 0 0 2mm rgba(255, 68, 68, 0.22), 0 4px 16px 2mm rgba(255, 68, 68, 0.16);
}
.btn-notice-avisos:hover {
  background: #8AB9F1;
  border-color: #1447e6;
  color: #07194f;
  transform: translateY(-2px);
  box-shadow: 0 0 0 2.5mm rgba(255, 68, 68, 0.32), 0 6px 20px 2.5mm rgba(255, 68, 68, 0.22);
}

.btn-megafono-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transform-origin: 25% 65%;
  animation: megaphoneVibrate 1.6s infinite ease-in-out;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.15));
}

/* Botón 2: JUNTAS */
.btn-notice-juntas {
  background: #FAF5FF;
  border-color: #E9D5FF;
  color: #7E22CE;
}
.btn-notice-juntas:hover {
  background: linear-gradient(135deg, #7E22CE 0%, #581C87 100%);
  border-color: #581C87;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(126, 34, 206, 0.28);
}

/* Botón 3: INSCRIPCIONES 26-27 */
.btn-notice-inscripciones {
  background: #FEF2F2;
  border: 2px solid #1447e6;
  color: #DC2626;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.4rem 1.6rem 0.4rem 0.85rem;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 0 0 2mm rgba(255, 68, 68, 0.22), 0 4px 16px 2mm rgba(255, 68, 68, 0.16);
}
.btn-notice-inscripciones i,
.btn-notice-inscripciones svg,
.btn-inscripciones-icon {
  width: 72px !important;
  height: 72px !important;
  stroke-width: 2.3px !important;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.btn-notice-inscripciones:hover i,
.btn-notice-inscripciones:hover svg,
.btn-notice-inscripciones:hover .btn-inscripciones-icon {
  transform: scale(1.12);
}

/* Imagen letrero dentro del recuadro INSCRIPCIONES 26-27 (a un lado del botón de avisos) */
.btn-inscripciones-img {
  width: 120px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1.5px solid #FECACA;
  box-shadow: 0 3px 8px rgba(220, 38, 38, 0.18);
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: inline-block;
  vertical-align: middle;
}
.btn-notice-inscripciones:hover .btn-inscripciones-img {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.24);
}

.btn-notice-inscripciones:hover {
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  border-color: #1447e6;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 0 0 2.5mm rgba(255, 68, 68, 0.32), 0 6px 20px 2.5mm rgba(255, 68, 68, 0.22);
}

@media (max-width: 640px) {
  .btn-notice-inscripciones i,
  .btn-notice-inscripciones svg,
  .btn-inscripciones-icon {
    width: 54px !important;
    height: 54px !important;
  }
  .btn-inscripciones-img {
    width: 86px;
    height: 52px;
  }
}

/* Lista de Avisos y Circulares */
.notices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.notice-card {
  background: #F8FAFC;
  border-radius: 14px;
  border: 1px solid var(--color-neutral-border);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
}

.notice-card:hover {
  background: #FFFFFF;
  border-color: #93C5FD;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.notice-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.notice-badge-urgente {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
}

.notice-badge-info {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
}

.notice-badge-convocatoria {
  background: #F0FDF4;
  color: #16A34A;
  border: 1px solid #BBF7D0;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
}

.notice-date {
  font-size: 0.72rem;
  color: var(--color-neutral-gray);
  font-weight: 600;
}

.notice-headline {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.notice-body-text {
  font-size: 0.82rem;
  color: #1447e6;
  line-height: 1.45;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.notice-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px dashed #E2E8F0;
}

.btn-read-circular {
  color: var(--color-primary-light);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  background: transparent;
  border: none;
}
.btn-read-circular:hover {
  color: var(--color-accent);
}

.btn-download-pdf {
  color: var(--color-neutral-gray);
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
}
.btn-download-pdf:hover {
  color: var(--color-accent-dark);
}

/* ==========================================================================
   SECCIÓN INDEPENDIENTE: ¿POR QUÉ ELEGIR ESTA ESCUELA?
   ========================================================================== */

.why-choose-section-card {
  background: linear-gradient(145deg, #F8F5FD 0%, #EFE8F9 100%);
  border-radius: 20px;
  border: 1.5px solid #D8CCF0;
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.07);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.why-choose-section-card:hover {
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.12);
  border-color: #C4B5E8;
}

.why-choose-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid #E2D7F5;
}

.why-choose-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #113dc0 0%, #1447e6 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(17, 61, 192, 0.28);
  flex-shrink: 0;
}

.why-choose-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #07194f;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.why-choose-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 0.2rem;
}

/* 5 Pills en el mismo renglón */
.pills-row-container {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.feature-pill {
  flex: 1 1 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 0.95rem;
  border-radius: 9999px;
  border-width: 1.5px;
  border-style: solid;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  cursor: default;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  user-select: none;
}

.feature-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.pill-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.pill-text {
  white-space: normal;
  display: inline-block;
}

/* 1. Color Gasolina Pastel (Azul Petróleo / Petrol Teal suave) */
.pill-gasolina {
  background-color: #d3ede9;
  border-color: #9fe2d7;
  color: #0a4f4c;
}
.pill-gasolina:hover {
  background-color: #c4e7e2;
  border-color: #7dd7c9;
}
.pill-gasolina .pill-icon {
  color: #0d615d;
}

/* 2. Color Naranja Tenue Pastel */
.pill-naranja {
  background-color: #ffe8d6;
  border-color: #ffd1b3;
  color: #9a3412;
}
.pill-naranja:hover {
  background-color: #ffdfc4;
  border-color: #ffc299;
}
.pill-naranja .pill-icon {
  color: #c2410c;
}

/* 3. Color Azul Pastel */
.pill-azul {
  background-color: #dbeafe;
  border-color: #bfdbfe;
  color: #1e40af;
}
.pill-azul:hover {
  background-color: #cee2fe;
  border-color: #93c5fd;
}
.pill-azul .pill-icon {
  color: #2563eb;
}

/* 4. Color Gris Pastel */
.pill-gris {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}
.pill-gris:hover {
  background-color: #e2e8f0;
  border-color: #94a3b8;
}
.pill-gris .pill-icon {
  color: #475569;
}

/* 5. Color Aqua Pastel */
.pill-aqua {
  background-color: #ccfbf1;
  border-color: #99f6e4;
  color: #0f766e;
}
.pill-aqua:hover {
  background-color: #bbf7eb;
  border-color: #5eead4;
}
.pill-aqua .pill-icon {
  color: #0d9488;
}

/* Bloque Differentiator: ¿En qué nos diferenciamos de otras escuelas? */
.differentiator-block {
  background: #FFFFFF;
  border: 1px solid #D8CCF0;
  border-left: 5px solid #8B5CF6;
  border-radius: 16px;
  padding: 1.6rem 1.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.06);
}

.differentiator-question-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.differentiator-icon-dot {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #EDE7F6;
  color: #7C3AED;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.differentiator-question {
  font-size: 1.25rem;
  font-weight: 800;
  color: #07194f;
  letter-spacing: -0.01em;
}

.differentiator-text {
  font-family: 'Comic Sans MS', 'Comic Sans', cursive, sans-serif;
  font-size: 1.16rem;
  line-height: 1.75;
  color: #334155;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: justify;
}

.differentiator-text p {
  margin: 0;
}

/* ==========================================================================
   PENSAMIENTO DEL DÍA - FORMATO COMPACTO (ABAJO DE PLATAFORMA EDUCATIVA)
   ========================================================================== */

.quote-banner-compact {
  background: #0e3ca9;
  background: linear-gradient(135deg, 
    #0e3ca9 0%, 
    #2563eb 45%, 
    #f97316 100%
  );
  border-radius: 12px;
  padding: 0.65rem 1.15rem;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 4px 14px rgba(14, 60, 169, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 0.25rem;
}

.quote-compact-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.quote-compact-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-accent) 0%, #991B1B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}

.quote-compact-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.quote-compact-label {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93C5FD;
}

.quote-compact-phrase-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quote-compact-phrase {
  font-size: 0.86rem;
  font-weight: 600;
  font-style: italic;
  color: #FFFFFF;
  line-height: 1.35;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.quote-compact-author {
  font-size: 0.74rem;
  color: #CBD5E1;
  font-weight: 700;
  white-space: nowrap;
  transition: opacity 0.25s ease;
}

.btn-change-quote-compact {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-change-quote-compact:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #FFFFFF;
  transform: translateY(-1px);
}

/* Compatibilidad con banner original si se requiere */
.quote-banner-container {
  background: linear-gradient(135deg, #0F2B5C 0%, #1E3A8A 50%, #0A192F 100%);
  border-radius: 14px;
  padding: 0.85rem 1.25rem;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   MODAL / SECCIONES DESPLEGABLES INTERACTIVAS
   (Especialmente Ciclo escolar 26-27 con 3 imágenes)
   ========================================================================== */

.custom-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 47, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Overlay específico para la barra lateral móvil (detrás del sidebar pero enfrente del contenido) */
#sidebarOverlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(7, 25, 79, 0.65) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  z-index: 9990 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: block !important;
  padding: 0 !important;
}

#sidebarOverlay.open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.sidebar-mobile-locked {
  overflow: hidden !important;
}

.modal-content-card {
  background: #FFFFFF;
  border-radius: 24px;
  width: 100%;
  max-width: 980px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  border: 1px solid #E2E8F0;
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.custom-modal-overlay.open .modal-content-card {
  transform: scale(1);
}

.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0F2B5C;
  color: #FFFFFF;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-title-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-title-text {
  font-size: 1.3rem;
  font-weight: 800;
}

.btn-close-modal {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #FFFFFF;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-close-modal:hover {
  background: var(--color-accent);
  transform: rotate(90deg);
}

.modal-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Apartado de Dirección Escolar en Contacto (Estilo de letra Arial solicitado) */
/* Apartado de Dirección Escolar en Contacto (Fondo lightsteelblue y tarjetas internas #5f8cb4) */
.direccion-escolar-card {
  background: lightsteelblue !important;
  border: 1px solid #94A3B8;
  color: #07194f;
}

.direccion-escolar-card,
.direccion-escolar-card * {
  font-family: Arial, Helvetica, sans-serif !important;
}

.direccion-personal-item {
  background: transparent !important;
  border: 1.5px solid rgba(7, 25, 79, 0.25) !important;
  border-radius: 12px;
  color: #07194f !important;
  transition: all 0.25s ease;
  box-shadow: none !important;
}

.direccion-personal-item:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-2px);
  border-color: #0e3ca9 !important;
  box-shadow: 0 4px 12px rgba(7, 25, 79, 0.12) !important;
}

/* Recuadro de Vías de Comunicación Directa (Sin fondo en tarjetas internas) */
.vias-comunicacion-card {
  background: lightsteelblue !important;
  border: 1px solid #94A3B8;
  color: #07194f;
}

.via-comunicacion-item {
  background: transparent !important;
  border: 1.5px solid rgba(7, 25, 79, 0.25) !important;
  border-radius: 14px;
  transition: all 0.25s ease;
  box-shadow: none !important;
  color: #07194f !important;
}

.via-comunicacion-item:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-2px);
  border-color: #0e3ca9 !important;
  box-shadow: 0 4px 12px rgba(7, 25, 79, 0.12) !important;
}

.via-comunicacion-item a {
  color: #07194f !important;
  transition: color 0.2s ease;
}

.via-comunicacion-item a:hover {
  color: #0e3ca9 !important;
}

/* Nombres de los puestos y títulos en Contacto (Nuevo tono Azul Rey Institucional #0e3ca9) */
.label-puesto-contacto,
.label-via-contacto {
  font-size: 13.5px !important;
  font-weight: 900 !important;
  color: #0e3ca9 !important; /* Azul Rey */
  text-shadow: none !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
}

/* Recuadro de Atención a Padres de Familia (Fondo amarillo canario light, borde color mostaza ajustado (-1mm), sombra de 2mm) */
.recuadro-atencion-padres {
  background-color: #FFFF99 !important; /* Amarillo canario light */
  border: calc(2px + 1mm) solid #C68A1B !important; /* Borde color mostaza reducido 1mm */
  box-shadow: 0 2mm 3mm rgba(0, 0, 0, 0.22) !important; /* Sombra de 2mm */
  color: #002366 !important; /* Azul Rey para contraste óptimo */
  font-weight: 800 !important;
  border-radius: 8px !important;
  padding: 3px 10px !important;
  display: inline-block !important;
}

/* Espacio / Recuadro de Contacto y Atención Directa (Homologado con el fondo y color de letra del Calendario Escolar) */
.modal-header.modal-header-contacto {
  background: #0F2B5C !important;
  color: #FFFFFF !important;
  border-bottom: 1px solid #E2E8F0 !important;
  box-shadow: 0 4px 14px rgba(7, 25, 79, 0.2) !important;
}

.modal-header.modal-header-contacto #modalTitle,
.modal-header.modal-header-contacto .modal-title-text {
  color: #FFFFFF !important;
  font-weight: 800;
  text-shadow: none !important;
}

.modal-header.modal-header-contacto .btn-close-modal {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #FFFFFF !important;
  border: none !important;
}

.modal-header.modal-header-contacto .btn-close-modal:hover {
  background: var(--color-accent) !important;
  color: #FFFFFF !important;
  transform: rotate(90deg);
}

/* Galería de 3 Imágenes de Ciclo Escolar 26-27 */
.card-tricolor-inscripciones {
  border: 3px solid transparent !important;
  background: 
    linear-gradient(#ffffff, #ffffff) padding-box, 
    linear-gradient(135deg, #07194f 0%, #1d4ed8 28%, #ffffff 45%, #cbd5e1 50%, #ffffff 55%, #dc2626 72%, #991b1b 100%) border-box !important;
  border-radius: 18px !important;
  box-shadow: 0 3mm 4mm rgba(7, 25, 79, 0.18) !important;
}

.modal-three-images-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.modal-image-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-image-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

.modal-card-img-wrap {
  width: 100%;
  height: 155px;
  overflow: hidden;
  position: relative;
  background: #0F2B5C;
}

.modal-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.modal-image-card:hover .modal-card-img {
  transform: scale(1.06);
}

.modal-img-caption {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.modal-caption-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.modal-caption-desc {
  font-size: 0.76rem;
  color: var(--color-neutral-gray);
  line-height: 1.4;
}

/* Footer General */
.main-footer {
  margin-top: auto;
  background: #e3f2fd;
  border-top: 1px solid #bbdefb;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1447e6;
}

.footer-copyright-text {
  width: 100%;
  text-align: center;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS Y MÓVILES)
   ========================================================================== */

@media (max-width: 1100px) {
  .three-columns-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .notices-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-three-images-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  :root {
    --sidebar-width: 290px;
  }
  
  .sidebar-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 290px !important;
    max-width: 86vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 10000 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    pointer-events: none !important;
  }
  
  .sidebar-container.mobile-open {
    transform: translateX(0) !important;
    box-shadow: 12px 0 45px rgba(0, 0, 0, 0.55) !important;
    pointer-events: auto !important;
  }
  
  .main-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
  }
  
  .mobile-menu-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 6px;
    cursor: pointer;
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    color: #07194f;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  }

  .mobile-menu-btn:hover,
  .mobile-menu-btn:active {
    background: #e2e8f0;
    border-color: #94a3b8;
    transform: scale(0.97);
  }

  .sidebar-close-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .sidebar-close-btn:hover,
  .sidebar-close-btn:active {
    background: #dc2626;
    border-color: #b91c1c;
  }

  .top-header {
    padding: 0 0.85rem !important;
    height: 60px !important;
    gap: 0.75rem;
  }
  
  .content-area {
    padding: 1.25rem 1rem;
  }
  
  .three-columns-grid {
    grid-template-columns: 1fr;
  }
  
  .notices-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-three-images-grid {
    grid-template-columns: 1fr;
  }
  
  .quote-banner-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .quote-banner-compact {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
  }

  .btn-change-quote-compact {
    align-self: flex-end;
  }

  .hero-overlay-gradient.hero-overlay-top-center {
    padding: 2.25rem 1.25rem 1.5rem;
  }

  .hero-overlay-top-center .hero-banner-title {
    font-size: 1.65rem;
  }

  .hero-overlay-top-center .hero-banner-desc {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .notices-section-container {
    padding: 1.35rem 1.15rem;
  }

  .notices-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .notices-filters {
    width: 100%;
    gap: 0.5rem;
  }

  .notices-filters .filter-btn {
    flex: 1 1 calc(50% - 0.5rem);
    justify-content: center;
    padding: 0.65rem 0.85rem;
    font-size: 0.8rem;
  }

  .notices-filters .btn-notice-avisos {
    flex: 1 1 100%;
    justify-content: center;
    padding: 0.4rem 1.25rem 0.4rem 0.75rem;
    font-size: 1.05rem;
  }

  .why-choose-section-card {
    padding: 1.4rem 1.15rem;
    gap: 1.25rem;
  }

  .why-choose-title {
    font-size: 1.3rem;
  }

  .pills-row-container {
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  .feature-pill {
    flex: 1 1 100%;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    font-size: 0.84rem;
  }

  .differentiator-block {
    padding: 1.25rem;
  }

  .differentiator-question {
    font-size: 1.1rem;
  }

  .differentiator-text {
    font-size: 1.05rem;
    line-height: 1.65;
    text-align: justify;
  }

  .title-school-name {
    font-size: 1.95rem;
  }

  .title-honor-name {
    font-size: 1.7rem;
  }

  .official-badge-row {
    gap: 0.65rem;
    margin-bottom: -0.5rem;
  }

  .official-badge-row .badge-btn,
  .badge-sep,
  .badge-red:not(.slide-badge-category) {
    font-size: 0.84rem;
    padding: 0.48rem 0.95rem;
  }
}

@media (max-width: 520px) {
  .official-badge-row {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    margin-bottom: -0.25rem;
  }

  .official-badge-row .badge-btn,
  .badge-sep,
  .badge-red:not(.slide-badge-category) {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================================
   RECUADROS DESPLEGABLES (ACORDEONES): UNIFORME Y VIOLENTÓMETRO
   ========================================================================= */
.beneficios-accordion summary,
.violentometro-accordion summary {
  list-style: none;
}
.beneficios-accordion summary::-webkit-details-marker,
.violentometro-accordion summary::-webkit-details-marker {
  display: none;
}
.beneficios-accordion summary::marker,
.violentometro-accordion summary::marker {
  display: none;
}
.beneficios-accordion[open] .chevron-icon,
.violentometro-accordion[open] .chevron-icon {
  transform: rotate(180deg);
}
.beneficios-accordion[open] .label-abrir,
.violentometro-accordion[open] .label-abrir {
  display: none !important;
}
.beneficios-accordion:not([open]) .label-cerrar,
.violentometro-accordion:not([open]) .label-cerrar {
  display: none !important;
}

.beneficios-accordion .label-cerrar {
  color: #1d4ed8 !important; /* Azul para uniforme */
}

.violentometro-accordion .label-cerrar {
  color: #b91c1c !important; /* Rojo para violentómetro */
}

.beneficios-accordion .beneficios-title {
  font-size: 13px !important; /* 3 puntos más chica que el texto base */
  text-transform: none !important;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: normal !important;
}

@media (max-width: 640px) {
  .beneficios-accordion .beneficios-title {
    font-size: 11px !important;
  }
}



