/* Importar fuente Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

/* Variables CSS */
:root {
  --main-color: #406da1;         /* azul celeste institucional para navbar, menú y footer */
  --main-color-light: #3b82f6;   /* azul más claro para hover y elementos destacados */
  --main-color-dark: #1e40af;    /* azul más oscuro para sombras */
  --accent-color: #f8f9fa;       /* texto claro */
  --secondary-color: #6c757d;    /* gris medio para bordes, textos, etc. */
  --gold-color: #ffd700;         /* dorado para detalles */
}

/* Estilos base */
body {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  opacity: 0;
  transition: opacity 0.7s ease;
}

html {
  scroll-behavior: smooth;
}

/* Navbar y offcanvas */
.navbar,
.offcanvas,
footer {
  background-color: var(--main-color) !important;
}

/* Estilos para redes sociales en navbar . */
.redes-sociales-navbar {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  height: 48px !important;
  font-size: 1.5rem !important;
  transition: all 0.3s ease;
  opacity: 0.8;
  border-radius: 8px;
}

.redes-sociales-navbar:hover {
  opacity: 1;
  transform: scale(1.05);
  color: var(--gold-color) !important;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Estilos específicos para el navbar */
.navbar {
  padding: 0.5rem 1rem;
  min-height: 60px;
  position: relative;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  margin: 0 !important;
  text-shadow: 0 3px 6px rgba(0,0,0,0.3) !important;
  letter-spacing: 0.5px !important;
  color: var(--accent-color) !important;
  text-align: left !important;
}

/* Enlaces del navbar */
.navbar-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  gap: 0.5rem !important;
  margin-left: auto !important;
}

.navbar-nav .nav-item {
  margin: 0;
  padding: 0;
}

.navbar-nav .nav-link {
  color: var(--accent-color) !important;
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  text-shadow: none;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
  white-space: nowrap;
  padding: 0.1rem 0.2rem !important;
  transition: color 0.3s ease;
}

/* Estado activo del enlace del navbar */
.navbar-nav .nav-link.active,
.navbar .nav-link.active {
  color: var(--accent-color) !important;
  border: 2px solid var(--gold-color);
  border-radius: 8px;
  padding: 0.1rem 0.5rem !important;
}

/* Activo en offcanvas (menú móvil) */
.offcanvas .nav-link.active {
  color: var(--gold-color) !important;
  border-left: 3px solid var(--gold-color);
  border-radius: 0;
  padding-left: 0.5rem !important;
}

/* Activo en items del dropdown de escritorio */
.dropdown-menu .dropdown-item.active {
  background-color: var(--main-color-light) !important;
  color: var(--accent-color) !important;
  border-left: 3px solid var(--gold-color);
}

.navbar-nav .nav-link:hover {
  color: var(--gold-color) !important;
  text-shadow: 0 2px 8px rgba(255,215,0,0.18);
}

.navbar-brand,
.nav-link,
.offcanvas-title,
footer,
footer h5,
footer h6,
footer a,
footer p {
  color: var(--accent-color) !important;
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  text-shadow: 0 1px 4px rgba(0,0,0,0.12);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Unificar tipografía en navbar y footer */
.navbar, .navbar * {
  font-family: 'Montserrat', 'Segoe UI', sans-serif !important;
}
footer, footer * {
  font-family: 'Montserrat', 'Segoe UI', sans-serif !important;
}

/* Estilos personalizados para menús desplegables */
.dropdown-menu {
  background-color: var(--main-color) !important;
  border: 2px solid var(--main-color-light) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(30, 64, 175, 0.3) !important;
  padding: 0.5rem 0 !important;
  margin-top: 0.5rem !important;
  min-width: 200px !important;
}

.dropdown-item {
  color: var(--accent-color) !important;
  font-family: 'Montserrat', 'Segoe UI', sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.3px !important;
  padding: 0.75rem 1.5rem !important;
  transition: all 0.3s ease !important;
  border: none !important;
  background: transparent !important;
}

.dropdown-item:hover {
  background-color: var(--main-color-light) !important;
  color: var(--accent-color) !important;
  transform: translateX(5px) !important;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.2) !important;
}

.dropdown-item:active {
  background-color: var(--main-color-dark) !important;
  color: var(--accent-color) !important;
}

.dropdown-toggle::after {
  border-top-color: var(--accent-color) !important;
  margin-left: 0.5rem !important;
  transition: transform 0.3s ease;
}

.dropdown-toggle:hover::after {
  border-top-color: var(--gold-color) !important;
}

/* Rotar flecha cuando el menú está expandido */
.dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(-180deg);
}

/* Efecto dorado al pasar el mouse en enlaces navbar y footer */
.navbar-nav .nav-link:hover {
  color: var(--gold-color) !important;
  text-shadow: 0 2px 8px rgba(255,215,0,0.18);
}

/* Efecto hover para enlaces del footer */
footer a:hover {
  color: var(--gold-color) !important;
  text-shadow: 0 2px 8px rgba(255,215,0,0.18);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Navbar: layout de dos filas para pantallas menores a 1000px */
@media (max-width: 1000px) {
  .navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    z-index: 1050;
    padding: 0 !important;
    margin: 0 !important;
    min-height: auto !important;
  }
  .navbar .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 6px;
    width: 100%;
    padding: 8px 1rem;
    margin: 0 !important;
  }
  .navbar-brand {
    font-size: 1.3rem !important;
    line-height: 1.1;
    white-space: nowrap !important;
    word-break: normal !important;
    max-width: 100%;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--accent-color) !important;
    text-align: center !important;
    margin: 0 !important;
  }
  .redes-sociales-navbar {
    width: 32px !important;
    height: 32px !important;
    font-size: 1rem !important;
  }
  .navbar .btn {
    margin-top: 0 !important;
    margin-left: 0 !important;
    width: auto;
    flex-shrink: 0;
  }
  .navbar .btn span {
    width: 32px !important;
    height: 32px !important;
  }
  .navbar .btn svg {
    width: 24px !important;
    height: 24px !important;
  }
  .navbar .container > .d-flex {
    gap: 0.3rem !important;
    flex-shrink: 0;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }
  body {
    padding-top: 80px !important;
  }
}

/* Reglas responsive para el texto del navbar */
@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.1rem !important;
  }
}

@media (max-width: 480px) {
  .navbar-brand {
    font-size: 1rem !important;
  }
}

@media (max-width: 400px) {
  .navbar-brand {
    font-size: 0.9rem !important;
  }
}

@media (max-width: 360px) {
  .navbar-brand {
    font-size: 0.8rem !important;
  }
}

/* Ajustar alineación del menú hamburguesa con iconos de redes sociales */
.navbar .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
}

.navbar .btn span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}




/* Reglas para pantallas grandes */
@media (min-width: 1001px) and (max-width: 1199px) {
  .navbar-nav {
    gap: 1rem;
  }
  
  .navbar-nav .nav-link {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
  }
  
  .navbar-brand {
    font-size: 1.5rem !important;
    margin: 0 !important;
    color: var(--accent-color) !important;
    text-align: left !important;
  }
}

/* Reglas para pantallas grandes */
@media (min-width: 1200px) {
  .navbar-nav {
    gap: 2rem;
  }
  
  .navbar-nav .nav-link {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
  
  .navbar-brand {
    font-size: 1.8rem !important;
    margin: 0 !important;
    color: var(--accent-color) !important;
    text-align: left !important;
  }
}

.offcanvas {
  transition: transform 0.4s ease-in-out;
}

.no-scroll {
  overflow: hidden !important;
}

.dropdown-toggle-custom::after {
  content: ' ▼';
  float: right;
  font-size: 0.8rem;
  transition: transform 0.3s;
}

button[aria-expanded="true"].dropdown-toggle-custom::after {
  transform: rotate(180deg);
}

.nav-link {
  cursor: pointer;
}

/* Carrusel personalizado de profesores */
.profesores-carrusel-container {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

#profesoresCustomCarrusel {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 280px;
  gap: 0;
}

/* Asegurar que las tarjetas se alineen correctamente */
.profesores-carrusel-container {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  padding: 1rem 0;
}

/* Mejorar el espaciado entre elementos del carrusel */
#profesoresCustomCarrusel > * {
  flex-shrink: 0;
}

/* Estilos base para todas las tarjetas de profesores */
.profesor-central,
.profesor-lateral {
  height: 280px !important;
  min-height: 280px !important;
  max-height: 280px !important;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(30,58,138,0.18);
  transition: transform 0.4s, opacity 0.4s;
}

.profesor-central {
  z-index: 2;
  width: 18rem;
}

.profesor-lateral {
  opacity: 0.7;
  transform: scale(0.92);
  z-index: 1;
  margin-left: -2.5rem !important;
  margin-right: -2.5rem !important;
  cursor: pointer !important;
  transition: box-shadow 0.2s, opacity 0.2s;
  width: 12rem;
}

.profesor-lateral:hover {
  opacity: 0.9;
  box-shadow: 0 8px 24px rgba(30,58,138,0.18);
  cursor: pointer !important;
}

.profesor-lateral.left {
  margin-right: -2.5rem !important;
}

.profesor-lateral.right {
  margin-left: -2.5rem !important;
}

/* Estilos para el contenido interno de las tarjetas */
.profesor-central .card-body,
.profesor-lateral .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
}

.profesor-central .card-title,
.profesor-lateral .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profesor-central .card-text,
.profesor-lateral .card-text {
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Estilos para las imágenes de los profesores */
.profesor-central .profesor-img,
.profesor-lateral .profesor-img {
  width: 120px !important;
  height: 120px !important;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profesor-central .profesor-img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Mejoras en las transiciones del carrusel */
.profesor-central,
.profesor-lateral {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.profesor-lateral {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Asegurar que las tarjetas mantengan su forma */
.profesor-central .card,
.profesor-lateral .card {
  border-radius: 12px;
  overflow: hidden;
  border: none;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .profesor-central {
    width: 14rem !important;
    height: 260px !important;
    min-height: 260px !important;
    max-height: 260px !important;
  }
  
  .profesor-lateral {
    width: 9rem !important;
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    margin-left: -1.2rem !important;
    margin-right: -1.2rem !important;
  }
  
  .profesor-central .card-title,
  .profesor-lateral .card-title {
    font-size: 1rem;
    min-height: 2.2rem;
  }
  
  .profesor-central .card-text,
  .profesor-lateral .card-text {
    font-size: 0.8rem;
  }
  
  .profesor-central .profesor-img,
  .profesor-lateral .profesor-img {
    width: 100px !important;
    height: 100px !important;
  }
  
  #profesoresCustomCarrusel {
    min-height: 260px;
  }
}

/* Responsive para pantallas muy pequeñas */
@media (max-width: 576px) {
  .profesor-central {
    width: 12rem !important;
    height: 240px !important;
    min-height: 240px !important;
    max-height: 240px !important;
  }
  
  .profesor-lateral {
    width: 8rem !important;
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    margin-left: -1rem !important;
    margin-right: -1rem !important;
  }
  
  .profesor-central .card-title,
  .profesor-lateral .card-title {
    font-size: 0.9rem;
    min-height: 2rem;
  }
  
  .profesor-central .card-text,
  .profesor-lateral .card-text {
    font-size: 0.75rem;
  }
  
  .profesor-central .profesor-img,
  .profesor-lateral .profesor-img {
    width: 80px !important;
    height: 80px !important;
  }
  
  #profesoresCustomCarrusel {
    min-height: 240px;
  }
}

/* Carrusel profesores: mostrar costados parcialmente */
.profesores-peek .carousel-item.peek-left {
  opacity: 0.7;
  transform: scale(0.92) translateX(-60px);
  z-index: 1;
  pointer-events: none;
}
.profesores-peek .carousel-item.peek-right {
  opacity: 0.7;
  transform: scale(0.92) translateX(60px);
  z-index: 1;
  pointer-events: none;
}
/* Carrusel de profesores: mostrar central y costados parcialmente */
.profesores-peek {
  position: relative;
}
.profesores-peek .carousel-item {
  transition: transform 0.4s, opacity 0.4s;
}
.profesores-peek .carousel-item {
  opacity: 0.5;
  transform: scale(0.85);
  z-index: 1;
}
.profesores-peek .carousel-item.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}
.profesores-peek .carousel-item.active ~ .carousel-item,
.profesores-peek .carousel-item.active + .carousel-item {
  opacity: 0.7;
  transform: scale(0.92) translateX(60px);
  z-index: 1;
}
.profesores-peek .carousel-item.active ~ .carousel-item:last-child,
.profesores-peek .carousel-item.active ~ .carousel-item:nth-last-child(2) {
  opacity: 0.7;
  transform: scale(0.92) translateX(-60px);
  z-index: 1;
}
/* Carrusel de profesores tipo coverflow */
.profesores-carrusel-inner {
  will-change: transform;
}
.profesor-card {
  opacity: 0.5;
  transform: scale(0.85);
  transition: opacity 0.3s, transform 0.3s;
}
.profesor-card.active {
  opacity: 1;
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 8px 24px rgba(30,58,138,0.18);
}
/* Sombra para textos sobre imágenes */
.text-shadow {
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

/* Efecto hover para fotos de profesores */
.profesor-img {
  transition: transform 0.3s cubic-bezier(0.4, 0.2, 0.2, 1);
  will-change: transform;
}
.profesor-img:hover {
  transform: scale(1.13);
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.offcanvas {
  transition: transform 0.4s ease-in-out;
}

.no-scroll {
  overflow: hidden !important;
}

.dropdown-toggle-custom::after {
  content: ' ▼';
  float: right;
  font-size: 0.8rem;
  transition: transform 0.3s;
}

button[aria-expanded="true"].dropdown-toggle-custom::after {
  transform: rotate(180deg);
}

.nav-link {
  cursor: pointer;
}

/* Inicio */
.carousel-caption h5 {
  font-size: 2rem;
  font-weight: bold;
}

.carousel-caption p {
  font-size: 1.2rem;
}

#inicioCarousel .carousel-inner,
#inicioCarousel .carousel-item img {
  height: 100vh;
  object-fit: cover;
}

#inicio .position-absolute {
  height: 100vh;
}

/* Círculos FAQ */
.circle-text {
  border: 2px solid var(--secondary-color);
  border-radius: 50%;
  width: 150px;
  height: 150px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--secondary-color);
}

@media (max-width: 768px) {
  .circle-text {
    width: 120px;
    height: 120px;
    font-size: 1rem;
  }
}

/* Imagen zoom general */
.img-zoom {
  transition: transform 0.4s ease;
}

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

/* Botón de WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1055;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus,
.whatsapp-float:active {
  transform: scale(1.15);
}

/* Estilos para el botón de idioma */
.btn[data-lang] {
  width: 32px;
  height: 28px;
  font-weight: 500;
  font-size: 0.7rem;
}

/* Menú offcanvas más pequeño */
.offcanvas {
  width: 280px !important;
  max-width: 80vw !important;
}

/* Estilos específicos para el offcanvas header y body */
.offcanvas-header {
  padding: 1rem 1rem 0.5rem 1rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.5rem;
}

.offcanvas-body {
  padding: 0.5rem 1rem 1rem 1rem !important;
}

/* Asegurar que los nav-links del offcanvas tengan suficiente padding */
.offcanvas .nav-link {
  padding: 0.75rem 1rem !important;
  margin: 0.25rem 0;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
}

.offcanvas .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--gold-color) !important;
}

/* Espaciado específico para el primer elemento del menú */
.offcanvas .nav-item:first-child .nav-link {
  margin-top: 0.5rem;
}

/* Ajustar el botón de cerrar para evitar solapamiento */
.offcanvas-header .btn-close {
  margin: 0 !important;
  padding: 0.5rem !important;
  font-size: 1.25rem;
  opacity: 1 !important;
  background: none !important;
  border: none !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: white !important;
  filter: none !important;
}

.offcanvas-header .btn-close::before {
  content: "✕" !important;
  font-size: 1.5rem !important;
  font-weight: bold !important;
  color: white !important;
  line-height: 1 !important;
}

.offcanvas-header .btn-close:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-radius: 50% !important;
  opacity: 1 !important;
}

/* Asegurar que el botón de cerrar sea visible en todas las circunstancias */
.offcanvas-header .btn-close-white {
  background-image: none !important;
  opacity: 1 !important;
}

.offcanvas-header .btn-close-white::before {
  content: "✕" !important;
  font-size: 1.8rem !important;
  font-weight: bold !important;
  color: white !important;
  line-height: 1 !important;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.5) !important;
}

/* Fallback para navegadores que no soporten ::before */
.offcanvas-header .btn-close-white {
  position: relative !important;
}

.offcanvas-header .btn-close-white::after {
  content: "✕" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  font-size: 1.8rem !important;
  font-weight: bold !important;
  color: white !important;
  line-height: 1 !important;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.5) !important;
}

.btn[data-lang] {
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
  line-height: 1;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn[data-lang]:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.btn[data-lang]:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.btn[data-lang]:not(:last-child) {
  border-right: none;
}

.btn[data-lang]:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.btn[data-lang].active {
  background-color: var(--gold-color);
  border-color: var(--gold-color);
  color: var(--main-color-dark);
  font-weight: 600;
}

/* Responsive para el botón de idioma */
@media (max-width: 991.98px) {
  .btn[data-lang] {
    width: 35px;
    height: 30px;
    font-size: 0.75rem;
  }
}

/* Ajuste para anclas con navbar fija */
section {
  scroll-margin-top: 80px; /* valor para pantallas grandes */
}

@media (max-width: 576px) {
  section {
    scroll-margin-top: 80px; /* coincide con la altura de la navbar en móviles */
  }
}

#contacto {
  scroll-margin-top: 90px; /* probá 80, 90 o lo que necesite */
}

/* SOLUCIÓN DEFINITIVA: Eliminar línea blanca después del footer */
footer {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

/* Eliminar espacios de todos los elementos dentro del footer */
footer .container,
footer .row,
footer [class*="col-"],
footer p,
footer h5,
footer h6,
footer ul,
footer li {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Asegurar que no haya espacios en el body y html */
body,
html {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Eliminar cualquier borde o línea que pueda aparecer */
footer::after,
footer::before {
  display: none !important;
}

/* Asegurar que el footer ocupe todo el ancho y llegue hasta abajo */
footer {
  width: 100% !important;
  box-sizing: border-box !important;
}

/* ===== ESTILOS PARA ENLACES VISIBLES ===== */
.text-primary {
  color: #0d6efd !important;
}

.accordion-body a {
  color: #0d6efd !important;
  text-decoration: none !important;
  font-weight: bold !important;
  transition: color 0.3s ease;
}

.accordion-body a:hover {
  color: var(--main-color) !important;
  text-decoration: underline !important;
}

/* Asegurar visibilidad en móviles */
@media (max-width: 768px) {
  .accordion-body a {
    color: #0d6efd !important;
    font-weight: bold !important;
    text-decoration: underline !important;
    display: inline !important;
    visibility: visible !important;
  }
}

/* ===== ESTILOS RESPONSIVOS PARA LOGO DEL FOOTER ===== */
.footer-logo {
  width: 200px;
  height: 200px;
  margin-top: 1rem;
  object-fit: contain;
  display: block;
  transition: all 0.3s ease;
}

.footer-logo picture,
.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Responsive para tablets */
@media (max-width: 991.98px) {
  .footer-logo {
    width: 160px;
    height: 160px;
  }
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .footer-logo {
    width: 120px;
    height: 120px;
    margin: 1rem auto;
  }
}

/* Responsive para móviles pequeños */
@media (max-width: 576px) {
  .footer-logo {
    width: 100px;
    height: 100px;
    margin: 0.5rem auto;
  }
}

/* Responsive para móviles muy pequeños */
@media (max-width: 480px) {
  .footer-logo {
    width: 80px;
    height: 80px;
    margin: 0.5rem auto;
  }
}

/* ===== ESTILOS PARA POPUP DE EVENTO ===== */
.event-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.event-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.event-popup-content {
  background: white;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  width: 90%;
  max-height: 95vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.event-popup-overlay.show .event-popup-content {
  transform: scale(1);
}

.event-popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.event-popup-close:hover {
  background-color: #f0f0f0;
  color: #333;
}

.event-popup-body {
  padding: 15px 10px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.event-popup-image img {
  width: 100%;
  max-height: 75vh;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0;
  object-fit: contain;
}

.event-popup-title {
  color: var(--main-color);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.event-popup-text {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.6;
}

.event-popup-details {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  text-align: left;
}

.event-popup-details p {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #333;
}

.event-popup-details p:last-child {
  margin-bottom: 0;
}

.event-popup-actions {
  display: flex !important;
  gap: 15px !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  background-color: white !important;
  padding: 15px 0 !important;
  border-top: 1px solid #eee !important;
  flex-shrink: 0 !important;
  margin-top: 0 !important;
  width: 100% !important;
}

.event-popup-actions .btn {
  padding: 12px 24px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
  margin: 0 !important;
}

.event-popup-actions .btn-primary {
  background-color: var(--main-color) !important;
  border-color: var(--main-color) !important;
  color: white !important;
}

.event-popup-actions .btn-primary:hover {
  background-color: var(--main-color-dark);
  border-color: var(--main-color-dark);
  transform: translateY(-2px);
}

.event-popup-actions .btn-outline-secondary:hover {
  transform: translateY(-2px);
}

/* Estilos específicos para PC */
@media (min-width: 769px) {
  .event-popup-content {
    max-width: 500px;
    max-height: 95vh;
    overflow-y: auto;
  }
  
  .event-popup-image {
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .event-popup-actions {
    flex-shrink: 0;

  }
}

/* Responsive para móviles */
@media (max-width: 576px) {
  .event-popup-content {
    width: 95%;
    margin: 20px;
    max-height: 98vh;
  }
  
  .event-popup-body {
    padding: 15px;
  }
  
  .event-popup-image {
    margin-bottom: 15px;
  }
  
  .event-popup-image img {
    border-radius: 8px;
  }
  
  .event-popup-title {
    font-size: 1.5rem;
  }
  
  .event-popup-text {
    font-size: 1rem;
  }
  
  .event-popup-actions {
    flex-direction: column;
  }
  
  .event-popup-actions .btn {
    width: 100%;
  }
}

/* ===== ESTILOS SWIPER PROFESORES ===== */
.profesoresSwiper {
  margin-top: 40px;
  padding: 30px 0;
}

.swiper-slide {
  margin-bottom: 50px;
  background-color: #ffffff;
  box-shadow: 0 30px 30px rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  height: 250px;
  width: 200px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 0px;
}

.swiper-slide:hover {
  transform: translateY(-5px);
  box-shadow: 0 35px 35px rgba(0, 0, 0, 0.25);
}

.swiper-slide img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
}

.swiper-txt {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(transparent, rgba(64, 109, 161, 1));
  color: white;
}

.swiper-txt h3 {
  font-size: 20px;
  margin-bottom: 5px;
  color: white;
  font-weight: 600;
}

.swiper-txt p {
  color: white;
  font-size: 14px;
  opacity: 0.9;
}

/* Modal de profesores */
.modal-profesor {
  display: none;
  position: fixed;
  z-index: 1060;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
}

.modal-profesor-content {
  background-color: white;
  margin: 5% auto;
  padding: 0;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.modal-profesor-close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1061;
}

.modal-profesor-close:hover,
.modal-profesor-close:focus {
  color: #000;
  text-decoration: none;
}

.modal-profesor-header {
  text-align: center;
  padding: 40px 30px 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 15px 15px 0 0;
}

.modal-profesor-header img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  margin-bottom: 20px;
}

.modal-profesor-header h2 {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.modal-profesor-body {
  padding: 30px;
}

.modal-profesor-body p {
  line-height: 1.6;
  color: #666;
  font-size: 16px;
  text-align: justify;
}

/* ===== RESPONSIVE SWIPER PROFESORES ===== */

/* Tablets y pantallas medianas */
@media (max-width: 991px) {
  .profesoresSwiper {
    padding: 20px 40px;
  }
  
  .swiper-slide {
    height: 220px;
    width: 180px;
    margin-bottom: 30px;
  }
  
  .swiper-slide img {
    height: 220px;
  }
  
  .swiper-txt {
    padding: 8px;
  }
  
  .swiper-txt h3 {
    font-size: 18px;
    margin-bottom: 3px;
  }
  
  .swiper-txt p {
    font-size: 12px;
  }
}

/* Teléfonos grandes */
@media (max-width: 768px) {
  .profesoresSwiper {
    padding: 15px 20px;
  }
  
  .swiper-slide {
    height: 200px;
    width: 160px;
    margin-bottom: 25px;
  }
  
  .swiper-slide img {
    height: 200px;
  }
  
  .swiper-txt {
    padding: 6px;
  }
  
  .swiper-txt h3 {
    font-size: 16px;
    margin-bottom: 2px;
  }
  
  .swiper-txt p {
    font-size: 11px;
  }
}

/* Teléfonos pequeños */
@media (max-width: 480px) {
  .profesoresSwiper {
    padding: 10px 15px;
  }
  
  .swiper-slide {
    height: 180px;
    width: 140px;
    margin-bottom: 20px;
  }
  
  .swiper-slide img {
    height: 180px;
  }
  
  .swiper-txt {
    padding: 5px;
  }
  
  .swiper-txt h3 {
    font-size: 14px;
    margin-bottom: 1px;
  }
  
  .swiper-txt p {
    font-size: 10px;
  }
}

/* Teléfonos muy pequeños */
@media (max-width: 360px) {
  .profesoresSwiper {
    padding: 8px 10px;
  }
  
  .swiper-slide {
    height: 160px;
    width: 120px;
    margin-bottom: 15px;
  }
  
  .swiper-slide img {
    height: 160px;
  }
  
  .swiper-txt {
    padding: 4px;
  }
  
  .swiper-txt h3 {
    font-size: 12px;
    margin-bottom: 1px;
  }
  
  .swiper-txt p {
    font-size: 9px;
  }
}

/* ===== SELECTOR DE IDIOMA ===== */
.idioma-btn {
  border-radius: 20px !important;
  padding: 8px 16px !important;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  min-width: 100px;
  white-space: nowrap;
  text-align: center;
}

.idioma-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-1px);
}

.idioma-btn.active {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #333 !important;
  border-color: rgba(255, 255, 255, 1) !important;
  font-weight: 600;
}

.idioma-btn.active:hover {
  background: rgba(255, 255, 255, 1) !important;
  color: #333 !important;
}

/* Responsive para botones de idioma */
@media (max-width: 768px) {
  .idioma-btn {
    padding: 6px 12px !important;
    font-size: 12px;
    min-width: 80px;
  }
}

@media (max-width: 480px) {
  .idioma-btn {
    padding: 5px 10px !important;
    font-size: 11px;
    min-width: 75px;
  }
}

/* ===== RESPONSIVE MODAL PROFESORES ===== */

/* Tablets */
@media (max-width: 991px) {
  .modal-profesor-content {
    width: 95%;
    margin: 10% auto;
    max-height: 85vh;
  }
  
  .modal-profesor-header {
    padding: 30px 20px 15px;
  }
  
  .modal-profesor-header img {
    width: 100px;
    height: 100px;
  }
  
  .modal-profesor-header h2 {
    font-size: 20px;
  }
  
  .modal-profesor-body {
    padding: 20px;
  }
  
  .modal-profesor-body p {
    font-size: 14px;
    line-height: 1.5;
  }
}

/* Teléfonos */
@media (max-width: 768px) {
  .modal-profesor-content {
    width: 98%;
    margin: 5% auto;
    max-height: 90vh;
  }
  
  .modal-profesor-header {
    padding: 25px 15px 10px;
  }
  
  .modal-profesor-header img {
    width: 80px;
    height: 80px;
  }
  
  .modal-profesor-header h2 {
    font-size: 18px;
  }
  
  .modal-profesor-body {
    padding: 15px;
  }
  
  .modal-profesor-body p {
    font-size: 13px;
    line-height: 1.4;
  }
  
  .modal-profesor-close {
    top: 10px;
    right: 15px;
    font-size: 24px;
  }
}

/* Teléfonos pequeños */
@media (max-width: 480px) {
  .modal-profesor-content {
    width: 100%;
    margin: 0;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .modal-profesor-header {
    padding: 20px 15px 10px;
    border-radius: 0;
  }
  
  .modal-profesor-header img {
    width: 70px;
    height: 70px;
  }
  
  .modal-profesor-header h2 {
    font-size: 16px;
  }
  
  .modal-profesor-body {
    padding: 15px;
  }
  
  .modal-profesor-body p {
    font-size: 12px;
    line-height: 1.3;
  }
  
  .modal-profesor-close {
    top: 8px;
    right: 12px;
    font-size: 20px;
  }
}

/* ===== ESTILOS PARA SHOP.HTML - Modal de imágenes ===== */
/* Centrar el modal */
#imageModal .modal-dialog {
  margin: 0 auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Reducir espacios laterales del modal */
#imageModal .modal-content {
  width: 60% !important;
}

#imageModal .modal-body {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}