/* Paleta: Azul suave, blanco, gris claro, detalles en celeste */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}


body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background: #f4f7fb;
  color: #222;
  scroll-behavior: smooth;
}

.header {
  background-color: #073D6B;
  padding: 10px 0;
  height: 70px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.container {
  max-width: 100vw;
  padding: 0 1.5rem;
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  height: 70px;
}

.logo-img {
  width: 50px;
  height: 50px;
}

.logo-text {
  flex-shrink: 0;
  color: white;
  text-decoration: none;
  padding-left: 20px;
  font-family:Verdana, Geneva, Tahoma, sans-serif;
  font-size: 30px;
  font-weight: bold;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin-right: 40px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.menu li {
  position: relative;
}

.nav .menu > li > a,
.nav .menu > li.dropdown {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease;
}

.nav .menu > li > a:hover,
.nav .menu > li.dropdown:hover {
  color: #aad8ff;
}

.menu .dropdown ul {
  display: none;
  position: absolute;
  top: 2rem;
  left: 0;
  background-color: #fff;
  color: #000;
  border-radius: 0.5rem;
  padding: 0.5rem;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.menu .dropdown ul li {
  padding: 0.5rem 1rem;
}

.menu .dropdown ul li a {
  color: #141212;
  text-decoration: none;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.hero {
  background: linear-gradient(to right, #073D6B, #0073ff83);
  color: white;
  padding: 2rem 0;
  text-align: left;
  animation: fadeIn 1.5s ease;
  margin-bottom: -39px;
}

.hero .container {
  margin-left: 50px;
  margin-top: 35px;
}

.hero-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.hero-text h2 { font-size: 4rem
}
.hero-text {
  flex: 1;
  padding-right: 30px;
  margin-top: 60px;
  min-width: 300px;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.nosotros {background: #0073ff83;
  animation: fadeUp 1s ease;
  text-align: center;
}
/* Sección Clases */
.clases {
  padding: 8rem;
  background: #0073ff83;
  animation: fadeUp 1s ease;
  text-align: center;
}

.clases h2,
.materias h2,
.clases-personalizadas h2,
.seccion-profesores {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #0a3d62;
}

.clases h2 {
  color: #fff;
}
.clases p {
  color: #fff;
  margin: 40px;
}

/* Carrusel */
.carousel {
  position: relative;
  overflow: hidden;
  margin: 40px 0;
}

.carousel-track {
  display: flex;
  gap: 10px;
  transition: transform 0.5s ease;
}

.carousel img {
  width: 300px;
  flex-shrink: 0;
  border-radius: 10px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 10px 15px;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease;
}

.carousel-btn:hover {
  background: #00c6ff;
}

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

/* Sección Materias y Clases Personalizadas */
.materias,
.clases-personalizadas {
  background: #eef4fa;
  padding: 4rem 0;
}

.clases-personalizadas p {
  text-align: center;
  margin: 40px;
}

/* Imágenes laterales con difuminado */
.clases-imagen1,
.mediosdepago {
  flex: 0 0 10%;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: -30px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.clases-imagen1 img,
.mediosdepago img {
  width: 25%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.mediosdepago img {
  width: 45%;
}

/* Grid de asignaturas */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 0 auto;
  padding: 0 20px;
}
.card {
  background: white;
  border: 1px solid black;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

.card .icono {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.card .asignaturas {
  list-style: none;
  padding: 0;
  font-size: 0.9rem;
}









.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1100;
  display: none;
}



.popup-contenido {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.popup-contenido input,
.popup-contenido textarea {
  width: 100%;
  margin: 0.3rem 0;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.popup-contenido button {
  margin-top: 1rem;
  width: 100%;
  padding: 0.7rem;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

.popup-contenido button:hover {
  background-color: #357ab8;
}

/* Desenfoque al fondo */
.difuminado {
  filter: blur(6px);
  pointer-events: none;
}

/* Popup profesor ajustado */
.popup-profe {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 31, 63, 0.95); /* azul oscuro tipo logo con transparencia */
  display: none; /* Se activa con JS */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  overflow-y: auto;
}

.contenido-profe {
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.cerrar-profe {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 26px;
  color: #777;
  cursor: pointer;
}

.contenido-profe input,
.contenido-profe textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.contenido-profe button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 16px;
  width: 100%;
  cursor: pointer;
}

.contenido-profe button:hover {
  background-color: #0056b3;
}



.categorias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

.cerrar {
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-size: 2rem;
  cursor: pointer;
}

.oculto {
  display: none;
}




.footer {
  background:  #073D6B;
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.form-contacto {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-contacto input,
.form-contacto textarea {
  padding: 0.8rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
}

.form-contacto button {
  background: #00c6ff;
  color: white;
  border: none;
  padding: 0.8rem;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.form-contacto button:hover {
  background: #0072ff;
}

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

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Mostrar el submenú cuando el padre tiene la clase .show */
.dropdown.show .dropdown-menu {
  display: block;
}
.btn-contacto,
.btn-ingresar {
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 0 0 transparent;
}

/* Botón "Contáctanos": fondo celeste, texto blanco */
.btn-contacto {
  background-color: #00c6ff;
  color: #ffffff;
  border: none;
}

/* Hover "Contáctanos": glow y más contraste */
.btn-contacto:hover {
  transform: scale(1.08);
  box-shadow: 0 0 12px #00d2ff;
  color: #ffffff;
  background-color: #fbfbfc;
}


.btn-ingresar {
  background-color: #08314e;
  color: #0a3d62;
  border: 2px solid #0a3d62;
}

/* Hover "Ingresar": invertir colores con glow */
.btn-ingresar:hover {
  transform: scale(1.08);
  background-color: #002c4a;
  color: #ffffff;
  box-shadow: 0 0 12px #0a3d62;
}

.btn-contactoo,
.btn-ingresarr {
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 0 0 transparent;
}

.btn-contactoo-espaciado {
  margin-top: 3rem;
  background-color: #00c6ff;
  color: #ffffff;
  border: none;
}
.btn-contactoo-espaciado:hover {
  transform: scale(1.08);
  box-shadow: 0 0 12px #00d2ff;
  color: #ffffff;
  background-color: #00d2ff;
}



/* Botón "Contáctanos": fondo celeste, texto blanco */
.btn-contactoo {
  background-color: #00c6ff;
  color: #ffffff;
  border: none;
}

/* Hover "Contáctanos": glow y más contraste */
.btn-contactoo:hover {
  transform: scale(1.08);
  box-shadow: 0 0 12px #00d2ff;
  color: #ffffff;
  background-color: #00d2ff;
}

/* Botón "Ingresar": fondo blanco, texto azul oscuro, borde */
.btn-ingresarr {
  background-color: #ffffff;
  color: #0a3d62;
  border: 2px solid #0a3d62;
}

/* Hover "Ingresar": invertir colores con glow */
.btn-ingresarr:hover {
  transform: scale(1.08);
  background-color: #0a3d62;
  color: #ffffff;
  box-shadow: 0 0 12px #0a3d62;
}


.como-funciona {
  background: #f8fafd;
  padding: 4rem 2rem;
  text-align: center;
}

.como-funciona h2 {
  font-size: 2.5rem;
  color: #0a3d62;
  margin-bottom: 1rem;
}

.disclaimer {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  text-align: center;
}

.como-funciona .subtitulo {
  font-size: 1.2rem;
  margin: 1rem 0 2rem;
  color: #333;
}

.botones-funcionamiento {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.como-funciona-pasos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.paso {
  background: #eef4fa;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

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

.paso .icono {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.paso h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #0a3d62;
}

.paso p {
  font-size: 0.95rem;
  color: #444;
}

.nota-final {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #777;
}
.que-ofrecemos {
  background: #f8fafd;
  padding: 4rem 2rem;
  text-align: center;
}

.que-ofrecemos h2 {
  font-size: 2.5rem;
  color: #0a3d62;
  margin-bottom: 1rem;
}

.que-ofrecemos .subtitulo {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: #333;
}

.ofrecemos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6rem;
}

.ofrecemos-grid .item {
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  transform: scale(1.2);
}

.ofrecemos-grid .item:hover {
  transform: translateY(-5px);
}

.ofrecemos-grid .icono {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.ofrecemos-grid h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #0a3d62;
}

.ofrecemos-grid p {
  font-size: 0.95rem;
  color: #444;
}


.modal-contacto {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 61, 98, 0.7);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.modal-contenido {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.4s ease;
}

.modal-contenido h2 {
  margin-bottom: 1.5rem;
  color: #0a3d62;
}

.botones-contacto {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.btn-contacto-modal {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  background-color: #00c6ff;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-contacto-modal:hover {
  transform: scale(1.05);
  background-color: #0072ff;
  box-shadow: 0 0 10px rgba(0, 114, 255, 0.5);
}

.cerrar-modal {
  background: transparent;
  border: none;
  font-size: 0.9rem;
  color: #666;
  cursor: pointer;
  margin-top: 1rem;
  transition: color 0.3s ease;
}

.cerrar-modal:hover {
  color: #0a3d62;
}
/* Fondo desenfocado al abrir modal */
body.modal-open::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  z-index: 1099;
}

/* Popup centrado debajo del header */
.popup {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  display: none;
}

.popup-contenido {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  max-width: 700px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  max-height: 80vh;
}

/* Botón cerrar */
.cerrar {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}

/* Mostrar cuando se abre */
.popup.mostrar {
  display: block;
}

#botonFlotante {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background-color: #073D6B;
  background-image: url('/img/logo4.png'); 
  background-size: 70%;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 1200;
  transition: transform 0.3s ease;
}

#botonFlotante:hover {
  transform: scale(1.1);
}
.boton-flotante-wsp {
  position: fixed;
  bottom: 90px; /* Un poco más arriba del otro botón */
  right: 20px;
  z-index: 1200;
  width: 60px;
  height: 60px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.boton-flotante-wsp:hover {
  transform: scale(1.1);
}

.boton-flotante-wsp img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}


.boton-info {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  background-color: #073D6B;
  color: white;
  text-decoration: none;
  border-radius: 2rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.boton-info:hover {
  background-color: #005bbb;
}

.footer-legal {
  background-color: #073D6B; /* mismo azul que el hero */
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;

}

.footer-legal-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 28px;
  width: auto;
  object-fit: contain;

}

.faq-section {
  background-color: #073D6B;
  padding: 60px 20px;
}

.faq-box {
  background-color: white;
  border: 2px solid black;
  border-radius: 15px;
  padding: 30px;
  max-width: 900px;
  margin: 0 auto;
  margin-top: 40px;
  color: black;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 10px;
  color: black;
}

.section-subtitle {
  text-align: center;
  color: black;
  margin-bottom: 40px;
}

.faq-container {
  margin-top: 20px;
}

.faq-item {
  border-bottom: 1px solid black;
}

.faq-question {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 15px;
  color: black;
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 20px;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: black;
}

.faq-question.active::after {
  content: '-';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.4s ease, padding 0.3s ease;
  color: black;
}

.faq-answer p {
  margin: 15px 0;
}

.clases-tecnologia-section {
  background-color:#0073ff83;
  padding: 60px 20px;
  color: white;
}

.container-clases {
  max-width: 1100px;
  margin: 0 auto;
}

.clases-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
}

.clases-subtitle {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.clases-box {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.clase-item {
  background-color: white;
  color: black;
  display: flex;
  flex-direction: row;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.clase-item.reverse {
  flex-direction: row-reverse;
}

.clase-texto {
  flex: 1;
  padding: 30px;
}

.clase-texto h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.clase-texto p {
  font-size: 1rem;
  line-height: 1.6;
}

.clase-imagen {
  flex: 1;
  text-align: center;
}

.clase-imagen img {
  max-width: 100%;
  height: auto;
  display: block;
}


seccion-profesores {
  background-color: #f7f9fb;
  padding: 4rem 0;
  text-align: center;
}

.seccion-profesores h2 {
  font-size: 2.5rem;
  color: #073D6B;
  font-weight: 800;
  margin-bottom: 1rem;
}

.seccion-profesores .intro {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 3rem;
}

.profesores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
}

.prof-card {
  background-color: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
  transition: transform 0.3s ease;
}

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

.prof-card .icono {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.prof-card h3 {
  font-size: 1.4rem;
  color: #073D6B;
  margin-bottom: 1rem;
}

.prof-card ul {
  list-style: disc;
  padding-left: 1.2rem;
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

.prof-final {
  margin-top: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.prof-final h3 {
  font-size: 1.8rem;
  color: #073D6B;
  margin-bottom: 1rem;
}

.prof-final p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 1rem;
}
.historia-box {
  background-color: #073D6B;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  line-height: 1.6;
  color: white;
}










.menu-toggle {
  display: none; /* Por defecto, no visible */
}

/* Responsive SOLO para celulares (max-width: 768px) */
@media (max-width: 768px) {
  /* Mostrar botón hamburguesa */
  .menu-toggle {
    display: block;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px 20px;
    margin-left: auto;
  }

  /* Menú oculto por defecto */
  .menu {
    display: none;
    flex-direction: column;
    background-color: #003366;
     width: 90%; /* 👈 Solo ocupa el 90% del ancho */
  max-width: 300px; /* 👈 Ancho máximo deseado */
  padding: 10px 0;
  gap: 0;

  position: absolute;
  top: 70px; /* Debajo del header */
  right: 10px; /* Pegado al botón hamburguesa */
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 999;
}


  .menu.active {
    display: flex;
  }

  .menu li {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #0059b3;
    position: relative;
  }

  .menu li:last-child {
    border-bottom: none;
  }

  /* Dropdown */
 .dropdown {
    position: relative;
  }

  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    background-color: #004080;
    min-width: 180px;
    z-index: 10;
    border-radius: 0 0 4px 4px;
  }
  
  .nav {
    flex-wrap: nowrap;
  }



  /* Hero section */
  .hero-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-text {
    padding: 0;
    margin: 1rem 0;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

    .hero-text h2 {
    font-size: 2rem;
    max-width: 90%;
    margin: 0 auto;
    line-height: 1.4;
  }

  .hero-text p {
    font-size: 0.95rem;
    max-width: 90%;
    margin: 1rem auto 0;
  }

  /* Logo */
  .logo-text {
    font-size: 20px;
    padding: 0 10px;
  }

  /* Carrusel */
  .carousel img {
    width: 200px;
  }

  /* Clases, materias, personalizadas */
  .clases h2,
  .materias h2,
  .clases-personalizadas h2 {
    font-size: 1.5rem;
  }


  .clases p,
  .clases-personalizadas p {
    font-size: 0.9rem;
    margin: 15px;
  }

  /* Imagen con difuminado */
  .clases-imagen1 img,
  .mediosdepago img {
    width: 80%;
    margin-left: 0;
  }
  
   #medios-de-pago {
    display: none;
  }
  #capturas {
    display: none;
  }
  .hero-image {
    display: none;
  }
  .clases-imagen1,
  .mediosdepago {
    margin: 0 auto 40px auto;
    justify-content: center;
  }

  /* Tarjetas (cards) */
  .card {
    padding: 1rem;
  }

  .card .icono {
    font-size: 1.8rem;
  }

  .card .asignaturas {
    font-size: 0.8rem;
  }
  .grid {
    margin: 0 auto !important;   /* Centra horizontalmente */
    padding: 0 10px !important;  /* Reduce el padding lateral */
    justify-items: center;       /* Centra los elementos dentro de cada celda */
  }
  .historia-box {
    padding: 15px;
    font-size: 1rem;
    margin: 10px;
  }
}
