:root{
    --azul-oscuro:#002b4f;
    --azul-profundo:#00182e;
    --turquesa:#14c8d4;
    --turquesa-claro:#8ff7f7;
    --blanco:#ffffff;
    --gris-fondo:#eef8fa;
    --gris-texto:#4b5f6b;
    --sombra:0 18px 45px rgba(0,0,0,0.18);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:var(--gris-fondo);
    color:var(--azul-profundo);
    overflow-x:hidden;
}

/* HEADER */

header{
    width:100%;
    background:rgba(255,255,255,0.96);
    backdrop-filter:blur(12px);
    position:sticky;
    top:0;
    z-index:1000;
    box-shadow:0 8px 25px rgba(0,0,0,0.08);
    transition:0.3s;
}

.header-scrolled{
    background:rgba(255,255,255,0.98);
    box-shadow:0 12px 30px rgba(0,0,0,0.12);
}

.top-bar{
    background:linear-gradient(90deg,var(--azul-profundo),var(--azul-oscuro));
    color:white;
    padding:9px 7%;
    font-size:14px;
    display:flex;
    justify-content:space-between;
    gap:20px;
}

.navbar{
    padding:16px 7%;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.logo img{
    height:72px;
    max-width:240px;
    object-fit:contain;
}

/* NAVBAR */

nav{
    display:flex;
    align-items:center;
    gap:26px;
}

nav a{
    color:var(--azul-oscuro);
    text-decoration:none;
    font-weight:700;
    font-size:15px;
    position:relative;
    transition:0.3s;
}

nav a::after{
    content:"";
    width:0;
    height:3px;
    background:var(--turquesa);
    position:absolute;
    left:0;
    bottom:-8px;
    transition:0.3s;
    border-radius:10px;
}

nav a:hover::after,
nav a.active::after{
    width:100%;
}

.btn-menu{
    background:linear-gradient(135deg,var(--turquesa),var(--turquesa-claro));
    color:var(--azul-profundo);
    padding:13px 22px;
    border-radius:40px;
    text-decoration:none;
    font-weight:800;
    box-shadow:0 8px 20px rgba(20,200,212,0.35);
}

.btn-menu:hover{
    transform:translateY(-3px);
    box-shadow:0 12px 28px rgba(20,200,212,0.45);
}

/* BOTÓN HAMBURGUESA */

.menu-toggle{
    display:none;
    width:52px;
    height:52px;
    border:none;
    border-radius:16px;
    background:linear-gradient(135deg,var(--azul-oscuro),var(--azul-profundo));
    color:white;
    font-size:28px;
    font-weight:900;
    cursor:pointer;
    box-shadow:0 10px 25px rgba(0,0,0,0.18);
    transition:0.3s;
    z-index:1200;
}

.menu-toggle:hover{
    transform:translateY(-2px);
    box-shadow:0 14px 32px rgba(0,0,0,0.24);
}

/* HERO */

.hero-home{
    background:
        linear-gradient(rgba(0,24,46,0.78), rgba(0,43,79,0.82)),
        url('../img/hero/hero1.jpg') center/cover no-repeat;
}

.hero-services{
    background:
        linear-gradient(rgba(0,24,46,0.78), rgba(0,43,79,0.82)),
        url('../img/hero/hero2.jpg') center/cover no-repeat;
}

.hero-projects{
    background:
        linear-gradient(rgba(0,24,46,0.78), rgba(0,43,79,0.82)),
        url('../img/hero/hero3.jpg') center/cover no-repeat;
}

.hero-contact{
    background:
        linear-gradient(rgba(0,24,46,0.78), rgba(0,43,79,0.82)),
        url('../img/hero/hero1.jpg') center/cover no-repeat;
}

.hero{
    padding:90px 7%;
    color:white;
    position:relative;
    overflow:hidden;
}

.hero-center{
    text-align:center;
}

.hero-grid{
    min-height:88vh;
    display:grid;
    grid-template-columns:1.1fr 0.9fr;
    align-items:center;
    gap:50px;
}

.hero span{
    display:inline-block;
    background:rgba(20,200,212,0.15);
    border:1px solid rgba(20,200,212,0.45);
    color:var(--turquesa-claro);
    padding:10px 18px;
    border-radius:30px;
    font-weight:800;
    margin-bottom:22px;
}

.hero h1{
    font-size:62px;
    line-height:1.05;
    margin-bottom:24px;
}

.hero h1 strong{
    color:var(--turquesa-claro);
}

.hero p{
    font-size:21px;
    line-height:1.7;
    color:#d9eef2;
    max-width:760px;
}

.hero-center p{
    margin:auto;
}

.hero-actions{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
    margin-top:35px;
}

.hero-center .hero-actions{
    justify-content:center;
}
/* BUTTONS */

.btn-primary,
.btn-secondary{
    display:inline-block;
    padding:17px 30px;
    border-radius:45px;
    text-decoration:none;
    font-weight:900;
    transition:0.3s;
}

.btn-primary{
    background:linear-gradient(135deg,var(--turquesa),var(--turquesa-claro));
    color:var(--azul-profundo);
    box-shadow:0 10px 25px rgba(20,200,212,0.35);
}

.btn-primary:hover,
.btn-secondary:hover{
    transform:translateY(-3px);
}

.btn-secondary{
    border:2px solid rgba(255,255,255,0.45);
    color:white;
}

.btn-secondary:hover{
    background:rgba(255,255,255,0.08);
}

/* HERO CARD */

.hero-card{
    background:rgba(255,255,255,0.96);
    border-radius:32px;
    padding:40px;
    box-shadow:var(--sombra);
    color:var(--azul-profundo);
}

.hero-card img{
    width:100%;
    max-height:170px;
    object-fit:contain;
    margin-bottom:25px;
}

.hero-card h2{
    font-size:30px;
    color:var(--azul-oscuro);
    margin-bottom:15px;
}

.hero-card p{
    color:var(--gris-texto);
    line-height:1.7;
    margin-bottom:22px;
}

.trust-list{
    display:grid;
    gap:12px;
}

.trust-list div{
    background:#eefbfc;
    border-left:5px solid var(--turquesa);
    padding:13px 15px;
    border-radius:12px;
    font-weight:700;
}

/* SECTIONS */

section{
    padding:85px 7%;
}

.section-header{
    text-align:center;
    max-width:780px;
    margin:0 auto 50px;
}

.section-header h2{
    font-size:42px;
    color:var(--azul-oscuro);
    margin-bottom:15px;
}

.section-header p{
    color:var(--gris-texto);
    font-size:18px;
    line-height:1.7;
}

/* CARDS */

.cards,
.grid,
.services-grid,
.project-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:26px;
}

.card,
.service-card,
.project-card{
    background:white;
    border-radius:24px;
    padding:32px;
    box-shadow:0 12px 32px rgba(0,0,0,0.08);
    border:1px solid rgba(20,200,212,0.16);
    transition:0.3s;
}

.project-card{
    overflow:hidden;
    padding:0;
}

.card:hover,
.service-card:hover,
.project-card:hover{
    transform:translateY(-8px);
    box-shadow:var(--sombra);
}

.card-icon,
.icon{
    width:58px;
    height:58px;
    background:linear-gradient(135deg,var(--turquesa),var(--turquesa-claro));
    border-radius:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    margin-bottom:20px;
}

.card h3,
.service-card h3,
.project-body h3{
    color:var(--azul-oscuro);
    font-size:24px;
    margin-bottom:14px;
}

.card p,
.service-card p,
.project-body p{
    color:var(--gris-texto);
    line-height:1.7;
}

/* PROJECTS */

.project-image{
    height:220px;
    background:
        linear-gradient(135deg, rgba(0,43,79,0.88), rgba(20,200,212,0.55)),
        url('../img/logo_alma/logo_alma.jpg') center/contain no-repeat;
    display:flex;
    align-items:flex-end;
    padding:20px;
}

.project-body{
    padding:30px;
}

.tag{
    background:white;
    color:var(--azul-oscuro);
    padding:8px 14px;
    border-radius:30px;
    font-size:13px;
    font-weight:900;
}

.project-list{
    display:grid;
    gap:10px;
    margin-top:18px;
}

.project-list div{
    background:#eefbfc;
    border-left:5px solid var(--turquesa);
    padding:12px 14px;
    border-radius:12px;
    font-weight:700;
}

/* BANNERS */

.banner,
.info-banner,
.premium-box{
    background:linear-gradient(135deg,var(--azul-profundo),var(--azul-oscuro));
    color:white;
    border-radius:34px;
    padding:55px;
    box-shadow:var(--sombra);
}

.banner,
.premium-box{
    display:grid;
    grid-template-columns:1fr auto;
    gap:30px;
    align-items:center;
}

.banner h2,
.info-banner h2,
.premium-box h2{
    font-size:40px;
    margin-bottom:14px;
}

.banner p,
.info-banner p,
.premium-box p{
    color:#d8eef2;
    line-height:1.7;
    font-size:18px;
}

/* PROCESS */

.process{
    background:white;
}

.steps{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:25px;
    counter-reset:paso;
}

.step{
    background:var(--gris-fondo);
    padding:30px;
    border-radius:22px;
    position:relative;
    border-left:6px solid var(--turquesa);
}

.step::before{
    counter-increment:paso;
    content:"0" counter(paso);
    display:block;
    font-size:32px;
    font-weight:900;
    color:var(--turquesa);
    margin-bottom:12px;
}

.step h3{
    color:var(--azul-oscuro);
    margin-bottom:10px;
}

.step p{
    color:var(--gris-texto);
    line-height:1.6;
}
/* CONTACT */

.contact-grid{
    display:grid;
    grid-template-columns:0.9fr 1.1fr;
    gap:35px;
    align-items:start;
}

.contact-card,
.form-card{
    background:white;
    border-radius:28px;
    padding:38px;
    box-shadow:0 12px 32px rgba(0,0,0,0.08);
    border:1px solid rgba(20,200,212,0.16);
}

.contact-card h2,
.form-card h2{
    color:var(--azul-oscuro);
    font-size:34px;
    margin-bottom:18px;
}

.contact-card p,
.form-card p{
    color:var(--gris-texto);
    line-height:1.7;
    margin-bottom:25px;
}

.info-list{
    display:grid;
    gap:16px;
    margin-bottom:28px;
}

.info-item{
    display:flex;
    gap:14px;
    align-items:flex-start;
    background:#eefbfc;
    border-left:5px solid var(--turquesa);
    padding:16px;
    border-radius:16px;
}

.info-icon{
    font-size:24px;
}

.info-item strong{
    color:var(--azul-oscuro);
    display:block;
    margin-bottom:4px;
}

.info-item span{
    color:var(--gris-texto);
}

/* FORMS */

form{
    display:grid;
    gap:18px;
}

.form-group{
    display:grid;
    gap:8px;
}

label{
    color:var(--azul-oscuro);
    font-weight:800;
}

input,
select,
textarea{
    width:100%;
    border:1px solid rgba(0,43,79,0.16);
    border-radius:16px;
    padding:15px 16px;
    font-size:16px;
    outline:none;
    background:#f8fdfe;
    color:var(--azul-profundo);
}

input:focus,
select:focus,
textarea:focus{
    border-color:var(--turquesa);
    box-shadow:0 0 0 4px rgba(20,200,212,0.16);
}

textarea{
    min-height:140px;
    resize:vertical;
}

.submit-btn{
    border:none;
    cursor:pointer;
    padding:17px 32px;
    border-radius:45px;
    font-weight:900;
    background:linear-gradient(135deg,var(--turquesa),var(--turquesa-claro));
    color:var(--azul-profundo);
    box-shadow:0 10px 25px rgba(20,200,212,0.35);
    font-size:16px;
}

/* MAP */

.map-section{
    background:white;
}

.map-box{
    border-radius:30px;
    overflow:hidden;
    min-height:360px;
    box-shadow:var(--sombra);
    border:1px solid rgba(20,200,212,0.18);
}

.map-box iframe{
    width:100%;
    height:420px;
    border:0;
}

/* CTA */

.cta{
    background:linear-gradient(135deg,var(--azul-profundo),var(--azul-oscuro));
    color:white;
    text-align:center;
}

.cta h2{
    font-size:44px;
    margin-bottom:18px;
}

.cta p{
    font-size:20px;
    color:#d8eef2;
    margin-bottom:30px;
}

/* FOOTER */

footer{
    background:#000f1d;
    color:white;
    padding:35px 7%;
    display:flex;
    justify-content:space-between;
    gap:20px;
    flex-wrap:wrap;
    align-items:center;
}

.footer-left img{
    height:55px;
}
.footer-right{
    color:#8ff7f7;
    font-weight:800;
}

/* ANIMACIONES */

.fade-in{
    opacity:0;
    transform:translateY(40px);
    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.fade-in.visible{
    opacity:1;
    transform:translateY(0);
}

/* WHATSAPP FLOAT */

.whatsapp-float{
    position:fixed;
    right:24px;
    bottom:24px;
    width:54px;
    height:54px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    z-index:9999;
    transition:0.3s;
}

.whatsapp-float img{
    width:54px;
    height:54px;
    object-fit:cover;
    border-radius:50%;
    background:transparent !important;
    border:none !important;
    box-shadow:none !important;
}
.whatsapp-float:hover{
    transform:translateY(-5px) scale(1.08);
}

@keyframes floatPulse{
    0%{
        box-shadow:
            0 10px 25px rgba(0,0,0,0.22),
            0 0 0 rgba(37,211,102,0.0);
    }

    50%{
        box-shadow:
            0 10px 25px rgba(0,0,0,0.22),
            0 0 30px rgba(37,211,102,0.45);
    }

    100%{
        box-shadow:
            0 10px 25px rgba(0,0,0,0.22),
            0 0 0 rgba(37,211,102,0.0);
    }
}

/* RESPONSIVE PREMIUM */
/* OVERLAY MENÚ */

.menu-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.45);
    backdrop-filter:blur(3px);
    opacity:0;
    visibility:hidden;
    transition:0.3s;
    z-index:1050;
}

.menu-overlay.active{
    opacity:1;
    visibility:visible;
}
/* REDES SOCIALES FOOTER */

.footer-socials{
    display:flex;
    align-items:center;
    gap:14px;
}

.footer-socials a{
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:0.3s;
    text-decoration:none;
}
.footer-socials a:hover{
    transform:translateY(-4px) scale(1.08);
    filter:drop-shadow(0 0 10px rgba(20,200,212,0.45));
}
.footer-socials img{
    width:22px;
    height:22px;
    object-fit:contain;
    background:transparent !important;
    padding:0 !important;
    border:none !important;
    border-radius:0 !important;
    box-shadow:none !important;
}
@media(max-width:900px){

    .top-bar{
        flex-direction:column;
        text-align:center;
        gap:6px;
    }

    .navbar{
        position:relative;
        padding:14px 6%;
        display:flex;
        flex-direction:row;
        justify-content:space-between;
        align-items:center;
    }

    .logo img{
        height:62px;
        max-width:200px;
    }

    .menu-toggle{
        display:flex;
        align-items:center;
        justify-content:center;
    }

    nav{
        position:fixed;
        top:0;
        right:-100%;
        width:82%;
        max-width:360px;
        height:100vh;
        background:
            radial-gradient(circle at top right, rgba(20,200,212,0.18), transparent 35%),
            linear-gradient(135deg,var(--azul-profundo),var(--azul-oscuro));
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        justify-content:flex-start;
        gap:0;
        padding:110px 30px 35px;
        z-index:1100;
        box-shadow:-18px 0 45px rgba(0,0,0,0.35);
        transition:0.38s ease;
    }

    nav.menu-open{
        right:0;
    }

    nav a{
        width:100%;
        color:white;
        font-size:19px;
        padding:18px 0;
        border-bottom:1px solid rgba(255,255,255,0.12);
    }

    nav a::after{
        display:none;
    }

    nav a.active{
        color:var(--turquesa-claro);
    }

    nav .btn-menu{
        margin-top:22px;
        width:100%;
        text-align:center;
        color:var(--azul-profundo);
        padding:16px 22px;
    }

    .hero-grid{
        grid-template-columns:1fr;
        text-align:center;
        min-height:auto;
    }

    .hero{
        padding:70px 7%;
    }

    .hero h1{
        font-size:42px;
    }

    .hero p{
        font-size:18px;
    }

    .hero-actions{
        justify-content:center;
    }

    .banner,
    .premium-box{
        grid-template-columns:1fr;
        text-align:center;
    }

    .contact-grid{
        grid-template-columns:1fr;
    }

    footer{
        text-align:center;
        justify-content:center;
    }

    .whatsapp-float{
        width:46px;
        height:46px;
        right:18px;
        bottom:18px;
        font-size:27px;
    }
}