/* === 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/img3.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: #000000;
}

/* === NIVELES ACADÉMICOS === */
.container3 {
  margin-top: 1rem;
  margin-bottom: 1rem;
  
}

.container3 h1.title {
  font-size: 3.5rem;
  color: #098ece;
  font-weight: bold;
  text-shadow: 1px 1px 2px #ccc;
  background-image: url('images/img4.jpg')
}

.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: #f1f4f8;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 20px rgba(11, 0, 63, 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: #0d6efd; /* 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: #098ece; /* Preescolar - Amarillo */

}

.card-container .card:nth-child(2) h4 {
  color: #098ece; /* Primaria - Celeste */
}

.card-container .card:nth-child(3) h4 {
  color: #098ece; /* Secundaria - Verde */
}

.card-container .card:nth-child(4) h4 {
  color: #70191c; /* 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: #3442ca;
    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: #098ece !important; /* Azul Bootstrap por defecto */
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
}


/* === NUESTRA INSTITUCIÓN === */

 /* Cards personalizadas */
  .custom-card {
    border: 10px;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    position: relative;
  }

  .custom-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  }

  /* Borde lateral con degradado */
  .border-left-card {
    border-left: 8px solid transparent;
    border-image: linear-gradient(180deg, #098ece, #098ece);
    border-image-slice: 1;
  }

  /* Header estilizado */
  .custom-card .card-header {
    background: linear-gradient(135deg, #098ece, #098ece);
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 15px;
    border-bottom: none;
  }

  .custom-card .card-header h5 {
    font-size: 1.2rem;
    margin: 0;
  }

  /* Cuerpo de la tarjeta */
  .custom-card .card-body {
    padding: 15px;
  }

  /* Contenedor de iframe */
  .iframe-wrapper {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 15px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
  }

  .custom-card:hover .iframe-wrapper {
    border-color: #098ece;
  }

  .responsive-iframe {
    width: 100%;
    height: 100%;
    border: none;
  }

  /* Ajustes responsivos */
  @media (max-width: 768px) {
    .iframe-wrapper {
      height: 300px;
    }
  }

  /* Botón personalizado */
  .btn-custom1 {
    background: linear-gradient(45deg, #198754, #198754);
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
  }

  .btn-custom1:hover {
    background: linear-gradient(45deg, #068460, #068460);
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    color: #e9ecef;
  }



  /* Estilos de la barra lateral */
.social-bar {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
}

/* Estilo de cada ícono dentro del cuadro */
.social-icon {
  background-color: #333;
  color: white;
  padding: 5px;
  margin: 3px;
  width: 40px; /* Ancho fijo */
  height: 40px; /* Alto fijo */
  text-align: center;
  font-size: 25px;  /* Tamaño del ícono */
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;  /* Bordes redondeados */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra sutil */
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icon:hover {
  background-color: #0077b5; /* Cambia el color de fondo en hover */
  transform: scale(1.1); /* Agranda el ícono al pasar el ratón */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Sombra más pronunciada en hover */
}

/* Estilos específicos para cada red social */
.social-icon.facebook {
  background-color: #3b5998; /* Facebook */
}

.social-icon.twitter {
  background-color: #00acee; /* Twitter */
}

.social-icon.instagram {
  background-color: #e4405f; /* Instagram */
}

.social-icon.linkedin {
  background-color: #0e76a8; /* LinkedIn */
}

/* Estilo específico para WhatsApp */
.social-icon.whatsapp {
  background-color: #25D366; /* WhatsApp */
}



 .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;
      }
    }



