/* === GENERAL === */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f1f4f8;
  margin: 0;
  padding: 0;
  font-size: 1rem !important;
}
h1, h2, h3, h4{
  font-weight: bold;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }


p {
  font-size: 1.1rem;
}

/* === BIENVENIDOS === */
.container1 {
  background: url('images/l4.png') no-repeat center center/cover;
  padding: 3rem 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  min-height: 300px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.image-container1 img {
  width: 300px;
  animation: pulseEscudo 3s infinite;
}

@keyframes pulseEscudo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.text-container1 {
  max-width: 700px;
  color: #000000;
}

.text-container1 h1 {
  font-size: 3.2rem;
  font-weight: bold;
  color: #3b8d5a;
}

/* === NIVELES ACADÉMICOS === */
.container3 {
  margin-top: 1rem;
  margin-bottom: 1rem;
  
}

.container3 h1.title {
  font-size: 3.5rem;
  color: #3b8d5a;
  font-weight: bold;
  text-shadow: 1px 1px 2px #ccc;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: url('images/img4.jpg') no-repeat center center/cover;
  padding: 20px;
  border-radius: 15px;
  margin-top: -15px;
}

.card-container .card {
  width: 350px;
  margin: 10px;
  background: #fff;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.card-container .card:hover {
  transform: translateY(-8px);
}

.card-container .card img {
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.card-container .card h3 {
  font-size: 2rem;
  font-weight: bold;
  margin-top: 10px;
  color: #000000; /* Azul por defecto */
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Colores diferentes por nivel */
.card-container .card:nth-child(1) h4 {
  color: #ffc107; /* Preescolar - Amarillo */

}

.card-container .card:nth-child(2) h4 {
  color: #3b8d5a; /* Primaria - Celeste */
}

.card-container .card:nth-child(3) h4 {
  color: #1d1582; /* Secundaria - Verde */
}

.card-container .card:nth-child(4) h4 {
  color: #3b8d5a; /* Media Académica - Rojo */
}

/* === AVISOS IMPORTANTES === */
/* ----- Sección Avisos Importantes ----- */
.avisos-section {
  background: linear-gradient(to right, #fffce0, #fff8dc);
}

.alert-warning {
    font-size: 2rem;
    font-weight: bold;
    background-color: #ffd501;
    color: #3b8d5a;
    border: 2px solid #ffeeba;
    border-radius: 12px;
    padding: 20px;
  }

  /* Título avisos */
  .avisos-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
  }

h4.text-primary {
  color: #3b8d5a !important; /* Azul Bootstrap por defecto */
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
}



/* === NUESTRA INSTITUCIÓN === */
.container-title {
  font-weight: 700;
  font-size: 3rem;
  color: #3b8d5a;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  text-align: center;
}

.card-container2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0; /* Sin separación vertical entre tarjetas */
}

.card-container2 .card {
  width: 100%;
  max-width: 550px;
  margin: 0;
  border-radius: 10px;
  border-top: 1px solid #ccc;
  border-bottom: none;
  box-shadow: none;
  border-left: 4px solid #ffd501;
  transition: all 0.3s ease;
}

.card-container2 .card:hover {
  transform: translateY(-5px);
}

.card-container2 .card-title {
  font-weight: bold;
  color: #3b8d5a;
    font-size: 2rem
}

.card-container2 .card-text {
  text-align: justify;
}

.escudo-img {
  width: 250px;      /* Cambia a la medida que desees */
  height: auto;      /* Mantiene la proporción */
  max-width: 100%;   /* Evita desbordes en pantallas pequeñas */
}

/* === BOTÓN NUESTRA INSTITUCIÓN === */
.btn-custom1 {
  background: linear-gradient(45deg, #3b8d5a, #50b376);
  color: #fff;
  padding: 12px 28px;
  font-size: 1.1rem;
  border-radius: 12px;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-custom1:hover {
  background: linear-gradient(45deg, #f0bb0d, #fbe946);
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  color: #000000;
}


 .carousel-container {
      max-width: 1000px;
      margin: auto;
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }

    .carousel-inner img {
      height: 480px;
      object-fit: cover;
      border-radius: 0;
    }

    .carousel-indicators [data-bs-target] {
      background-color: #007bff;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
      background-color: rgba(0, 0, 0, 0.5);
      border-radius: 50%;
    }

    .carousel-caption {
      background: rgba(0, 0, 0, 0.5);
      padding: 10px;
      border-radius: 8px;
    }

    @media (max-width: 768px) {
      .carousel-inner img {
        height: 250px;
      }
    }

  