/* ============================= */
/* VARIABLES */
/* ============================= */

:root{
    --azul-principal: #0a192f;
    --azul-secundario: #112240;
    --gris-oscuro: #1f2937;
    --gris-texto: #4b5563;
    --gris-claro: #f5f7fa;
    --gris-borde: #e5e7eb;
    --naranjo: #f57c00;
    --naranjo-hover: #e06f00;
    --whatsapp: #25D366;
    --whatsapp-hover: #1ea851;
    --blanco: #ffffff;
}

/* ============================= */
/* RESET GENERAL */
/* ============================= */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--blanco);
    color: #222;
    -webkit-font-smoothing: antialiased;
}

.container{
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ============================= */
/* HEADER */
/* ============================= */

.header{
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(10, 25, 47, 0.96);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
}

.logo{
    color: var(--blanco);
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.menu{
    display: flex;
    align-items: center;
    gap: 28px;
}

.menu a{
    color: var(--blanco);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s;
}

.menu a:hover{
    color: var(--whatsapp);
}

.menu-toggle{
    display: none;
    background: none;
    border: none;
    color: var(--blanco);
    font-size: 32px;
    cursor: pointer;
}

.btn-whatsapp{
    background-color: var(--whatsapp);
    color: var(--blanco);
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-whatsapp:hover{
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
}

/* ============================= */
/* HERO */
/* ============================= */

.hero{
    min-height: calc(100vh - 90px);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 130px 0 80px;
    background:
        linear-gradient(135deg, rgba(10,25,47,0.98), rgba(31,42,55,0.95)),
        radial-gradient(circle at top right, rgba(245,124,0,0.25), transparent 35%),
        radial-gradient(circle at bottom left, rgba(37,211,102,0.12), transparent 30%);
}

.overlay{
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10,25,47,0.92), rgba(10,25,47,0.55)),
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.03) 0px,
            rgba(255,255,255,0.03) 1px,
            transparent 1px,
            transparent 14px
        );
}

.hero-content{
    position: relative;
    z-index: 2;
    color: var(--blanco);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1{
    font-size: clamp(34px, 4.8vw, 58px);
    line-height: 1.15;
    margin-bottom: 28px;
}

.hero-content p{
    max-width: 850px;
    margin: 0 auto 35px;
    font-size: 20px;
    line-height: 1.6;
}

.hero-buttons{
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ============================= */
/* BOTONES */
/* ============================= */

.btn-primary{
    display: inline-block;
    background-color: var(--naranjo);
    color: var(--blanco);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.btn-primary:hover{
    background-color: var(--naranjo-hover);
    transform: translateY(-2px);
}

.btn-secondary{
    display: inline-block;
    border: 2px solid var(--blanco);
    color: var(--blanco);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-secondary:hover{
    background-color: rgba(255,255,255,0.10);
    transform: translateY(-2px);
}

/* ============================= */
/* SECCIONES GENERALES */
/* ============================= */

.section{
    padding: 85px 0;
    background-color: var(--blanco);
    scroll-margin-top: 110px;
}

.section-dark{
    background-color: var(--azul-principal);
    color: var(--blanco);
}

.section-label{
    display: inline-block;
    margin-bottom: 15px;
    color: var(--naranjo);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.section h2{
    max-width: 850px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-text{
    max-width: 850px;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 40px;
    color: inherit;
}

/* ============================= */
/* SERVICIOS */
/* ============================= */

.services-grid,
.benefits-grid,
.projects-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card,
.benefit-card{
    background-color: var(--gris-claro);
    padding: 28px;
    border-radius: 14px;
    border: 1px solid var(--gris-borde);
    transition: 0.3s;
}

.service-card{
    border-left: 4px solid var(--naranjo);
}

.service-card:hover,
.benefit-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(10,25,47,0.12);
}

.service-card h3,
.benefit-card h3{
    margin-bottom: 12px;
    color: var(--azul-principal);
    font-size: 22px;
}

.service-card p,
.benefit-card p{
    line-height: 1.6;
    color: var(--gris-texto);
}

/* ============================= */
/* NOSOTROS */
/* ============================= */

.section-dark .benefit-card{
    background-color: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-left: 4px solid var(--whatsapp);
}

.section-dark .benefit-card h3{
    color: var(--blanco);
}

.section-dark .benefit-card p{
    color: #d1d5db;
}

/* ============================= */
/* PROYECTOS */
/* ============================= */

.project-placeholder{
    min-height: 180px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eef2f7, #ffffff);
    border: 2px dashed #cbd5e1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6b7280;
    font-weight: bold;
    transition: 0.3s;
}

/* ============================= */
/* CONTACTO */
/* ============================= */

#contacto{
    padding: 55px 0 65px;
}

#contacto h2{
    font-size: clamp(28px, 3vw, 38px);
    margin-bottom: 14px;
}

#contacto .section-text{
    margin-bottom: 26px;
}

.contact-wrapper{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info p{
    margin-bottom: 10px;
    font-size: 17px;
}

.contact-form{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form input,
.contact-form select,
.contact-form textarea{
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-family: inherit;
}

.contact-form input,
.contact-form select{
    min-height: 48px;
}

.contact-form textarea{
    height: 105px;
    min-height: 105px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
    outline: 3px solid rgba(245,124,0,0.35);
}

.contact-form button{
    padding: 14px 30px;
}

/* ============================= */
/* FOOTER */
/* ============================= */

.footer{
    background-color: #06111f;
    color: var(--blanco);
    padding: 35px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-content{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer a{
    color: var(--whatsapp);
    text-decoration: none;
}

/* ============================= */
/* RESPONSIVE TABLET */
/* ============================= */

@media(max-width: 900px){

    html{
        scroll-padding-top: 95px;
    }

    .nav{
        position: relative;
    }

    .menu-toggle{
        display: block;
    }

    .menu{
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background-color: var(--azul-principal);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        display: none;
        padding: 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .menu.active{
        display: flex;
    }

    .menu a{
        width: 100%;
        padding: 14px 0;
        font-size: 18px;
    }

    .hero{
        padding: 120px 0 70px;
        min-height: auto;
    }

    .hero-content h1{
        font-size: 40px;
    }

    .services-grid,
    .benefits-grid,
    .projects-grid,
    .contact-wrapper{
        grid-template-columns: 1fr;
    }

    .section{
        padding: 75px 0;
        scroll-margin-top: 95px;
    }

    #contacto{
        padding: 70px 0 80px;
    }

    #contacto .contact-wrapper{
        gap: 28px;
    }

    #contacto .contact-form textarea{
        height: 125px;
        min-height: 125px;
    }

}

/* ============================= */
/* RESPONSIVE CELULAR */
/* ============================= */

@media(max-width: 600px){

    .logo{
        font-size: 16px;
    }

    .btn-whatsapp{
        display: none;
    }

    .hero{
        padding: 115px 0 65px;
        text-align: center;
    }

    .hero-content h1{
        font-size: 32px;
    }

    .hero-content p{
        font-size: 17px;
    }

    .hero-buttons{
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary{
        width: 100%;
        text-align: center;
    }

    .section h2{
        font-size: 28px;
    }

    .section{
        padding: 70px 0;
    }

}