@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600;700;800;900&display=swap');

/* =========================
   VARIABLES
========================= */
:root{
  --main-color:#d3ad7f;
  --black:#13131a;
  --bg:#010103;
  --verde:#2E6A3D;
  --dorado:#977E27;
  --crema:#FFF4C7;
  --blanco:#ffffff;
}

/* =========================
   RESET
========================= */
*{
  font-family:'Poppins', sans-serif;
  margin:0;
  padding:0;
  box-sizing:border-box;
  text-decoration:none;
}

html{
  font-size:62.5%;
  overflow-x:hidden;
  scroll-behavior:smooth;
}

body{
  background:#000;
}

/* =========================
   SOCIAL FIXED
========================= */
.social-fixed{
  position:fixed;
  top:50%;
  right:20px;
  transform:translateY(-50%);
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index:999;
}

.social-title{
  writing-mode:vertical-rl;
  transform:rotate(180deg);
  font-size:1rem;
  color:#fff;
  letter-spacing:2px;
}

.social-icon{
  width:45px;
  height:45px;
  background:#2E6A3C;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.8rem;
  transition:.3s;
}

.social-icon:hover{
  background:#000;
  transform:translateX(-5px);
}

@media (max-width:768px){
  .social-fixed{
    display: flex; /* Muestra los botones */
    position: fixed;
    top: 50%;
    right: 10px; /* Mantiene en el lado derecho */
    transform: translateY(-50%); /* Centra verticalmente */
    flex-direction: column; /* Vertical */
    gap: 8px; /* Espacio reducido para móviles */
    z-index: 999;
  }

  .social-icon{
    width: 35px; /* Más pequeños en móviles */
    height: 35px;
    font-size: 1.4rem; /* Ícono más pequeño */
  }

  .social-title{
    display: none; /* Oculta el título vertical en móviles para ahorrar espacio */
  }
}

/* =========================
   HEADER
========================= */
.header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:60px;
  background:#000;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content: center;
  padding: 10px 5%;
}

.header-container{
  width:100%;
  max-width:1400px;
  margin:auto;
  padding:0 10px;
  display:flex;
  align-items:center;
}

.logo img{
  height:40px;
}

/* =========================
   NAVBAR
========================= */
.navbar{
  margin-left:auto;
}

.menu{
  display:flex;
  gap:18px;
  list-style:none;
}

.menu li a{
  font-size:1.3rem;
  color:#fff;
  font-weight:600;
}

/* =========================
   DROPDOWN
========================= */
.dropdown{
  position:relative;
}

.submenu{
  position:absolute;
  top:100%;
  left:0;
  background:#000;
  min-width:200px;
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:.3s;
  list-style:none;
  padding:10px 0;
}

.dropdown:hover .submenu{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.submenu li a{
  display:block;
  padding:6px 10px;
  font-size:1.1rem;
  color:#fff;
}

.submenu li a:hover{
  background:#caa24d;
}

/* =========================
   MENU MOBILE (BOTÓN HAMBURGUESA)
========================= */
#menu-btn{
  display:none;
  font-size:2.5rem;
  color:#fff;
  cursor:pointer;
}

@media (max-width:900px){
  #menu-btn{display:block;}

  .menu{
    position:absolute;
    top:80px;
    right:0;
    width:100%;
    background:#000;
    flex-direction:column;
    display:none;
  }

  .navbar.active .menu{
    display:flex;
  }

  .submenu{
    position:static;
    opacity:1;
    visibility:visible;
    transform:none;
    display:none;
  }

  .dropdown.active .submenu{
    display:block;
  }
}

/* =========================
   BOTONES / TITULOS
========================= */
.heading{
  text-align:center;
  color:#fff;
  font-size:4rem;
}

.btn{
  display:inline-block;
  padding:1rem 3rem;
  font-size:1.6rem;
  background:var(--main-color);
  color:#fff;
}

.btn:hover{
  background:#fff4c7;
  color:#000;
}

/* =========================
   CONTROL DE SECCIONES
========================= */
.section-view{
  display:none;
  padding-top:60px;
}

.section-view.active{
  display:block;
  min-height:100vh;
}

/* =========================
   HOME / VIDEO
========================= */
.home{
  width:100%;
  min-height:100vh;
  overflow:hidden;
  position:relative;
  display:flex;
  align-items:center;
}

/* VIDEO */
.home video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* =========================
   CONTENIDO HOME
========================= */
.home .content{
  position:absolute;
  z-index:2;
  max-width:60rem;
  padding:0 0%;
}

.home .content h3{
  font-size:clamp(4rem, 10vw, 12rem);
  color:#fff;
  text-transform:uppercase;
}

/* =========================
   HEADER AJUSTES
========================= */
.header .logo img{
  height:4.5rem;
}

/* =========================
   LINKS MENU (CORRECTOS)
========================= */
.menu li a{
  font-size:1.4rem;
  color:#fff;
}

.menu li a:hover{
  color:#FFF4C7;
  border-bottom:2px solid var(--main-color);
}

/* =========================
   ICONOS HEADER
========================= */
.icons div{
  color:#fff;
  cursor:pointer;
  font-size:2.2rem;
  margin-left:1.5rem;
}

.icons div:hover{
  color:var(--main-color);
}

/* =========================
   SEARCH
========================= */
.search-form{
  position:absolute;
  top:100%;
  right:20px;
  background:#fff;
  width:30rem;
  height:4.5rem;
  display:flex;
  align-items:center;
  transform:scaleY(0);
  transform-origin:top;
}

.search-form.active{
  transform:scaleY(1);
}

.search-form input{
  width:100%;
  height:100%;
  font-size:1.4rem;
  padding:1rem;
}

/* =========================
   CARRITO
========================= */
.cart-items-container{
  position:absolute;
  top:100%;
  right:-100%;
  width:30rem;
  height:calc(100vh - 80px);
  background:#fff;
}

/* =========================
   RESPONSIVE GENERAL PARA MÓVILES Y TABLETS
========================= */
@media (max-width:1971px){
  .home{
    min-height: 100vh; /* Asegura que ocupe todo el alto */
    display: flex;
    align-items: center; /* Centra el contenido */
    justify-content: center;
  }

  .home video{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Ocupa todo el alto de la pantalla */
    object-fit: cover; /* Mantiene proporción sin fondo negro */
  }

  .home .content h3{
    font-size: clamp(3rem, 8vw, 6rem);
  }

  .home .content{
    position: relative; /* Cambia a relative para que se centre sobre el video */
    z-index: 2;
    text-align: center; /* Centra el texto */
    padding: 0 5%;
  }

  .heading{
    font-size: clamp(2.5rem, 6vw, 4rem);
  }

  .btn{
    padding: 0.8rem 2rem;
    font-size: 1.4rem;
  }

  .section-view{
    padding-top: 8vh;
  }
}

/* =========================
   SECCIÓN PARALLAX DUAL
========================= */
.parallax-dual{
  position:relative;
  width:100%;
  min-height:100vh;
  overflow:hidden;
  display:flex;
  align-items:center;
}

/* =========================
   FONDO PARALLAX
========================= */
.parallax-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:1;
  will-change:transform;
}

/* =========================
   IMAGEN CHICA
========================= */
.parallax-front{
  position:absolute;
  bottom:0;
  right:2%;
  height:90%;
  width:auto;
  z-index:2;
  pointer-events:none;
}

/* =========================
   CONTENIDO TEXTO
========================= */
.parallax-content{
  position:relative;
  z-index:3;
  width:60%;
  padding:5% 6%;
  color:#fff;
  letter-spacing:1.2px;
}

/* TÍTULO */
.parallax-content h1{
  font-size:clamp(3rem, 4vw, 4.5rem);
  margin-bottom:2rem;
  text-transform:uppercase;
  text-shadow:2px 2px 6px rgba(0,0,0,.7);
}

/* TEXTO */
.parallax-content p{
  font-size:1.8rem;
  line-height:1.4;
  text-align:justify;
  margin-bottom:2rem;
  text-shadow:2px 2px 6px rgba(0,0,0,.7);
}

/* =========================
   EFECTO PARALLAX (DESKTOP)
========================= */
@media (min-width:768px){
  .section-view.active .parallax-bg{
    transform:translateY(calc(var(--scroll) * 0.15px));
  }

  .section-view.active .parallax-front{
    transform:translateY(calc(var(--scroll) * 0.3px));
  }
}

/* =========================
   RESPONSIVE PARALLAX (PROFESIONAL: 300px a 1500px)
========================= */
@media (max-width: 1500px) {
  .parallax-dual {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(2%, 5%, 8%) clamp(3%, 5%, 10%); /* Padding fluido */
    position: relative;
    min-height: clamp(70vh, 80vh, 100vh); /* Altura fluida */
  }

  .parallax-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transform: translateY(calc(var(--scroll) * 0.1px)); /* Parallax suave con movimiento */
  }

.parallax-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transform: translateY(calc(var(--scroll) * 0.15px)); /* Mantén o aumenta si quieres */
  transition: transform 0.1s ease-out; /* Agrega transición */
}

  .parallax-content {
    position: absolute;
    bottom: clamp(5%, 10%, 15%); /* Posición fluida */
    left: clamp(3%, 5%, 8%);
    right: clamp(3%, 5%, 8%);
    z-index: 3;
    background: rgba(0, 0, 0, 0.75); /* Cuadro semi-transparente para legibilidad */
    backdrop-filter: blur(clamp(5px, 10px, 15px)); /* Blur fluido */
    padding: clamp(15px, 20px, 30px);
    border-radius: clamp(10px, 15px, 20px);
    color: #fff;
    text-align: center;
    box-shadow: 0 clamp(3px, 5px, 10px) clamp(10px, 20px, 30px) rgba(0, 0, 0, 0.4); /* Sombra fluida solo en texto */
  }

  .parallax-content h1 {
    font-size: clamp(2rem, 6vw, 4rem); /* Fluido */
    margin-bottom: clamp(10px, 15px, 20px);
    text-shadow: 2px 2px clamp(4px, 6px, 8px) rgba(0, 0, 0, 0.8);
  }

  .parallax-content p {
    font-size: clamp(1.2rem, 4vw, 1.6rem); /* Fluido */
    line-height: 1.5;
    text-align: center;
    margin-bottom: clamp(10px, 15px, 20px);
    text-shadow: 2px 2px clamp(4px, 6px, 8px) rgba(0, 0, 0, 0.8);
  }
}

/* Ajustes específicos para móviles muy pequeños (300px-600px) */
@media (max-width: 600px) {
  .parallax-front {
    height: 50vh; /* Más compacto en móviles pequeños */
  }

  .parallax-content {
    bottom: 5%;
    padding: 15px;
  }
}

/* =========================
   MOVIES SECTION
========================= */
.movies-section{
  padding:40px 5%;
  font-family:'Poppins', sans-serif;
}

#searchInput{
  width:100%;
  max-width:400px;
  padding:8px 12px;
  margin-bottom:10px;
  border:1px solid #ccc;
  border-radius:6px;
}

/* =========================
   SECCIÓN PROGRAMACIÓN
========================= */
.programacion{
  width:100%;
  min-height:100vh;
  position:relative;
  padding:100px 8%;
  background:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    url("../images/programación.jpeg") no-repeat center / cover;
}

/* TÍTULOS */
.programacion h1{
  font-size:clamp(3rem, 5vw, 4.5rem);
  margin-bottom:2rem;
  text-transform:uppercase;
  text-align:center;
  color:#fff4c7;
  letter-spacing:1.5px;
  text-shadow:2px 2px 6px rgba(0,0,0,.7);
}

.programacion p{
  font-size:clamp(1.6rem, 3vw, 2.2rem);
  text-transform:uppercase;
  color:#fff4c7;
  padding:0 5%;
  margin-bottom:2rem;
  letter-spacing:1.3px;
  text-shadow:2px 2px 6px rgba(0,0,0,.7);
}

/* =========================
   TABLA
========================= */
.table-container{
  overflow-x:auto;
  padding:20px;
  background:rgba(0,0,0,.35);
  backdrop-filter:blur(4px);
  border-radius:12px;
}

table{
  width:100%;
  border-collapse:collapse;
  border:1px solid rgba(255,255,255,.6);
}

/* ENCABEZADOS */
th{
  background:rgba(46,106,60,.85);
  color:#fff4c7;
  font-size:1.6rem;
  padding:10px;
  letter-spacing:1.4px;
  border-bottom:1px solid rgba(255,255,255,.4);
  text-shadow:2px 2px 6px rgba(0,0,0,.8);
}

/* CELDAS */
td{
  font-size:1.5rem;
  padding:10px;
  color:#fff4c7;
  background:rgba(0,0,0,.25);
  border-bottom:1px solid rgba(255,255,255,.3);
}

/* HOVER */
tr:hover td{
  background:rgba(255,255,255,.08);
}

/* =========================
   CONTROLES TABLA
========================= */
.table-controls{
  margin-top:25px;
  text-align:center;
}

.table-controls button{
  padding:10px 26px;
  margin:6px;
  border-radius:30px;
  background:rgba(0,0,0,.6);
  color:#fff4c7;
  border:1px solid rgba(255,255,255,.5);
  font-size:1.4rem;
  letter-spacing:1px;
  cursor:pointer;
  transition:.3s;
}

.table-controls button:hover{
  background:rgba(255,255,255,.1);
}

/* =========================
   PARALLAX ACTIVIDADES
========================= */
.parallax-actividades{
  width:100%;
  min-height:100vh;
  padding:80px 5%;
  position:relative;
  background:
    linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,.4)),
    url("../images/fondo paisajes.webp") no-repeat center / cover;
}

/* =========================
   RESPONSIVE PROGRAMACIÓN Y ACTIVIDADES
========================= */
@media (max-width:768px){
  .programacion{
    padding:70px 5%;
  }

  .table-container{
    padding:12px;
  }

  th, td{
    font-size:1.3rem;
    padding:8px;
  }

  .parallax-actividades{
    padding:60px 5%;
  }

  .programacion h1{
    font-size: clamp(2.5rem, 7vw, 4rem);
  }

  .programacion p{
    font-size: clamp(1.4rem, 4vw, 2rem);
  }
}
/* =========================
   PARALLAX ACTIVIDADES
========================= */
.parallax-actividades{
  position:relative;
  min-height:100vh;
  width:100%;
  padding:80px 5%;
  background:
    linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,.4)),
    url("../images/fondo paisajes.webp") no-repeat center / cover;
}

/* OVERLAY */
.parallax-actividades::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.45);
  z-index:1;
}

/* CONTENIDO */
.parallax-content-actividades{
  position:relative;
  z-index:2;
  padding:20px 8%;
}

/* GRID */
.box-container{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px,1fr));
  gap:40px;
}

/* TARJETAS */
.box{
  background:rgba(0,0,0,.35);
  backdrop-filter:blur(4px);
  border:1px solid rgba(255,255,255,.35);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 25px rgba(0,0,0,.5);
  transition:.3s ease;
}

.box:hover{
  transform:translateY(-8px);
  box-shadow:0 15px 35px rgba(0,0,0,.7);
}

/* IMAGEN */
.box img{
  width:100%;
  height:220px;
  object-fit:cover;
}

/* TITULOS TARJETA */
.box h3{
  margin:16px;
  padding:8px 12px;
  background:#2e6a3c;
  color:#fff;
  text-align:center;
  letter-spacing:2px;
  border-radius:8px;
}

/* TEXTO */
.box p{
  margin:6px 20px 16px;
  font-size:1.4rem;
  line-height:1.4;
  color:#fff4c7;
}

/* TITULO PRINCIPAL */
#actividades h2{
  text-align:center;
  font-size:clamp(2.8rem, 4vw, 3.5rem);
  margin-bottom:30px;
  color:#fff;
  letter-spacing:3px;
  text-shadow:2px 3px 8px rgba(0,0,0,.8);
}
/* =========================
   FORMACIÓN
========================= */
.formacion{
  position:relative;
  min-height:100vh;
  padding:80px 5%;
  background:
    linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,.4)),
    url("../images/f5.png") no-repeat center / cover;
}

/* =========================
   RESPONSIVE ACTIVIDADES Y FORMACIÓN
========================= */
@media (max-width:768px){
  .parallax-content-actividades{
    padding:20px 4%;
  }

  .box-container{
    gap:25px;
    grid-template-columns: 1fr; /* Una columna en móviles */
  }

  .box img{
    height:180px;
  }

  .formacion{
    padding:60px 5%;
  }

  #actividades h2{
    font-size: clamp(2rem, 5vw, 3rem); /* Ajustado para móviles */
  }
}
/* =========================
   FORMACIÓN
========================= */
.formacion{
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 80px 5%;
}

/* TÍTULO */
.formacion .heading{
  text-align: center;
  margin-bottom: 60px;
}

.formacion .heading span{
  font-size: clamp(2.6rem, 4vw, 4rem);
  color: #fff;
  letter-spacing: 3px;
  text-shadow: 2px 2px 8px rgba(0,0,0,.6);
}

/* GRID */
.formacion .box-container{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

/* TARJETA */
.formacion .box{
  background: rgba(0,0,0,.45);
  border-radius: 20px;
  overflow: hidden;
  padding-bottom: 30px;
  backdrop-filter: blur(6px);
  transition: transform .3s ease, box-shadow .3s ease;
}

.formacion .box:hover{
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0,0,0,.5);
}

/* IMAGEN */
.box-image img{
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #FFF4C7;
}

/* ICONO */
.formacion .icon{
  margin: 20px auto 10px;
  width: 45px;
  color: #fff4c7;
}

.formacion svg{
  width: 100%;
  height: auto;
}

/* TITULO TARJETA */
.formacion h3{
  text-align: center;
  color: #fff;
  font-size: clamp(1.8rem, 2.5vw, 2rem);
  padding: 0 12px;
}

/* DOCENTE */
.docente{
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.docente img{
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #2e6a3c;
}

.docente span{
  color: #fff4c7;
  font-size: 1.4rem;
}

/* BOTONES */
.buttons{
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.btn{
  padding: 10px 22px;
  border-radius: 30px;
  font-size: clamp(1.4rem, 2vw, 1.6rem);
  letter-spacing: 1.2px;
  text-decoration: none;
  transition: all .3s ease;
}

.btn.info{
  color: #fff;
  border: 1px solid rgba(255,255,255,.6);
}

.btn.info:hover{
  background: rgba(255,255,255,.15);
}

.btn.inscribirse{
  background: #2e6a3c;
  color: #fff;
}

.btn.inscribirse:hover{
  background: #3f8a57;
}

/* =========================
   CONVOCATORIA
========================= */
#convocatoria{
  position: relative;
  overflow: hidden;
}

.convocatoria-parallax{
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 80px 5%;
  background:
    linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)),
    url("../images/f2.png") no-repeat center / cover;
}

/* =========================
   RESPONSIVE FORMACIÓN Y CONVOCATORIA
========================= */
@media (max-width: 768px){
  .formacion,
  .convocatoria-parallax{
    padding: 60px 5%;
  }

  .formacion .box-container{
    gap: 28px;
  }

  .box-image img{
    height: 180px;
  }

  .formacion .heading span{
    font-size: clamp(2rem, 5vw, 3.5rem); /* Ajustado para móviles */
  }
}
/* ===========================
   SECCIÓN CONVOCATORIA
=========================== */
#convocatoria { 
  position: relative; 
  overflow: hidden; } 
.convocatoria-parallax { 
  width: 100%; 
  padding: 60px 5%; 
  position: relative; 
  background-image: url("../images/f2.png"); 
  background-repeat: no-repeat; 
  background-position: center; 
  background-size: cover; } 

/* FONDO PARALLAX REAL */ 
.fondo-parallax { 
  position: absolute; 
  inset: 0; 
  background: url("../images/fondo-selva.webp") center / cover no-repeat; 
  background-attachment: fixed; 
  filter: brightness(.55); z-index: -1; } 
  
  /* TÍTULO ESQUINA */ 
.titulo-esquina { 
    position: absolute; 
    top: 40px; 
    right: 8%; 
    font-size: 5rem; 
    color: #d3ad7f; 
    letter-spacing: 4px; 
    text-shadow: 3px 3px 10px rgba(0,0,0,.8); 
    left: 2%; } 
    
    /* CONTENIDO */
.convocatoria-contenido { 
      padding: 60px 10%; }    
.contenido-grid { 
        display: grid; 
        grid-template-columns: 1.1fr .9fr; 
        align-items: center; gap: 100px; }

         /* CAJA TEXTO */ 
.texto-convocatoria {
   background: rgba(0,0,0,.55); 
   backdrop-filter: blur(6px); 
   padding: 40px; 
   border-radius: 50px; 
   color: #fff; width: 160%; } 

   .subtitulo { 
    font-size: 2.6rem; 
    margin-bottom: 10px; 
    color: #fff4c7; 
    letter-spacing: 2px; 
    text-shadow: 3px 3px 10px rgba(0,0,0,.8); 
    text-align: right; /* texto empieza desde la derecha */ 
    width: 100%; } 
    
.texto-convocatoria p { 
      font-size: 1.6rem; 
      line-height: 1.6; 
      margin-bottom: 10px; 
      width: 150%; 
      text-shadow: 3px 3px 10px rgba(0,0,0,.8); } /* BOTONES */ 
      
.botones-convocatoria { 
  display: flex; 
  gap: 20px; 
  flex-wrap: wrap; 
  margin-bottom: 35px; } 
  .btn0-detalle { 
    padding: 12px 30px; 
    border-radius: 30px; 
    background: #2e6a3c; 
    color: #fff; 
    text-decoration: none; 
    font-size: 1.4rem; 
    letter-spacing: 1.5px; 
    transition: .3s; } 
    
.btn0-detalle:hover { 
  background: #3f8a57; } 
  
.btn0-detalle.outline { background: transparent; border: 1px solid #fff; } 
.btn0-detalle.green { background: #1f8f5f; } 
/* IMAGEN */ 
.imagen-convocatoria img { 
  width: 140%; 
  display: block; 
  margin: auto; 
  filter: drop-shadow(0 15px 30px rgba(0,0,0,.7)); }

/* ===========================
   RESPONSIVE CON PORCENTAJES
=========================== */



/* TABLET */
@media (max-width: 992px){

  .contenido-grid{
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .texto-convocatoria{
    width: 100%; /* Cambiado de 120% para evitar margen negro */
    max-width: 100%; /* Asegura que no exceda */
  }

  .texto-convocatoria p{
    width: 100%; /* Cambiado de 120% */
    max-width: 100%;
  }

  .imagen-convocatoria img{
    width: 100%; /* Cambiado de 120% */
    max-width: 100%;
  }

  .titulo-esquina{
    font-size: 4rem;
  }
}


/* MOBILE */
@media (max-width: 600px){

  .contenido-grid{
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .texto-convocatoria{
    width: 100%;
  }

  .texto-convocatoria p{
    width: 100%;
  }

  .imagen-convocatoria img{
    width: 100%;
  }

  .subtitulo{
    font-size: 2rem;
  }

  .titulo-esquina{
    font-size: 2.6rem;
  }
}

/* MOBILE PEQUEÑO */
@media (max-width: 360px){

  .texto-convocatoria{
    width: 95%;
  }

  .texto-convocatoria p{
    width: 95%;
  }

  .imagen-convocatoria img{
    width: 95%;
  }

  .titulo-esquina{
    font-size: 2.2rem;
  }
}

/* =========================
   SECCIÓN PELÍCULAS
========================= */
.peliculas{
  width: 100%;
  padding: 80px 6%;
  position: relative;
  background: 
    linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
    url("../images/fondo paisajes.webp") center / cover no-repeat;
}

/* =========================
   TÍTULO
========================= */
.titulo-seccion{
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 60px;
  text-align: center;
  color: #FFF4C7;
  font-family: 'Poppins', Arial, sans-serif;
  text-shadow: 3px 3px 10px rgba(0,0,0,.8);
}

/* =========================
   ITEM PELÍCULA
========================= */
.pelicula-item{
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
  align-items: flex-start;
}

/* IMAGEN */
.pelicula-item img{
  width: 220px;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 10px 20px rgba(0,0,0,.6);
}

/* INFO */
.pelicula-info{
  flex: 1;
}

.pelicula-info h3{
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 10px;
  text-decoration: underline;
  letter-spacing: 1px;
  color: #FFF4C7;
  font-family: 'Poppins', Arial, sans-serif;
  text-shadow: 3px 3px 10px rgba(0,0,0,.8);
}

.pelicula-info .director{
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
  font-family: 'Poppins', Arial, sans-serif;
  text-shadow: 2px 2px 8px rgba(0,0,0,.7);
}

.pelicula-info p{
  line-height: 1.7;
  font-size: 1.9rem;
  color: #fff;
  font-family: 'Poppins', Arial, sans-serif;
  text-align: justify;
  max-width: 900px;
  text-shadow: 2px 2px 8px rgba(0,0,0,.7);
}

/* =========================
   BOTÓN
========================= */
.btn-trailer{
  display: inline-block;
  margin-top: 16px;
  padding: 10px 22px;
  background: #2f6f5e;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  font-size: 1.6rem;
  letter-spacing: 1px;
  transition: all .3s ease;
}

.btn-trailer:hover{
  background: #3fa38c;
  transform: translateY(-3px);
}

/* =========================
   RESPONSIVE PELÍCULAS
========================= */
@media (max-width: 768px){
  .pelicula-item{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .pelicula-info p{
    text-align: center;
  }

  .pelicula-item img{
    width: 100%;
    max-width: 320px;
  }

  .titulo-seccion{
    font-size: clamp(2rem, 6vw, 4rem); /* Ajustado para móviles */
  }
}
/* =========================
   SECCIÓN PERSONALIDADES
========================= */
.personalidades{
  width: 100%;
  padding: 80px 10%;
  position: relative;
  background: 
    linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
    url("../images/f8.png") center / cover no-repeat;
}

/* TABLET Y CELULAR */
@media (max-width: 768px){
  .personalidades{
    padding: 50px 6%;
    background-size: cover;
  }
}

/* =========================
   TÍTULO PRINCIPAL
========================= */
.personalidades .heading{
  text-align: center;
  margin-bottom: 30px;
}

.personalidades .heading span{
  font-size: clamp(3rem, 5vw, 4.2rem);
  color: #fff;
  letter-spacing: 4px;
  text-shadow: 2px 2px 10px rgba(0,0,0,.6);
}

/* =========================
   SUBSECCIÓN
========================= */
.subseccion{
  margin-bottom: 90px;
}

.subtitulo{
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: #fff4c7;
  letter-spacing: 3px;
  margin-bottom: 35px;
  text-align: center;
}

/* =========================
   MOSAICO
========================= */
.mosaico{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

/* CARD */
.persona{
  position: relative;
  height: 420px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
}

.persona img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.persona:hover img{
  transform: scale(1.08);
}

/* OVERLAY */
.overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.9),
    rgba(0,0,0,.25)
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}

.overlay h3{
  color: #fff4c7;
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.overlay p{
  color: #fff;
  font-size: 1.4rem;
  letter-spacing: 1.2px;
}

/* RESPONSIVE MOSAICO */
@media (max-width: 1100px){
  .mosaico{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px){
  .mosaico{
    grid-template-columns: 1fr;
  }

  .persona{
    height: 340px;
  }

  .personalidades .heading span{
    font-size: clamp(2.5rem, 6vw, 3.5rem); /* Ajustado para móviles */
  }

  .subtitulo{
    font-size: clamp(1.8rem, 5vw, 2.5rem); /* Ajustado para móviles */
  }
}

/* =========================
   SECCIÓN PRENSA
========================= */
.prensa-seccion{
  min-height: 100vh;
  background: 
    linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
    url("../images/f4.png") center / cover no-repeat;
  padding: 80px 6%;
  color: #fff;
}

/* LAYOUT */
.prensa-contenido{
  display: flex;
  align-items: center;
  gap: 60px;
}

/* IMAGEN LATERAL */
.imagen-lateral{
  width: 40%;
  min-height: 70vh;
  background: url("../images/prensa2.png") no-repeat center;
  background-size: contain;
  transform: rotate(-15deg);
  filter: drop-shadow(0 15px 30px rgba(0,0,0,.6));
}

/* TEXTO */
.nota-texto{
  width: 60%;
}

.nota-texto h2{
  font-size: clamp(2.4rem, 4vw, 3rem);
  margin-bottom: 15px;
}

.nota-texto h2{
  font-size: clamp(2.4rem, 4vw, 3rem);
  margin-bottom: 15px;
}

.nota-texto h3{
  font-weight: 300;
  line-height: 1.7;
  max-width: 720px;
}

/* RESPONSIVE PRENSA */
@media (max-width: 900px){
  .prensa-contenido{
    flex-direction: column;
    text-align: center;
  }

  .imagen-lateral{
    width: 100%;
    min-height: 40vh;
    transform: rotate(0);
  }

  .nota-texto{
    width: 100%;
  }

  .nota-texto h2{
    font-size: clamp(1.8rem, 5vw, 2.5rem); /* Ajustado para móviles */
  }
}
/* =========================
   PRENSA
========================= */
.prensa-seccion{
  min-height: 100vh;
  padding: 80px 6%;
  background:
    linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
    url("../images/f4.png") center / cover no-repeat;
  color: #fff;
}

/* GRID NOTA */
.nota-grid{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}

/* TITULOS */
.prensa-seccion h1{
  font-size: clamp(3rem, 5vw, 5rem);
  color: #FFF4C7;
  text-align: center;
  margin-bottom: 50px;
}

.nota-texto h2{
  font-size: 2.5rem;
  letter-spacing: 2px;
}

.nota-texto h3{
  font-size: 1.9rem;
  margin: 10px 0;
  color: #FFF4C7;
  letter-spacing: 2px;
  width: 100%;
}

/* IMAGEN */
.nota-imagen img{
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 10px 20px rgba(0,0,0,.25);
}

/* =========================
   EDICIONES
========================= */
.ediciones{
  margin-top: 100px;
}

.ediciones .subtitulo{
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.ediciones-track{
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
}

.ediciones-track::-webkit-scrollbar{
  display: none;
}

.edicion-card{
  min-width: 300px;
  scroll-snap-align: center;
  background: #1f3b2d;
  border-radius: 18px;
  overflow: hidden;
  transition: transform .3s;
}

.edicion-card:hover{
  transform: translateY(-10px);
}

.edicion-card img{
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.edicion-info{
  padding: 20px;
}

.edicion-info h4{
  font-size: 1.4rem;
}

/* =========================
   EQUIPO
========================= */
#Equipo{
  padding: 100px 8%;
  background:
    linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25)),
    url("../images/CHANCHAMAYO.webp") center / cover no-repeat;
}

#Equipo .heading{
  text-align: center;
  font-size: 3.5rem;
  margin-bottom: 70px;
}

#Equipo .heading span{
  color: #fff4c7;
}

#Equipo .box-container{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 35px;
}

.equipo-box{
  text-align: center;
  padding: 35px 25px;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  transition: .4s;
}

.equipo-box:hover{
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,.45);
}

.equipo-box .img{
  width: 150px;
  height: 150px;
  margin: auto auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #FFF4C7;
}

.equipo-box img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   RESPONSIVE EQUIPO Y PRENSA
========================= */
@media (max-width: 900px){
  .nota-grid{
    grid-template-columns: 1fr;
    text-align: center;
  }

  .prensa-seccion h1{
    font-size: clamp(2.5rem, 6vw, 4rem); /* Ajustado para móviles */
  }

  .nota-texto h2{
    font-size: clamp(1.8rem, 5vw, 2.5rem); /* Ajustado para móviles */
  }

  .nota-texto h3{
    font-size: clamp(1.4rem, 4vw, 1.9rem); /* Ajustado para móviles */
  }
}

@media (max-width: 768px){
  .imagen-lateral{
    width: 100%;
    height: 300px;
    background-position: center;
  }

  #Equipo{
    padding: 80px 6%;
  }

  #Equipo .heading{
    font-size: clamp(2.5rem, 6vw, 3.5rem); /* Ajustado para móviles */
  }

  #Equipo .box-container{
    grid-template-columns: 1fr; /* Una columna en móviles */
  }
}
/* =========================
   CONTACTO
========================= */
#Contacto{
  width: 100%;
  padding: 80px 5%;
  position: relative;
  background:
    linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,.72)),
    url("../images/FOTO03.webp") center / cover no-repeat;
}

/* TÍTULO */
#Contacto .heading{
  text-align: center;
  font-size: clamp(2.8rem, 4vw, 4rem);
  margin-bottom: 50px;
  letter-spacing: 3px;
  color: #fff4c7;
}

/* GRID */
#Contacto .row{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: stretch;
}

/* MAPA */
#Contacto .map{
  width: 100%;
  height: 420px;
  border-radius: 20px;
  border: none;
  box-shadow: 0 15px 35px rgba(0,0,0,.25);
}

/* FORMULARIO */
#Contacto form{
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,.25);
}

#Contacto form h3{
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #2f6f5e;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* INPUTS */
#Contacto .inputBox{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  border-bottom: 2px solid #ddd;
  padding: 10px 5px;
}

#Contacto .inputBox span{
  font-size: 1.9rem;
  color: #2f6f5e;
}

#Contacto .inputBox input{
  width: 100%;
  font-size: 1.5rem;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
}

/* BOTÓN */
#Contacto .btn{
  margin-top: 25px;
  width: 100%;
  padding: 14px;
  border-radius: 30px;
  background: #2e6a3c;
  color: #fff;
  font-size: 1.6rem;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  transition: .3s ease;
}

#Contacto .btn:hover{
  background: #3fa38c;
  transform: translateY(-2px);
}

/* RESPONSIVE CONTACTO */
@media (max-width: 900px){
  #Contacto .row{
    grid-template-columns: 1fr;
  }

  #Contacto .map{
    height: 300px;
  }

  #Contacto .heading{
    font-size: clamp(2rem, 5vw, 3.5rem); /* Ajustado para móviles */
  }
}

/* =========================
   AUSPICIADORES
========================= */
.auspiciadores{
  background: linear-gradient(180deg, #2E6A3C, #203a43, #2e5364);
  padding: 80px 5%;
}

.bloque{
  background: rgba(255,255,255,.05);
  border-radius: 20px;
  padding: 40px 30px;
  margin-bottom: 60px;
  box-shadow: 0 15px 40px rgba(0,0,0,.25);
}

.titulo{
  text-align: center;
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 30px;
  letter-spacing: 2px;
}

.titulo span{
  color: #FFF4C7;
}

/* SLIDER */
.slider{
  overflow: hidden;
  width: 100%;
}

.slide-track{
  display: flex;
  width: calc(250px * 12);
  animation: scroll 30s linear infinite;
}

.slide{
  width: 250px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.slide img{
  max-width: 100%;
  max-height: 80px;
  filter: grayscale(100%);
  transition: .4s;
}

.slide img:hover{
  filter: grayscale(0%);
  transform: scale(1.1);
}

@keyframes scroll{
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-250px * 6)); }
}

/* RESPONSIVE AUSPICIADORES */
@media (max-width: 768px){
  .slide{
    width: 180px;
  }

  .titulo{
    font-size: 1.6rem;
  }

  .auspiciadores{
    padding: 60px 5%;
  }
}
/* ======================
   FOOTER
====================== */
.footer {
    background: var(--black);
    text-align: center;
    padding: 3rem 1rem;
}

.footer .share {
    padding: 1rem 0;
}

.footer .share a {
    height: 5rem;
    width: 5rem;
    line-height: 5rem;
    font-size: 2rem;
    color: #fff;
    border: var(--border);
    margin: 1rem;
    border-radius: 50%;
    display: inline-block;
}

.footer .share a:hover {
    background-color: var(--main-color);
}

.footer .links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem 0;
    gap: 1rem;
}

.footer .links a {
    padding: .7rem 2rem;
    color: #fff;
    border: var(--border);
    font-size: 1.6rem;
}

.footer .links a:hover {
    background: var(--main-color);
}

.footer .credit {
    font-size: 1.5rem;
    color: #fff;
    font-weight: lighter;
    padding: 1.5rem;
}

.footer .credit span {
    color: var(--main-color);
}

/* ======================
   SISTEMA DE SECCIONES
====================== */
.section-view {
  display: none;
  width: 100%;
}

.section-view.active {
  display: block;
}

/* asegura altura */
#home,
#Convocatoria {
  min-height: 100vh;
}

/* ======================
   RESPONSIVE FINAL
====================== */
@media (max-width: 400px) {
  html {
    font-size: 55%;
  }

  .header {
    width: 100%;
    padding: 5px 15px;
    text-align: center;
  }

  section {
    padding: 2rem;
  }

  /* Ajustes específicos para CONVOCATORIA en móviles pequeños */
  .titulo-esquina {
    font-size: 2rem; /* Más pequeño para caber */
    top: 20px;
    left: 5%; /* Ajusta posición para no salirse */
    right: auto; /* Evita conflicto */
  }

  .contenido-grid {
    grid-template-columns: 1fr; /* Una columna */
    gap: 20px; /* Menos gap */
  }

  .texto-convocatoria {
    width: 100%; /* Caber en pantalla */
    padding: 20px; /* Menos padding */
    border-radius: 30px; /* Mantén redondeado */
  }

  .texto-convocatoria p {
    font-size: 1.2rem; /* Más pequeño */
    line-height: 1.4;
  }

  .subtitulo {
    font-size: 1.5rem; /* Ajustado */
  }

  .imagen-convocatoria img {
    width: 100%; /* Caber */
    max-width: 100%;
  }

  .botones-convocatoria {
    flex-direction: column; /* Botones en columna */
    gap: 10px;
  }

  .btn0-detalle {
    font-size: 1rem; /* Más pequeño */
    padding: 8px 20px;
  }
}



/* =========================
   AJUSTE ESPECÍFICO PARA MÓVILES (<900px) EN PARALLAX CON SINERGIA
========================= */
@media (max-width: 900px) {
  .parallax-dual {
    flex-direction: column;
    justify-content: flex-start; /* Apila desde arriba, sin espacio grande */
    align-items: center;
    padding: 5% 5%;
    position: relative;
    min-height: 80vh;
    overflow: hidden; /* Evita desbordes */
  }

  .parallax-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transform: translateY(calc(var(--scroll) * 0.1px)); /* Movimiento lento para fondo */
    transition: transform 0.2s ease-out; /* Transición suave */
  }

  .parallax-front {
    position: relative;
    height: 50vh;
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    z-index: 2;
    border-radius: 10px;
    transform: translateY(calc(var(--scroll) * 0.25px)); /* Movimiento medio para imagen (sinergia con fondo) */
    transition: transform 0.2s ease-out; /* Transición suave */
    margin-bottom: 15px; /* Espacio controlado entre imagen y texto */
    animation: fadeInUp 1s ease-out; /* Animación de entrada */
  }

  .parallax-content {
    position: relative; /* Apila abajo de la imagen */
    z-index: 3;
    width: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    color: #fff;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(calc(var(--scroll) * 0.05px)); /* Movimiento sutil para texto (sinergia) */
    transition: transform 0.2s ease-out; /* Transición suave */
    animation: fadeInUp 1.2s ease-out 0.3s both; /* Animación de entrada con delay */
  }

  .parallax-content h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 15px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
  }

  .parallax-content p {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    line-height: 1.5;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
  }
}

/* Animación de entrada para sinergia */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {

  #menu-btn {
    display: inline-block;
  }

  .header .navbar {
   font-size: 3rem;
    position: absolute;
    top: 100%;
    right: -150%;
    background: transparent;
    width: 30rem;
    height: calc(100vh - 9.5rem);
    transition: .3s ease;
  }

  .header .navbar.active {
    right: 0;
  }

  .header .navbar a {
    color: fff;
    display: block;
    margin: 1.5rem;
    padding: 2rem;
    font-size: 1.7rem;
  }

  .header .search-form {
    width: 90%;
    right: 2rem;
  }

  .home {
    background-position: left;
    justify-content: center;
    text-align: center;
  }

  .home .content h3 {
    font-size: 4.5rem;
  }

  .home .content p {
    font-size: 1.5rem;
  }
}

/* media adicional correcto */
@media (max-width: 375px) {
  .home {
    background-position: center;
    text-align: center;
  }
}








@media (max-width:900px){
  #menu-btn{
    display:block;
    font-size:2.5rem;
    color:#fff;
    cursor:pointer;
    transition: transform 0.3s ease; /* Animación suave en el botón */
  }

  #menu-btn:hover {
    transform: scale(1.1); /* Efecto hover sutil */
  }

  .menu{
    position:absolute;
    top:80px;
    right:-100%; /* Empieza fuera de pantalla */
    width:70%; /* Menos ancho para verse elegante */
    background: rgba(0,0,0,0.9); /* Fondo semi-transparente "nacional" */
    backdrop-filter: blur(10px); /* Efecto borroso elegante */
    flex-direction:column;
    display:none;
    padding: 20px;
    border-radius: 10px 0 0 10px; /* Bordes redondeados */
    box-shadow: -5px 0 15px rgba(0,0,0,0.5); /* Sombra lateral */
    transition: right 0.4s ease; /* Animación slide-in suave */
  }

  .navbar.active .menu{
    display:flex;
    right:0; /* Slide-in desde la derecha */
  }

  .menu li a{
    font-size:1.8rem;
    color:#fff;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2); /* Líneas sutiles */
    transition: color 0.3s ease, padding-left 0.3s ease; /* Animación en hover */
  }

  .menu li a:hover{
    color:#d3ad7f; /* Color dorado "nacional" */
    padding-left: 10px; /* Desplazamiento suave */
  }

  .submenu{
    position:static;
    opacity:1;
    visibility:visible;
    transform:none;
    display:none;
    padding-left: 20px; /* Indentado */
  }

  .dropdown.active .submenu{
    display:block;
  }
}














/* =========================
   ANIMACIONES DE SCROLL PARA SECCIONES
========================= */
.section-view {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-view.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Variaciones opcionales para más dinamismo */
.section-view.animate:nth-child(odd) {
  transform: translateX(-50px); /* Slide desde izquierda para secciones impares */
}

.section-view.animate:nth-child(even) {
  transform: translateX(50px); /* Slide desde derecha para secciones pares */
}

/* =========================
   ANIMACIONES DE SCROLL PARA SECCIONES
========================= */
.section-view {
  opacity: 1; /* Empieza visible */
  transform: translateY(0); /* Sin desplazamiento inicial */
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-view.animate {
  /* La animación se activa solo al entrar en vista */
  /* Puedes agregar un efecto extra aquí si quieres, como scale */
  transform: scale(1.02); /* Ligero zoom para dinamismo */
}






/* =========================
   FONDO ANIMADO GLOBAL
========================= */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* No interfiere con clics */
  z-index: -1; /* Detrás de todo */
  overflow: hidden;
}

/* Círculos base */
.circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0; /* Empieza invisible */
  transform: scale(0); /* Empieza pequeño */
  transition: opacity 1s ease, transform 1s ease; /* Fade suave */
}

/* Variaciones de círculos */
.circle-1 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(211, 173, 127, 0.3), transparent); /* Dorado sutil */
  top: 10%;
  left: 10%;
  animation: orbit-1 20s linear infinite; /* Órbita lenta */
}

.circle-2 {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(46, 106, 60, 0.2), transparent); /* Verde sutil */
  top: 50%;
  right: 15%;
  animation: orbit-2 25s linear infinite reverse; /* Órbita inversa */
}

.circle-3 {
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 244, 199, 0.4), transparent); /* Crema sutil */
  bottom: 20%;
  left: 20%;
  animation: orbit-3 15s linear infinite; /* Órbita rápida */
}

.circle-4 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(151, 126, 39, 0.25), transparent); /* Dorado oscuro */
  bottom: 10%;
  right: 10%;
  animation: orbit-4 30s linear infinite reverse; /* Órbita muy lenta */
}

/* Keyframes para órbitas circulares */
@keyframes orbit-1 {
  0% { transform: rotate(0deg) translateX(100px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}

@keyframes orbit-2 {
  0% { transform: rotate(0deg) translateX(80px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(80px) rotate(-360deg); }
}

@keyframes orbit-3 {
  0% { transform: rotate(0deg) translateX(60px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(60px) rotate(-360deg); }
}

@keyframes orbit-4 {
  0% { transform: rotate(0deg) translateX(120px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}

/* Activación por scroll (cuando la sección es visible) */
.section-view.active .animated-bg .circle {
  opacity: 1;
  transform: scale(1);
}

/* Fade out cuando la sección sale de vista */
.section-view:not(.active) .animated-bg .circle {
  opacity: 0;
  transform: scale(0);
}

/* Responsive: Reduce tamaño en móviles para no sobrecargar */
@media (max-width: 768px) {
  .circle-1 { width: 100px; height: 100px; }
  .circle-2 { width: 80px; height: 80px; }
  .circle-3 { width: 60px; height: 60px; }
  .circle-4 { width: 90px; height: 90px; }
  
  @keyframes orbit-1 { 0% { transform: rotate(0deg) translateX(50px) rotate(0deg); } 100% { transform: rotate(360deg) translateX(50px) rotate(-360deg); } }
  @keyframes orbit-2 { 0% { transform: rotate(0deg) translateX(40px) rotate(0deg); } 100% { transform: rotate(360deg) translateX(40px) rotate(-360deg); } }
  @keyframes orbit-3 { 0% { transform: rotate(0deg) translateX(30px) rotate(0deg); } 100% { transform: rotate(360deg) translateX(30px) rotate(-360deg); } }
  @keyframes orbit-4 { 0% { transform: rotate(0deg) translateX(60px) rotate(0deg); } 100% { transform: rotate(360deg) translateX(60px) rotate(-360deg); } }
}