body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8f9fa;
}

.hero {
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/fondo-colegio.jpg') center/cover no-repeat;
}

.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
}


.hero {
  position: relative;
  height: 100vh;
  background: url('../img/Porta.jpg') center center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.6); /* Fondo negro con transparencia */
  z-index: 0;
}

.hero .container {
  z-index: 1;
  position: relative;
}

.animate-title {
  animation: fadeInDown 1.2s ease;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
}

.btn-outline-light:hover {
  background-color: #fff;
  color: #000;
  transform: scale(1.05);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .topbar-text {
    font-size: 0.85rem;
  }
}


/* Fuente general */
body {
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

/* Cabecera (Topbar) */
.bg-light span,
.bg-light a {
  font-size: 14px;
}

/* Logos */
section img {
  transition: transform 0.3s ease;
}

section img:hover {
  transform: scale(1.05);
}

/* Menú */
.navbar-brand {
  font-size: 20px;
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin-left: 10px;
}

/* Carrusel / Slider */
.carousel-item img {
  height: 90vh;
  object-fit: cover;
}

.carousel-caption {
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

/* Botón del slider */
.carousel-caption .btn {
  margin-top: 15px;
  font-weight: 500;
}

/* Sección Bienvenida */
#bienvenida h2 {
  font-weight: 600;
  color: #004080;
}

#bienvenida p {
  font-size: 16px;
  color: #333;
}

/* Contadores */
.contador {
  font-size: 48px;
}

/* Footer */
footer a {
  text-decoration: none;
  transition: 0.3s;
}

footer a:hover {
  color: #ffd700;
}

/* Responsive extra */
@media (max-width: 768px) {
  .carousel-caption h1 {
    font-size: 24px;
  }

  .carousel-caption p {
    font-size: 14px;
  }

  #bienvenida p {
    text-align: center;
  }
}
/* Cabecera institucional */
.logo-colegio {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.logo-ugel {
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* Reducimos el padding de la sección institucional */
section.bg-white.border-bottom {
  padding: 10px 0 !important;
}

/* Texto institucional */
section h1 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}
body {
  font-family: 'Poppins', sans-serif;
}

section {
  scroll-margin-top: 100px;
}

/* Estilo personalizado del menú */
.navbar {
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.navbar-dark .navbar-nav .nav-link {
  color: #fff;
  transition: color 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: #ffc107; /* Amarillo al pasar el mouse */
}

.navbar-brand {
  font-size: 20px;
  font-weight: bold;
}
.card i {
  color: #007bff;
}

.card .btn {
  transition: all 0.3s ease;
}

.card .btn:hover {
  background-color: #007bff;
  color: white;
}


/* === Sección Nosotros === */
.hero-nosotros {
  height: 280px;
  background: url('../img/ColegioHistoria.jpg') no-repeat center center;
  background-size: cover;
  position: relative;
  color: white;
}

.hero-nosotros .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Oscurece el fondo */
  z-index: 1;
}

.hero-nosotros .container {
  position: relative;
  z-index: 2;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* Tarjetas con efecto */
.card i {
  transition: transform 0.3s ease;
}

.card:hover i {
  transform: scale(1.3);
}


/* --------------------- ESTILOS ACTUALIZADOS CON VIDEO FULLSCREEN Y ANIMACIONES --------------------- */

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8f9fa;
  scroll-behavior: smooth;
}

/* Portada con video de fondo */
.video-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #000;
}

.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.video-overlay {
  position: relative;
  z-index: 2;
  color: white;
  padding: 20px;
  max-width: 90%;
}

.titulo-animado {
  font-size: 4.5rem;
  font-weight: bold;
  animation: fadeInDown 1.2s ease-in-out;
  text-shadow: 4px 4px 12px rgba(0,0,0,0.8);
  font-family: 'Georgia', serif;
  color: #fff;
}

.subtitulo-animado {
  font-size: 1.5rem;
  margin-top: 1rem;
  animation: fadeInUp 1.8s ease-in-out;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
  color: #fff;
}

.banner-matricula {
  background-color: rgba(0,0,0,0.6);
  display: inline-block;
  padding: 10px 25px;
  margin-top: 25px;
  color: #ffc107;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  animation: bounceIn 2.2s ease-in-out;
  border: 2px dashed #ffc107;
}

/* Redes Sociales (opcional en portada) */
.video-social {
  margin-top: 1rem;
  animation: fadeIn 2.5s ease-in-out;
}

.video-social a {
  color: #fff;
  font-size: 1.4rem;
  margin: 0 10px;
  transition: 0.3s ease;
}

.video-social a:hover {
  color: #ffc107;
  transform: scale(1.2);
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Topbar */
.bg-light span,
.bg-light a {
  font-size: 14px;
}

.logo-colegio {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.logo-ugel {
  height: 60px;
  width: auto;
  object-fit: contain;
}

section.bg-white.border-bottom {
  padding: 10px 0 !important;
}

section h1 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

/* Menú */
.navbar {
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.navbar-dark .navbar-nav .nav-link {
  color: #fff;
  transition: color 0.3s;
  font-weight: 500;
  margin-left: 10px;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: #ffc107;
}

.navbar-brand {
  font-size: 20px;
  font-weight: bold;
}

/* Botones */
.btn {
  transition: all 0.3s ease;
}

.btn:hover,
.btn-outline-light:hover {
  transform: scale(1.05);
  background-color: #fff;
  color: #000;
}

/* Sección Bienvenida */
#bienvenida h2 {
  font-weight: 600;
  color: #004080;
  
}

#bienvenida p {
  font-size: 16px;
  color: #333;
}

/* Contadores */
.contador {
  font-size: 48px;
}

/* Footer */
footer a {
  text-decoration: none;
  transition: 0.3s;
}

footer a:hover {
  color: #ffd700;
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-caption h1 {
    font-size: 24px;
  }

  .carousel-caption p {
    font-size: 14px;
  }

  #bienvenida p {
    text-align: center;
  }

  .topbar-text {
    font-size: 0.85rem;
  }

  .titulo-animado {
    font-size: 2.2rem;
  }
  .subtitulo-animado {
    font-size: 1rem;
  }
  .banner-matricula {
    font-size: 0.9rem;
    padding: 8px 20px;
  }
}

/* Tarjetas */
.card i {
  transition: transform 0.3s ease;
  color: #007bff;
}

.card:hover i {
  transform: scale(1.3);
}

.card .btn:hover {
  background-color: #007bff;
  color: white;
}

/* Sección Nosotros */
.hero-nosotros {
  height: 280px;
  background: url('../img/ColegioHistoria.jpg') no-repeat center center;
  background-size: cover;
  position: relative;
  color: white;
}

.hero-nosotros .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-nosotros .container {
  position: relative;
  z-index: 2;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}


/* === Hero mejorado === */
.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.7);
}

.hero p.lead {
  color: #ffeb3b;
  font-size: 1.5rem;
  font-weight: 600;
}

/* === Franja de matrícula === */
.hero .matricula-info {
  font-size: 1.1rem;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 10px 20px;
  border-radius: 10px;
  color: #333;
  margin-top: 15px;
  display: inline-block;
  font-weight: 500;
}

.bienvenida-estilo {
  background: linear-gradient(135deg, #37c5e9, #a6cf63);
  color: white;
}

.bienvenida-estilo h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.bienvenida-estilo p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e2e6ea;
}

#mensaje-info p {
  font-size: 1.1rem;
}

#mensaje-info i {
  transition: transform 0.3s ease;
}

#mensaje-info i:hover {
  transform: scale(1.3);
}

.typed-text {
  border-right: 2px solid #007bff;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: #007bff; }
}


#testimonios .card {
  background-color: #f9f9f9;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

#testimonios .card:hover {
  transform: translateY(-5px);
}

#testimonios .card-text {
  font-size: 1rem;
  color: #444;
}

#testimonios .card-footer h6 {
  margin-top: 15px;
  color: #004080;
}

#testimonios img {
  object-fit: cover;
  border: 2px solid #ddd;
}

/* Hero Historia */
.hero-historia {
  height: 80vh;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-historia .video-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-historia .overlay {
  background: rgba(0, 0, 0, 0.6);
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-historia .container {
  z-index: 2;
}

/* Detalle Historia */
.historia-detalle h2 {
  font-size: 2rem;
}

.historia-detalle p {
  font-size: 1.1rem;
  color: #333;
}

.historia-detalle img {
  border: 5px solid #f1f1f1;
  transition: transform 0.3s ease-in-out;
}

.historia-detalle img:hover {
  transform: scale(1.03);
}

/* Hero Historia */
.hero-historia {
  height: 80vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-historia .video-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  z-index: 0;
}

.hero-historia .overlay {
  background: rgba(0, 0, 0, 0.6);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-historia .container {
  z-index: 2;
}

/* Historia Detalle */
.historia-detalle h2 {
  font-size: 2rem;
  color: #004080;
}

.historia-detalle p {
  font-size: 1.1rem;
  color: #333;
}

.historia-detalle img {
  border: 5px solid #f1f1f1;
  transition: transform 0.3s ease;
}

.historia-detalle img:hover {
  transform: scale(1.03);
}

/* Estilos mejorados del contador */
.experiencia-contador {
  background-color: #f1f1f1;
}

.experiencia-contador h2 {
  font-size: 1.3rem;
}

.experiencia-contador .small-contador {
  font-size: 2.5rem;
}

.animate-icon {
  animation: bounceIcon 1.5s infinite;
  color: #f0ad4e; /* Color dorado */
}

@keyframes bounceIcon {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Fondo con imagen institucional */
.fondo-experiencia {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: url('img/fondo_experiencia.jpg') center center/cover no-repeat;
  opacity: 0.5;
  z-index: 0;
}

/* Contenedor encima del fondo */
.experiencia-contador {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.experiencia-contador h2 {
  font-size: 1.5rem;
}

.experiencia-contador .small-contador {
  font-size: 3rem;
  color: #fff;
}

.experiencia-contador p {
  font-size: 1.1rem;
}

.animate-icon {
  animation: bounceIcon 1.5s infinite;
  color: #ffd700;
}

@keyframes bounceIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}



.video-container {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

#backgroundVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Capa oscura sobre el video */
  z-index: 0;
}

.contenido-titulo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px); /* Efecto de fondo difuminado */
  padding: 30px 50px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  animation: fadeInDown 1.2s ease-out;
}

.titulo-principal {
  font-size: 3em;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-weight: bold;
}

.subtitulo {
  font-size: 1.5em;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  margin-top: 10px;
}

/* Animación */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate(-50%, -70%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.titulo-principal {
  font-size: 3em;
  color: white;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid white; /* cursor */
  width: fit-content;
  margin: 0 auto;
  animation: blinkCursor 0.7s steps(1) infinite;
}

@keyframes blinkCursor {
  50% {
    border-color: transparent;
  }
}

/* Fondo específico para misión y visión */
.mision-vision-header {
  background-image: url('../img/mision-vision.jpg'); /* Usa tu nueva imagen */
}

/* Fondo suave para la sección */
.seccion-mv {
  background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
}

/* Estilo tarjetas misión y visión */
.card-mv {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: none;
}

.card-mv:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Íconos redondos */
.icono-mv {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  transition: transform 0.4s;
}

.card-mv:hover .icono-mv {
  transform: rotate(360deg);
}

.contador-box {
  background: #fff;
  border-radius: 15px;
  padding: 30px 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.contador-box:hover {
  transform: translateY(-10px);
}

.contador {
  font-size: 2.5rem;
  font-weight: bold;
  color: #003366;
  margin: 10px 0;
}


/* === Sección Misión y Visión === */
.seccion-mision-vision {
  background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Título con animación de escritura */
.titulo-mv {
  font-size: 2.5rem;
  font-weight: 700;
  color: #003366;
}

.efecto-escritura {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #003366;
  animation: escribir 3s steps(30) 1 normal both, parpadeo 0.7s step-end infinite;
}

@keyframes escribir {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes parpadeo {
  0%, 100% { border-color: transparent; }
  50% { border-color: #003366; }
}

/* Tarjetas de misión y visión */
.card-mision,
.card-vision {
  background: #fff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-mision:hover,
.card-vision:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Iconos */
.icono-mv {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  transition: transform 0.4s;
}

.card-mision:hover .icono-mv,
.card-vision:hover .icono-mv {
  transform: rotate(360deg);
}

.icono-mision {
  background-color: #007bff;
}

.icono-vision {
  background-color: #28a745;
}

/* Títulos de misión y visión */
.titulo-mision {
  color: #007bff;
  font-weight: bold;
  font-size: 1.3rem;
}

.titulo-vision {
  color: #28a745;
  font-weight: bold;
  font-size: 1.3rem;
}

/* Texto de las tarjetas */
.texto-mision,
.texto-vision {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}


.linea-tiempo {
  background: #fdfdfd;
  border-top: 2px solid #ddd;
  border-bottom: 2px solid #ddd;
}

.timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.timeline-item {
  flex: 1 1 22%;
  background: #fff;
  border-left: 5px solid #007bff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.timeline-item:hover {
  transform: translateY(-5px);
}

.timeline-item .year {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: #007bff;
  margin-bottom: 10px;
}

.btn-armadura {
  background: linear-gradient(135deg, #003366, #0055a5);
  color: #fff;
  border: none;
  padding: 12px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 40px;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 85, 165, 0.4);
}

.btn-armadura:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 85, 165, 0.6);
  background: linear-gradient(135deg, #002244, #004488);
}

.autoridades {
  background: linear-gradient(to bottom, #ffffff, #f1f3f5);
}

.card-autoridad {
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.card-autoridad:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.img-autoridad {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #dee2e6;
  margin-top: -70px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cargo {
  font-size: 0.95rem;
  font-style: italic;
}

.descripcion {
  font-size: 0.95rem;
  color: #555;
}

.autoridades {
   background: url('https://www.transparenttextures.com/patterns/cubes.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.autoridades::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9); /* Capa blanca translúcida para mejorar lectura */
  z-index: -1;
}

.niveles-portada {
  background: url('../img/fondo-svg.jpg') no-repeat center center/cover;
  height: 60vh;
  position: relative;
  background-attachment: fixed;
}



.titulo-niveles {
  color: #FFD700; /* Dorado o cambia por otro color institucional */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.subtitulo-niveles {
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}


 /* empiezo a realizar cambios */
.hero-section {
  background: url('../img/FONDO_LOGO.jpg') center center / cover no-repeat;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.65); /* Oscurecido elegante */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.contenido {
  position: relative;
  z-index: 2;
  padding: 20px;
  animation: fadeInUp 1.2s ease-in-out;
}

.titulo-animado {
  font-size: 4rem;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(90deg, #ff6a00, #ee0979, #00c6ff, #00ffab, #ffe53b);
  background-size: 400% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: entradaBrillante 1.8s ease-out, efectoColores 8s linear infinite;
  text-shadow: 3px 3px 0 #fefffe, 5px 5px 15px rgba(0, 0, 0, 0.5); /* Sombra 3D */
  letter-spacing: 1.2px;
}

/* Animación de entrada */
@keyframes entradaBrillante {
  0% {
    opacity: 0;
    transform: translateY(-40px) scale(0.9);
  }
  60% {
    opacity: 1;
    transform: translateY(10px) scale(1.02);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* Animación de movimiento de color tipo gradiente arcoíris */
@keyframes efectoColores {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .titulo-animado {
    font-size: 2.5rem;
  }
}
@keyframes latido {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.titulo-animado {
  animation: entradaBrillante 1.8s ease-out,
             efectoColores 8s linear infinite,
             latido 3s ease-in-out infinite; /* Nuevo efecto */
}



.subtitulo-animado {
  font-size: 2rem;
  font-weight: 600;
  margin-top: 15px;
  background: linear-gradient(90deg, #ffafbd, #ffc3a0, #a1c4fd, #c2e9fb);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: entradaSuave 2s ease-out, animacionGradiente 10s linear infinite;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  letter-spacing: 0.5px;
  text-align: center;
}

/* Animación de aparición suave */
@keyframes entradaSuave {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animación de gradiente */
@keyframes animacionGradiente {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .subtitulo-animado {
    font-size: 1.3rem;
  }
}


.mensaje-matricula {
  background-color: rgba(255, 193, 7, 0.85);
  color: #000;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-block;
  margin-top: 20px;
  animation: pulse 2s infinite;
}

/* Botón scroll animado */
.scroll-btn {
  font-weight: 600;
  border-radius: 30px;
  padding: 10px 20px;
  transition: all 0.3s ease-in-out;
}
.scroll-btn:hover {
  background-color: #fff;
  color: #000;
}

/* Animaciones */
@keyframes fadeInUp {
  from {opacity: 0; transform: translateY(40px);}
  to {opacity: 1; transform: translateY(0);}
}

@keyframes slideInDown {
  from {opacity: 0; transform: translateY(-50px);}
  to {opacity: 1; transform: translateY(0);}
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.zona-inferior {
  margin-top: 60px; /* Puedes ajustar este valor */
  animation: fadeInUp 1.5s ease-in-out;
}

@media (max-width: 768px) {
  .zona-inferior {
    margin-top: 40px; /* menos espacio en móviles */
  }
}

.zona-inferior {
  margin-top: 90px; /* Antes estaba en 60px */
  animation: fadeInUp 1.5s ease-in-out;
}

@media (max-width: 768px) {
  .zona-inferior {
    margin-top: 60px; /* También lo bajamos un poco en móviles */
  }
}

html {
  scroll-behavior: smooth;
}



.footer a:hover {
  text-decoration: underline;
  color: #ffc107;
}

.footer i {
  transition: transform 0.3s;
}

.footer i:hover {
  transform: scale(1.2);
}

.texto-justificado {
  text-align: justify;
  text-justify: inter-word;
}


#contacto .form-control {
  border-radius: 12px;
  box-shadow: none;
  transition: all 0.2s ease-in-out;
}

#contacto .form-control:focus {
  border-color: #198754;
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

#contacto form {
  transition: transform 0.3s;
}
#contacto form:hover {
  transform: translateY(-5px);
}

#formContacto:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}
body {
  background: linear-gradient(to bottom, #f8f9fa, #eaf4ea);
}
.contact-info-box {
  background: #f8f9fa;
  transition: all 0.3s ease-in-out;
}

.contact-info-box:hover {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.contact-info-box h6 {
  font-size: 0.95rem;
}

.contact-info-box p {
  font-size: 0.9rem;
  color: #555;
}
/* Línea divisora elegante */
.divider {
  height: 4px;
  width: 80px;
  background: #198754;
  border-radius: 10px;
}

/* Fondo personalizado de contacto */
.bg-contacto {
  background: linear-gradient(120deg, #198754 0%, #157347 100%);
  background-size: cover;
  background-position: center;
}

/* Divider decorativo */
.divider {
  height: 4px;
  width: 80px;
  background: #ffffff;
  border-radius: 10px;
}

/* Tipografía y sombras para mayor legibilidad */
.bg-contacto h2,
.bg-contacto p {
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

#contacto .form-control {
  border-radius: 12px;
  box-shadow: none;
  transition: all 0.2s ease-in-out;
}

#contacto .form-control:focus {
  border-color: #198754;
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

#contacto form:hover {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}
.contact-header {
  background: linear-gradient(135deg, #0f5132, #198754);
  color: white;
  position: relative;
  overflow: hidden;
}

.contact-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: #f8f9fa;
  clip-path: polygon(0 0, 100% 100%, 0% 100%);
}

.divider {
  height: 4px;
  width: 80px;
  background: #ffffff;
  border-radius: 10px;
  margin-top: 1rem;
}

/* Fondo institucional */
.contact-header {
  background: linear-gradient(135deg, #14532d, #198754);
  color: white;
  position: relative;
  overflow: hidden;
}

/* Divider decorativo */
.divider {
  height: 4px;
  width: 80px;
  background: #ffffff;
  border-radius: 10px;
  margin-top: 1rem;
}

/* Título elegante con degradado */
.titulo-contacto {
  font-weight: 800;
  background: linear-gradient(to right, #c2c50c, #b11e1e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.titulo-contacto:hover {
  transform: scale(1.03);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Subtítulo con animación y estilo ligero */
.subtitulo-contacto {
  color: #f8f9fa;
  font-style: italic;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  opacity: 0.95;
  transition: opacity 0.4s ease-in-out;
}

.subtitulo-contacto:hover {
  opacity: 1;
}

.formulario-contacto {
  border-left: 6px solid #198754;
  transition: all 0.3s ease;
}

.formulario-contacto:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Estilo de inputs */
.input-estilo {
  border-radius: 12px;
  border: 1px solid #ced4da;
  transition: all 0.3s ease-in-out;
  font-size: 0.95rem;
}

.input-estilo:focus {
  border-color: #198754;
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.2);
}

/* Botón */
.btn-success {
  border-radius: 10px;
  font-weight: 600;
}

.btn-success:hover {
  background-color: #157347;
  transform: scale(1.01);
}

.formulario-contacto {
  background: #fefefe;
  background-image: linear-gradient(135deg, #ffffff 0%, #f2fdf6 100%);
}

.contacto-box {
  max-width: 1140px;
  width: 100%;
}

.divider {
  height: 6px;
  width: 100px;
  border-radius: 10px;
 background: linear-gradient(90deg, #157347, #198754), 
            url('https://www.transparenttextures.com/patterns/diagmonds-light.png');

  background-size: cover;
  background-blend-mode: overlay;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
  animation: fadeInDivider 1.2s ease;
  margin: auto;
}


/* Estilos de títulos */
.titulo-contacto {
  font-weight: 800;
  background: linear-gradient(to right, #380670, #8f0b0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  animation: zoomIn 1s ease;
}

.subtitulo-contacto {
  color: #ffffff;
  animation: floatUp 1.2s ease-in-out;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Estilos del formulario */
.formulario-contacto {
  border-left: 6px solid #198754;
  background: #fff;
  transition: all 0.3s ease;
}

.formulario-contacto:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.input-estilo {
  border-radius: 12px;
  border: 1px solid #ced4da;
  transition: all 0.3s ease-in-out;
  font-size: 0.95rem;
}

.input-estilo:focus {
  border-color: #198754;
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.2);
}

.btn-success {
  border-radius: 10px;
  font-weight: 600;
}

.btn-success:hover {
  background-color: #157347;
  transform: scale(1.01);
}

/* Animaciones */
@keyframes zoomIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes floatUp {
  0% { transform: translateY(30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.contact-header {
  background: linear-gradient(to bottom, #198754, #157347);
  color: white;
}


@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&display=swap');

.section-header {
  background: rgba(255, 255, 255, 0.95);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: inline-block;
  margin: 0 auto 40px;
}

/* Título */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  position: relative;
  color: transparent;
  background: linear-gradient(to right, #c62828, #f44336); /* Rojo guinda degradado */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 1px 1px 3px rgba(198, 40, 40, 0.2);
}

/* Subtítulo */
.subtitle {
  font-size: 1.05rem;
  color: #555;
  font-family: 'Poppins', sans-serif;
  margin-top: 0.3rem;
}

/* Línea animada */
.underline-animated {
  width: 0;
  height: 4px;
  background-color: #c62828;
  margin: 10px auto 0;
  border-radius: 2px;
  animation: underlineGrow 1s forwards ease-in-out;
}

@keyframes underlineGrow {
  to {
    width: 80px;
  }
}
   .footer-horario {
  font-size: 0.95rem;
  color: #f8ffff9c; /* verde suave tipo "Contáctanos" */
  line-height: 1.5;
  white-space: normal;
  margin: 0;
}

.quienes-somos-section {
  background-color: #f9f9f9;
  overflow: hidden;
  position: relative;
}

.frase-institucional {
  font-size: 1.2rem;
  color: #c62828;
  font-style: italic;
  font-weight: 500;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.3rem;
  font-weight: 700;
}

.text-highlighted {
  background: linear-gradient(to right, #c62828, #e53935);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-readmore {
  background-color: #c62828;
  color: #fff;
  font-weight: 500;
  border-radius: 30px;
  padding: 10px 25px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-readmore:hover {
  background-color: #a61b1b;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.zoom-img {
  transition: transform 0.4s ease;
}

.zoom-img:hover {
  transform: scale(1.03);
}

.galeria-img {
  transition: transform 0.3s ease;
}

.galeria-img:hover {
  transform: scale(1.05);
}

/* Paloma o libro decorativo */
.icono-flotante {
  position: absolute;
  bottom: 10px;
  right: 20px;
  width: 60px;
  opacity: 0.2;
  animation: flotando 3s infinite ease-in-out;
}

@keyframes flotando {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Fondo animado decorativo */
.background-decor {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/fondo_quienes_somos.jpg'); /* partículas SVG decorativas */
  background-repeat: repeat;
  background-size: contain;
  opacity: 0.05;
  z-index: 0;
}


.valores-section {
  background: #f9f9f9;
}

.valor-card {
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
  height: 100%;
}

.valor-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(3px);
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.valor-card * {
  position: relative;
  z-index: 2;
}

.valor-card:hover {
  transform: scale(1.03);
}

/* Colores de íconos */
.valor-solidaridad-icon { color: #ff7043; }
.valor-inclusion-icon { color: #29b6f6; }
.valor-ambiental-icon { color: #66bb6a; }
.valor-honestidad-icon { color: #fbc02d; }
.valor-responsabilidad-icon { color: #8e24aa; }
.valor-liderazgo-icon { color: #ec407a; }
.valor-excelencia-icon { color: #42a5f5; }
.valor-democracia-icon { color: #ffa726; }

/* Colores de títulos */
.valor-solidaridad-text { color: #ff7043; }
.valor-inclusion-text { color: #29b6f6; }
.valor-ambiental-text { color: #66bb6a; }
.valor-honestidad-text { color: #fbc02d; }
.valor-responsabilidad-text { color: #8e24aa; }
.valor-liderazgo-text { color: #ec407a; }
.valor-excelencia-text { color: #42a5f5; }
.valor-democracia-text { color: #ffa726; }

/* Fondos personalizados */
.card-bg-solidaridad {
  background-image: url('../img/FONDO_LOGO.jpg');
}
.card-bg-inclusion {
  background-image: url('../img/inclusion.jpg');
}
.card-bg-ambiental {
  background-image: url('../img/conciencia_ambiental.jpg');
}
.card-bg-honestidad {
  background-image: url('../img/honestidad.jpg');
}
.card-bg-responsabilidad {
  background-image: url('../img/responsabilidad.jpg');
}
.card-bg-liderazgo {
  background-image: url('../img/liderazgo.jpg');
}
.card-bg-excelencia {
  background-image: url('../img/excelencia.jpg');
}
.card-bg-democracia {
  background-image: url('../img/honestidad2.jpg');
}


.info-card {
  background-color: #fff;
  border-radius: 12px;
  transition: all 0.3s ease;
}
.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-card {
  transition: transform 0.3s ease;
}
.stat-card:hover {
  transform: scale(1.03);
}

.text-highlighted {
  color: #0d47a1;
  font-weight: bold;
}

.blockquote {
  font-family: 'Georgia', serif;
}

/* Fondo decorativo suave */
.bg-pattern {
 background: linear-gradient(to bottom right, #e3f2fd, #ffffff);
  background-size: contain;
  background-repeat: repeat;
}

/* Títulos destacados */
.highlighted-title {
  font-weight: bold;
  color: #0a3871;
}

/* Línea decorativa animada */
.underline-animated {
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, #0d47a1, #42a5f5);
  border-radius: 5px;
  animation: underlineAnim 2s infinite alternate;
}

@keyframes underlineAnim {
  0% { transform: scaleX(0.7); opacity: 0.6; }
  100% { transform: scaleX(1); opacity: 1; }
}

/* Tarjetas responsivas */
.info-card, .stat-card {
  transition: all 0.3s ease-in-out;
}
.info-card:hover, .stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.lema-box {
  max-width: 700px;
  background: linear-gradient(to right, #f1f9ff, #ffffff);
  border-left: 6px solid #0d47a1;
  border-right: 6px solid #0d47a1;
  position: relative;
  transition: transform 0.3s ease;
}

.lema-box:hover {
  transform: scale(1.02);
}

.lema-text {
  font-family: 'Georgia', serif;
  font-size: 1.4rem;
  color: #0a2c59;
}


.img-lema {
  max-height: 100px;
  width: auto;
  transition: transform 0.3s ease;
}

.img-lema:hover {
  transform: scale(1.05);
}

.lema-box {
  max-width: 600px;
  background: linear-gradient(to right, #f1f9ff, #ffffff);
  border-left: 6px solid #0d47a1;
  border-right: 6px solid #0d47a1;
  position: relative;
  transition: transform 0.3s ease;
}

.lema-box:hover {
  transform: scale(1.02);
}

.lema-text {
  font-family: 'Georgia', serif;
  font-size: 1.4rem;
  color: #0a2c59;
}

.highlighted-title {
  color: #0a2c59 !important; /* Azul petróleo */
  font-weight: 700;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}



.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.underline-animated {
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #1976d2, #42a5f5);
  border-radius: 5px;
  animation: expandLine 1s ease-in-out;
}

@keyframes expandLine {
  from { width: 0; opacity: 0; }
  to { width: 80px; opacity: 1; }
}

.card-mision,
.card-vision {
  transition: transform 0.3s ease;
}

.card-mision:hover,
.card-vision:hover {
  transform: translateY(-5px);
}

/* Estilos generales */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  position: relative;
  color: #2d3436;
}

.bg-gradient-light {
  background: linear-gradient(135deg, #f9fbfd 0%, #e6f0f8 100%);
}

.underline-animated {
  width: 80px;
  height: 4px;
  background-color: #0d6efd;
  border-radius: 50px;
  animation: slide-in 2s infinite alternate;
}

@keyframes slide-in {
  from { transform: translateX(-10px); }
  to { transform: translateX(10px); }
}

.max-w-sm {
  max-width: 280px;
}

.card .btn {
  font-size: 0.9rem;
  padding: 6px 12px;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.5rem;
  }
  .max-w-sm {
    max-width: 100%;
  }
}


/* Tarjeta Identidad */
.identidad-card {
  background: linear-gradient(145deg, #f8fbff, #ecf4ff);
  background-blend-mode: overlay;
  border-left: 5px solid #0dcaf0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.identidad-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(13, 202, 240, 0.2);
}

/* Fondo decorativo con patrón circular suave */
.fondo-decorativo::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at center, rgba(13, 202, 240, 0.1), transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* Texto con gradiente */
.text-gradient {
  background: linear-gradient(to right, #0dcaf0, #0d6efd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Imagen elegante */
.identidad-img {
  max-width: 240px;
  border: 5px solid #eaf6ff;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.identidad-img:hover {
  transform: scale(1.04);
}

.mision-vision-section .card-mv {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: linear-gradient(to top left, #ffffff, #f8f9fa);
}

.mision-vision-section .card-mv:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.icono-circular {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .mision-vision-section .card-mv {
    padding: 2rem 1.5rem;
  }

  .icono-circular {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

.seccion-mision-vision {
  background: linear-gradient(145deg, #f5f8fc, #eaf1f8);
  position: relative;
  z-index: 1;
}

.icono-circular {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.img-mv {
  width: 200px;
  height: 100px;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-mv:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

.underline-animated {
  width: 60px;
  height: 4px;
  background: #0d6efd;
  border-radius: 4px;
  margin-top: 10px;
  animation: slide-in 1.2s ease-in-out infinite alternate;
}

@keyframes slide-in {
  0% { width: 60px; }
  100% { width: 90px; }
}

@media (max-width: 767px) {
  .icono-circular {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .img-mv {
    width: 80px;
    height: 80px;
  }

  .underline-animated {
    width: 50px;
  }
}

.hero-section img,
.img-lema {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

#niveles-educativos h3 {
  font-size: 1.8rem;
}

#niveles-educativos p {
  font-size: 1rem;
  color: #555;
}

#niveles-educativos .btn {
  border-radius: 1rem;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
}


