/* RESET */
body{
    margin:0;
    font-family:sans-serif;
    background:#0b0f1a;
    color:white;
}

/* ================= NAV ================= */
.nav{
    position:fixed;
    width:100%;
    top:0;
    z-index:1000;
    backdrop-filter: blur(12px);
    background: rgba(10,15,30,0.6);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-container{
    max-width:1200px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 20px;
}

.logo{
    font-size:1.5rem;
    font-weight:bold;
    letter-spacing:2px;
}

.menu{
    display:flex;
    gap:30px;
}

.link{
    text-decoration:none;
    color:#ccc;
    font-weight:500;
    position:relative;
    transition:0.3s;
}

.link:hover{
    color:white;
}

.link::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-5px;
    width:0%;
    height:2px;
    background:#00ff9c;
    transition:0.3s;
}

.link:hover::after{
    width:100%;
}

.btn-nav{
    padding:10px 18px;
    border-radius:8px;
    background: linear-gradient(135deg,#00ff9c,#00c853);
    color:black;
    font-weight:bold;
    text-decoration:none;
    transition:0.3s;
}

.btn-nav:hover{
    transform:scale(1.05);
    box-shadow:0 0 15px rgba(0,255,156,0.6);
}

/* ================= HERO ================= */
.hero{
    height:100vh;
    background:url('../img/fondo.jpg') center/cover no-repeat;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    position:relative;
}

.overlay{
    position:absolute;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
}

.hero-content{
    position:relative;
    z-index:2;
}

.hero h1{
    font-size:3rem;
}

.btn{
    background:#00ff9c;
    padding:15px 30px;
    border-radius:10px;
    color:black;
    text-decoration:none;
    display:inline-block;
    margin-top:20px;
}

/* ================= SECCIONES ================= */
.section{
    padding:100px 20px;
    max-width:1100px;
    margin:auto;
}

.title{
    text-align:center;
    margin-bottom:40px;
}

/* GRID */
.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

/* GLASS */
.glass{
    background:rgba(255,255,255,0.05);
    padding:20px;
    border-radius:15px;
    backdrop-filter:blur(10px);
    transition:0.3s;
}

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

/* ================= PROBLEMA (OPTIMIZADO) ================= */
.problema{
    padding:120px 20px;
    text-align:center;
    background: radial-gradient(circle at top, #0a1225, #02050d);
}

/* TITULO */
.problema-title{
    font-size:3rem;
    margin-bottom:15px;
}

/* SUBTEXTO */
.problema-sub{
    color:#aaa;
    margin-bottom:60px;
}

/* CONTENEDOR */
.problema-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:40px;
    max-width:1100px;
    margin:auto;
}

/* CARD */
.problema-card{
    background:rgba(255,255,255,0.03);
    border-radius:20px;
    overflow:hidden;
    transition:0.4s ease;
    backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,0.08);
}

/* IMAGEN */
.card-img{
    height:220px;
    overflow:hidden;
}

.card-img img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:0.5s ease;
}

/* INFO */
.card-info{
    padding:20px;
    text-align:left;
}

.card-info h3{
    color:#00ff9c;
    margin-bottom:10px;
}

.card-info p{
    color:#ccc;
    font-size:0.95rem;
}

/* HOVER */
.problema-card:hover{
    transform:translateY(-12px);
    box-shadow:0 20px 50px rgba(0,255,150,0.2);
}

.problema-card:hover img{
    transform:scale(1.1);
}

/* EFECTO FOCO */
.problema-container:hover .problema-card{
    opacity:0.5;
}

.problema-container .problema-card:hover{
    opacity:1;
}

/* ANIMACIONES (usa tu JS existente) */
.fade{
    opacity:0;
    transform:translateY(40px);
    transition:0.8s;
}

.fade.show{
    opacity:1;
    transform:translateY(0);
}

.delay{transition-delay:0.3s;}
.delay2{transition-delay:0.6s;}

/* ================= COMPARATIVA ================= */
.comparativa-full{
    position:relative;
    height:600px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    overflow:hidden;

    /* 👇 UNA SOLA IMAGEN COMPLETA */
    background:url('../img/comparativa.jpg') center/cover no-repeat;
}

/* OSCURECER PARA QUE SE LEA */
.comparativa-overlay{
    position:absolute;
    width:100%;
    height:100%;

    background:linear-gradient(
        90deg,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.75) 35%,
        rgba(0,0,0,0.6) 50%,
        rgba(0,0,0,0.75) 65%,
        rgba(0,0,0,0.9) 100%
    );
}
.comparativa-full::after{
    content:"";
    position:absolute;
    top:0;
    left:50%;
    width:2px;
    height:100%;
    background:linear-gradient(
        to bottom,
        transparent,
        #00ff9c,
        transparent
    );
    box-shadow:0 0 15px #00ff9c;
    z-index:2;
}

/* CONTENIDO */
.comparativa-content{
    position:relative;
    z-index:2;
    max-width:1000px;
    width:100%;
}

.comparativa-content h2{
    font-size:2.5rem;
    margin-bottom:40px;
}

/* GRID */
.comparativa-grid{
    display:flex;
    justify-content:space-between;
    gap:40px;
}

/* LADOS */
.lado{
    width:45%;
    text-align:left;
}

.lado.after h3,
.lado.after li{
    text-shadow:0 2px 10px rgba(0,0,0,0.9);
}

/* BADGES */
.badge{
    display:inline-block;
    padding:6px 12px;
    border-radius:10px;
    margin-bottom:10px;
    font-size:0.8rem;
}

.bad{
    background:#ff3b3b;
}

.good{
    background:#00ff9c;
    color:black;
}

/* TEXTO */
.lado h3{
    margin-bottom:10px;
}

.lado ul{
    list-style:none;
    padding:0;
}

.lado li{
    margin:6px 0;
    color:#eee;
}

/* PRODUCTO */
.producto{
    margin-top:20px;
    display:flex;
    gap:10px;
}

.producto img{
    width:80px;
    filter:drop-shadow(0 0 10px #00ff9c);
    transition:0.4s;
}

/* HOVER */
.producto img:hover{
    transform:scale(1.1);
}

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

    .comparativa-full{
        height:auto;
        padding:80px 20px;
    }

    .comparativa-grid{
        flex-direction:column;
        align-items:center;
    }

    .lado{
        width:100%;
        text-align:center;
    }

    .producto{
        justify-content:center;
    }
}
/* ================= TECNOLOGIA ================= */
.tech-section{
    padding:100px 20px;
    background:#070c18;
}

.tech-title{
    text-align:center;
    font-size:2.5rem;
    margin-bottom:50px;
}

.tech-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
    max-width:1200px;
    margin:auto;
}

.tech-card{
    position:relative;
    border-radius:20px;
    overflow:hidden;
    cursor:pointer;
    transition:0.4s;
}

.tech-card img{
    width:100%;
    height:300px;
    object-fit:cover;
    transition:0.4s;
}

.tech-overlay{
    position:absolute;
    bottom:0;
    width:100%;
    padding:20px;
    background:rgba(0,0,0,0.4);
    backdrop-filter:blur(10px);
}

.tech-card:hover img{
    transform:scale(1.1);
}

.tech-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 40px rgba(0,255,150,0.2);
}
/* ================= EQUIPO PRO ================= */

.equipo-pro{
    padding:120px 20px;
    background: radial-gradient(circle at top, #0a1225, #02050d);
    text-align:center;
}

.equipo-title{
    font-size:2.8rem;
    margin-bottom:60px;
}

/* GRID */
.equipo-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:40px;
    max-width:1100px;
    margin:auto;
}

/* CARD */
.equipo-card{
    background:rgba(255,255,255,0.04);
    border-radius:20px;
    overflow:hidden;
    transition:0.4s;
    border:1px solid rgba(255,255,255,0.08);
    backdrop-filter:blur(10px);
}

/* IMAGEN */
.equipo-img{
    height:220px;
    overflow:hidden;
}

.equipo-img img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:0.5s;
}

/* INFO */
.equipo-info{
    padding:20px;
    text-align:left;
}

.equipo-info h3{
    color:#00ff9c;
    margin-bottom:10px;
}

.equipo-info p{
    color:#ccc;
    font-size:0.95rem;
}

/* HOVER BRUTAL */
.equipo-card:hover{
    transform:translateY(-12px) scale(1.02);
    box-shadow:0 20px 50px rgba(0,255,150,0.25);
}

.equipo-card:hover img{
    transform:scale(1.1);
}

/* EFECTO FOCO */
.equipo-container:hover .equipo-card{
    opacity:0.5;
}

.equipo-container .equipo-card:hover{
    opacity:1;
}
/* ================= RESULTAD ================= */
.impacto{
    padding:140px 20px;
    text-align:center;
    position:relative;
    overflow:hidden;
    background:#030814;
}

/* GLOW DE FONDO */
.impacto::before{
    content:"";
    position:absolute;
    width:500px;
    height:500px;
    background:radial-gradient(circle,#00ff9c33,transparent);
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    filter:blur(100px);
    z-index:0;
}

/* TEXTO */
.impacto h2{
    position:relative;
    z-index:2;
    font-size:2.8rem;
}

.impacto-sub{
    color:#aaa;
    margin-bottom:80px;
    position:relative;
    z-index:2;
}

/* CONTENEDOR CENTRAL */
.impacto-center{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:40px;
    position:relative;
    z-index:2;
}

/* ITEM */
.impacto-item{
    text-align:center;
}

.impacto-item h3{
    font-size:3.5rem;
    font-weight:bold;
    background:linear-gradient(135deg,#00ff9c,#00c853);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.impacto-item span{
    display:block;
    color:#ccc;
    margin-top:10px;
}

/* LINEA */
.impacto-line{
    width:100px;
    height:2px;
    background:linear-gradient(to right,#00ff9c,transparent);
    position:relative;
    overflow:hidden;
}

/* ANIMACION LINEA */
.impacto-line::after{
    content:"";
    position:absolute;
    width:50px;
    height:100%;
    background:#00ff9c;
    animation:flow 2s linear infinite;
}

@keyframes flow{
    from{transform:translateX(-100%);}
    to{transform:translateX(200%);}
}

/* MENSAJES */
.impacto-mensajes{
    margin-top:80px;
}

.msg{
    margin:15px auto;
    padding:18px;
    max-width:600px;
    border-radius:12px;
    background:rgba(255,255,255,0.05);
    transition:0.3s;
}

.msg.ok{
    color:#00ff9c;
}

.msg:hover{
    transform:scale(1.05);
    box-shadow:0 0 25px rgba(0,255,150,0.2);
}
/* ================= PSICO ================= */
.psico{
    padding:60px 20px;
    text-align:center;
}

.psico-box{
    background:rgba(255,255,255,0.05);
    padding:20px;
    margin:10px auto;
    max-width:600px;
    border-radius:10px;
}

.psico-box.green{
    color:#00ff9c;
}

/* ================= CTA ================= */
.cta-strong{
    text-align:center;
    padding:100px 20px;
    background:linear-gradient(120deg,#00ff9c22,#000);
}

.btn-strong{
    display:inline-block;
    margin-top:20px;
    padding:15px 40px;
    background:#00ff9c;
    color:black;
    border-radius:10px;
    font-weight:bold;
    transition:0.3s;
}

.btn-strong:hover{
    transform:scale(1.1);
    box-shadow:0 0 25px #00ff9c;
}

/* ================= ANIMACIONES ================= */
.fade{
    opacity:0;
    transform:translateY(40px);
    transition:0.8s;
}

.fade.show{
    opacity:1;
    transform:translateY(0);
}

.delay{transition-delay:0.3s;}
.delay2{transition-delay:0.6s;}

/* ================= RESPONSIVE ================= */
/* ================= ESCALA GLOBAL (SIN ROMPER DISEÑO) ================= */

/* BASE (pantalla normal) */
html{
    font-size:16px;
}

/* TABLET */
@media (max-width:1024px){
    html{
        font-size:14px;
    }
}

/* CELULAR */
@media (max-width:768px){
    html{
        font-size:12px;
    }
}

/* CELULAR PEQUEÑO */
@media (max-width:480px){
    html{
        font-size:10px;
    }
}

/* ================= NAV MOBILE PRO ================= */

.menu-toggle{
    display:none;
    font-size:1.8rem;
    cursor:pointer;
    color:white;
}

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

    .menu{
        position:absolute;
        top:70px;
        left:0;
        width:100%;
        flex-direction:column;
        align-items:center;
        gap:20px;
        padding:25px 0;

        background:rgba(5,11,24,0.95);
        backdrop-filter:blur(10px);

        transform:translateY(-150%);
        transition:0.4s ease;
    }

    .menu.active{
        transform:translateY(0);
    }

    .menu-toggle{
        display:block;
    }

    /* opcional: ocultar botón comprar en móvil si estorba */
    .nav-cta{
        display:none;
    }

}