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

body {
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
}

.header {
  height: 120px; 
  padding: 0 25px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 120px; 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.logo:hover {
  transform: scale(1.10); 
}

/* =========================
  CARRUSEL PRINCIPAL
========================= */

.carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: transparent; 
}
.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex; 
  transition: transform 1s ease-in-out;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.carousel-slide.active {
  left: 0;
  opacity: 1;
  z-index: 10;
}

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

/* =========================
    FLECHAS DE NAVEGACIÓN PERSONALIZADAS
========================= */
.carousel-arrow {
  position: absolute;
  top: 70%; 
  transform: translateY(-50%);
  width: 100px;        
  height: auto;
  opacity: 0;         
  cursor: pointer;
  transition: opacity 0.4s ease, transform 0.25s ease, filter 0.3s ease;
  z-index: 20;
  filter: brightness(80%) opacity(70%);
}

.carousel-arrow.prev {
  left: 40px;
}

.carousel-arrow.next {
  right: 40px;
}

.carousel:hover .carousel-arrow {
  opacity: 1;
}

.carousel-arrow:hover {
  transform: translateY(-50%) scale(1.1);
  filter: brightness(100%) opacity(100%);
}

@media (max-width: 768px) {
  .carousel-arrow {
    width: 55px;
  }
}

.carousel-indicators {
  position: absolute;
  bottom: 25px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 15;
}

.dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.dot:hover {
  transform: scale(1.2);
}

.dot.active {
  background-color: #042754;
}

.carousel-arrow {
  transition: opacity 0.3s ease, transform 0.25s ease, filter 0.3s ease;
}

.carousel-arrow.change {
  opacity: 0;
}

.carousel-arrow.change-active {
  opacity: 1;
}

.carousel-indicators {
  position: absolute;
  bottom: 25px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 15;
}

.dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.dot:hover {
  transform: scale(1.2);
}

.dot.active {
  background-color: #042754;
}

@media (max-width: 768px) {
  .carousel-btn {
    font-size: 1.8rem;
    bottom: 70px;
  }

  .dot {
    width: 12px;
    height: 12px;
  }
}

/* =========================
   Ajustes detallados de flechas por resolución
   ========================= */

@media (max-width: 900px) {
  .carousel-arrow {
    top: 60%;        
    width: 85px;       
  }
}

@media (max-width: 800px) {
  .carousel-arrow {
    top: 57%;
    width: 75px;
  }
}

@media (max-width: 700px) {
  .carousel-arrow {
    top: 55%;
    width: 65px;
  }
}

@media (max-width: 600px) {
  .carousel-arrow {
    top: 53%;
    width: 60px;
  }
}

@media (max-width: 500px) {
  .carousel-arrow {
    top: 51%;
    width: 55px;
  }
}

@media (max-width: 400px) {
  .carousel-arrow {
    top: 42%;
    width: 50px;
  }
}

/* =========================
SECCIÓN DE INFORMACIÓN 
========================= */
.info-section {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  padding: 100px 80px;
  background-color: #f5f8fc;
  flex-wrap: wrap;
}

.info-card {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  height: 550px;
  border-radius: 20px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card1 {
  background-color: #e7f0ff;
  color: #000;
}

.card2 {
  background-color: #57a1d1;
  color: #000000;
}

.card2 p {
  color: #000000;
}

.card3 {
  background-color: #042754;
  color: #fff;
}

.info-card h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.info-card p {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 30px;
}

.info-card img {
  width: 80%;
  max-width: 220px;
  height: auto;
  border-radius: 10px;
}

/* =========================
   📱 AJUSTES RESPONSIVOS DETALLADOS
========================= */

@media (max-width: 900px) {
  .info-section {
    flex-wrap: wrap;
    gap: 25px;
    padding: 80px 60px;
  }

  .info-card {
    max-width: 350px;
    height: 500px;
  }

  .info-card h2 {
    font-size: 2rem;
  }

  .info-card p {
    font-size: 1.1rem;
  }
}

@media (max-width: 800px) {
  .info-section {
    flex-direction: column;
    align-items: center;
    padding: 70px 50px;
  }

  .info-card {
    width: 85%;
    max-width: 480px;
    height: auto;
  }

  .info-card img {
    width: 70%;
  }
}

@media (max-width: 700px) {
  .info-section {
    padding: 60px 45px;
  }

  .info-card {
    width: 90%;
    max-width: 450px;
    padding: 35px 25px;
  }

  .info-card h2 {
    font-size: 1.9rem;
  }

  .info-card p {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .info-section {
    padding: 50px 35px;
    gap: 20px;
  }

  .info-card {
    width: 95%;
    max-width: 420px;
  }

  .info-card img {
    width: 65%;
  }
}

@media (max-width: 500px) {
  .info-section {
    padding: 40px 30px;
  }

  .info-card {
    width: 100%;
    max-width: 380px;
    padding: 30px 20px;
  }

  .info-card h2 {
    font-size: 1.8rem;
  }

  .info-card p {
    font-size: 0.95rem;
  }

  .info-card img {
    width: 60%;
  }
}

@media (max-width: 400px) {
  .info-section {
    padding: 30px 25px;
    gap: 18px;
  }

  .info-card {
    width: 100%;
    max-width: 350px;
    padding: 25px 15px;
  }

  .info-card h2 {
    font-size: 1.6rem;
  }

  .info-card p {
    font-size: 0.9rem;
  }

  .info-card img {
    width: 55%;
  }
}

/* =========================
   ✨ EFECTO DE INFLADO EN LOS ICONOS DE LAS TARJETAS
========================= */
.info-card img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.info-card img:hover {
  transform: scale(1.12); 
}


/* ======== Submenú de Talleres ======== */
.menu-item.talleres {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  border: 2px solid #02326c;
  display: none;
  flex-direction: column;
  width: 180px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  overflow: hidden;
}

.submenu-item {
  display: block;
  padding: 12px 16px;
  text-align: center;
  color: #02326c;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid #02326c;
  background-color: #fff;
  transition: all 0.25s ease;
}

.submenu-item:last-child {
  border-bottom: none;
}

.submenu-item:hover {
  background-color: #02326c;
  color: #fff;
}

.menu-item.talleres:hover .submenu {
  display: flex;
  animation: fadeInSubmenu 0.3s ease forwards;
}

@keyframes fadeInSubmenu {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.header {
  position: relative;
  z-index: 3000; 
}

.nav-menu {
  position: relative;
  z-index: 3100;
}

.menu-item.talleres .submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  border: 2px solid #02326c;
  display: none;
  flex-direction: column;
  width: 180px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 3200; /* más alto que el carrusel */
}

.menu-item.talleres:hover .submenu {
  display: flex;
  animation: fadeInSubmenu 0.3s ease forwards;
}

/* =========================
  SECCIÓN SEDES
========================= */
.sedes-section {
  width: 100%;
  padding: 60px 5%;
  background: #f6f6f6;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.sede {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.sede-carrusel {
  position: relative;
  width: 50%;
  overflow: hidden;
  border-radius: 10px;
}

.sede-carousel-container img {
  width: 100%;
  display: none;
  border-radius: 10px;
  transition: opacity 0.5s ease-in-out;
}

.sede-carousel-container img.active {
  display: block;
  opacity: 1;
}

.sede-prev, .sede-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  border: none;
  font-size: 30px;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 50%;
}

.sede-prev { left: 10px; }
.sede-next { right: 10px; }

.sede-info {
  width: 45%;
  color: #042754;
}

.sede-info h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.sede-info h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #0099cc;
}

.sede-info p {
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .sede {
    flex-direction: column;
  }
  .sede-carrusel, .sede-info {
    width: 100%;
  }
}

/* ===== Carrusel de sedes mejorado ===== */
.sede-carrusel {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
}

.sede-carousel-container {
  display: flex;
  transition: transform 0.8s ease-in-out;
}

.sede-carousel-container img {
  width: 100%;
  flex-shrink: 0;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.sede-prev,
.sede-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px; 
  z-index: 10;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.sede-prev img,
.sede-next img {
  width: 40px;
  height: 40px;
  filter: none; 
}

.sede-prev { left: 10px; }
.sede-next { right: 10px; }
/* =========================
   Corrección de orden móvil
========================= */
@media (max-width: 900px) {
  .sede {
    flex-direction: column !important; 
    align-items: center;
    text-align: center;
  }

  .sede-carrusel,
  .sede-info {
    width: 100%;
  }

  .sede-2 {
    flex-direction: column !important;
  }

  .sede-info {
    margin-top: 20px;
  }
}

/* =========================
   Temáticas por sede
========================= */

.sede-1 .sede-info h2 {
  color: #005bbb;
}
.sede-1 .sede-info h3 {
  color: #0099cc; 
}
.sede-1 .sede-info p {
  color: #033b66; 
}

.sede-2 .sede-info h2 {
  color: #b30000; 
}
.sede-2 .sede-info h3 {
  color: #ff4444; 
}
.sede-2 .sede-info p {
  color: #661414;
}

.sede-3 .sede-info h2 {
  color: #0b8a00;
}
.sede-3 .sede-info h3 {
  color: #00cc44; 
}
.sede-3 .sede-info p {
  color: #064e26; 
}

/* =========================
   Imagen de mapa debajo del texto
========================= */

.mapa-link {
  display: inline-block;
  margin-top: 15px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mapa-link img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
}


.mapa-link:hover {
  transform: scale(1.03);
}

@media (max-width: 900px) {
  .mapa-link img {
    max-width: 100%;
  }
}

/* =========================
   Tamaños del mapa por breakpoints
========================= */

/* Máximo 700px */
@media (max-width: 700px) {
  .mapa-link img {
    max-width: 300px;
  }
}

/* Máximo 600px */
@media (max-width: 600px) {
  .mapa-link img {
    max-width: 250px;
  }
}

/* Máximo 500px */
@media (max-width: 500px) {
  .mapa-link img {
    max-width: 200px;
  }
}

/* Máximo 400px */
@media (max-width: 400px) {
  .mapa-link img {
    max-width: 150px;
  }
}


/* Animación de hover para flechas del carrusel */
.sede-prev img,
.sede-next img {
  transition: transform 0.25s ease, filter 0.25s ease;
}

/* Efecto al poner el mouse */
.sede-prev:hover img,
.sede-next:hover img {
  transform: scale(1.15); /* Agranda */
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.3)); /* Glow */
}

/* =========================
   SECCIÓN GALERÍA
========================= */
.galeria-section {
  background-color: #042754;
  color: white;
  padding: 80px 5%;
  text-align: center;
}

.galeria-titulo {
  font-size: 2rem;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.galeria-filtros {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.galeria-filtros button {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.6);
  color: white;
  padding: 10px 22px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.28s ease;
}

.galeria-filtros button:hover,
.galeria-filtros button.activo {
  background: #ffffff;
  color: #042754;
  border-color: #ffffff;
}


.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: start;

  transition: grid-template-rows 0.4s ease;
}

.galeria-grid-wrapper {
  transition: height 0.6s ease;
  overflow: hidden;
  height: auto;
}

.galeria-grid-wrapper.animando {
  transition: height 0.6s ease;
}

.galeria-section {
  background-color: #042754;
  color: white;
  padding: 60px 5% 70px; 
  text-align: center;
}

.galeria-item {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  transform-origin: center top;
  transition: transform 0.45s cubic-bezier(.2,.9,.2,1), opacity 0.35s ease;
  opacity: 1;
}

.galeria-item img {
  display: block;
  width: 100%;
  height: 220px; 
  object-fit: cover;
}

.galeria-item.oculto {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  pointer-events: none;
}

@media (max-width: 992px) {
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .galeria-item img { height: 200px; }
}

/* Responsive: 1 column */
@media (max-width: 600px) {
  .galeria-grid {
    grid-template-columns: 1fr;
  }
  .galeria-item img { height: 180px; }
}

/* =========================
  BOTÓN "GALERÍA" ABAJO
========================= */
.galeria-ver-mas {
  margin-top: 40px;
  text-align: center;
}

.galeria-boton {
  display: inline-block;
  background-color: #ffffff;
  color: #042754;
  padding: 14px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 35px;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.galeria-boton:hover {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-3px);
}


/* Animación inicial al aparecer */
.galeria-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

.galeria-item:nth-child(1) { animation-delay: 0.05s; }
.galeria-item:nth-child(2) { animation-delay: 0.10s; }
.galeria-item:nth-child(3) { animation-delay: 0.15s; }
.galeria-item:nth-child(4) { animation-delay: 0.20s; }
.galeria-item:nth-child(5) { animation-delay: 0.25s; }
.galeria-item:nth-child(6) { animation-delay: 0.30s; }
.galeria-item:nth-child(7) { animation-delay: 0.35s; }
.galeria-item:nth-child(8) { animation-delay: 0.40s; }
.galeria-item:nth-child(9) { animation-delay: 0.45s; }
.galeria-item:nth-child(10) { animation-delay: 0.50s; }
.galeria-item:nth-child(11) { animation-delay: 0.55s; }
.galeria-item:nth-child(12) { animation-delay: 0.60s; }
.galeria-item:nth-child(13) { animation-delay: 0.65s; }
.galeria-item:nth-child(14) { animation-delay: 0.70s; }
.galeria-item:nth-child(15) { animation-delay: 0.75s; }
.galeria-item:nth-child(16) { animation-delay: 0.80s; }

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

.galeria-item img {
  transition: transform 0.45s ease, filter 0.3s ease;
}

.galeria-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.15);
}

/* PRESENTACIÓN */
.presentacion-section {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
}

.presentacion-contenido {
  max-width: 900px;
  margin: 0 auto;
}

.titulo-azul {
  color: #07437a;
  font-size: 2rem;
  margin-bottom: 0.2em;
  font-family: 'Rangile', sans-serif;
}

.titulo-celeste {
  color: #3cb5fe;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5em;
  font-family: 'Sansita One', sans-serif;
}

.descripcion {
  color: #000;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  font-family: 'Martian Mono', sans-serif;
}

.video-container {
  max-width: 800px;
  margin: 0 auto 2rem;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-link {
  display: inline-block;
  margin-top: 40px; 
}

.whatsapp-link img {
  width: 400px;           
  max-width: 90%;        
  height: auto;           
  transition: transform 0.3s ease;
}

.whatsapp-link img:hover {
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .whatsapp-link img {
    width: 250px;        
  }
}

@media (max-width: 480px) {
  .whatsapp-link img {
    width: 200px;         
  }
}

.whatsapp-flotante {
  position: fixed;
  bottom: 25px;   
  right: 25px;   
  z-index: 1000;  
}

.whatsapp-flotante img {
  width: 150px;    
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.whatsapp-flotante img:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

.header {
  display: flex;
  justify-content: center; 
  align-items: center;   
}

@media (max-width: 768px) {
  .whatsapp-flotante img {
    width: 90px;   
  }

  .whatsapp-flotante {
    bottom: 15px; 
    right: 15px;   
  }
}

@media (max-width: 480px) {
  .whatsapp-flotante img {
    width: 100px;   
  }
}


/* =========================
  PIE DE PÁGINA
========================= */
.footer {
  background: #042754;
  color: #fff;
  padding: 60px 20px 20px;
  font-family: "Poppins", sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo img {
  width: 130px;
  margin-bottom: 10px;
}

.footer-logo p {
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0.9;
}

.footer h3 {
  color: #00bfff;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer ul li img {
  width: 18px;
  margin-right: 8px;
}

.footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: #00bfff;
}

.redes-iconos {
  display: flex;
  gap: 12px;
}

.redes-iconos img {
  width: 28px;
  transition: transform 0.3s, filter 0.3s;
}

.redes-iconos img:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 40px;
  padding-top: 15px;
  font-size: 0.85rem;
  opacity: 0.8;
}

@media (max-width: 700px) {
  .footer {
    padding: 40px 20px;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
}

@media (max-width: 450px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer ul li {
    justify-content: center;
  }

  .redes-iconos {
    justify-content: center;
  }
}

/* =========================
  SECCIÓN PRESENTACIÓN
========================= */
.presentacion-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  text-align: center;

  background-image: url("../../img/academia/fondo-presentacion.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll; 
}

.presentacion-contenido {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.presentacion-contenido {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  margin-top: -60px; 
}

@media (max-width: 768px) {
  .galeria-filtros button[data-filter="todo"] {
    display: none;
  }
}
