
/* FUENTES*/
/* Avenir LT Std 45 Book */
/* FUENTES */
@font-face {
  font-family: 'Avenir LT Std';
  src: url('../sources/fonts/avenir/AvenirLTStd-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bell MT';
  src: url('../sources/fonts/bellmt/BellMT.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Random Wednesday';
  src: url('../sources/fonts/random_wednesday/RandomWednesday.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Base */
body {
  font-family: 'Random Wednesday', cursive;
  margin: 0;
  background-color: #f2f2f2;
  color: #1c242a;
}
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Para evitar scroll horizontal inesperado */
}

h1, h2 {
  font-family: 'Bell MT', serif;
}

p{
  font-family: 'Avenir LT Std', sans-serif;
}

a{
  font-family: 'Bell MT', serif;
  text-decoration: none;
}

/* Contenedor general centrado */
.main-container {
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  width: 100%;
  height: 100%;  
 background: linear-gradient(-45deg, #FFAB2D, #FFE640, #8DD5ED, #073D64);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Nav general */
header.header-secundario nav {
  background: #fff;
  display: flex;
  justify-content: space-between; /* separa logos y links */
  align-items: center;
  padding: 1rem 2rem;
}

.nav-logos img {
  height: 50px; /* controla el tamaño de los logos */
  margin-right: 10px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

header.header-secundario nav a {
  color: #333;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  font-family: 'Bell MT', serif; /* 🔹 Esto faltaba */
}


/* Contenedor de logos */
.nav-logos {
  display: flex;
  gap: 1rem; /* separación entre los dos logos */
  align-items: center;
}

.nav-logos .logo {
  height: 70px; /* controla el alto de los logos */
  width: auto;
  display: block;
}

/* Contenedor de links */
.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #333;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
}

.nav-links a.activo {
  color: #f7c948;
}

/*Cursos destacados*/

img.img-cb {
  min-height: 200px;
  max-height: 200px;
}

div.curso p {
  margin-top: 30px;
}

.contenedor-eventos-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3.5rem;
  margin: 2rem 2rem;
}

.card{
  width:360px;
  background:#fff;
  border-radius:15px;
  box-shadow:0 5px 20px rgba(0,0,0,.1);transition:.3s;
  font-family:'Segoe UI',sans-serif;
  margin:20px auto;
  overflow:hidden;
  position:relative;
  cursor:pointer}

.card:hover{transform:translateY(-5px);box-shadow:0 10px 25px rgba(0,0,0,.15)}

.badge{position:absolute;
  top:10px;
  right:10px;
  background: linear-gradient(to right,  rgba(169,3,41,1) 0%,rgba(196,72,72,1) 44%,rgba(170,34,56,1) 100%);
  color:#fff;padding:5px 10px;
  font-size:11px;
  font-weight:600;
  letter-spacing:1px;
  text-transform:uppercase;
  border-radius:10px;
  box-shadow:0 3px 10px rgba(0,0,0,.2);z-index:10}

.tilt{overflow:hidden}
.img{height:350px;
  overflow:hidden}
.img img{width:100%;
  height:auto;
  object-fit:cover;
  transition:transform .5s}
  
.card:hover .img img{transform:scale(1.05)}

.info{padding:20px}
.title{font-size:18px;
  font-weight:700;
  color:#18181B;
  margin:0 0 10px;
  letter-spacing:-.5px}

.desc{font-size:13px;
  color:#52525B;
  line-height:1.4;
  margin-bottom:12px}

.bottom{display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px}

.btn{background:linear-gradient(45deg,#18181B,#27272A);
  color:#fff;
  border:none;
  border-radius:10px;
  padding:8px 15px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:6px;
  transition:.3s;
  box-shadow:0 3px 10px rgba(0,0,0,.1)}

.btn:hover{
  transform:translateY(-2px);
  box-shadow:0 5px 15px rgba(0,0,0,.15)}

.btn:before{content:'';
  position:absolute;
  top:0;left:-100%;
  width:100%;
  height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.1),transparent);transition:.5s}
.btn:hover:before{left:100%}
.icon{transition:transform .3s}
.btn:hover .icon{transform:rotate(-10deg) scale(1.1)}
@media (max-width:400px){.card{width:90%}.title{font-size:16px}.img{height:180px}.bottom{flex-direction:column;align-items:flex-start;gap:10px}.price{margin-bottom:5px}.btn{width:100%;justify-content:center}}


/* Contenedor de la tarjeta de evento */
.event-card {
  
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Imagen del evento */
.event-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Información del evento */
.event-info {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.5rem;
  justify-content: space-between; /* Distribuye el contenido arriba y abajo */
  border-radius: 1rem;
  height: 100%;
  align-items: flex-start;
  flex: 1;
}

/* Contenido de texto */
.content-evento p {
  margin: 0.5rem 0;
}

/* Botón de inscripción */
.event-button {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  padding: 0.6rem 1.2rem;
  background-color: #ffe640; 
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  transition: background-color 0.3s ease;
  align-self: center;
  display: inline-block;
  border-radius: 999px;
  font-weight: bold;
  font-size: 0.9rem;
}

.event-card:hover {
  transform: scale(1.03);
}

.event-button:hover {
  background-color: #ea580c; /* Naranja más oscuro */
}

.event-card .event-button:hover {
  background-color: #ffab2d;
}

/* Evento en página de inicio - más compacto */
.event-card.compacto {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  border: 1px solid #ccc;
  border-radius: 1rem;
  background-color: #f9f9f9;
  max-width: 100%;
  height: 200px;
  margin: 10px;
}

.event-card.compacto img {
  width: 180px;
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.event-card.compacto .event-info h2 {
  font-size: 1.2rem;
}

.event-card.compacto .event-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.event-card.compacto .event-button {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.9rem;
}

/* Contenedor del botón de eventos en la página de inicio */
.contenedor-boton-eventos {
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

.btn-inscribirme {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  background: #ffe640;
  color: #fef9cf;
  margin: 0 auto;
  border-radius: 25px;
  text-decoration: none;
  transition: background-color .3s;
  width: auto;
}

.btn-inscribirme a {
  color: #1c242a;
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
}

.btn-inscribirme:hover {
  background-color: #e65500;
}

/* Hero cursos */
.hero-cursos {
  text-align: center;
  padding: 3rem 1rem;
  background: rgba(255, 255, 255, 0.30);
  align-items: center;
}

.hero-cursos h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  align-self: center;
}

.hero-cursos p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.filtros {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.filtro {
  background: #ffab2d;
  color: #1c242a;
  border: none;
  padding: .75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color .3s;
}

.filtro.activo,
.filtro:hover {
  background: #f7c948;
}

/* Sidebar filtros */
.sidebar-filtros {
   width: 25%;
  flex: 0 0 20%;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.sidebar-filtros h3 {
  margin-top: 0;
  color: #1c242a;;
  font-size: 2rem;
  margin-bottom: 1rem;
  font-family: 'Avenir LT Std', sans-serif;
}

.filtro-grupo {
  margin-bottom: 1.5rem;
}

.filtro-grupo strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #1c242a;;
  font-size: 25px;
  border-bottom: 1px solid #1C242A;
  font-family: 'Avenir LT Std', sans-serif;
}

.filtro-grupo label {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  margin-bottom: 8px;
  cursor: pointer;
  color: #1C242A;
  font-family: 'Avenir LT Std', sans-serif;
}

.filtro-grupo input[type="checkbox"] {
  margin-right: 0.4rem;
}

.sidebar-filtros input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #073D64;
  border-radius: 4px;
  margin-right: 8px;
  position: relative;
  cursor: pointer;
  background-color: #fff;
  transition: all 0.2s ease;
  display: inline-block;
  vertical-align: middle;
}

.sidebar-filtros input[type="checkbox"]:checked {
  background-color: #073D64;
  border-color: #073D64;
}

.sidebar-filtros input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sidebar-filtros input[type="checkbox"]:checked::after {
  opacity: 1;
}



/* Grid cursos*/
.cursos-container {
  display: flex;
  justify-content: space-between;
  padding: 20px;
}

.grid-cursos {
  width: 70%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: start; /* Evita estiramiento vertical */
  min-height: 500px;
}
.curso-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.curso-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  color: white;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 1rem;
  color: #1c242a;;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-notfit img {
  height: 350px !important;   /* evita que se deforme */        /* mismo alto que los demás */
  width: 100% !important;
  object-fit: cover !important;        /* centra si sobra espacio */
}

.curso-card-content {
  position: relative;
  z-index: 2; /* para que quede encima de la opacidad */
  padding: 20px;
}

.curso-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.curso-icono {
  width: 58px;
  height: 58px;
  margin-bottom: 10px;
}

.curso-card img {
   max-width: 100%;
  border-radius: 0.5rem;
  margin-bottom: 0.8rem;
}

.curso-card h2 {
  font-size: 1.5rem;
  margin-bottom: .5rem;
  margin: 0;
}

.curso-card .edad {
  font-size: 1rem;
  margin-bottom: .75rem;
  color: #333;
}

.curso-card p {
  font-size: 1rem;
  color: #333;
  margin: 0.2rem 0;
}

.curso-card .btn-inscribirme {
  margin-top: 20px;
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #ffab2d;
  color: #fff;
  text-decoration: none;
  border-radius: 2rem;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background 0.3s ease;
}

.curso-card .btn-inscribirme:hover {
  background: #ffe640;
  color: #1c242a;
}

.curso-guitarraf {
  background-image: url("../sources/images/Guitarrafuncional.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* Estilo general */
.eventos .evento {
  padding: 16px;
  font-size: 1rem;
}

/* Estilo específico para la página de inicio */
.eventos-inicio .evento {
  max-width: 400px;
  font-size: 0.9rem;
}

/* Estilo específico para la página eventos.html */
.eventos-detalle .evento {
  max-width: 800px;
  font-size: 1.1rem;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Sección Banner */

.banner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch; /* esto hace que ambas columnas midan igual */
  background: linear-gradient(135deg, #073d64, #116899);
  padding: 0;
  color: #fef9cf;
  position: relative;
  height: 500px; 
}

.banner-content {
  flex: 1;
  padding: 2px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  animation: fadeInUp 1.2s ease-out forwards;
  gap: 20px;
}

.banner-content h1{
  font-size: 66px;
  margin-bottom: 40px;
  color: #FEF9CF;
  text-shadow: 2px 2px #1C242A;
}

.banner-image {
  flex: 1;
  overflow: hidden;
}

.banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Botón CTA */
.cta {
 
  align-self: center;
  background-color: #fef9cf;
  padding: 15px 30px;
  border-radius: 25px;
  color: #1c242a;
  font-weight: bold;
  text-decoration: none;
  align-self: flex-start;
}

.cta:hover {
  background-color: #e6b038;
}


@media (max-width: 768px) {
  
  .banner {
    flex-direction: column;
    text-align: center;
    padding: 30px 15px;
  }

  .banner-content,
  .banner-image {
    padding: 0;
  }

  .banner-content h1 {
    font-size: 1.8rem;
  }

  .cta {
    margin-left: 0;          /* elimina margen lateral */
    align-self: center;      /* asegura que se centre en flex container */
    text-align: center;      /* centra texto interno si es link */
    display: inline-block;   /* necesario si es <a> para centrarlo correctamente */
  }
}


.banner-cursos {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #073d64;
  padding: 50px 20px;
  color: white;
  margin-top: 60px;
  position: relative;
}


/* ===== Estilo glassmorphism para tarjetas de cursos en index ===== */
/* Contenedor general */
.cursos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 2rem 1rem;
  margin: 0 auto;
  gap: 1.5rem;
  justify-content: center;
}

/* Tarjetas de curso con efecto glass */
.curso {
  position: relative;
  width: 180px;
  height: 200px;
  background: linear-gradient(#fff2, transparent);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
  border-radius: 10px;
  margin: 0 -30px;
  backdrop-filter: blur(10px);
  transform: rotate(calc(var(--r) * 1deg));
  flex-shrink: 0;
  text-align: center;
  transform: rotate(calc(var(--r) * 1deg));
}

.curso:nth-child(1) { animation-delay: 0.1s; }
.curso:nth-child(2) { animation-delay: 0.2s; }
.curso:nth-child(3) { animation-delay: 0.3s; }
.curso:nth-child(4) { animation-delay: 0.4s; }
.curso:nth-child(5) { animation-delay: 0.5s; }

@keyframes enterCard {
  to {
    transform: rotateX(0deg) rotateZ(0deg) scale(1);
    opacity: 1;
  }
}


/* Estilo visual */
.glass-icon-card {
  width: 180px;
  height: 200px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  color: #fef9cf;
  text-align: center;
  padding: 20px;
  transition: transform 0.5s ease, margin 0.5s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.cursos:hover .glass-icon-card {
  transform: rotate(0deg);
  margin: 0 10px;
}

/* Título */
.curso h2 {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
   font-size: 1.2rem !important;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}



/* Íconos */
.curso-icon {
  font-size: 3rem;
  color: white;
}

.curso-icon {
  width: 130px;
  height: 130px;
  margin-bottom: 12px;
}



/* Sección de Eventos */
.eventos h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 20px;
}

.evento {
  display: flex;
  margin-bottom: 30px;
}

.fecha {
  background-color: #ffab2d;
  padding: 20px;
  border-radius: 10px;
  width: 80px;
  text-align: center;
  font-size: 24px;
}

.evento-detalle {
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  margin-left: 20px;
  flex-grow: 1;
}


/* Botón de WhatsApp */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  padding: 20px;
  border-radius: 50%;
}

.whatsapp-button img {
  width: 40px;
  height: 40px;
}

/* Footer eventos */
.eventos-footer {
  background-color: #073d64;
  padding: 40px 60px;
  display: flex;
  justify-content: center;
}


/* EVENTOS */

.hero-section {
  background-color: #ffb940;
  padding: 4rem 1rem 2rem;
  text-align: center;
  color: white;
}

.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

.event-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3rem 1rem;
  max-width: 960px;
  margin: 0 auto;
}

.event-card {
  background-color: white;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.event-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.content-evento{
    margin-top: 50px;
    margin-bottom: 50px;
}
.event-info h3 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  align-self: center;
}

.event-info p {
  margin: 0.25rem 0;
  font-size: 1.4rem;
  align-self: center;
}

.event-button {
  margin-top: auto; /* Empuja el botón hacia abajo */
  display: flex;
  justify-content: flex-end;
  align-self: start;
  padding: 0.5rem 1.2rem;
  background-color: #fbc02d;
  color: #fff;
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.event-button:hover {
  background-color: #e6a931;
}

/* Responsive layout */
@media (min-width: 768px) {
  .event-card {
    flex-direction: row;
  }

  .event-card img {
    width: 40%;
    height: auto;
    border-bottom: none;
    border-right: 1px solid #eee;
  }

  .event-info {
    width: 60%;
  }
}

/* NOSOTROS*/

/* ===== Sección Nosotros ===== */

.nosotros-hero {
   display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-height: 500px; /* puedes ajustar esta altura */
  overflow: hidden;
  gap: 2rem;
  background: #ffab2d;
}

.nosotros-hero .hero-texto h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  margin: 40px;
  color: #fef9cf;
  justify-content: center;
}

.nosotros-hero .hero-texto p {
  font-size: 1.5rem;
  color: #fff;
  margin: 40px;
  justify-content: center;
}

.nosotros-hero .hero-img img {
  width: 100%;
  height: auto;
}

.hero-img img,
.historia-img img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
}


/* Historia */

.historia-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: #FEF9CF;
  gap: 2rem;
  align-items: center;
}

.historia-texto h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  margin: 40px;
}

.historia-texto p {
  font-size: 1rem;
  margin-bottom: 2.5rem;
  margin: 40px;
}

.historia-btn {
  margin: 40px;
  background-color: #f4c542;
  color: #000;
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

.historia-btn:hover {
  background-color: #e6b800;
}

.historia-img img {
  width: 100%;
  height: auto;
}


/* Misión y Visión */

.mision-vision-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  background-color: #fef9cf;
  padding: 2rem;
}

.info-card {
  background-color: white;
  border-radius: 1rem;
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.info-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.info-card p {
  font-size: 1rem;
  flex: 1;
  margin-bottom: 4rem; /* deja espacio para el botón */
}

.info-card .historia-btn {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
}

.aliados-slider {
  padding: 10px;
  background-color: #073D64;
  height: 120px;
  overflow: hidden;
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.aliados-track {
  display: flex;
  width: max-content;
  animation: aliados-scroll 30s linear infinite;
  gap: 80px;
}

.aliado {
  flex: 0 0 auto;
  width: 200px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.aliado img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

@keyframes aliados-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes aliados-reset-scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.cta-nosotros {
  background-color: #ffb92e;
  text-align: center;
  padding: 3rem 1rem;
  color: white;
  position: relative;
}

.cta-nosotros h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-nosotros p {
  font-size: 1.25rem;
}

.whatsapp-fab {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 50px;
  height: 50px;
  display: inline-block;
}

.whatsapp-fab img {
  width: 100%;
  height: 100%;
}

/* ===== Responsividad ===== */

@media screen and (max-width: 768px) {
  .nosotros-hero,
  .historia-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .info-card .historia-btn {
    position: static;
    margin-top: auto;
    align-self: center;
  }

  .info-card p {
    margin-bottom: 1rem;
  }

  .whatsapp-fab {
    position: static;
    margin-top: 2rem;
  }
}
/* === Advanced Responsive Improvements === */
@media (max-width: 1200px) {
  .container {
    max-width: 95vw;
    padding: 10px;
  }
  
}

@media (max-width: 992px) {
  .grid-cursos {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .sidebar-filtros {
    width: 100%;
    margin-bottom: 2rem;
    box-shadow: none;
  }
  .cursos-container {
    flex-direction: column;
    gap: 2rem;
    padding: 10px;
  }
}

@media (max-width: 768px) {
  .main-container {
    padding: 0 5px;
  }
  .nav-links {
    flex-direction: column;
    gap: 1rem;
    background: #fff;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100vw;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 100;
    display: none;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-logos img {
    height: 40px;
  }
  header.header-secundario nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  .banner-content h1 {
    font-size: 2rem;
  }
  .banner {
    height: auto;
    min-height: 300px;
  }
  .curso-card {
    min-height: 180px;
    padding: 0.5rem;
  }
  .curso-card h2 {
    font-size: 1.1rem;
  }
  .curso-card p {
    font-size: 0.9rem;
  }
  .event-card img {
    height: 120px;
  }
  .event-info h3 {
    font-size: 1.2rem;
  }
  .event-info p {
    font-size: 1rem;
  }
  .event-card.compacto {
    flex-direction: column;
    height: auto;
    max-width: 100%;
  }
  .event-card.compacto img {
    width: 100%;
    height: 120px;
  }
  .contenedor-eventos-home {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 0.5rem 0;
  }
  .cursos {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 0;
    flex-wrap: wrap;
  }
  .glass-icon-card {
    width: 90vw;
    height: 140px;
    margin: 10px auto;
    font-size: 0.9em;
  }
  .curso h2, .glass-icon-card h2 {
    font-size: 0.9rem;
    padding: 8px;
  }
}

@media (max-width: 480px) {
  body, html {
    font-size: 15px;
  }
  .banner-content h1 {
    font-size: 1.2rem;
  }
  .curso-card {
    min-height: 120px;
    padding: 0.3rem;
  }
  .curso-card h2 {
    font-size: 0.9rem;
  }
  .curso-card p {
    font-size: 0.8rem;
  }
  .event-card img {
    height: 80px;
  }
  .event-info h3 {
    font-size: 1rem;
  }
  .event-info p {
    font-size: 0.8rem;
  }
  .glass-icon-card {
    height: 100px;
    font-size: 0.8em;
  }
}

/* ==== Contacto ==== */

.contacto-banner {
  color: #1c242a;
  text-align: center;
  padding: 4rem 1rem;
}

.contacto-banner h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.contacto-form {
  background: white;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.contacto-form h2 {
  color: #1c242a;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-align: left;
}

.contacto-form .input-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contacto-form .input-group input {
  flex: 1;
}

@media (min-width: 600px) {
  .contacto-form .input-group {
    flex-direction: row;
  }
}

.contacto-form input,
.contacto-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  background: #fbf7cc;
  border-radius: 30px;
  font-size: 1rem;
  color: #1c242a;
}

.contacto-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contacto-form button {
  background-color: #f5c540;
  color: #1c242a;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1rem;
  margin-top: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contacto-form button:hover {
  background-color: #e2b930;
}
.contacto-form .campo-asunto {
  margin-bottom: 1rem;
}

/* ==== Ubicación ==== */

.contacto-ubicacion {
  padding: 3rem 1rem;
  text-align: center;
  color: #1c242a;
}

.contacto-ubicacion h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.mapa-container {
  max-width: 600px;
  margin: 0 auto;
}

.main-container-contacto{
  
  background-color: #FFAB2D;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 1600 800'%3E%3Cg %3E%3Cpath fill='%23ffb831' d='M486 705.8c-109.3-21.8-223.4-32.2-335.3-19.4C99.5 692.1 49 703 0 719.8V800h843.8c-115.9-33.2-230.8-68.1-347.6-92.2C492.8 707.1 489.4 706.5 486 705.8z'/%3E%3Cpath fill='%23ffc435' d='M1600 0H0v719.8c49-16.8 99.5-27.8 150.7-33.5c111.9-12.7 226-2.4 335.3 19.4c3.4 0.7 6.8 1.4 10.2 2c116.8 24 231.7 59 347.6 92.2H1600V0z'/%3E%3Cpath fill='%23ffd038' d='M478.4 581c3.2 0.8 6.4 1.7 9.5 2.5c196.2 52.5 388.7 133.5 593.5 176.6c174.2 36.6 349.5 29.2 518.6-10.2V0H0v574.9c52.3-17.6 106.5-27.7 161.1-30.9C268.4 537.4 375.7 554.2 478.4 581z'/%3E%3Cpath fill='%23ffdb3c' d='M0 0v429.4c55.6-18.4 113.5-27.3 171.4-27.7c102.8-0.8 203.2 22.7 299.3 54.5c3 1 5.9 2 8.9 3c183.6 62 365.7 146.1 562.4 192.1c186.7 43.7 376.3 34.4 557.9-12.6V0H0z'/%3E%3Cpath fill='%23FFE640' d='M181.8 259.4c98.2 6 191.9 35.2 281.3 72.1c2.8 1.1 5.5 2.3 8.3 3.4c171 71.6 342.7 158.5 531.3 207.7c198.8 51.8 403.4 40.8 597.3-14.8V0H0v283.2C59 263.6 120.6 255.7 181.8 259.4z'/%3E%3Cpath fill='%23feea5d' d='M1600 0H0v136.3c62.3-20.9 127.7-27.5 192.2-19.2c93.6 12.1 180.5 47.7 263.3 89.6c2.6 1.3 5.1 2.6 7.7 3.9c158.4 81.1 319.7 170.9 500.3 223.2c210.5 61 430.8 49 636.6-16.6V0z'/%3E%3Cpath fill='%23feee7a' d='M454.9 86.3C600.7 177 751.6 269.3 924.1 325c208.6 67.4 431.3 60.8 637.9-5.3c12.8-4.1 25.4-8.4 38.1-12.9V0H288.1c56 21.3 108.7 50.6 159.7 82C450.2 83.4 452.5 84.9 454.9 86.3z'/%3E%3Cpath fill='%23fef296' d='M1600 0H498c118.1 85.8 243.5 164.5 386.8 216.2c191.8 69.2 400 74.7 595 21.1c40.8-11.2 81.1-25.2 120.3-41.7V0z'/%3E%3Cpath fill='%23fef5b3' d='M1397.5 154.8c47.2-10.6 93.6-25.3 138.6-43.8c21.7-8.9 43-18.8 63.9-29.5V0H643.4c62.9 41.7 129.7 78.2 202.1 107.4C1020.4 178.1 1214.2 196.1 1397.5 154.8z'/%3E%3Cpath fill='%23FEF9CF' d='M1315.3 72.4c75.3-12.6 148.9-37.1 216.8-72.4h-723C966.8 71 1144.7 101 1315.3 72.4z'/%3E%3C/g%3E%3C/svg%3E");
background-attachment: fixed;
background-size: cover;
}
/* ==== WhatsApp Button ==== */

.btn-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  z-index: 1000;
}

.btn-whatsapp img {
  width: 100%;
  height: auto;
}

/* ==== Responsive Typography ==== */

@media (min-width: 768px) {
  .contacto-banner h1 {
    font-size: 2.5rem;
  }

  .contacto-form h2 {
    font-size: 1.4rem;
  }

  .contacto-ubicacion h2 {
    font-size: 1.8rem;
  }
}


/* Animaciones generales */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
  from { transform: scale(1.1); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Banner con animación */
.banner {
  animation: fadeInLeft 1s ease-out;
}

.banner img {
  animation: zoomIn 1.2s ease-out;
}

/* Botón con rebote */
.cta {
  transition: transform 0.3s;
}
.cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-4px);
}

/* Curso fade-in al aparecer */
.curso {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}
.curso.visible {
  opacity: 1;
  transform: translateY(0);
}

/* WhatsApp botón flotante */
.whatsapp-button img {
  animation: float 2s ease-in-out infinite;
}

.curso img {
  transition: transform 0.4s ease, box-shadow 0.3s ease;
  border-radius: 8px;
}

.curso:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.curso, .eventos {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background-color: #inherit;
  padding: 20px;
}


/* === SLIDER PRINCIPAL === */
.slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-content {
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  color: white;
  animation: fadeInUp 1s ease-out;
  
}

.slide-content h1 {
  font-size: 48px;
  padding-bottom: 20px;
  margin-bottom: 40px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8); /* Glow oscuro para mejor lectura */
}


.cta {
  background-color: #ffab2d;
  color: #1c242a;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  font-size: 18px;
  box-shadow: 0 5px 15px rgba(255, 171, 45, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
}

.cta:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 171, 45, 0.8);
}


.slider-controls {
  position: absolute;
  width: 100%;
  top: 50%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
  z-index: 2;
}

.slider-controls button {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffe640, #ffab2d);
  color: #1c242a;
  font-size: 22px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 10;
}

.slider-controls button:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 25px rgba(255, 171, 45, 0.6);
  background: linear-gradient(145deg, #ffab2d, #ffe640);
}

.slider-controls button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slider-controls button:hover::before {
  opacity: 1;
}

@keyframes fadeInCta {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta {
  animation: fadeInCta 1s ease-out 0.8s forwards;
  opacity: 0;
}


@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0px);
    opacity: 1;
  }
}


.slide1 {
  background-image: url('../sources/images/iniciacion_m.jpg');
}

.slide2 {
  background-image: url('../sources/images/slider2.jpg');
}

.slide3 {
  background-image: url('../sources/images/slider3.jpg');
}

.cursos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0; /* lo controlamos con margen en cada tarjeta */
  padding: 60px 0;
  position: relative;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 2rem 0;
}

.glass-icon-card {
  width: 180px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 25px 25px rgba(0, 0, 0, 0.25);
  color: #073d64;
  text-align: center;
  padding: 20px;
  transition: transform 0.5s ease, margin 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Posiciones iniciales tipo abanico */
.glass-icon-card:nth-child(1) {
  transform: rotate(-30deg);
  margin-right: -40px;
}
.glass-icon-card:nth-child(2) {
  transform: rotate(-15deg);
  z-index: 2;
}
.glass-icon-card:nth-child(3) {
  transform: rotate(0deg);
  margin-left: -40px;
  z-index: 10;
}
.glass-icon-card:nth-child(4) {
  transform: rotate(15deg);
  margin-left: -40px;
}
.glass-icon-card:nth-child(5) {
  transform: rotate(30deg);
  margin-left: -40px;
}


/* Al pasar el mouse por el contenedor, se alinean al centro */
.cursos:hover .glass-icon-card {
  transform: rotate(0deg);
  margin: 0 10px;
}

/* Icono dentro de la tarjeta */
.curso-icon {
  font-size: 2.5em;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
  color: #1C242A;
}

/* Animación extra al ícono si se desea */
.glass-icon-card:hover .curso-icon {
  transform: scale(1.1);
}

/* Título del curso */
.glass-icon-card h2 {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 10px 10px 10px 10px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: #1C242A;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  backdrop-filter: blur(4px);
}

  /* Contenedor principal */
.calendar-container {
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.20);
    color: #1C242A;
    padding: 20px;
    border-radius: 8px;
}

/* Barra superior */
.calendar-container .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 20px;
}

/* Botón de fechas */
.calendar-container .calendar-button {
    background-color: #fef9cf;
    border: none;
    padding: 10px 20px;
    color: #1C242A;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    z-index: 10;
}

.calendar-container .calendar-button:hover {
    background-color: #008BB8;
}

/* Estilos para los eventos */
.calendar-container .events {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.calendar-container .event-card {
    background-color: #fef9cf;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.calendar-container .event-image {
    width: 100%;
    height: 200px; /* Asegura que la imagen tenga altura completa */
    background-color: #e2e2e2;
    border-radius: 8px;
    margin-bottom: 10px;
    background-size: cover;
    background-position: center;
    filter:opacity(0.5); /* Efecto de difuminado en la imagen */
}

.calendar-container .event-title {
  padding: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #1C242A;
    margin-bottom: 10px;
}

.calendar-container .event-location,
.event-date {
  padding: 20px;
    font-size: 18px;
    color: #1C242A;     
}

.calendar-container .event-footer {
  padding: 20px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.calendar-container .event-register-btn {
    background-color: #FFAB2D;
    border: none;
    padding: 10px 20px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
}

.calendar-container .event-register-btn:hover {
    background-color: #008BB8;
}

/* Modal para el calendario */
.calendar-container .calendar-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 100; /* Asegura que el modal tenga la capa encima pero no bloquee el botón */
}

.calendar-container .calendar-popup {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    max-width: 100%;
    position: relative;
    background-image: url('https://via.placeholder.com/1200x400'); /* Imagen de fondo */
    background-size: cover;
    background-position: center;
}

/* Efecto de "blur" en el fondo */
.calendar-container .calendar-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0; /* Transparencia *//* Efecto de blur */
    z-index: 1;
}

/* Calendario */
.calendar-container .calendar {
    margin-top: 20px;
    font-size: 14px;
    z-index: 2;
}

.calendar-container .calendar-month {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    z-index: 2;
}

/* Calendario */
.calendar-container .calendar-table {
    width: 100%;
    border-collapse: collapse;
    z-index: 2;
}

.calendar-container .calendar-table th, .calendar-table td {
    width: 14%;
    text-align: center;
    padding: 10px;
    color: #0046A5;
}

.calendar-container .calendar-table th {
    background-color: #0046A5;
    color: white;
}

.calendar-container .calendar-table td {
    cursor: pointer;
    transition: background-color 0.3s;
}

.calendar-container .calendar-table td:hover {
    background-color: #d3d3d3;
    color: black;
}

.calendar-container .calendar-table td.active {
    background-color: #00A3E0;
    color: white;
}

/* ==== Calendario ==== */
.calendar-day {
  cursor: pointer;               /* Que el mouse cambie al pasar por encima */
  transition: background 0.2s ease, color 0.2s ease;
}

.calendar-day:hover {
  background-color: #ffe680;     /* Color al pasar el mouse */
}

.calendar-day.selected {
  background-color: #ffab2d;     /* Fondo cuando el día está seleccionado */
  color: #fff;                   /* Texto en blanco */
  border-radius: 6px;            /* Bordes redondeados */
}


/* Cerrar el modal */
#close-calendar-modal {
    background-color: #FF4C4C;
    padding: 10px 15px;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    z-index: 2;
}

#close-calendar:hover {
    background-color: #FF2A2A;
}

.calendar-day {
    cursor: pointer;
    transition: background 0.2s;
}
.calendar-day.active {
    background: #e0e0e0;
    font-weight: bold;
}
.calendar-day.has-event {
    background: #ffe0b2;
    border-radius: 50%;
}

/* SOLO para cards de eventos en el inicio: igual tamaño que las cards de cursos */
.eventos-inicio .event-card {
  max-width: 560px;
  min-width: 320px;
  width: 100%;
  margin: 20px auto;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,.1);
  font-size: 1rem;
  overflow: hidden;
  background: #fff;
}

.eventos-inicio .event-card img {
  height: 300px;
  object-fit: cover;
  width: 100%;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.eventos-inicio .event-info {
  padding: 20px;
}

.eventos-inicio .event-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: #18181B;
  margin: 0 0 10px;
  letter-spacing: -.5px;
}

.eventos-inicio .event-info {
  min-width: 200px;
}

.eventos-inicio .event-info p {
  font-size: 13px;
  color: #52525B;
  line-height: 1.4;
  margin-bottom: 12px;
}

.eventos-inicio .btn-inscribirme {
  background: linear-gradient(45deg,#18181B,#27272A);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: .3s;
  box-shadow: 0 3px 10px rgba(0,0,0,.1);
  margin: 0 auto;
  width: auto;
  text-decoration: none;
  justify-content: center;
}

.eventos-inicio .btn-inscribirme:hover {
  background: linear-gradient(45deg,#27272A,#3F3F46);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,.15);
}

/* Ajusta el grid para que las cards sean como las de cursos */
.contenedor-eventos-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 1rem 0;
}


/* ===== FIX CALENDARIO: asegurar clics y visibilidad ===== */
#calendar { position: relative; z-index: 9999; }

#calendar .calendar-table td,
#calendar .calendar-table th {
  padding: 6px;
  text-align: center;
  vertical-align: middle;
}

#calendar .calendar-day {
  cursor: pointer;
  position: relative;
}

/* Forzar que el botón dentro de la celda reciba clicks y quede visible encima de overlays */
#calendar .calendar-day button {
  pointer-events: auto !important;
  position: relative;
  z-index: 1001 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background .15s, color .15s;
}

/* Hover visual coherente */
#calendar .calendar-day button:hover {
  background: #fbc02d;
  color: #fff;
}

/* Estilo cuando la celda (td) tiene la clase "selected" */
#calendar .calendar-day.selected button {
  background: #f57c00 !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* ===== Ajustes calendario: quitar círculos grandes y mostrar puntito ===== */
#calendar .calendar-table td,
#calendar .calendar-table th {
  padding: 6px;
  text-align: center;
  vertical-align: middle;
}

/* Aseguramos que la celda tenga contexto para el puntito */
#calendar .calendar-day {
  position: relative;
  cursor: default;
}

/* Botón del día: no circular, clickeable */
#calendar .calendar-day button {
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;       /* <-- ya no es 50% (no hay círculo) */
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background .15s, color .15s;
}

/* Pequeño punto que indica que hay evento ese día */
#calendar .event-indicator {
  position: absolute;
  right: 8px;
  bottom: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f57c00;
  z-index: 1;
  pointer-events: none;
}

/* Hover del botón */
#calendar .calendar-day button:hover {
  background: #fbc02d;
  color: #fff;
}

/* Dia seleccionado (rectangular) */
#calendar .calendar-day.selected button {
  background: #f57c00 !important;
  color: #fff !important;
}

/* ===== Hamburger Menu Styles ===== */

/* Hamburger button base styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  position: absolute;
  top: 20px;
  right: 32px;
  padding: 0;
}

/* Hamburger bars */
.hamburger-bar {
  width: 28px;
  height: 4px;
  background-color: #333;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Hamburger open animation */
.hamburger.open .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.open .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.hamburger.open .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile nav links container */
.mobile-nav-links {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  flex-direction: column;
  position: absolute;
  top: 80px;
  right: 0;
  background: #fff;
  width: 220px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 1000;
  padding: 20px 0;
  border-radius: 0 0 0 16px;
   transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

@keyframes slideDownMenu {
  from { opacity: 0; transform: translateY(-20px);}
  to { opacity: 1; transform: translateY(0);}
}

.mobile-nav-links.open {
  opacity: 1;
  pointer-events: auto;
   transform: translateX(0);
}

.mobile-nav-links a {
  padding: 12px 24px;
  color: #333;
  text-decoration: none;
  font-size: 1.1em;
  border-bottom: 1px solid #eee;
  font-family: 'Bell MT', serif;
  font-weight: 600;
}

.mobile-nav-links a:last-child {
  border-bottom: none;
}

/* Responsive: show hamburger on small screens, hide desktop links */
@media (max-width: 900px) {
  header.header-secundario nav {
    flex-direction: row;
    align-items: center;
    position: relative;
    padding: 1rem 2rem;
  }
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .mobile-nav-links {
    display: none;
  }
  .mobile-nav-links.open {
    display: flex;
  }
  .nav-logos {
    z-index: 1002;
  }
}


/* Botón filtros */
.btn-filtros {
  display: none;
  background: #073d64;
  color: #fff;
  border: none;
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  margin: 15px 0;
}

/* Botón de cerrar */
.close-filtros {
  display: none;
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 15px;
}

/* Estilo base del sidebar */
.sidebar-filtros {
  background: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  margin-bottom: 20px;
}

/* En móviles se convierte en menú oculto */
@media (max-width: 768px) {
  .btn-filtros {
    display: inline-block;
  }

  .sidebar-filtros {
    position: absolute;
    top: 100%; /* aparece debajo del nav o del botón */
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #ccc;
    padding: 20px;
    display: none;
    z-index: 999;
  }

  .close-filtros {
    display: block;
  }
}

/* Show sidebar filters when active */
.sidebar-filtros.active {
  display: block !important;
}

/* Filtros siempre visibles en escritorio */
.sidebar-filtros {
  background: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  margin-bottom: 20px;
}

/* En móviles: ocultos por defecto, se despliegan debajo del botón */
@media (max-width: 768px) {
  .sidebar-filtros {
    display: none;         /* ocultos por defecto */
    position: relative;    /* se quedan dentro del flujo, debajo del botón */
    width: 100%;
    margin-top: 10px;
    border-top: 1px solid #ccc;
    padding: 15px;
    z-index: 1;            /* suficiente para estar arriba del contenido */
  }

  .sidebar-filtros.active {
    display: block;        /* al hacer clic en el botón se muestran */
  }

  .btn-filtros {
    display: inline-block;
    background: #073d64;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    margin: 15px 0;
  }

  .close-filtros {
    display: none; /* opcional, si no quieres la X dentro */
  }
}
