:root {
  --primary: #2D7FF9;
  --primary-dark: #1E4EB4;
  --secondary: #F7C948;
  --accent: #F78C2A;
  --turquoise: #31C6D4;

  --text-main: #1F2933;
  --text-muted: #6B7280;
  --light-bg: #F4F6F8;
  --white: #FFFFFF;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.6;
}

/* Layout base */

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

.site-header {
  background: linear-gradient(135deg, #4B7FA8 0%, #BFD7E5 60%, #F6F7FB 100%);
  color: var(--text-main);
  padding-bottom: 3rem;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

.logo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;       /* asegura que la imagen se vea bien dentro del círculo */
  object-position: center; /* centra el contenido de la imagen */
}

/* Nav */

.main-nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--primary-dark);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 0 1rem;
}
/* HERO COMPLETO */
.hero-section {
  position: relative;
  width: 100%;
  height: 550px;
  background-image: url("ImagenesPagina/PreIcfes/5ab3c7bd-f785-441c-8d0e-1b078594a077.JPG"); /* AQUÍ COLOCAS TU IMAGEN */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
  overflow: hidden;
}

/* OSCURECER FONDO */
.hero-overlay {
  position: absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.45);
  z-index:1;
}

/* CONTENIDO */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
}

/* TEXTO */
.hero-text {
  flex: 1;
  color: white;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-family: 'Poppins';
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
  max-width: 500px;
}

.hero-buttons {
  margin: 1.5rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
/* VIDEO */
.hero-video {
  flex: 1;
  max-width: 480px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* RESPONSIVE */
@media (max-width: 850px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-video {
    max-width: 90%;
    margin-top: 1.5rem;
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(75, 127, 168, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-dark);
  border: 1px solid rgba(0,0,0,0.08);
}

.btn-secondary:hover {
  background: #EDF2F7;
}

.btn-block {
  width: 100%;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.hero-image img {
  width: 100%;
  border-radius: 1.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
  object-fit: cover;
}

/* Secciones genéricas */

.section {
  padding: 4rem 0;
}

.section-alt {
  padding: 4rem 0;
  background-color: var(--light-bg);
}

.section-title {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
}

/* Nosotros */

.section-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: flex-start;
}

.section-grid h2 {
  font-family: 'Poppins', sans-serif;
  margin-top: 0;
}

.section-grid p {
  color: var(--text-muted);
}

.card {
  background: var(--white);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-family: 'Poppins', sans-serif;
  color: var(--primary-dark);
}

.card-outline {
  border: 2px dashed rgba(75, 127, 168, 0.35);
}

.objetivos {
  margin-top: 2.5rem;
}

/* Programas */

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.program-card {
  background: var(--white);
  border-radius: 1.25rem;
  padding: 1.5rem 1.5rem 1.75rem;
  border-top: 4px solid var(--secondary);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.program-card h3 {
  margin-top: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--primary-dark);
}

.program-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.program-card ul {
  padding-left: 1.1rem;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--text-main);
}

/* Alianzas */

.alianzas {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
}

.alianzas-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
}

.alianza-card {
  background: #fff;
  padding: 1.8rem;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}


.alianza-card img {
  max-width: 160px;
  height: auto;
  display: block;
}

.alianza-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.18);
}

/* CONTENEDOR DE LA IMAGEN */
.alianza-card img {
  display: block;
  margin: auto;
  width: 70%;
  max-width: 180px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

/* TITULO DE CADA ALIADO */
.alianza-card h3 {
  font-family: 'Poppins';
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1E4EB4;
}

/* TEXTO */
.alianza-card p {
  font-size: .95rem;
  color: #5b5b5b;
  margin-top: .6rem;
}
/* Contacto */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: flex-start;
}

.contact-info p {
  margin: 0.35rem 0;
  color: var(--text-muted);
}

.contact-info a {
  color: var(--primary-dark);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form {
  background: var(--light-bg);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #D1D5DB;
  font: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(75, 127, 168, 0.25);
}

/* Footer */

.site-footer {
  background: #0F172A;
  color: #E5E7EB;
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

.footer-content {
  text-align: center;
}

/* Responsivo */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }

  .section-grid,
  .program-grid,
  .alianzas,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .program-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 640px) {
  .header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

 .main-nav a.active {
  color: var(--primary-dark);
  position: relative;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--secondary);
}


  .hero {
    padding-top: 1.25rem;
  }

  .hero-text h1 {
    font-size: 1.9rem;
  }

  .program-grid {
    grid-template-columns: 1fr;
  }
}
.carousel-section {
  padding: 4rem 0;
  background: var(--white);
  text-align: center;
}

.carousel-title {
  font-size: 2rem;
  font-family: 'Poppins';
  margin-bottom: 2rem;
  color: var(--primary-dark);
}

.carousel-card {
  width: 100%;
  background: var(--light-bg);
  border-radius: 1rem;
  padding: 1rem;
  text-align: left;
  box-shadow: 0 7px 15px rgba(0,0,0,0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.carousel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.carousel-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: .8rem;
  margin-bottom: .7rem;
}


.carousel-card h3 {
  margin: .5rem 0;
  color: var(--primary-dark);
  font-family: 'Poppins';
}

.carousel-card p {
  color: var(--text-muted);
  font-size: .9rem;
}

.carousel-note {
  margin-top: 1rem;
  font-size: .85rem;
  color: var(--text-muted);
}
/* Contenedor limpio */

/* CONTENEDOR DEL CARRUSEL COMPLETO */
.carousel-container-netflix {
  position: relative;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 60px;
  overflow: hidden; /*  CORRIGE EL PROBLEMA DE ACUMULACIÓN */
}

/* Swiper tamaño REAL */
.mySwiperNetflix {
  width: 100%;
  overflow: visible !important; 
}
/* CONTENEDOR GENERAL */
.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1250px;
  margin: auto;
  padding: 2rem 0;
}

/* TARJETAS */
.netflix-card {
  width: 260px;
  background: white;
  border-radius: 15px;
  padding: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.10);
  transition: transform .25s ease, box-shadow .25s ease;
}

.netflix-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

/* EFECTO NETFLIX HOVER */
.netflix-card:hover {
  transform: scale(1.08);
  z-index: 10;
}



/* Configuración oficial Swiper */
/* Carrusel general */


/* FLECHAS FUERA (POSICIÓN PERFECTA Netflix) */
.netflix-prev,
.netflix-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #1E4EB4;
  font-size: 45px;
  cursor: pointer;
  z-index: 20;
  transition: .2s ease;
}
.netflix-prev { left: 10px; }
.netflix-next { right: 10px; }


.netflix-prev:hover,
.netflix-next:hover {
  transform: translateY(-50%) scale(1.25);
  color: #024dcc;
} 

.mySwiperNetflix .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto !important;
}

@media(max-width:768px){
  .carousel-container-netflix {
    padding: 20px 25px;
  }
}
/* Tarjeta */
.carousel-card {
  width: 300px;       /* Ajuste perfecto */
  background: var(--light-bg);
  border-radius: 1rem;
  padding: 1rem;
  text-align: left;
  box-shadow: 0 7px 15px rgba(0,0,0,0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.carousel-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: .8rem;
}

/********************************************
   ESTILOS GENERALES PARA SWIPER
*********************************************/
.swiper {
  width: 100%;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 25px 0;
}

.swiper-wrapper {
  align-items: center;
}

/********************************************
   CADA SLIDE DEL CARRUSEL
*********************************************/
.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  border-radius: 18px;
  padding: 12px;
  height: 150px;
  box-sizing: border-box;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform .18s ease;
}

.swiper-slide:hover {
  transform: translateY(-5px);
}

/********************************************
   IMÁGENES DENTRO DE LOS SLIDES
*********************************************/
.mySwiperColegios .swiper-slide img,
.mySwiperUniversidades .swiper-slide img {
  max-height: 110px;
  max-width: 95%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  background: white;
}

/********************************************
   EFECTOS
*********************************************/
.mySwiperColegios .swiper-slide img:hover,
.mySwiperUniversidades .swiper-slide img:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 30px rgba(0,0,0,0.16);
}

/********************************************
   FLECHAS DEL CARRUSEL
*********************************************/
.btn-next-colegios,
.btn-prev-colegios,
.btn-next-universidades,
.btn-prev-universidades {
  color: #1E4EB4;
  transform: scale(1.2);
}

.btn-next-colegios:hover,
.btn-prev-colegios:hover,
.btn-next-universidades:hover,
.btn-prev-universidades:hover {
  transform: scale(1.3);
  color: #1451d0;
}

/********************************************
   PAGINACIÓN
*********************************************/
.pagination-colegios .swiper-pagination-bullet,
.pagination-universidades .swiper-pagination-bullet {
  background: rgba(0,0,0,0.25);
  opacity: .5;
  transition: .25s ease;
}

.pagination-colegios .swiper-pagination-bullet-active,
.pagination-universidades .swiper-pagination-bullet-active {
  background: #1E4EB4 !important;
  opacity: 1;
  transform: scale(1.3);
}

/********************************************
   RESPONSIVE
*********************************************/
@media (max-width: 768px) {
  .swiper-slide {
    width: 130px;
    height: 130px;
  }

  .mySwiperColegios .swiper-slide img,
  .mySwiperUniversidades .swiper-slide img {
    max-height: 80px;
  }

  .btn-next-colegios,
  .btn-prev-colegios,
  .btn-next-universidades,
  .btn-prev-universidades {
    transform: scale(.8);
  }
}


.footer-social {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-icon img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1); /* Íconos blancos */
  transition: 0.2s ease;
}

.social-icon:hover img {
  transform: scale(1.15);
  filter: brightness(1) invert(0) saturate(3) hue-rotate(200deg);
}
/* Botón flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.3);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
  filter: brightness(0) invert(1);
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0px 6px 18px rgba(0,0,0,0.35);
}
/* Banner con efecto Parallax */
.contact-social-banner {
  margin-top: 4rem;
  background-image: url("ImagenesPagina/EscuelaEmociones/Collage1.JPG");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;  /* ACTIVA EL PARALLAX */
  background-repeat: no-repeat;
  padding: 6rem 1rem;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}


/* Overlay para mejor lectura */
.contact-social-banner::before {
  content: "";
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45); /* Oscurece la imagen ligeramente */
  backdrop-filter: blur(2px);
  z-index: 1;
}

.contact-social-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  margin: auto;
}

.contact-social-content h2 {
  font-family: 'Poppins';
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.contact-social-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Íconos */
.contact-social-icons {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.contact-social-icons img {
  filter: brightness(0) invert(1);
  transition: 0.25s ease;
}

.contact-social-icons img:hover {
  transform: scale(1.18);
  filter: brightness(1.25);
}

/* Ajuste para móviles donde el parallax puede fallar */
@media (max-width: 768px) {
  .contact-social-banner {
    background-attachment: scroll; /* Evita bugs en celulares */
  }
}
/* PARRALLAX UNIVERSAL */
.parallax-section {
  width: 100%;
  height: 350px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 4rem 0;
  border-radius: 15px;
  overflow: hidden;
}

/* Overlay */
.parallax-section::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  top: 0; left: 0;
  z-index: 1;
}

.parallax-content {
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 700px;
}

.parallax-content h2 {
  font-size: 2rem;
  font-family: 'Poppins';
}

.parallax-content p {
  font-size: 1.1rem;
}

/* Fallback móvil */
@media (max-width: 768px) {
  .parallax-section {
    background-attachment: scroll;
  }
}

/* VIDEO BANNER */
.video-banner {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 15px;
  overflow: hidden;
  margin: 3rem auto;
}

.video-banner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.45);
}

.video-text {
  position: absolute;
  top: 50%; left:50%;
  transform: translate(-50%, -50%);
  color:white;
  text-align:center;
  z-index:2;
}

.video-text h2 {
  font-size: 2rem;
  font-family: 'Poppins';
}

.video-text p {
  font-size: 1.1rem;
}

.video-section {
  margin-top: 3rem;
  text-align: center;
}

.video-section h2 {
  font-family: 'Poppins';
  margin-bottom: 1rem;
  color: #1E4EB4;
}
/* GRID EDITORIAL */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

/* TARJETAS EDITORIALES */
.editorial-card {
  text-align: center;
  background: #fff;
  border-radius: 20px;
  padding: 2.2rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.editorial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}

/* ICONOS */
.editorial-icon {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin: 0 auto 1rem auto;
  display: block;
  border-radius: 16px;
}

/* TITULOS */
.editorial-card h3 {
  font-family: 'Poppins';
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  color: var(--primary-dark);
}

/* TEXTO */
.editorial-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.4rem;
}

/* ITEM FINAL DIFERENTE */
.editorial-card.final {
  border-top: 4px solid #D948A0;
  background: #fff6fb;
}
