html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  box-sizing: border-box; 
}
*, *:before, *:after {
  box-sizing: inherit;
}

/* Quitar recuadros grises de autocompletado en Chrome */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover, 
textarea:-webkit-autofill:focus, 
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #000 !important;
  border: 1px solid #ccc !important;
  transition: background-color 9999s ease-in-out 0s;
}

/* Selección de texto */
::-moz-selection { background: #b3d4fc; text-shadow: none; }
::selection { background: #b3d4fc; text-shadow: none; }

/* Multimedia alineados */
audio, canvas, iframe, img, svg, video { vertical-align: middle; }

/* ================================ */
/* Estilos globales del sitio       */
/* ================================ */
body {
  background-color: #f9f9f9;
  font-family: 'Open Sans', sans-serif;
}
body {
  opacity: 1;
  transition: opacity 0.6s ease;
}
body.fade-out {
  opacity: 0;
}

#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff; /* puedes poner negro si quieres */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Ocultar loader cuando no esté activo */
#page-loader:not(.active) {
  opacity: 0;
  visibility: hidden;
}

/* Logo animado */
.loader-logo {
  width: 120px;   /* ajusta el tamaño */
  height: auto;
  animation: spin 2s linear infinite, pulse 1.5s ease-in-out infinite;
}

/* Giro */
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Pulso */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}

/* Fade de la página */
body.fade-out {
  opacity: 0;
  transition: opacity 0.6s ease;
}


.contenedor { width: 98%; margin: 0 auto; }
@media only screen and (min-width:480px) { .contenedor { width: 95%; } }
@media only screen and (min-width:768px) { .contenedor { width: 90%; } }
@media only screen and (min-width:992px) { .contenedor { width: 1100px; } }

.seccion { padding: 30px 0; }
.seccion p { font-size: 1.2em; text-align: center; }

h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.4em;
  text-transform: uppercase;
  text-align: center;
  color: #0044cc;
}
h2::after {
  content: '';
  margin: 0 auto;
  background-image: url(../img/separador4.png);
  height: 30px;
  width: 100px;
  display: block;
}
h3 { font-size: 1.8em; color: #0044cc; font-family: 'PT Sans', sans-serif; margin: 0; }
h4 {
  text-align: center;
  text-transform: uppercase;
  border-bottom: 2px solid #0044cc;
  padding-bottom: 10px;
  font-size: 1.2em;
}

.button {
  background-color: #e60012;
  padding: 10px 40px;
  color: #fff;
  text-transform: uppercase;
  font-weight: bold;
  font-family: 'Oswald', sans-serif;
  text-decoration: none;
  font-size: 1em;
  margin-top: 20px;
  display: inline-block;
  transition: all .3s ease;
  border: 2px solid #e60012;
}
.button.hollow,
.button.hollow:hover { background-color: white; color: #e60012; }
.button.transparente { background-color: transparent; border-color: #fff; }
.button.transparente:hover { border: 2px solid #e60012; }
.button:hover { background-color: #c20010; }

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

.float-right { float: right; }

/* ======================= */
/* HERO BANNER             */
/* ======================= */
/* ---------- HERO ---------- */
.hero-banner {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.1)),
              url("../img/banner.avif") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  padding-top: 80px;
}

@supports not (background-image: url("image.avif")) {
  .hero-banner {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                url("../img/banner.webp") center/cover no-repeat;
  }
}

@supports not (background-image: url("image.webp")) {
  .hero-banner {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                url("../img/banner.jpg") center/cover no-repeat;
  }
}

/* ❌ Ya no necesitas overlay separado, lo puedes quitar */
.hero-banner .overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
  animation: fadeUp 1s ease-out both;
}
.hero-content .location {
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 600;
  color: #ffcc00;
}
.hero-content h1 {
    font-size: clamp(1rem, 5vw, 2rem)!important;
    font-weight: 500;
    margin-bottom: 15px;
}

.hero-content .location i { color: #e60012; margin-right: 8px; }
.hero-logo { max-width: 180px; margin: 0 auto 25px; }
.hero-content h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; margin-bottom: 15px; }
.hero-content h3 { font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 400; color: #ddd; margin-bottom: 20px; }
.hero-content h3 span { color: #007bff; }
.hero-btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  background: linear-gradient(135deg, #0044cc, #007bff);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}
.hero-btn:hover {
  background: linear-gradient(135deg, #003399, #0056b3);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.4rem;
    white-space: nowrap; /* fuerza a que no haga salto de línea */
    overflow: hidden;     /* opcional: oculta lo que se salga */
    text-overflow: ellipsis; /* opcional: agrega "..." si no cabe */
  }
}


/* ======================= */
/* NAVBAR                  */
/* ======================= */
.navbar {
  background: #1c1c1c;
  padding: 10px 16px;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 3000; /* 🔼 subimos más para que nada lo tape */
  box-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Logo */
.nav-logo img {
  display: block;
  height: auto;
  max-height: 50px;
  object-fit: contain;
}

/* Menú desktop */
.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 0.18s ease;
  padding: 6px 4px;
}
.nav-menu li a:hover { color: #007bff; }

/* Hamburguesa */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;   /* 🔥 apila los puntos verticalmente */
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 3500;
}

/* Puntos del kebab vertical */
.nav-toggle .dot {
  display: block;
  width: 22px;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  margin: 4px 0;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

/* Animación opcional al abrir (se cruzan arriba/abajo) */
.nav-toggle.active .dot:nth-child(1) {
  transform: translateY(8px);
}
.nav-toggle.active .dot:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .dot:nth-child(3) {
  transform: translateY(-8px);
}

/* ======================= */
/* MOBILE/TABLET NAVBAR    */
/* ======================= */
@media (max-width: 992px) {
  .nav-toggle {
    display: flex !important;
    position: relative;
    flex-direction: column;   /* ✅ asegura vertical en móviles */
  }
  .nav-logo img {
    max-height: 36px;
  }
  .nav-menu {
    position: fixed;
    top: 0; left: 0;
    height: 100vh; width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    background: rgba(28,28,28,0.98);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 2400;
  }
  .nav-menu.show {
    opacity: 1;
    visibility: visible;
  }
  .nav-menu li a {
    font-size: 1.25rem;
    font-weight: 700;
  }
}

/* Extra pequeño */
@media (max-width: 480px) {
  .nav-logo img { max-height: 30px; }
  .nav-menu li a { font-size: 1.1rem; }
}


/* =======================
   BENEFICIOS
   ======================= */
.beneficios {
  padding: 60px 20px;
}
.beneficios .contenedor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.beneficio {
  text-align: center;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.beneficio:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.beneficio .icono {
  font-size: 3rem;
  color: #f4b400;
  margin-bottom: 15px;
}
.beneficio h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}
.beneficio p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

/** Inscripciones - Versión más llamativa **/

.input-con-icono {
  display: flex;
  align-items: center;
  background: #ffffff; /* más blanco que el fondo general */
  border: 2px solid #ddd;
  border-radius: 15px;
  padding: 12px 15px;
  transition: all 0.4s ease;
  
  /* NUEVO: sombras tipo neumorfismo */
  box-shadow: 5px 5px 15px rgba(0,0,0,0.05), -5px -5px 15px rgba(255,255,255,0.8);
}

.input-con-icono:hover {
  box-shadow: 5px 5px 20px rgba(0,0,0,0.08), -5px -5px 20px rgba(255,255,255,0.9);
}

.input-con-icono:focus-within {
  border-color: #0044cc;
  box-shadow: 0 0 14px rgba(0,68,204,0.3), inset 0 0 8px rgba(0,68,204,0.1);
  background: #f0f4ff; /* pequeño cambio de fondo al enfocar */
}

.icono {
  color: #0044cc;
  font-size: 1.4rem;  /* más grande y llamativo */
  margin-right: 15px;
  flex-shrink: 0;
}

/* Inputs, select y textarea */
.input-con-icono input,
.input-con-icono select,
.input-con-icono textarea {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  padding: 14px;        /* más cómodo */
  font-size: 1.1rem;
  min-width: 250px;
}

/* Textarea */
.input-con-icono textarea {
  min-height: 100px;   /* más alto */
  width: 100%;
  resize: none;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  box-sizing: border-box;
  padding: 12px;
  font-size: 1.1rem;
}

/* Botón de envío */
button.button {
  width: 100%;
  font-size: 1.25rem;
  padding: 18px;
  border-radius: 15px;
  background: linear-gradient(145deg, #0044cc, #0073e6);
  border: none;
  cursor: pointer;
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s ease;
  margin-top: 15px;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.1), -5px -5px 15px rgba(255,255,255,0.3);
}

button.button:hover {
  background: linear-gradient(135deg, #003399, #005bb5);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Título de sección */
#inscripcion h2 {
  font-size: 2.2rem;
  text-align: center;
  color: #0044cc;
  margin-bottom: 0.8em;
}

#inscripcion p {
  text-align: center;
  margin-bottom: 2em;
  color: #555;
  font-size: 1.1rem;
}

/* Eliminamos separadores solo en esta sección */
#inscripcion h2::before,
#inscripcion h2::after {
  content: none;
}

/* Responsive - tablets y móviles */
@media (max-width: 1024px) {
  .input-con-icono {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
  }
  .icono {
    margin-bottom: 10px;
  }
  .input-con-icono input,
  .input-con-icono select,
  .input-con-icono textarea {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  #inscripcion h2 {
    font-size: 2rem;
  }
  button.button {
    font-size: 1.15rem;
    padding: 15px;
  }
}





/** CURSOS **/

.programa {
  position: relative;
  overflow: hidden;
}

.contenedor-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -2;
}

.contenedor-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.programa::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); /* overlay oscuro */
  z-index: -1;
}

.contenido-programa {
  position: relative;
  z-index: 1;
  padding: 60px 20px;
  text-align: center;
  color: #fff;
}

.programa-evento {
  max-width: 1000px;
  margin: 0 auto;
}

.programa-evento h2 {
  font-size: 2.4rem;
  margin-bottom: 40px;
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
}

/* Tabs */
.menu-programa {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.menu-programa a {
  padding: 10px 20px;
  border-radius: 30px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-weight: bold;
  transition: all 0.3s ease;
}

.menu-programa a:hover,
.menu-programa a.activo {
  background: #ffcc00;
  color: #000;
}

/* Cards */
.info-curso {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.card-detalle {
  background: rgba(255, 255, 255, 0.9);
  color: #222;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.card-detalle:hover {
  transform: translateY(-8px);
}

.card-detalle i {
  font-size: 2.5rem;
  color: #0044cc;
  margin-bottom: 15px;
}

.card-detalle h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: bold;
  color: #222;
}

/* Listas */
.card-detalle ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-detalle ul li {
  margin: 8px 0;
  font-size: 1rem;
  line-height: 1.5;
  position: relative;
  padding-left: 22px;
}


/* Responsive: más compacto en móviles */
@media (max-width: 768px) {
  .card-detalle {
    padding: 20px;
  }

  .card-detalle i {
    font-size: 2rem;
  }

  .card-detalle h3 {
    font-size: 1.2rem;
  }

  .card-detalle ul li {
    font-size: 0.95rem;
    margin: 6px 0;
    padding-left: 18px;
  }

  .card-detalle ul li::before {
    font-size: 0.8rem;
  }
}
.card-detalle ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left; /* 🔹 Para alinear los ítems */
}

.card-detalle ul li {
  margin-bottom: 10px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-detalle ul li i {
  color: #0044cc;
  font-size: 1.1rem;
}

/** slider cards **/

  .slider {
  width: 95%;
  margin: auto;
  overflow: hidden;
  position: relative;
  padding: 40px 0;
}

/* Pista que se mueve en bucle */
.slide-track {
  display: flex;
  gap: 30px;
  width: calc(250px * 10); /* ancho total aprox */
  animation: scroll 20s linear infinite;
}

/* Animación scroll infinito */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Tarjetas con efecto glassmorphism */
.card {
  width: 220px;
  flex-shrink: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  text-align: center;
  padding-bottom: 15px;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

/* Animación de entrada escalonada */
.card:nth-child(1) { animation-delay: 0.2s; }
.card:nth-child(2) { animation-delay: 0.4s; }
.card:nth-child(3) { animation-delay: 0.6s; }
.card:nth-child(4) { animation-delay: 0.8s; }
.card:nth-child(5) { animation-delay: 1s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Imagen dentro de la card */
.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

/* Nombre debajo de la foto */
.card p {
  margin: 12px 0 0;
  font-size: 1rem;
  font-weight: bold;
  color: #0044cc;
}

/* Hover 3D */
.card:hover {
  transform: scale(1.08) rotateY(8deg);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}


/* ================= */
/*   CONTADOR        */
/* ================= */
.contador {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.contador::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/bg-resumen2.avif"); /* AVIF primero */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  filter: brightness(.6);
  z-index: 0;
}

/* Parallax SOLO en escritorio */
@media (min-width: 1024px) {
  .contador::before {
    background-attachment: fixed;
  }
}

/* Si el navegador no soporta AVIF pero sí WebP */
@supports not (background-image: url("image.avif")) {
  .contador::before {
    background-image: url("../img/bg-resumen2.webp");
  }
}

/* Fallback universal (Safari viejo, IE, etc.) */
@supports not (background-image: url("image.webp")) {
  .contador::before {
    background-image: url("../img/bg-resumen2.png");
  }
}

.resumen-evento {
  position: relative;
  z-index: 1;
  padding: 100px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  list-style: none;
  margin: 0;
  flex-wrap: wrap;
}

.resumen-evento li {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  text-transform: uppercase;
  min-width: 200px;
  max-width: 250px;
  text-align: center;
  flex: 1;
}

.resumen-evento .numero {
  display: block;
  font-size: 3.5rem;
  color: #0044cc;
  margin-bottom: 8px;
  font-weight: bold;
  text-shadow:
    -1px -1px 0 #fff,
     1px -1px 0 #fff,
    -1px  1px 0 #fff,
     1px  1px 0 #fff;
}

/* ================= */
/*   RESPONSIVE      */
/* ================= */

@media (max-width: 992px) {
  .resumen-evento {
    gap: 40px;
    padding: 80px 20px;
  }

  .resumen-evento .numero {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .resumen-evento {
    flex-direction: column;
    gap: 30px;
    padding: 70px 20px;
  }

  .resumen-evento li {
    font-size: 20px;
  }

  .resumen-evento .numero {
    font-size: 2.8rem;
  }
}

@media (max-width: 480px) {
  .resumen-evento {
    padding: 60px 15px;
  }

  .resumen-evento li {
    font-size: 18px;
  }

  .resumen-evento .numero {
    font-size: 2.4rem;
  }
}

/* ================= */
/*   HERO            */
/* ================= */

.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: url("../img/clases.avif") center/cover no-repeat;
}

/* Parallax SOLO en escritorio */
@media (min-width: 1024px) {
  .hero {
    background-attachment: fixed;
  }
}

/* Si el navegador no soporta avif → usar webp */
@supports not (background-image: url("image.avif")) {
  .hero {
    background: url("../img/clases.webp") center/cover no-repeat;
  }
}

/* Si tampoco soporta webp → usar jpg */
@supports not (background-image: url("image.webp")) {
  .hero {
    background: url("../img/clases.jpg") center/cover no-repeat;
  }
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding: 0 20px;
  animation: fadeUp 1s ease-out both;
}

.hero h1 {
  font-family: 'PT Sans', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero h1 span {
  color: #ffcc00;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero .hero-btn {
  background: linear-gradient(135deg, #0044cc, #007bff);
  color: #fff;
  border: none;
  padding: 14px 34px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.hero .hero-btn:hover {
  background: linear-gradient(135deg, #003399, #0056b3);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

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

@media (max-width: 768px) {
  .hero {
    height: auto;
    padding: 80px 20px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero .hero-btn {
    width: 90%;
    padding: 12px;
  }
}


/* ===================== */
/*     SECCIÓN SERVICIOS */
/* ===================== */
.servicios {
  background: #f8f9fc;
  padding: 60px 20px;
  text-align: center;
}

.servicios h2 {
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: #0044cc;
  font-weight: bold;
}

.servicios .contenedor-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 🔥 siempre 3 en escritorio */
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.servicios .card-servicio p {
  word-wrap: break-word;      /* Soporte más antiguo */
  overflow-wrap: break-word;  /* Estándar moderno */
  text-align: center;         
  text-transform: none;       
  font-size: 14px;            
  line-height: 1.4;           
}

.servicios .card-servicio:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* Íconos */
.servicios .icono {
  background: #e6f0ff;
  color: #0044cc;
  font-size: 2.5rem;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.servicios .icono.doble {
  gap: 10px;
}

.servicios .card-servicio h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #222;
  font-weight: bold;
}

.servicios .card-servicio p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* Botones */
.servicios .boton {
  background: linear-gradient(135deg, #0044cc, #007bff);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.servicios .boton:hover {
  background: linear-gradient(135deg, #003399, #0056b3);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 992px) {
  .servicios .contenedor-cards {
    grid-template-columns: repeat(2, 1fr); /* 2 en tablets */
  }
}

@media (max-width: 600px) {
  .servicios .contenedor-cards {
    grid-template-columns: 1fr; /* 1 sola en mobile */
  }
}


/** Mapa **/
div.mapa {
  height: 420px;
}

/** Testimoniales **/

.testimoniales {
  background: #f8f9fc;
  padding: 60px 20px;
  text-align: center;
}

.testimoniales h2 {
  font-size: 2.2rem;
  color: #0044cc;
  margin-bottom: 40px;
}

/* Contenedor principal */
.slider-cards {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

/* Cards en fila */
.contenedor-cards-testimoniales {
  display: flex;
  flex-wrap: nowrap; /* 🔥 evita que las cards se bajen */
  transition: transform 0.5s ease-in-out;
  gap: 20px;
}

/* Estilo de cada card */
.card-testimonio {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  padding: 20px;
  min-width: 300px;
  max-width: 350px;
  flex: 0 0 auto;
  text-align: left;
  transition: transform 0.3s ease;
}

.card-testimonio:hover {
  transform: translateY(-5px);
}

/* Autor (foto + info) */
.autor {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 12px;
}

.autor img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #0044cc;
}

.autor h4 {
  margin: 0;
  font-size: 1rem;
  color: #222;
}

.autor span {
  font-size: 0.85rem;
  color: #777;
}

/* Estrellas */
.estrellas {
  color: #ffcc00;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* Texto del testimonio */
.card-testimonio p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* ========================= */
/*   FLECHAS DE NAVEGACIÓN   */
/* ========================= */
.btn-nav {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #0044cc, #0073e6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 2;
}

.btn-nav:hover {
  background: linear-gradient(135deg, #003399, #005bb5);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 6px 20px rgba(0,68,204,0.5);
}

.btn-nav.prev {
  left: 0px;
}

.btn-nav.next {
  right: 10px;
}

/* ========================= */
/*       RESPONSIVE          */
/* ========================= */
@media (max-width: 900px) {
  .card-testimonio {
    min-width: 250px;
  }
}

@media (max-width: 600px) {
  .contenedor-cards {
    gap: 10px;
  }

  .card-testimonio {
    min-width: 100%;
  }

  .btn-nav {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  .btn-nav.prev {
    left: 5px;
  }

  .btn-nav.next {
    right: 5px;
  }
}

/**Cuenta Regresiva**/
div.cuenta-regresiva ul li{
  text-transform: uppercase;
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  text-align: center;
}
@media only screen and (min-width:768px) {
  div.cuenta-regresiva ul li {
    width: 25%;
    float: left;
  }
}
.modern-footer {
  background: #111;
  color: #eee;
  font-family: 'PT Sans', sans-serif;
  padding-top: 60px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* Marca */
.footer-brand {
  flex: 1 1 300px;
}

.footer-logo {
  max-width: 180px;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.95rem;
  color: #bbb;
  line-height: 1.6;
}

/* Links */
.footer-links {
  flex: 1 1 200px;
}

.footer-links h4,
.footer-social h4 {
  color: #e60012; /* rojo corporativo */
  font-size: 1.1rem;
  margin-bottom: 15px;
  text-transform: uppercase;
}

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

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #007bff; /* azul acento */
}

/* Redes */
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  margin-right: 10px;
  border-radius: 50%;
  background: #222;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: linear-gradient(135deg, #0044cc, #007bff);
  transform: translateY(-3px);
}

/* Franja inferior */
.footer-bottom {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  background: #0a0a0a;
  font-size: 0.85rem;
  color: #aaa;
}


/*Registro pagina index**/

form.registro h3 {
  text-align: center;
  text-transform: uppercase;
  margin: 25px 0 0 0;
}
form.registro label {
  margin-bottom: 5px;
  font-weight: bold;
}
div.caja {
  background-color: #ffffff;
  border: 1px solid #e1e1e1;
  padding: 10px;
  margin: 10px;
}
div.campo {
  padding: 20px;
}
@media only screen and (min-width:768px) {
  div.campo {
    float: left;
    width: 33.3%;
  }
}
div.paquetes .tabla-precio:hover {
  transform: none;
  box-shadow: none;
}
div.paquetes .tabla-precio input {
  clear: both;
  width: 100px;
  margin: 10px auto 0 auto;
  display: block;
}
.contenido-dia {
  padding: 20px;
  display: none;
}
@media only screen and (min-width:768px) {
.contenido-dia > div {
  float: left;
  width: 33.3%;
 }
}
.contenido-dia > div p {
  text-align: left; 
}
.contenido-dia > div label {
  display: block;
  margin-bottom: 10px;
}
.contenido-dia > div input {
  margin-right: 10px;
}
.contenido-dia > div label time {
  color: #e60012;
}




/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
  display: none !important;
}


/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
* Extends the .sr-only class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}


/* Botón flotante de WhatsApp */
.btn-whatsapp {
  position: fixed;
  bottom: 20px;   /* distancia desde abajo */
  right: 20px;    /* distancia desde la derecha */
  z-index: 1000;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.btn-whatsapp:hover {
  transform: scale(1.1);
}


/* Sección Cursos */
.cursos {
  background: #f8f9fc;
  padding: 0;
  margin: 0;
}

.cursos h2 {
  text-align: center;
  font-size: 2.4rem;
  margin: 50px 0 5px; /* 🔥 más espacio arriba */
  color: #0044cc;
  font-weight: bold;
  text-transform: uppercase;
  grid-column: 1 / -1;
}

.cursos h2::after,
.cursos h2::before {
  content: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Wrapper principal: mitad imagen, mitad cards */
.cursos-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr; /* izquierda / derecha */
  min-height: 100vh; /* toda la altura de la ventana */
  align-items: stretch;
}

/* Columna izquierda (imagen tipo Siesa) */
.info-box {
  position: relative;
  min-height: 100vh; /* ocupa toda la pantalla */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;

  /* Imagen principal (avif) */
  background: url("../img/clases.avif") center/cover no-repeat;
}

/* Fallback a .webp si no hay soporte avif */
@supports not (background-image: url("image.avif")) {
  .info-box {
    background: url("../img/clases.webp") center/cover no-repeat;
  }
}

/* Fallback a .jpg si tampoco hay soporte webp */
@supports not (background-image: url("image.webp")) {
  .info-box {
    background: url("../img/clases.jpg") center/cover no-repeat;
  }
}

/* Oscurecer la imagen */
.info-box .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}

.info-content {
  position: relative;
  z-index: 2;
  max-width: 80%;
  text-align: center;
  padding: 40px;

  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* 🔥 alinear arriba */
  align-items: center;        /* centrado horizontal */
  height: 100%;

  margin-top: 350px; /* 🔥 súbelo más arriba */
}
.info-logo {
  width: 120px;
  margin: 20px 0;
}

.location {
  font-size: 1rem;
  color: #ffcc00; /* Amarillo para el texto */
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.location i {
  color: #ff4444; /* Rojo para el ícono */
  font-size: 1.2rem;
}

/* Nombre de la academia */
.info-content h3 {
  font-size: 1.6rem;
  font-weight: bold;
  color: #ffffff; /* Blanco */
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7); /* sombra para contraste */
  margin: 10px 0;
  text-align: center;
  margin-top: -10px;
}

/* Subtítulo */
.subtitle {
  font-size: 1.1rem;
  color: #dddddd; /* Gris claro */
  font-style: italic;
  text-align: center;
  margin-top: -5px;
}

/* Columna derecha (cards) */
.contenedor-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  padding: 40px;
  align-content: start;
}

/* Cards */
.card-servicio {
  background: #fff;
  border-radius: 18px;
  padding: 30px 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
}
.card-servicio:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.icono {
  border: 3px solid #0044cc;
  color: #0044cc;
  font-size: 2rem;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

/* Botón */
.btn-card {
  display: inline-block;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(90deg, #0044cc, #007bff);
  border-radius: 25px;
  text-decoration: none;
}
.btn-card:hover {
  background: linear-gradient(135deg, #ffcc00, #ff9900);
}

/* Responsive */
@media (max-width: 992px) {
  .cursos-wrapper {
    grid-template-columns: 1fr 1fr; /* Tablet: imagen + cards */
  }

  .contenedor-cards {
    grid-template-columns: 1fr 1fr; /* 2 cards por fila */
  }
}

@media (max-width: 768px) {
  .cursos-wrapper {
    grid-template-columns: 1fr; /* solo cards */
  }

  .info-box {
    display: none; /* ocultar imagen */
  }

  .contenedor-cards {
    grid-template-columns: 1fr; /* una debajo de otra */
    padding: 10px 15px; /* 🔥 reduce padding lateral y vertical */
    gap: 15px; /* menos separación entre cards */
  }

  .cursos h2 {
    font-size: 1.8rem;
    margin: 60px 0 15px; /* 🔥 menos espacio arriba y abajo */
  }
}


/* ====== LAYOUT GENERAL ====== */
.contacto {
  display: grid;
  grid-template-columns: 40% 60%; /* Imagen 1/3, contenido 2/3 */
  min-height: 100vh;
}

/* Columna izquierda con imagen + overlay */
.contacto-left {
  position: relative;
  min-height: 100vh;
  background: url("../img/clases.avif") center center / cover no-repeat;
}

/* Fallback a .webp si no hay soporte AVIF */
@supports not (background-image: url("image.avif")) {
  .contacto-left {
    background: url("../img/clases.webp") center center / cover no-repeat;
  }
}

/* Fallback a .jpg si no hay soporte WebP */
@supports not (background-image: url("image.webp")) {
  .contacto-left {
    background: url("../img/clases.jpg") center center / cover no-repeat;
  }
}

/* Overlay */
.contacto-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0); /* Ajusta opacidad a tu gusto */
  z-index: 1;
}

/* Para que el contenido quede encima del overlay */
.contacto-left > * {
  position: relative;
  z-index: 2;
}


.contacto-left::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* 🔹 Overlay */
}

/* Contenido encima de la imagen */
.overlay-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  top: 36%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
}

.overlay-content h3 {
  font-size: 1.6rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    margin: 10px 0;
    text-align: center;
    margin-top: -10px;
}


.overlay-logo {
  width: 120px;
  margin-bottom: 15px;
}

.overlay-location {
  font-size: 1rem;
  color: #ffd700; /* amarillo */
  margin: 8px 0;
}
.overlay-location i {
  color: #ff4444;
}


.overlay-text {
     font-size: 1.1rem;
    color: #dddddd;
    font-style: italic;
    text-align: center;
    margin-top: -5px;
}

/* Columna derecha */
.contacto-right {
  background-color: #f9fff9;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}

/* ====== TITULOS ====== */
.contacto-right h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #0046c0;
}

/* 🔹 Desactiva separadores solo en contacto */
.contacto-right h2::after,
.contacto-right h2::before {
  content: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* ====== INFO CARDS ====== */
.contacto-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px; /* 🔹 menos espacio con el form */
}

.info-card {
  background: #fff;
  padding: 25px 20px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

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

/* 🔹 Iconos estilo original */
.info-card i {
  background: #e6f0ff;
  color: #0044cc;
  font-size: 2rem;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.info-card h3 {
  margin: 10px 0 5px;
  color: #0046c0;
}

.info-card p {
  color: #333;
}

/* ====== FORMULARIO ====== */
.contact-form {
  background: #fff;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  align-self: center;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  background: #0044cc;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #0033aa;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 992px) {
  .contacto {
    grid-template-columns: 1fr; /* Contenido ocupa todo */
  }

  .contacto-left {
    display: none; /* 🔹 Oculta la imagen en mobile */
  }

  .contacto-info {
    grid-template-columns: 1fr;
  }
}


/* Menú social vertical */
.social-menu {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
}

.social-menu a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 20px;
  color: #fff;
  transition: all 0.3s ease;
  text-decoration: none;
}

/* Colores de cada red */
.social-menu a.facebook { background: #3b5998; }
.social-menu a.instagram { background: #e4405f; }
.social-menu a.youtube { background: #ff0000; }

/* Hover con efecto */
.social-menu a:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* ✅ Ajuste en pantallas móviles */
@media (max-width: 768px) {
  .social-menu {
    top: 35%;              /* más arriba para no tapar texto */
    right: 10px;           /* un poco más pegado al borde */
    gap: 12px;             /* menos espacio entre botones */
    transform: translateY(-50%);
  }

  .social-menu a {
    width: 40px;           /* un poco más pequeños */
    height: 40px;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .nav-toggle,
  #nav-toggle {
    display: flex !important;   /* 🔥 asegúrate que aparezca */
    position: relative;
    z-index: 3000 !important;   /* bien arriba */
  }

  .nav-menu,
  #nav-menu {
    display: none;              /* oculto hasta que se active */
  }

  .nav-menu.show,
  #nav-menu.show {
    display: flex !important;   /* visible al dar clic */
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

/** GALERIA **/

.galeria {
  text-align: center;
  padding: 60px 20px;
  background: #f9f9f9;
}

.galeria h2 {
  font-size: 2.2rem;
  font-weight: bold;
  color: #0044cc;
  margin-bottom: 30px;
}

/* Masonry estilo Pinterest */
.masonry-grid {
  column-count: 3;
  column-gap: 20px;
}

.masonry-grid a {
  display: inline-block;
  margin-bottom: 20px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.masonry-grid a:hover {
  transform: scale(1.05);
}

.masonry-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
}

/* 🔒 Ajustar siempre las imágenes de Fancybox */
.fancybox__image {
  object-fit: contain !important;
  max-width: 90vw !important;
  max-height: 90vh !important;
}

/* Responsive */
@media (max-width: 992px) {
  .masonry-grid { column-count: 2; }
}
@media (max-width: 600px) {
  .masonry-grid { column-count: 1; }
}

/* Ajusta la imagen grande para no cubrir las miniaturas */
.fancybox__stage {
  height: calc(100% - 120px); /* deja 120px para las miniaturas */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Imagen principal */
.fancybox__slide img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* Miniaturas */
.fancybox__thumbs {
  position: absolute;
  bottom: 10px; /* siempre visibles */
  left: 50%;
  transform: translateX(-50%);
  max-height: 100px;
  display: flex;
  justify-content: center;
  z-index: 10; /* encima de todo lo demás */
}
