/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@400;700&display=swap');

/* === TOKENS === */
:root {
  --sa-azul:        #202545;   /* azul marino de la insignia — primario */
  --sa-azul-medio:  #2E3A6E;   /* hover/variante del primario */
  --sa-rojo:        #EF0314;   /* rojo institucional — acento de acción */
  --sa-rojo-oscuro: #B40710;   /* hover del rojo */
  --sa-dorado:      #FE8A0C;   /* dorado de la estrella — uso único */
  --sa-blanco:      #FFFFFF;
  --sa-gris-claro:  #F2F4F8;   /* fondo de secciones secundarias */
  --sa-gris-texto:  #4A5568;
  --sa-gris-borde:  #CBD5E0;
}

/* === BASE === */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Poppins', sans-serif;
  line-height: 1.7;
  color: var(--sa-gris-texto);
}

/* === NAVBAR === */
.navbar {
  background-color: var(--sa-azul) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.navbar-scrolled {
  background-color: var(--sa-azul) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.32);
}

.navbar-hidden {
  transform: translateY(-100%);
}

.navbar-dark .navbar-nav .nav-link {
  color: #ffffff !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: var(--sa-dorado) !important;
}

/* Dropdown Menus */
.navbar .dropdown-menu {
  border: 1px solid var(--sa-gris-borde);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  padding: 0.5rem 0;
}

.navbar .dropdown-item {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--sa-azul);
  padding: 0.5rem 1.25rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background-color: var(--sa-gris-claro);
  color: var(--sa-rojo);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35) !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4) !important;
}

/* Botón Admisión en navbar */
.btn-admision-nav {
  background-color: var(--sa-rojo) !important;
  color: #ffffff !important;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border: none;
}

.btn-admision-nav:hover,
.btn-admision-nav:focus {
  background-color: var(--sa-rojo-oscuro) !important;
  color: #ffffff !important;
}

/* Mantener compatibilidad con clase anterior .btn-yellow mientras se migra HTML */
.btn-yellow {
  background-color: var(--sa-rojo) !important;
  color: #ffffff !important;
  font-weight: 600;
  border: none;
}

.btn-yellow:hover {
  background-color: var(--sa-rojo-oscuro) !important;
  color: #ffffff !important;
}

/* Navbar brand */
.navbar-brand {
  display: flex;
  align-items: center;
  text-align: left;
  white-space: nowrap;
  padding: 0;
  color: #ffffff !important;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.brand-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.8px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.navbar-brand:hover .brand-title,
.navbar-brand:hover .brand-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* === HERO === */
.hero-section {
  position: relative;
  height: 80vh;
  overflow: hidden;
  background-color: var(--sa-azul);
}

.hero-media-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-section picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-section img.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
}

/* Video de YouTube en bucle de fondo */
.hero-video-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* ratio 16:9 */
  min-height: 100vh;
  min-width: 177.77vh; /* ratio 16:9 */
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

.hero-video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 30, 0.45);
  z-index: 2;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  bottom: 20%;
  left: 10%;
  right: 10%;
  color: white;
  z-index: 3;
}

.hero-overlay h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
  /* Contorno negro nítido para máxima legibilidad sobre fondo blanco o claro */
  text-shadow: 
    -1px -1px 0 #000000,  
     1px -1px 0 #000000,
    -1px  1px 0 #000000,
     1px  1px 0 #000000,
     2px 3px 12px rgba(0, 0, 0, 0.95);
  max-width: 62ch;
}

.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: #ffffff;
  max-width: 58ch;
  line-height: 1.6;
  margin-bottom: 0;
  /* Borde/contorno negro nítido para no perderse con imágenes de fondo claras */
  text-shadow: 
    -1px -1px 0 #000000,  
     1px -1px 0 #000000,
    -1px  1px 0 #000000,
     1px  1px 0 #000000,
     0px 2px 8px rgba(0, 0, 0, 0.95);
}

/* Botón único del hero */
.btn-hero-cta {
  font-family: 'Inter', sans-serif;
  background-color: var(--sa-rojo);
  color: #ffffff;
  font-weight: 600;
  padding: 0.85rem 2.25rem;
  font-size: 1rem;
  text-align: center;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.25s ease;
  border: none;
  margin-top: 1.5rem;
}

.btn-hero-cta:hover {
  background-color: var(--sa-rojo-oscuro);
  color: #ffffff;
}

/* Botón legado del hero (compatibilidad) */
.hero-buttons .card-btn {
  font-family: 'Inter', sans-serif;
  background-color: var(--sa-rojo);
  color: #ffffff;
  font-weight: 600;
  padding: 10px 24px;
  font-size: 0.95rem;
  text-align: center;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.25s ease;
  border: none;
}

.hero-buttons .card-btn:hover {
  background-color: var(--sa-rojo-oscuro);
  color: #ffffff;
}

/* Carousel legacy (mantener) */
.carousel-item {
  height: 80dvh;
}

.carousel-item img {
  object-fit: cover;
  object-position: center;
  height: 100%;
  width: 100%;
  filter: brightness(1);
}

.carousel-caption {
  bottom: 20%;
}

.carousel-caption h5 {
  font-size: 3rem;
  font-weight: 700;
}

/* === LOGROS === */
.logros-section {
  background: var(--sa-azul);
  color: white;
}

.logro-numero {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.logro-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.logro-star {
  color: var(--sa-dorado); /* único uso del dorado */
}

/* === NOSOTROS === */
/* Estilos para sección nosotros — usa fondo blanco o gris claro */

/* === LOGROS Y EXPERIENCIAS TEMÁTICAS === */
.badge-tematica {
  display: inline-block;
  background-color: rgba(239, 3, 20, 0.1);
  color: var(--sa-rojo);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
}

.experiencia-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experiencia-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.experiencia-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Proporción panorámica 16:9 para no cortar las imágenes */
  overflow: hidden;
  background-color: var(--sa-azul);
}

.experiencia-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Sin zoom en hover como solicitó el usuario */
}

/* Slider de fotos dentro de la tarjeta de logro en formato 16:9 */
.experiencia-carousel {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
}

.experiencia-carousel .carousel-inner,
.experiencia-carousel .carousel-item {
  width: 100%;
  height: 100%;
}

.experiencia-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experiencia-carousel .carousel-control-prev,
.experiencia-carousel .carousel-control-next {
  width: 34px;
  height: 34px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 15, 35, 0.65);
  border-radius: 50%;
  margin: 0 8px;
  opacity: 0.85;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 5;
}

.experiencia-carousel .carousel-control-prev:hover,
.experiencia-carousel .carousel-control-next:hover {
  background: var(--sa-rojo);
  border-color: var(--sa-rojo);
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
}

.experiencia-carousel .carousel-indicators {
  margin-bottom: 0.5rem;
  z-index: 5;
}

.experiencia-carousel .carousel-indicators [data-bs-target] {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin: 0 3px;
  border: none;
  background-color: rgba(255, 255, 255, 0.65);
  transition: background-color 0.2s, transform 0.2s;
}

.experiencia-carousel .carousel-indicators .active {
  background-color: var(--sa-rojo);
  transform: scale(1.25);
}

.experiencia-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(32, 37, 69, 0.88);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  z-index: 6;
}

.experiencia-fecha-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  z-index: 6;
}

.experiencia-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.experiencia-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sa-azul);
  margin-bottom: 0.75rem;
}

.experiencia-body p {
  color: var(--sa-gris-texto);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.experiencia-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px dashed var(--sa-gris-borde);
  padding-top: 1rem;
}

.experiencia-highlights li {
  font-size: 0.88rem;
  color: #2D3748;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: flex-start;
}

.experiencias-cta-banner {
  background: var(--sa-gris-claro);
  border-left: 5px solid var(--sa-rojo);
  border-radius: 12px;
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.experiencias-cta-banner h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--sa-azul);
}

.btn-ficha-azul {
  background: var(--sa-azul);
  color: #ffffff;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn-ficha-azul:hover {
  background: var(--sa-azul-medio);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Filtros y cabecera de la página logros.html */
.logros-page-header {
  background: linear-gradient(135deg, var(--sa-azul) 0%, #151930 100%);
  color: white;
  padding: 60px 0 50px;
  text-align: center;
}

.logros-page-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.logros-page-header p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.anos-filtro-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.btn-ano-filtro {
  background: white;
  border: 1px solid var(--sa-gris-borde);
  color: var(--sa-azul);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-ano-filtro:hover {
  background: var(--sa-gris-claro);
  border-color: var(--sa-azul);
  color: var(--sa-azul);
  transform: translateY(-2px);
}

.btn-ano-filtro.activo {
  background: var(--sa-azul);
  border-color: var(--sa-azul);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(32, 37, 69, 0.25);
}

/* === ADMISION === */
.admision-section {
  background: var(--sa-azul);
  color: white;
}

.admision-paso {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.paso-num {
  width: 2rem;
  height: 2rem;
  background: var(--sa-rojo);
  color: white;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.btn-wapp {
  background: #25D366;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-wapp:hover {
  background: #128C7E;
  color: white;
}

.btn-ficha {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn-ficha:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* === PERFIL COMUNIDAD === */
.perfil-card {
  position: relative;
  overflow: hidden;
  height: 250px;
  border-radius: 12px;
}

.perfil-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  border-radius: 12px;
}

.perfil-label {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  z-index: 1;
  /* Sin text-transform: uppercase */
}

.perfil-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(32, 37, 69, 0.9);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}

.perfil-overlay h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.perfil-overlay p {
  font-size: 0.85rem;
}

.perfil-card:hover img {
  transform: scale(1.05);
}

.perfil-card:hover .perfil-overlay {
  opacity: 1;
}

/* === NIVELES EDUCATIVOS === */
.nivel-card {
  background: white;
  border-left: 4px solid var(--sa-rojo);
  border-radius: 8px;
  padding: 1.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nivel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.nivel-icon {
  font-size: 2.25rem;
  color: var(--sa-rojo);
  display: block;
  margin-bottom: 0.75rem;
}

.nivel-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sa-azul);
  margin-bottom: 0.5rem;
}

.nivel-card p {
  color: var(--sa-gris-texto);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.nivel-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sa-rojo);
  text-decoration: none;
  transition: color 0.2s;
}

.nivel-link:hover {
  color: var(--sa-rojo-oscuro);
}

/* === GALERIA === */
.galeria-section {
  background: var(--sa-azul);
  color: white;
}

.galeria-filtros {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filtro-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.4rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.filtro-btn:hover {
  color: rgba(255, 255, 255, 0.85);
}

.filtro-btn.activo {
  color: white;
  border-bottom-color: var(--sa-rojo);
}

.galeria-grid {
  columns: 3;
  column-gap: 12px;
}

.galeria-item {
  break-inside: avoid;
  margin-bottom: 12px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
}

.galeria-item img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
  border-radius: 10px;
}

.galeria-item:hover img {
  transform: scale(1.03);
}

.galeria-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(32, 37, 69, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.galeria-item:hover .galeria-item-overlay {
  opacity: 1;
}

.galeria-item-cat {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.05em;
}

/* Slider por Grupos de la Galería (Flechas y paginador interactivo) */
.galeria-nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.galeria-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}

.galeria-nav-btn:hover:not(:disabled) {
  background: var(--sa-rojo);
  border-color: var(--sa-rojo);
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.galeria-nav-btn:disabled,
.galeria-nav-btn[disabled] {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

.galeria-nav-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.galeria-nav-pagina {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.03em;
}

.galeria-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.galeria-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
}

.galeria-dot.activo {
  background: var(--sa-rojo);
  width: 22px;
  border-radius: 10px;
}

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

.galeria-item.animar-grupo {
  animation: galeriaFadeIn 0.35s ease forwards;
}

.galeria-item.oculto-grupo {
  display: none !important;
}

/* Mantener clase anterior para compatibilidad */
.galeria-item.oculto-limite {
  display: none !important;
}

/* Lightbox */
#galeria-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 14, 28, 0.94);
  z-index: 100000;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 1.5rem;
  box-sizing: border-box;
  cursor: pointer;
}

#galeria-lightbox.is-open {
  display: flex;
}

#galeria-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  cursor: default;
}

#lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #ffffff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  z-index: 100001;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

#lightbox-close:hover {
  background-color: var(--sa-rojo);
  color: #ffffff;
  transform: scale(1.08);
}

/* === NOTICIAS === */
/* Sección de noticias / blog — usa fondo blanco */

/* === FOOTER === */
.footer {
  background-color: var(--sa-azul);
  color: #adb5bd;
}

.footer .footer-title {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer .social-icon {
  font-size: 1.5rem;
  margin-right: 15px;
  color: #ffffff;
  transition: color 0.3s ease;
}

.footer .social-icon:hover {
  color: var(--sa-dorado);
}

.footer .footer-link {
  text-decoration: none;
  color: #adb5bd;
  transition: color 0.3s ease;
}

.footer .footer-link:hover {
  color: #ffffff;
}

/* === WHATSAPP === */
.whatsapp-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  font-family: 'Inter', 'Poppins', sans-serif;
}

.whatsapp-btn {
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1002;
}

.whatsapp-btn:hover {
  background-color: #128c7e;
  transform: scale(1.1);
}

.whatsapp-tooltip {
  position: absolute;
  bottom: 15px;
  right: 70px;
  background-color: white;
  color: #333;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  transform: translateX(10px);
  z-index: 1001;
  /* Sin animación automática — solo se muestra en hover */
}

.whatsapp-tooltip::before {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid white;
}

.whatsapp-container:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.whatsapp-container.chat-open .whatsapp-tooltip {
  display: none !important;
}

.whatsapp-chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 300px;
  background-color: #e5ddd5;
  border-radius: 15px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  transform-origin: bottom right;
  z-index: 1001;
}

.whatsapp-chat-window.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.whatsapp-header {
  background-color: #128c7e;
}

.whatsapp-body {
  background-image: url(fondo-wapp.webp);
  background-repeat: repeat;
  background-size: 300px;
  min-height: 200px;
}

.chat-bubble {
  background-color: white;
  border-radius: 0 15px 15px 15px;
  position: relative;
  animation: fadeIn 0.5s ease forwards;
}

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

/* === UTILITIES === */

/* Secciones con padding generoso */
.section-padding {
  padding: 80px 0;
}

/* Headline tipografía */
.sa-headline {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Fondos de sección */
.sa-bg-azul   { background: var(--sa-azul); color: white; }
.sa-bg-gris   { background: var(--sa-gris-claro); }
.sa-bg-blanco { background: white; }

/* Bootstrap overrides con nuevos tokens */
.btn-primary {
  background-color: var(--sa-azul) !important;
  border-color: var(--sa-azul) !important;
  font-family: 'Inter', sans-serif;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--sa-azul-medio) !important;
  border-color: var(--sa-azul-medio) !important;
}

.btn-outline-primary {
  color: var(--sa-azul) !important;
  border-color: var(--sa-azul) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--sa-azul) !important;
  color: white !important;
}

/* Badge */
.badge.bg-primary-subtle {
  background-color: rgba(32, 37, 69, 0.12) !important;
  color: var(--sa-azul) !important;
}

/* Cards generales — sin hover agresivo (perfil-card tiene su propio) */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

/* Sin translateY(-10px) global — solo sombra sutil */
.card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.card-img-top {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  height: 250px;
  object-fit: cover;
}

/* FB Card — mantener sin cambios */
.fb-card {
  background: rgba(255, 255, 255, 0);
  text-align: center;
}

.fb-responsive-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 0 auto;
}

.fb-responsive-wrapper iframe,
.fb-responsive-wrapper .fb-post,
.fb-responsive-wrapper .fb-video {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
}

/* Workshop cards — mantener sin cambios */
.workshop-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.workshop-card .card-img {
  height: 350px;
  object-fit: cover;
  filter: brightness(0.4);
  transition: filter 0.3s ease;
}

.workshop-card:hover .card-img {
  filter: brightness(0.3);
  transform: scale(1.05);
}

.workshop-overlay {
  background: rgba(0, 0, 0, 0.2);
  z-index: 2;
}

/* Level icon */
.level-icon {
  font-size: 4rem;
  color: var(--sa-azul);
}

/* Quick access */
.quick-access .card {
  background: linear-gradient(135deg, var(--sa-azul), var(--sa-azul-medio));
  color: white;
  text-align: center;
}

.quick-access .card-body {
  padding: 2rem;
}

.quick-access-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-section {
    height: 100vh;
  }

  .hero-overlay {
    bottom: 5%;
    left: 5%;
    right: 5%;
  }

  .hero-overlay h1 {
    font-size: 1.9rem;
    margin-bottom: 0.75rem;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .btn-hero-cta {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }

  /* legado */
  .hero-buttons .col-md-3 {
    margin-bottom: 10px;
  }

  .hero-buttons {
    margin-top: 1rem !important;
  }

  .hero-buttons .card-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .brand-title,
  .brand-subtitle {
    font-size: 0.95rem;
  }

  .galeria-grid {
    columns: 2;
  }

  .section-padding {
    padding: 56px 0;
  }

  .logros-section .col-6 + .col-6 {
    border-left: 1px solid rgba(255,255,255,0.12);
  }

  #galeria-lightbox img {
    max-width: 96vw;
    max-height: 80vh;
  }
}

@media (max-width: 480px) {
  .galeria-grid {
    columns: 1;
  }

  .hero-overlay h1 {
    font-size: 1.65rem;
  }

  .logro-numero {
    font-size: 2.2rem;
  }
}
