/* ===== RESET ===== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Poppins',sans-serif;
    background:#0A1F44;
    color:#fff;
    line-height:1.6;
    overflow-x:hidden;
}

a{
    text-decoration:none;
    color:inherit;
}

/* ===== HEADER ===== */

.hero-header{
    background:#030e2a;
    text-align:center;
    padding:20px 0;
    position:relative;
    z-index:3000; /* 🔴 esto evita que se vea el menú detrás */
}

.logo{
    width:100%;
    max-width:700px;
    height:auto;
    display:block;
    margin:0 auto;
}

/* ===== NAV DESKTOP ===== */
.nav-links{
    display:flex;
    justify-content:center;
    gap:40px;
    margin-top:20px;
}

.nav-links a{
    font-weight:600;
    font-size:16px;
    transition:.3s;
}

.nav-links a:hover{
    color:#00B4FF;
}

/* ===== BOTÓN HAMBURGUESA ===== */
.menu-toggle{
    display:none;
    position:absolute;
    left:10px;
    top:50%;
    transform:translateY(-50%);
    width:46px;
    height:46px;
    background:linear-gradient(135deg,#00B4FF,#007BFF);
    border-radius:50%;
    justify-content:center;
    align-items:center;
    flex-direction:column;
    gap:5px;
    box-shadow:0 4px 12px rgba(0,0,0,.35); /* sombra suave, sin aro gris */
    border:none; /* 🔥 elimina borde gris */
    z-index:3001;
}



.menu-toggle span{
    width:24px;
    height:3px;
    background:#fff;
    border-radius:3px;
}

/* ===== SLIDER ===== */
.slider{
    position:relative;
    width:100%;
    height:450px;
    overflow:hidden;
    margin-top:20px;
}

.slides{
    display:flex;
    height:100%;
    animation:slide 18s infinite;
}

.slides img{
    flex:0 0 100%;
    width:100%;
    height:450px;
    object-fit:cover;
    filter:brightness(0.45);
}

.hero-text{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    text-align:center;
    max-width:800px;
    padding:0 20px;
    z-index:2;
}

.hero-text h1{
    font-size:42px;
    line-height:1.2;
}

.hero-text p{
    margin-top:15px;
    font-size:18px;
}

.slider::after{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(to bottom,rgba(0,0,0,0.3),rgba(0,0,0,0.6));
    z-index:1;
}

@keyframes slide{
    0%{transform:translateX(0)}
    30%{transform:translateX(0)}
    35%{transform:translateX(-100%)}
    65%{transform:translateX(-100%)}
    70%{transform:translateX(-200%)}
    100%{transform:translateX(-200%)}
}

/* ===== SECTION ===== */
.section{
    padding:80px 10%;
    text-align:center;
}

.section h2{
    font-size:32px;
    margin-bottom:20px;
    color:#00B4FF;
}

.section p{
    max-width:800px;
    margin:0 auto 40px auto;
    opacity:.9;
}

/* ===== BUTTON ===== */
.btn{
    display:inline-block;
    padding:12px 28px;
    background:#00B4FF;
    color:#000;
    border-radius:30px;
    font-weight:600;
    transition:.3s;
    box-shadow:0 8px 20px rgba(0,180,255,.4);
}

.btn:hover{
    background:#00d4ff;
    transform:translateY(-3px);
}

/* ===== SERVICES GRID ===== */
.services{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
    gap:30px;
    max-width:1100px;
    margin:40px auto;
    padding:0 20px;
    justify-content:center;   /* 🔥 centra las cards */
    justify-items:center;

}

.service-card{
    background:#122b5c;
    padding:35px;
    border-radius:16px;
    transition:.3s;
    border:1px solid rgba(255,255,255,0.05);
    box-shadow:0 15px 40px rgba(0,0,0,.4);
}

.service-card:hover{
    transform:translateY(-8px);
    border-color:#00B4FF;
}

/* ===== CONTACT ===== */
.container{
    max-width:1100px;
    margin:60px auto;
    padding:50px;
    background:#122b5c;
    border-radius:16px;
    box-shadow:0 15px 40px rgba(0,0,0,.4);
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
}

/* ===== FOOTER ===== */
footer{
    background:#020c1f;
    text-align:center;
    padding:30px;
    margin-top:80px;
    font-size:.9em;
    opacity:.8;
}

/* ===== WHATSAPP ===== */
.whatsapp{
    position:fixed;
    bottom:25px;
    right:25px;
    background:#25D366;
    width:35px;
    height:35px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    box-shadow:0 10px 25px rgba(0,0,0,.4);
    z-index:999;
}

.whatsapp img{
    width:52px;
    height:52px;
}



/* ===== COOKIE BANNER ===== */
.cookie-banner{
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    background:#081733;
    padding:20px;
    display:none;
    justify-content:center;
    z-index:2000;
    box-shadow:0 -5px 20px rgba(0,0,0,.5);
}

.cookie-content{
    max-width:1100px;
    width:100%;
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}

.cookie-buttons{
    display:flex;
    gap:15px;
}

.btn-cookie{
    padding:10px 20px;
    border:none;
    border-radius:25px;
    cursor:pointer;
    font-weight:600;
}

.accept{
    background:#00B4FF;
    color:#000;
}

.reject{
    background:#2c3e50;
    color:#fff;
}

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

    .logo{
        max-width:90%;
    }

    .menu-toggle{
        display:flex;
    }

    .nav-links{
        position:absolute;
        top:100%;
        left:0;
        width:100%;
        background:#081733;
        flex-direction:column;
        align-items:center;
        gap:18px;
        padding:20px 0;
        display:none;
        z-index:2999;
    }

    .nav-links.active{
        display:flex;
    }

    /* SLIDER MOBILE */
    .slider{
        height:300px;
    }

    .slides img{
        height:300px;
        filter:brightness(0.4); /* 🔥 mejora lectura texto */
    }

    .hero-text h1{
        font-size:24px;
    }

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

    /* GRID MOBILE */
    .services{
        grid-template-columns:1fr;
    }

    .container{
        grid-template-columns:1fr;
        padding:30px 20px;
    }

    .section{
        padding:60px 20px;
    }

    .whatsapp{
        width:55px;
        height:55px;
    }
    .hero-text{
    width:90%;
    max-width:90%;
}

.hero-text h1{
    font-size:22px;
    line-height:1.3;
    word-break:break-word;
}

.hero-text p{
    font-size:14px;
    line-height:1.5;
}

}
/* ===== FORMULARIO CONTACTO ===== */

.form-group{
    display:flex;
    flex-direction:column;
    margin-bottom:20px;
    text-align:left;
}

.form-group label{
    margin-bottom:6px;
    font-weight:500;
    font-size:14px;
}

.form-group input,
.form-group textarea{
    width:100%;
    padding:12px 14px;
    border-radius:8px;
    border:none;
    outline:none;
    background:#0A1F44;
    color:#fff;
    font-family:'Poppins',sans-serif;
    font-size:14px;
}

.form-group textarea{
    min-height:120px;
    resize:vertical;
}

/* Botón del formulario */
form button{
    width:100%;
    margin-top:10px;
    padding:14px;
    border:none;
    border-radius:30px;
    background:#00B4FF;
    color:#000;
    font-weight:600;
    font-size:15px;
    cursor:pointer;
    transition:.3s;
    box-shadow:0 8px 20px rgba(0,180,255,.4);
}

form button:hover{
    background:#00d4ff;
    transform:translateY(-2px);
}

/* Mensajes de éxito o error */
.success-message{
    background:#00B4FF;
    color:#000;
    padding:15px;
    border-radius:10px;
    margin-bottom:20px;
    font-weight:500;
}
@media(max-width:900px){
.contact-info{
    text-align:center;
    margin-top:20px;
    }
}
.input-icon{
    position:relative;
}

.input-icon i{
    position:absolute;
    left:14px;
    top:50%;
    transform:translateY(-50%);
    color:#00B4FF;
    font-size:14px;
}

.input-icon input,
.input-icon textarea{
    padding-left:40px;
}
.form-group input:focus,
.form-group textarea:focus{
    box-shadow:0 0 0 2px #00B4FF;
    background:#081733;
}
.input-error{
    box-shadow:0 0 0 2px #ff4d4d !important;
}

.input-valid{
    box-shadow:0 0 0 2px #00ff88 !important;
}
form button:active{
    transform:scale(0.98);
}
.mission-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
    gap:30px;
    max-width:800px;
    margin:40px auto;   /* 🔥 centra el bloque completo */
    justify-content:center;

}
.contact-info{
    text-align:center;
}

.contact-info p{
    text-align:center;
}
/* SOLO CONTACTO - centrar título */
.contacto-hero{
    text-align:center;
    padding:60px 20px 20px 20px;
}

.contacto-hero h1{
    margin-bottom:10px;
}

.contacto-hero p{
    max-width:700px;
    margin:0 auto;
}

/* SOLO SERVICIOS - centrar último card cuando queda solo */
.servicios-grid{
    justify-items:center;
}

.servicios-grid .service-card{
    max-width:350px;
}
.social-section{
    text-align:center;
    margin-top:60px;
}

.social-section h3{
    margin-bottom:20px;
    color:#00B4FF;
}

.social-icons{
    display:flex;
    justify-content:center;
    gap:25px;
}

.social-icons img{
    width:35px;
    height:35px;
    transition:.3s;
}

.social-icons img:hover{
    transform:scale(1.15);
}
