* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fbf9f4;
  color: #1f2937;
  overflow-x: hidden;
}

/* =========================
   ENCABEZADO
========================= */
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(63, 13, 0, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: 0.4s ease;

}

header.scrolled {
  background: #98143c;
  padding: 2px 0;
  color: #020617;
}

.navbar {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 25px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: bold;
  color: #3190ef;
}

.logo-icon {
  width: 48px;
  height: 48px;
 
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  animation: pulseLogo 2.5s infinite;
}
.logo-icon img {
  width: 95%;
  height: 95%;
}
@keyframes pulseLogo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.logo-text span {
  display: block;
  font-size: 13px;
  color: #ffffff;
  font-weight: 600;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}

nav a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  position: relative;
  transition: 0.3s;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  background: #e11d48;
  bottom: -8px;
  left: 0;
  border-radius: 4px;
  transition: 0.3s;
}

nav a:hover {
  color: #2377e6;
}

nav a:hover::after {
  width: 100%;
}



.menu-btn {
  display: none;
  font-size: 35px;
  cursor: pointer;
  color: rgb(247, 247, 247);
  z-index: 9999;
}
/* =========================
   BANNER SLIDER PRINCIPAL
========================= */

.hero-slider {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 80px;
  
}

/* Cada imagen del slider */
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.2s ease, transform 4s ease;
}

/* Imagen activa */
.slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Capa oscura encima de la imagen */
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
       rgba(128, 0, 32, 0.45),
    rgba(80, 0, 25, 0.35)
  );
  z-index: 1;
}

/* Contenido encima del slider */
.hero-content {
  max-width: 1200px;
  width: 100%;
  margin: auto;
  padding: 30px;
  color: white;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

/* Texto principal */
.hero-text h1 {
  font-size: 54px;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: slideLeft 1s ease forwards;
}

.hero-text h1 span {
  color: #facc15;
}

.hero-text p {
  font-size: 20px;
  max-width: 650px;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #e5e7eb;
  animation: fadeUp 1.2s ease forwards;
}

/* Botones */
.hero-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  animation: fadeUp 1.5s ease forwards;
}

/* Tarjeta del lado derecho */
.hero-card {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 28px;
  padding: 30px;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  animation: floatCard 4s infinite ease-in-out;
}

.hero-card h3 {
  font-size: 24px;
  margin-bottom: 18px;
  color: #facc15;
}

.hero-card ul {
  list-style: none;
}

.hero-card li {
  margin: 16px 0;
  font-size: 17px;
}

.hero-card li::before {
  content: '✔';
  color: #004cfe;
  margin-right: 10px;
  font-weight: bold;
}

/* Botones izquierda y derecha */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #0b3c7d;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.slider-btn:hover {
  background: #facc15;
  transform: translateY(-50%) scale(1.12);
}

.prev {
  left: 30px;
}

.next {
  right: 30px;
}

/* Puntos inferiores */
.slider-dots {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 12px;
}

.dot {
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.dot.active {
  background: #facc15;
  transform: scale(1.3);
}

.btn {
  padding: 14px 26px;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-primary {
  background: #89032b;
  color: white;
  box-shadow: 0 10px 25px rgba(225, 29, 72, 0.35);
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.04);
  background: #be123c;
}

.btn-secondary {
  background: #facc15;
  color: #0b3c7d;
}

.btn-secondary:hover {
  transform: translateY(-5px) scale(1.04);
  background: #facc15;
  color: #111827;
}

.hero-card {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 28px;
  padding: 30px;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  animation: floatCard 4s infinite ease-in-out;
}

.hero-card h3 {
  font-size: 24px;
  margin-bottom: 18px;
  color: #facc15;
}

.hero-card ul {
  list-style: none;
}

.hero-card li {
  margin: 16px 0;
  font-size: 17px;
}

.hero-card li::before {
  content: '✔';
  color: #5b0202;
  margin-right: 10px;
  font-weight: bold;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
   SECCIONES GENERALES
========================= */
section {
  padding: 77px 25px;
}

.section-title {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto 20px; /* menos espacio abajo */
  padding: 0 20px;     /* pequeño espacio a los lados */
}

.section-title h2 {
  font-size: 38px;
  color: #7b0303;
  margin-bottom: 14px;
}

.section-title p {
  color: #6b7280;
  font-size: 18px;
  line-height: 1.6;
   margin-bottom: 0;
  
}

.container {
  max-width: 1200px;
  margin: auto;
 
}

/* =========================
   NOSOTROS
========================= */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

.about-img img {
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
  transition: 0.5s;
}

.about-img img:hover {
  transform: scale(1.03) rotate(1deg);
}

.about-text h3 {
  font-size: 30px;
  color: #111827;
  margin-bottom: 18px;
}

.about-text p {
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 18px;
  font-size: 17px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 25px;
}

.stat-box {
  background: white;
  padding: 22px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.stat-box:hover {
  transform: translateY(-8px);
}

.stat-box h4 {
  font-size: 30px;
  color: #e11d48;
}

.stat-box span {
  font-size: 14px;
  color: #6b7280;
  font-weight: 600;
}

/* =========================
   PROPUESTA
========================= */
.services {
  background: #ffffff;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: #f8fafc;
  border-radius: 26px;
  padding: 32px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
  transition: 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #0b3c7d, #e11d48, #facc15);
  top: 0;
  left: 0;
}

.service-card:hover {
  transform: translateY(-14px);
  background: #ffffff;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.14);
}

.service-icon {
  font-size: 44px;
  margin-bottom: 18px;
}

.service-card h3 {
  color: #0b3c7d;
  margin-bottom: 14px;
  font-size: 23px;
}

.service-card p {
  color: #4b5563;
  line-height: 1.7;
}

/* =========================
   GALERÍA
========================= */
.gallery-grid {
  display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
    width: 100%;
}

.gallery-item {
  height: 280px;
    width: 100%;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; 
  transition: 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.15);
  filter: brightness(0.55);
}

.gallery-item span {
  position: absolute;
  bottom: -50px;
  left: 20px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.4s;
}

.gallery-item:hover span {
  bottom: 22px;
}

/* =========================
   NOTICIAS
========================= */
.news {
  background: linear-gradient(135deg, #eef2ff, #fdf2f8);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.news-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.09);
  transition: 0.35s;
}

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

.news-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.news-content {
  padding: 24px;
}

.news-date {
  color: #e11d48;
  font-weight: bold;
  font-size: 14px;
}

.news-content h3 {
  margin: 12px 0;
  color: #0b3c7d;
}

.news-content p {
  color: #4b5563;
  line-height: 1.6;
}

/* =========================
   CONTACTO
========================= */
.contact {
  background: #0f172a;
  color: white;
}

.contact .section-title h2,
.contact .section-title p {
  color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  align-items: start;
}

.contact-info {
  background: rgba(255, 255, 255, 0.08);
  padding: 35px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-info h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #facc15;
}

.contact-info p {
  margin-bottom: 18px;
  line-height: 1.7;
}

form {
  background: white;
  padding: 32px;
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

form input,
form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 16px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  outline: none;
  font-size: 15px;
  transition: 0.3s;
}

form input:focus,
form textarea:focus {
  border-color: #0b3c7d;
  box-shadow: 0 0 0 4px rgba(11, 60, 125, 0.12);
}

form textarea {
  min-height: 120px;
  resize: none;
}

form button {
  width: 100%;
}

/* =========================
   PIE DE PÁGINA
========================= */


/* =========================
   BOTÓN SUBIR
========================= */
.top-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 48px;
  height: 48px;
  background: #e11d48;
  color: white;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(225, 29, 72, 0.4);
  z-index: 1000;
  transition: 0.3s;
}

.top-btn:hover {
  transform: translateY(-6px);
  background: #be123c;
}

/* =========================
   ANIMACIÓN AL HACER SCROLL
========================= */
.reveal {
  opacity: 0;
  transform: translateY(70px);
  transition: 0.9s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .menu-btn {
    display: block;
    font-size: 35px;
    color: rgb(207, 8, 8);
    z-index: 9999;
  }

  nav ul {
    position: absolute;
    top: 78px;
    right: -100%;
    width: 270px;
    background: rgb(60, 1, 1);
    flex-direction: column;
    padding: 28px;
    gap: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 0 24px;
    transition: 0.4s;
        z-index: 9998;
  }

  nav ul.active {
    right: 0;
  }

  .hero-content,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 40px;
  }

  .cards-grid,
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .hero-text h1 {
    font-size: 33px;
  }

  .hero-text p {
    font-size: 17px;
  }

  .cards-grid,
  .news-grid,
  .gallery-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .section-title h2 {
    font-size: 30px;
  }
}

/* =========================
   propuesta
========================= */
.propuesta{
    width:90%;
    max-width:1400px;
    margin:auto;
    padding:50px 0;
}

.propuesta h1{
    text-align:center;
    font-size:3rem;
    color:#8B0000;
    margin-bottom:40px;
}

.contenedor{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(350px,1fr));
    gap:30px;
}

.card{
    background:white;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,.1);
}

.slider{
    width:100%;
    height:250px;
    overflow:hidden;
}

.slides{
    display:flex;
    width:300%;
    height:100%;
    transition:transform 1s ease;
}

.slides img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.contenido{
    padding:25px;
}

.icono{
    width:60px;
    height:60px;
    background:#C8102E;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    margin-bottom:15px;
}

.icono i{
    color:white;
    font-size:24px;
}

.card h2{
    color:#102A5C;
    margin-bottom:15px;
}

.card p{
    line-height:1.7;
    color:#444;
}

@media(max-width:768px){

    .propuesta h1{
        font-size:2rem;
    }

    .contenedor{
        grid-template-columns:1fr;
    }

}
.footer {
  background-color: #020817;
  color: white;
  text-align: center;
  padding: 25px 10px;
}

.redes-sociales {
  margin-bottom: 12px;
}

.redes-sociales a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0 8px;
  border-radius: 50%;
  background-color: #9c0329;
  color: white;
  font-size: 18px;
  text-decoration: none;
  transition: 0.3s ease;
}

.redes-sociales a:hover {
  background-color: #ffd700;
  color: #0f172a;
  transform: translateY(-4px);
}
.fondo{
  background-color: #eeeded;
  width: 85%;
  margin: 0px auto;
} 

/* =========================
   PROPUESTA EDUCATIVA - 3 TARJETAS RESPONSIVE
========================= */

.propuesta {
    width: 100%;
    max-width: 1450px;
    margin: auto;
    padding: 50px 25px;
}

.propuesta .contenedor {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
}

.propuesta .card {
    width: 100%;
    height: auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.15);
}

.propuesta .slider {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.propuesta .slides {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 1s ease;
}

.propuesta .slides img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.propuesta .contenido {
    padding: 25px;
}

.propuesta .card h2 {
    color: #102A5C;
    margin-bottom: 15px;
    font-size: 24px;
}

.propuesta .card p {
    line-height: 1.7;
    color: #444;
}

/* Tablet: 2 tarjetas por fila */
@media (max-width: 1100px) {
    .propuesta .contenedor {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Celular: 1 tarjeta por fila */
@media (max-width: 700px) {
    .propuesta {
        padding: 35px 15px;
    }

    .propuesta h1 {
        font-size: 2rem;
    }

    .propuesta .contenedor {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .propuesta .slider {
        height: 220px;
    }
}
/* =========================
   AJUSTE FINAL DE IMÁGENES DE PROPUESTA
========================= */

.propuesta .slider,
.propuesta .fade-slider,
.propuesta .zoom-slider,
.propuesta .continuo,
.propuesta .flip-slider {
    height: 170px !important;
    overflow: hidden !important;
}

.propuesta .slider img,
.propuesta .fade-slider img,
.propuesta .zoom-slider img,
.propuesta .continuo img,
.propuesta .flip-slider img {
    height: 170px !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Mantener movimiento en las tarjetas continuo */
.propuesta .continuo .slides {
    display: flex !important;
    width: max-content !important;
    height: 170px !important;
    animation: mover 15s linear infinite !important;
}

.propuesta .continuo img {
    width: 350px !important;
    flex: 0 0 auto !important;
}