/* ================= RESET BASE ================= */
.historia-wrap{
    background:#e9edf2;
    padding:40px 0;
     padding-top:0px; /* 🔥 aquí sí */
}

.historia-container{
    width:90%;
    max-width:1150px;
    margin:auto;
}

/* ================= HEADER ================= */
.header{
    position:fixed; /* 🔥 CORREGIDO */
    top:0;
    width:100%;
    z-index:9999;

    background:
    linear-gradient(180deg, rgba(5,15,30,0.85), rgba(5,15,30,0.75)),
    linear-gradient(rgba(0,188,212,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,188,212,0.06) 1px, transparent 1px);

    background-size: auto, 40px 40px, 40px 40px;

    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

/* SCROLL */
.header.scrolled{
    background:
    linear-gradient(180deg, rgba(5,15,30,0.98), rgba(5,15,30,0.92)),
    linear-gradient(rgba(0,188,212,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,188,212,0.04) 1px, transparent 1px);

    backdrop-filter: blur(12px);
}

/* TEXTO BLANCO */
.header .nav a,
.header .btn-primary,
.header .icon,
.header .flag{
    color:#fff !important;
}

/* HOVER */
.header .nav a:hover{
    color:#00bcd4 !important;
}

/* ================= HERO ================= */
.historia-hero{
    position:relative;
    height:420px;
    border-radius:16px;
    overflow:hidden;
    margin-bottom:0px;

  
}

/* FONDO */
.hero-bg{
    position:absolute;
    width:100%;
    height:100%;
    z-index:1;

    background:
    linear-gradient(rgba(5,15,30,0.75),rgba(5,15,30,0.9)),
    url('/assets/img/hero-historia.jpg') center/cover no-repeat;
}

/* PARTICLES */
#historiaParticles{
    position:absolute;
    width:100%;
    height:100%;
    z-index:2;
}

/* CONTENIDO */
.hero-content{
    position:relative;
    z-index:3;
    color:#fff;
    padding-top:90px;
}

.hero-content h1{
    font-size:48px;
    font-weight:700;
}

.hero-content span{
    color:#00bcd4;
}

.hero-content p{
    margin-top:10px;
    opacity:0.9;
}

/* STATS */
.hero-stats{
    display:flex;
    gap:30px;
    margin-top:30px;
}

.hero-stats div{
    display:flex;
    flex-direction:column;
}

.hero-stats strong{
    font-size:20px;
}

.hero-stats span{
    font-size:12px;
    opacity:0.7;
}

/* ================= HISTORIA PRO ================= */
.historia-pro{
    background:#fff;
    border-radius:16px;
    padding:70px 60px;
    margin-bottom:40px;
}

/* GRID */
.historia-pro-grid{
    display:grid;
    grid-template-columns:1.1fr 1fr;
    gap:60px;
    align-items:center;
}

/* TEXTO */
.historia-pro-text h2{
    font-size:32px;
    margin-bottom:15px;
}

.historia-pro-text p{
    color:#555;
    line-height:1.7;
    margin-bottom:14px;
}

.historia-highlight{
    font-weight:600;
    color:#0a2540;
}

/* IMÁGENES */
.historia-pro-images{
    position:relative;
}

/* PRINCIPAL */
.img-main{
    width:100%;
    border-radius:16px;
    box-shadow:0 25px 50px rgba(0,0,0,0.15);
}

/* FLOTANTE */
.img-float{
    position:absolute;
    bottom:-30px;
    left:-30px;
    width:60%;
    border-radius:12px;
    border:4px solid #fff;
    box-shadow:0 20px 40px rgba(0,0,0,0.2);
}

/* HOVER PRO */
.historia-pro-images img{
    transition:0.4s;
}

.historia-pro-images:hover .img-main{
    transform:scale(1.03);
}

.historia-pro-images:hover .img-float{
    transform:translateY(-5px);
}

/* RESPONSIVE */
@media(max-width:900px){
    .historia-pro-grid{
        grid-template-columns:1fr;
    }

    .img-float{
        display:none;
    }
}

/* ================= MISIÓN VISIÓN ================= */
.historia-mvv{
    background:linear-gradient(135deg,#0a1f44,#0d2c5a);
    border-radius:16px;
    padding:60px;
    margin-bottom:40px;
    color:#fff;
}

.historia-mvv-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
}

.mvv-card{
    background:rgba(255,255,255,0.05);
    padding:25px;
    border-radius:12px;
    backdrop-filter:blur(10px);
}

/* ================= OBJETIVOS ================= */
.historia-objetivos{
    background:#fff;
    border-radius:16px;
    padding:60px;
}

.objetivos-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:20px;
}

.obj{
    background:#f5f7fb;
    padding:20px;
    text-align:center;
    border-radius:10px;
    font-weight:600;
    transition:0.3s;
}

.obj:hover{
    transform:translateY(-5px);
    background:#0a2540;
    color:#fff;
}

/* ================= RESPONSIVE ================= */
@media(max-width:900px){

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

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

    .historia-mvv-grid{
        grid-template-columns:1fr;
    }

    .hero-content h1{
        font-size:32px;
    }
}

/* ================= HISTORIA PRO ================= */
.historia-section{
    background:#fff;
    border-radius:16px;
    padding:80px 70px;
    margin-bottom:50px;
    position:relative;
}

/* GRID */
.historia-grid{
    display:grid;
    grid-template-columns:1.1fr 1fr;
    gap:70px;
    align-items:center;
}

/* TEXTO */
.historia-text h2{
    font-size:36px;
    margin-bottom:22px;
    font-weight:700;
    color:#111827;
    line-height:1.2;
}

.historia-text h2 span{
    color:#00bcd4;
}

/* PÁRRAFOS */
.historia-text p{
    font-size:15.5px;
    line-height:1.8;
    color:#4b5563;
    margin-bottom:16px;
}

/* LEAD */
.historia-text .lead{
    font-size:16.5px;
    font-weight:500;
    color:#111;
}

/* DESTACADO */
.historia-text .highlight{
    margin-top:22px;
    font-size:15.5px;
    color:#0a2540;
}

.historia-text strong{
    font-weight:600;
}

/* TAG */
.tag{
    display:inline-block;
    font-size:12px;
    font-weight:600;
    color:#00bcd4;
    letter-spacing:1px;
    margin-bottom:10px;
}

/* IMÁGENES */
.historia-images{
    position:relative;
}

/* PRINCIPAL */
.img-main{
    width:100%;
    border-radius:18px;
    box-shadow:0 30px 60px rgba(0,0,0,0.18);
}

/* SECUNDARIA */
.img-secondary{
    position:absolute;
    bottom:-40px;
    left:-40px;
    width:62%;
    border-radius:14px;
    border:5px solid #fff;
    box-shadow:0 25px 50px rgba(0,0,0,0.25);
}

/* HOVER PREMIUM */
.historia-images img{
    transition:0.5s ease;
}

.historia-images:hover .img-main{
    transform:scale(1.04);
}

.historia-images:hover .img-secondary{
    transform:translateY(-8px) scale(1.02);
}

/* RESPONSIVE */
@media(max-width:900px){

    .historia-section{
        padding:50px 25px;
    }

    .historia-grid{
        grid-template-columns:1fr;
        gap:40px;
    }

    .img-secondary{
        display:none;
    }

    .historia-text h2{
        font-size:28px;
    }
}
/* ================= FONDO GRID ================= */
.historia-section{
    position:relative;
    overflow:hidden;
}

/* GRID TECNOLÓGICO */
.historia-bg-grid{
    position:absolute;
    width:100%;
    height:100%;
    top:0;
    left:0;
    z-index:0;

    background:
    linear-gradient(rgba(0,188,212,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,188,212,0.12) 1px, transparent 1px);

    background-size: 40px 40px;

    /* 🔥 glow extra */
    box-shadow: inset 0 0 80px rgba(0,188,212,0.08);
}

/* RADAR CANVAS */
#historiaRadar{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:0;
    opacity:0.75; /* 🔥 más visible */
    mix-blend-mode: screen; /* 🔥 efecto pro */
    pointer-events:none;
}

/* CONTENIDO ENCIMA */
.historia-container{
    position:relative;
    z-index:2;
}

/* LIGHT MODE OPCIONAL */
body.light-mode .historia-bg-grid{
    background:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
}

#historiaRadar{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:0;
    opacity:0.4;
    pointer-events:none;
}
/* ================= TIMELINE FULL (ESTILO PANEL) ================= */

.timeline-full{
    background:#071a33;
    border-radius:16px;
    overflow:hidden;
    margin-bottom:40px;
    color:#fff;
}

/* HEADER */
.timeline-head{
    padding:40px 60px 20px;
}

/* BARRA */
.timeline-bar{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    position:relative;
}

/* LINEA */
.timeline-bar::before{
    content:"";
    position:absolute;
    top:70px;
    left:0;
    width:100%;
    height:2px;
    background:#00eaff;
    box-shadow:0 0 20px #00eaff;
    z-index:1;
}

/* STEP */
.timeline-step{
    position:relative;
    padding:40px 20px 0;
    text-align:center;
    border-right:1px solid rgba(0,255,255,0.1);
}

/* DOT */
.timeline-step .dot{
    width:12px;
    height:12px;
    background:#00eaff;
    border-radius:50%;
    margin:10px auto;
    box-shadow:0 0 12px #00eaff;
    position:relative;
    z-index:2;
}

/* YEAR */
.timeline-step .year{
    color:#00eaff;
    font-weight:600;
    margin-bottom:5px;
}

/* TEXTO */
.timeline-step .content{
    margin-bottom:15px;
}

.timeline-step h4{
    font-size:18px;
    margin-bottom:5px;
}

.timeline-step p{
    font-size:13px;
    color:#9ca3af;
}

/* IMAGEN FULL */
.timeline-step img{
    width:100%;
    height:220px;
    object-fit:cover;
    margin-top:10px;
}

/* HOVER */
.timeline-step:hover{
    background:rgba(0,255,255,0.05);
}

/* RESPONSIVE */
@media(max-width:900px){

    .timeline-bar{
        grid-template-columns:1fr;
    }

    .timeline-bar::before{
        display:none;
    }

    .timeline-step{
        border:none;
    }
}

/* ================= FONDO GRID + RADAR ================= */

.timeline-full{
    position:relative;
    overflow:hidden;
}

/* GRID */
.timeline-bg-grid{
    position:absolute;
    width:100%;
    height:100%;
    top:0;
    left:0;
    z-index:0;

    background:
    linear-gradient(rgba(0,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,255,0.08) 1px, transparent 1px);

    background-size: 40px 40px;

    animation: gridMove 20s linear infinite;
}

/* MOVIMIENTO GRID */
@keyframes gridMove{
    from{
        transform:translateY(0);
    }
    to{
        transform:translateY(40px);
    }
}

/* RADAR */
#timelineRadar{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:0;
    pointer-events:none;
    opacity:0.5;
    mix-blend-mode:screen;
}

/* CONTENIDO ENCIMA */
.timeline-head,
.timeline-bar{
    position:relative;
    z-index:2;
}

/* ================= MVV PRO ================= */

.historia-mvv{
    position:relative;
    background:linear-gradient(135deg,#071a33,#0a2540);
    border-radius:16px;
    padding:90px 60px;
    margin-bottom:40px;
    color:#fff;
    overflow:hidden;
}

/* HEADER */
.mvv-header{
    text-align:center;
    max-width:700px;
    margin:0 auto 50px;
}

.mvv-header h2{
    font-size:34px;
    margin:10px 0;
}

.mvv-header p{
    font-size:15px;
    opacity:0.8;
}

/* GRID */
.historia-mvv-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
}

/* CARD */
.mvv-card{
    background:rgba(255,255,255,0.05);
    padding:30px;
    border-radius:16px;
    backdrop-filter:blur(12px);
    transition:0.3s;
    position:relative;
    overflow:hidden;
}

/* EFECTO HOVER */
.mvv-card:hover{
    transform:translateY(-8px);
    background:rgba(0,188,212,0.08);
}

/* ICONO */
.mvv-icon{
    font-size:28px;
    margin-bottom:10px;
}

/* TITULO */
.mvv-card h3{
    font-size:20px;
    margin-bottom:10px;
}

/* TEXTO */
.mvv-card p{
    font-size:14px;
    color:#cbd5e1;
    line-height:1.6;
}

/* EFECTO LINEA */
.mvv-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:2px;
    background:linear-gradient(90deg,#00eaff,transparent);
    opacity:0.6;
}

/* RESPONSIVE */
@media(max-width:900px){
    .historia-mvv-grid{
        grid-template-columns:1fr;
    }

    .historia-mvv{
        padding:60px 25px;
    }
}

/* ================= OBJETIVOS PRO ================= */

.historia-objetivos{
    background:#071a33;
    border-radius:16px;
    padding:80px 60px;
    color:#fff;
}

/* HEADER */
.objetivos-header{
    text-align:center;
    margin-bottom:50px;
}

.objetivos-header h2{
    font-size:32px;
    margin:10px 0;
}

/* WRAP */
.objetivos-wrap{
    display:grid;
    grid-template-columns:260px 1fr;
    gap:40px;
}

/* MENU */
.objetivos-menu{
    display:flex;
    flex-direction:column;
    gap:10px;
}

/* BOTONES */
.obj-item{
    padding:14px 18px;
    background:rgba(255,255,255,0.05);
    border-radius:10px;
    cursor:pointer;
    transition:0.3s;
    font-size:14px;
}

.obj-item:hover{
    background:rgba(0,188,212,0.2);
}

.obj-item.active{
    background:#00bcd4;
    color:#071a33;
    font-weight:600;
}

/* CONTENIDO */
.objetivos-content{
    background:rgba(255,255,255,0.05);
    padding:30px;
    border-radius:16px;
    min-height:220px;
}

/* PANEL */
.obj-content{
    display:none;
    animation:fadeIn 0.3s ease;
}

.obj-content.active{
    display:block;
}

/* TITULO */
.obj-content h3{
    margin-bottom:10px;
}

/* LISTA */
.obj-content ul{
    padding-left:18px;
}

.obj-content li{
    margin-bottom:6px;
}

/* ANIMACION */
@keyframes fadeIn{
    from{opacity:0; transform:translateY(10px);}
    to{opacity:1; transform:translateY(0);}
}

/* RESPONSIVE */
@media(max-width:900px){
    .objetivos-wrap{
        grid-template-columns:1fr;
    }

    .objetivos-menu{
        flex-direction:row;
        flex-wrap:wrap;
    }
}

/* ================= MOBILE FIX GLOBAL ================= */
@media(max-width:768px){

    /* CONTENEDOR GENERAL */
    .historia-container{
        width:92%;
    }

    /* HERO */
    .hero-content{
        padding-top:70px;
    }

    .hero-content h1{
        font-size:28px;
        line-height:1.2;
    }

    .hero-stats{
        flex-wrap:wrap;
        gap:15px;
    }

    /* SECCIONES */
    .historia-section,
    .historia-objetivos,
    .historia-mvv,
    .timeline-full{
        padding:50px 20px !important;
    }

    /* ================= OBJETIVOS ================= */

    .objetivos-wrap{
        grid-template-columns:1fr;
        gap:20px;
    }

    /* MENU COMO TABS */
    .objetivos-menu{
        flex-direction:row;
        overflow-x:auto;
        gap:10px;
        padding-bottom:10px;
    }

    /* SCROLL BONITO */
    .objetivos-menu::-webkit-scrollbar{
        height:4px;
    }

    .objetivos-menu::-webkit-scrollbar-thumb{
        background:#00bcd4;
        border-radius:10px;
    }

    /* BOTONES */
    .obj-item{
        flex:0 0 auto;
        white-space:nowrap;
        font-size:13px;
        padding:10px 14px;
    }

    /* CONTENIDO */
    .objetivos-content{
        padding:20px;
        min-height:auto;
    }

    /* ================= MVV ================= */

    .historia-mvv-grid{
        grid-template-columns:1fr;
        gap:20px;
    }

    /* ================= TIMELINE ================= */

    .timeline-step img{
        height:160px;
    }

    .timeline-step h4{
        font-size:16px;
    }

    .timeline-step p{
        font-size:12px;
    }

    /* ================= HISTORIA ================= */

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

    .historia-text h2{
        font-size:26px;
    }

    .historia-text p{
        font-size:14px;
    }

}


/* ================= PRODUCCIONES ================= */

.historia-producciones{
    background:#071a33;
    border-radius:16px;
    padding:80px 60px;
    margin-bottom:40px;
    color:#fff;
    position:relative;
    overflow:hidden;
}

/* GRID */
.producciones-grid{
    display:grid;
    grid-template-columns:1.1fr 1fr;
    gap:60px;
    align-items:center;
}

/* TEXTO */
.producciones-text h2{
    font-size:34px;
    margin-bottom:20px;
}

.producciones-text h2 span{
    color:#00eaff;
}

.producciones-text p{
    color:#cbd5e1;
    line-height:1.7;
    margin-bottom:14px;
}

.producciones-text .lead{
    font-size:16px;
    color:#fff;
}

/* IMAGEN */
.producciones-visual{
    position:relative;
}

.producciones-visual img{
    width:100%;
    border-radius:16px;
    box-shadow:0 25px 60px rgba(0,0,0,0.5);
}

/* EFECTO GLOW */
.producciones-glow{
    position:absolute;
    width:200px;
    height:200px;
    background:#00eaff;
    filter:blur(120px);
    top:-40px;
    right:-40px;
    opacity:0.3;
}

/* RESPONSIVE */
@media(max-width:900px){
    .producciones-grid{
        grid-template-columns:1fr;
    }

    .historia-producciones{
        padding:50px 25px;
    }
}