/* ========================= */
/* RESET */
/* ========================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  scroll-behavior:smooth;
}

body{
  font-family:'Poppins', sans-serif;
  background:#f4f4f4;
  color:#111;
  overflow-x:hidden;
}

/* ========================= */
/* VARIABLES (NUEVOS COLORES) */
/* ========================= */

:root{
  /* Colores basados en el uniforme de los alumnos */
  --rojo:#D30000;       /* Rojo vibrante del uniforme */
  --rojo2:#A10000;      /* Rojo oscuro para degradados */
  --negro:#1A1A1A;      /* Negro corporativo */
  --negro2:#0D0D0D;     /* Negro más oscuro para footer/header */
  --blanco:#FFFFFF;
  --blanco2:#F0F0F0;    /* Blanco grisáceo para fondos */
  --gris:#666666;
}

/* ========================= */
/* CONTAINER */
/* ========================= */

.container{
  width:90%;
  max-width:1300px;
  margin:auto;
}

/* ========================= */
/* HEADER */
/* ========================= */

header{
  width:100%;
  position:fixed;
  top:0;
  left:0;
  z-index:999;
  backdrop-filter:blur(14px);
  background:rgba(26, 26, 26, 0.95); /* Negro con transparencia */
  border-bottom:4px solid var(--rojo); /* Borde rojo institucional */
  box-shadow: 0 4px 15px rgba(211, 0, 0, 0.3);
}

.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 0;
}

/* LOGO */

.logo-container{
  display:flex;
  align-items:center;
  gap:15px;
}

.logo{
  width:65px;
  height:65px;
  object-fit:cover;
  border-radius:50%;
  background:white;
  padding:5px;
  box-shadow:0 0 20px rgba(211, 0, 0, 0.4); /* Sombra roja */
  border: 2px solid var(--rojo);
}

.logo-text h1{
  color:var(--blanco);
  font-size:26px;
  text-shadow: 2px 2px 0px rgba(0,0,0,0.5);
}

.logo-text span{
  color:var(--rojo); /* Rojo para el lema */
  font-size:13px;
  font-weight: 600;
}

/* NAV */

nav{
  display:flex;
  gap:30px;
}

nav a{
  color:var(--blanco);
  text-decoration:none;
  font-weight:600;
  position:relative;
  transition: color 0.3s;
}

nav a:hover{
  color: var(--rojo);
}

nav a::after{
  content:"";
  width:0%;
  height:2px;
  background:var(--rojo); /* Línea roja */
  position:absolute;
  left:0;
  bottom:-6px;
  transition:0.3s;
}

nav a:hover::after{
  width:100%;
}

/* MOBILE */

.menu-mobile{
  display:none;
  color:var(--blanco);
  font-size:30px;
  cursor:pointer;
}

/* ========================= */
/* HERO */
/* ========================= */

.hero{
  width:100%;
  height:100vh;
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  overflow:hidden;
}

/* VIDEO */

.video-bg{
  position:absolute;
  width:100%;
  height:100%;
  object-fit:cover;
}

/* OVERLAY (Degradado Rojo y Negro) */

.overlay{
  position:absolute;
  width:100%;
  height:100%;
  background:linear-gradient(
    to bottom,
    rgba(211, 0, 0, 0.4), /* Rojo */
    rgba(26, 26, 26, 0.8) /* Negro */
  );
}

/* EFECTOS */

.circle{
  position:absolute;
  border-radius:50%;
  filter:blur(90px);
}

.circle1{
  width:300px;
  height:300px;
  background:var(--rojo);
  top:10%;
  left:-100px;
  opacity:0.6;
}

.circle2{
  width:350px;
  height:350px;
  background:var(--negro);
  bottom:-100px;
  right:-120px;
  opacity:0.5;
}

/* HERO CONTENT */

.hero-content{
  position:relative;
  z-index:2;
  text-align:center;
  color:white;
  max-width:900px;
  padding:20px;
}

.badge{
  display:inline-block;
  padding:10px 20px;
  border-radius:50px;
  background:rgba(0,0,0,0.6); /* Fondo negro transparente */
  border:1px solid var(--rojo); /* Borde rojo */
  backdrop-filter:blur(10px);
  margin-bottom:25px;
  color: var(--blanco);
}

.hero-content h2{
  font-size:75px;
  line-height:1.1;
  margin-bottom:25px;
  text-shadow: 4px 4px 0px rgba(0,0,0,0.7);
}

.hero-content p{
  font-size:22px;
  color:#f0f0f0;
  margin-bottom:35px;
  font-weight: 500;
}

/* BOTONES HERO */

.hero-buttons{
  display:flex;
  justify-content:center;
  gap:20px;
  flex-wrap:wrap;
}

.btn{
  padding:16px 35px;
  border-radius:60px;
  text-decoration:none;
  color:var(--blanco);
  font-weight:700;
  background:var(--rojo); /* Fondo rojo */
  border: 2px solid var(--blanco);
  transition:.3s;
  box-shadow:0 10px 30px rgba(211, 0, 0, 0.4);
}

.btn:hover{
  transform:translateY(-5px);
  background:var(--blanco);
  color:var(--rojo);
  border: 2px solid var(--rojo);
}

.btn-secondary{
  background:rgba(0,0,0,0.6); /* Fondo negro transparente */
  border:2px solid var(--blanco);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.btn-secondary:hover{
  background:var(--blanco);
  color:var(--negro);
  border: 2px solid var(--negro);
}

/* ========================= */
/* SECTION */
/* ========================= */

.section{
  padding:110px 0;
  background: var(--blanco2);
}

.section-title{
  text-align:center;
  margin-bottom:70px;
}

.section-title span{
  color:var(--rojo);
  font-weight:bold;
  letter-spacing:1px;
}

.section-title h2{
  font-size:50px;
  margin:15px 0;
  color: var(--negro);
}

.section-title p{
  color:var(--gris);
  max-width:800px;
  margin:auto;
  line-height:1.7;
}

.light h2,
.light span,
.light p{
  color:white;
}

/* ========================= */
/* CARDS */
/* ========================= */

.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:30px;
}

.card{
  background:white;
  border-radius:25px;
  overflow:hidden;
  padding:35px;
  border-top:6px solid var(--rojo); /* Borde rojo */
  transition:.4s;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.card:hover{
  transform:translateY(-10px);
  box-shadow:0 15px 40px rgba(211, 0, 0, 0.15);
}

.icon{
  width:80px;
  height:80px;
  border-radius:20px;
  background:var(--rojo); /* Icono rojo */
  display:flex;
  justify-content:center;
  align-items:center;
  margin-bottom:25px;
  color:white;
  font-size:30px;
}

.card h3{
  margin-bottom:15px;
  font-size:28px;
  color: var(--negro);
}

.card p{
  color:#555;
  line-height:1.8;
}

/* ========================= */
/* TALLERES (Actividades) */
/* ========================= */

.talleres-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:30px;
}

.talleres-grid .card{
  padding:20px;
  text-align:center;
}

.talleres-grid .card img{
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:20px;
  margin-bottom:20px;
  border: 2px solid var(--negro);
}

.talleres-grid .card h3{
  font-size:22px;
  color:var(--negro);
}

/* ========================= */
/* GALERIA (APAFA) */
/* ========================= */

.section-gradient{
  background:var(--negro); /* Fondo negro para la sección de videos */
}

.gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:20px;
}

.gallery video{
  width:100%;
  height:300px;
  object-fit:cover;
  border-radius:25px;
  transition:0.4s;
  border: 2px solid var(--rojo);
}

.gallery video:hover{
  transform:scale(1.04);
  border-color: var(--blanco);
}

/* ========================= */
/* NOSOTROS IMAGEN + TEXTO */
/* ========================= */

.nosotros-content{
  display:flex;
  align-items:center;
  gap:40px;
  max-width:1200px;
  margin:40px auto 0;
}

.nosotros-img{
  flex:1;
}

.nosotros-img img{
  width:100%;
  max-width:450px;
  border-radius:25px;
  box-shadow:0 15px 40px rgba(211, 0, 0, 0.2); /* Sombra roja */
  display:block;
  margin:auto;
  border: 3px solid var(--negro);
}

.nosotros-texto{
  flex:2;
  text-align:justify;
  line-height:1.9;
  color:#333;
  font-size:17px;
}

/* RESPONSIVE NOSOTROS */
@media(max-width:900px){
  .nosotros-content{
    flex-direction:column;
  }
  .nosotros-img img{
    max-width:100%;
  }
}

/* ========================= */
/* AGENDA DIGITAL PREMIUM */
/* ========================= */

.agenda-digital{
  position:relative;
  overflow:hidden;
  background:
  radial-gradient(circle at top left,var(--rojo) 0%,transparent 30%),
  radial-gradient(circle at bottom right,var(--negro) 0%,transparent 30%),
  linear-gradient(
    135deg,
    var(--negro2),
    var(--negro)
  );
  padding:100px 0;
}

/* EFECTOS DE FONDO */
.agenda-digital::before{
  content:"";
  position:absolute;
  width:450px;
  height:450px;
  border-radius:50%;
  background:rgba(211,0,0,.15);
  filter:blur(120px);
  top:-150px;
  right:-100px;
}

.agenda-digital::after{
  content:"";
  position:absolute;
  width:350px;
  height:350px;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  filter:blur(100px);
  bottom:-100px;
  left:-100px;
}

.agenda-titulo{
  text-align:center;
  color:white;
  margin-bottom:70px;
  position:relative;
  z-index:2;
}

.agenda-titulo span{
  display:inline-block;
  padding:10px 25px;
  border-radius:50px;
  background:rgba(255,255,255,.12);
  border:1px solid var(--rojo);
  backdrop-filter:blur(10px);
  font-size:15px;
  font-weight:600;
  letter-spacing:2px;
  margin-bottom:20px;
}

.agenda-titulo h2{
  font-size:48px;
  font-weight:800;
  line-height:1.1;
  text-transform:uppercase;
  color: var(--blanco);
  text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* CONTENIDO */
.agenda-contenido{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:70px;
  position:relative;
  z-index:2;
}

/* IMAGEN */
.agenda-img{
  flex:1;
  text-align:center;
}

.agenda-img img{
  width:140%;
  max-width:700px;
  filter:drop-shadow(0 25px 45px rgba(211, 0, 0, 0.4));
  animation:floatGirl 4s ease-in-out infinite;
}

@keyframes floatGirl{
  0%{ transform:translateY(0px); }
  50%{ transform:translateY(-15px); }
  100%{ transform:translateY(0px); }
}

/* TEXTO */
.agenda-texto{
  flex:1.3;
  color:white;
}

.agenda-texto ul{
  list-style:none;
}

.agenda-texto li{
  position:relative;
  padding-left:38px;
  margin-bottom:20px;
  font-size:16px;
  font-weight:500;
  line-height:1.7;
  transition:.3s;
}

.agenda-texto li:hover{
  transform:translateX(8px);
}

.agenda-texto li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  color:var(--rojo);
  font-size:22px;
  font-weight:bold;
}

/* BOTONES */
.agenda-botones{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}

.agenda-botones img{
  transition:.4s;
  width: 300px;
  height: auto;
}

.agenda-botones img:hover{
  transform:translateY(-8px) scale(1.04);
}

.servicio-img{
  width:320px;
  filter:drop-shadow(0 15px 30px rgba(0,0,0,0.5));
}

.play-img{
  width:240px;
  filter:drop-shadow(0 10px 25px rgba(255,255,255,.25));
}

/* RESPONSIVE AGENDA */
@media(max-width:1200px){
  .agenda-contenido{
    flex-direction:column;
    text-align:center;
    gap:40px;
  }
  .agenda-texto li{
    text-align:left;
    max-width:700px;
    margin:0 auto 18px auto;
  }
}

@media(max-width:768px){
  .agenda-titulo h2{ font-size:34px; }
  .agenda-img img{ max-width:300px; }
  .servicio-img{ width:260px; }
  .play-img{ width:200px; }
  .agenda-texto li{ font-size:16px; }
}

/* ========================= */
/* CONTACTO */
/* ========================= */

.contact{
  background:var(--blanco2);
}

.contact-grid{
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:40px;
  align-items:stretch;
}

.contact-info{
  background:white;
  padding:40px;
  border-radius:25px;
  box-shadow:0 10px 30px rgba(0,0,0,0.08);
  border-top: 5px solid var(--rojo);
}

.contact-info h3{
  font-size:30px;
  margin-bottom:25px;
  color:var(--negro);
}

.contact-info .btn{
  display:inline-block;
  margin-bottom:35px;
}

.info-box{
  display:flex;
  gap:18px;
  margin-bottom:30px;
}

.info-box i{
  font-size:26px;
  color:var(--rojo);
  min-width:35px;
}

.info-box h4{
  margin-bottom:5px;
  color:var(--negro);
}

.info-box p{
  color:#555;
  line-height:1.8;
}

.contact-map{
  width:100%;
}

.contact-map iframe{
  width:100%;
  height:100%;
  min-height:520px;
  border:none;
  border-radius:25px;
  box-shadow:0 10px 30px rgba(0,0,0,0.12);
  border: 3px solid var(--negro);
}

/* RESPONSIVE CONTACTO */
@media(max-width:900px){
  .contact-grid{
    grid-template-columns:1fr;
  }
  .contact-map iframe{
    min-height:400px;
  }
}

/* ========================= */
/* FOOTER */
/* ========================= */

footer{
  background:var(--negro2);
  color:white;
  text-align:center;
  padding:30px;
  border-top:6px solid var(--rojo);
}

/* ========================= */
/* RESPONSIVE GENERAL */
/* ========================= */

@media(max-width:980px){
  .hero-content h2{ font-size:55px; }
}

@media(max-width:768px){
  .menu-mobile{
    display:block;
  }
  nav{
    position:absolute;
    top:100%;
    right:0;
    width:100%;
    background:var(--negro2);
    flex-direction:column;
    align-items:center;
    padding:30px 0;
    display:none;
    border-bottom: 4px solid var(--rojo);
  }
  nav.active{
    display:flex;
  }
  .hero-content h2{ font-size:42px; }
  .hero-content p{ font-size:18px; }
  .section-title h2{ font-size:36px; }
  .logo{ width:55px; height:55px; }
  .logo-text h1{ font-size:20px; }
}

@media(max-width:480px){
  .hero-content h2{ font-size:34px; }
  .hero-buttons{ flex-direction:column; }
  .btn{ width:100%; }
  .section{ padding:80px 0; }
}

/* ========================= */
/* MODAL COMUNICADO */
/* ========================= */

.modal-comunicado{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  padding: 20px;
  overflow-y: auto;
}

.modal-comunicado.active{
  display: flex;
}

.modal-box{
  position: relative;
  max-width: 700px;
  width: 100%;
  margin: auto;
  text-align: center;
  animation: zoomIn .3s ease;
}

.modal-box img{
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  border: 4px solid var(--rojo);
}

.btn-cerrar{
  position: fixed;
  top: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  border: 2px solid var(--blanco);
  border-radius: 50%;
  background: var(--negro);
  color: white;
  font-size: 22px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 5px 20px rgba(0,0,0,.3);
  z-index: 100000;
}

.btn-cerrar:hover{
  transform: scale(1.1);
  background: var(--rojo);
}

.btn-cerrar-texto{
  margin-top: 15px;
  width: 100%;
  padding: 12px;
  border: 2px solid var(--blanco);
  border-radius: 10px;
  background: var(--negro);
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: .3s;
}

.btn-cerrar-texto:hover{
  background: var(--rojo);
}

@keyframes zoomIn{
  from{ opacity: 0; transform: scale(.8); }
  to{ opacity: 1; transform: scale(1); }
}