body, html {
  margin: 0;
  padding:0;
  box-sizing: border-box;
  font-family: 'Segoe UI',sans-serif;
}


main {
 background-image: url('../../assets/img/patron.png');
 background-repeat: repeat;
 background-size: contain;
 background-attachment: fixed;
 position: relative
}

.hero {
  height: 60vh;
  width: 100%;
  background: url('../../assets/ofertas/fondo_prepa.webp') center center / cover no-repeat;
  
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding-top: 0;
}


.hero-content {
  text-align: center;
  max-width:99%;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.5); /* opcional: le da contraste al texto */
  border-radius: 10px;
  z-index:1;
  position: relative;
  pointer-events: auto;
  overflow: hidden;
}

.hero-content h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero-content h2 {
  color: white;
  font-size: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.hero-content p {
  color: #f0f0f0;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}


.intro-preparatoria {
  text-align: center;
  padding: 40px 20px;
  background-color: #f7f7f7;
}
.modalidades-preparatoria {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px 20px;
  background-color: #ffffff;
}
.card-modalidad {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}
.boton-flotante-info {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ffcc00;
  color: #000;
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  z-index: 999;
}

/*Estilo del boton para descargar el plna de estudios*/
  .boton {
  display: inline-block;
  background-color: #db9320;
  color: #152656;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  margin-top: 1rem;
}

.boton-container {
  text-align: right;
  padding-top: -50px;
  width: 100%;
}

.boton:hover {
  background-color: #c77f16;
  transform: scale(1.05);
}

/* Secciones internas */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  
}

.intro-card, .horarios-card {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.intro-card h2{
   color: #8a2f32;
   text-align: center;
}

.horarios-card h2 {
  color: #8a2f32;
  text-align: center;
}
/* Tarjetas generales */
.info-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1rem;
}

.info-cards .card {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  max-width: 400px;
  flex: 1 1 300px;
  transition: transform 0.3s ease;
}

.info-cards .card:hover {
  transform: translateY(-5px);
}

/* Títulos dentro de las tarjetas */
.info-cards .card h3 {
  color: #ff9900;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* Habilidades en columnas */
.habilidades-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.habilidades-grid ul {
  list-style: none;
  padding: 0;
  flex: 1 1 250px;
}

.habilidades-grid li {
  margin-bottom: 1rem;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
}

.habilidades-grid i {
  color: #ff9900;
  margin-right: 10px;
  font-size: 1.1rem;
  min-width: 20px;
}

/* Ventajas con íconos */
.card ul {
  list-style: none;
  padding: 0;
}

.card ul li {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.card ul li i {
  margin-right: 10px;
  color: #ff9900;
  font-size: 1.1rem;
}

/* Testimonios */
.card span {
  font-style: italic;
  color: #555;
  display: block;
  margin-top: 0.5rem;
}
blockquote {
  background: #f9f9f9;
  border-left: 4px solid #ff9900;
  padding: 1rem;
  margin: 1rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .info-cards {
    flex-direction: column;
    padding: 1rem;
  }
}
/*Iniica el slider*/ 
.slider-preparatoria {
  width: 100%;
  display: flex;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  padding: 1px;

}


.slide {
  width: 100vw;
  flex-shrink: 0;
}

.slider {
  width: 100%;
  height: auto;
  position: relative;
  width: 100%;
}

#slider-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 400vw;
  margin: 0;
  padding: 0;
}

.slider-box {
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.slider-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  overflow: hidden;
}
/* Botones */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}
/*para moviles */
/*@media screen and (max-width: 768px) {
  .slider .slider-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
  }

  .slider .slider-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}*/

@media screen and (max-width: 768px) {
  .slider {
    width: 100%;
    overflow: hidden;
  }

  #slider-track {
    display: flex;
    flex-direction: row;
    width: 300vw; /* si tienes 3 imágenes */
    transition: transform 0.5s ease;
    padding: 0;
    margin: 0;
  }

  .slide {
    width: 100vw;
    flex-shrink: 0;
  }

  .slider-box {
    width: 100%;
    height: 450px; /* 🔽 Ajusta este valor según el tamaño deseado */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  .slider-box img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* puede ser 'contain' si no quieres que se recorte */
  }
}


