:root{
    --primary: #005b96;
    --primary-dark: #003f66;
    --text: #1f1f1f;
    --muted: #666;
    --bg: #f4f7fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 18px 45px rgba(0,0,0,0.15);
}

/* RESET SUAVE */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* NAVBAR */
header{
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 80px;

    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(14px);

    position: sticky;
    top: 0;
    z-index: 1000;

    box-shadow: var(--shadow);

    transition: all 0.3s ease;
}

header:hover{
    box-shadow: var(--shadow-hover);
}

header h2{
    color: var(--primary);
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-family: Arial Black, Arial, sans-serif;
    text-shadow: 1px 2px 6px rgba(0,0,0,0.15);
}

/* NAV LINKS */
nav a{
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;

    text-decoration: none;
    color: var(--primary);
    font-weight: 600;

    border-radius: 8px;

    transition: all 0.3s ease;
    position: relative;
}

/* underline animado */
nav a::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover{
    background-color: rgba(0,91,150,0.08);
    transform: translateY(-2px);
}

nav a:hover::after{
    width: 60%;
}

/* HERO */
.hero{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;

    padding: 120px 80px;
    min-height: 85vh;

    animation: fadeIn 0.8s ease;
}

.hero-text h1{
    font-size: clamp(32px, 5vw, 58px);
    color: var(--primary);
    line-height: 1.1;
    max-width: 650px;
}

.hero-text p{
    font-size: 20px;
    color: var(--muted);
    line-height: 1.8;
    max-width: 600px;
    margin-top: 15px;
}

/* IMAGEN HERO */
.hero img{
    width: 550px;
    border-radius: 22px;
    box-shadow: var(--shadow-hover);
    transition: transform 0.4s ease;
}

.hero img:hover{
    transform: scale(1.03) rotate(-0.5deg);
}

/* BOTON */
.btn{
    display: inline-block;
    margin-top: 25px;

    background: linear-gradient(135deg, var(--primary), #0077c2);
    color: white;

    padding: 14px 34px;
    border-radius: 10px;

    text-decoration: none;
    font-weight: bold;

    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn:hover{
    transform: translateY(-3px) scale(1.03);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

/* SERVICIOS */
.services{
    padding: 100px 80px;
    text-align: center;
}

.services h2{
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 60px;
}

.cards{
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.card{
    background: var(--white);
    width: 300px;
    padding: 35px;
    border-radius: 18px;
    box-shadow: var(--shadow);

    transition: all 0.4s ease;

    border-top: 5px solid var(--primary);

    position: relative;
    overflow: hidden;
}

/* brillo suave */
.card::before{
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,91,150,0.08), transparent 60%);
    opacity: 0;
    transition: 0.4s;
}

.card:hover{
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
}

.card:hover::before{
    opacity: 1;
}

.card h3{
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 15px;
}

/* ABOUT */
.about{
    background: white;
    padding: 100px 80px;
    text-align: center;
}

.about h2{
    color: var(--primary);
    font-size: 42px;
    margin-bottom: 30px;
}

.about p{
    max-width: 850px;
    margin: auto;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 18px;
}

/* FOOTER */
footer{
    background: #0f0f0f;
    color: white;
    text-align: center;
    padding: 30px;
    margin-top: 60px;
}

/* WHATSAPP FLOAT */
.whatsapp{
    position: fixed;
    bottom: 20px;
    right: 20px;

    background: #25D366;
    color: white;

    padding: 15px 20px;
    border-radius: 50px;

    text-decoration: none;
    font-weight: bold;

    box-shadow: var(--shadow);
    transition: all 0.3s ease;

    z-index: 999;
}

.whatsapp:hover{
    transform: scale(1.1) rotate(2deg);
    background: #1ebe5d;
}

/* ANIMACIONES */
@keyframes fadeIn{
    from{
        opacity: 0;
        transform: translateY(20px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media(max-width: 900px){

    header{
        flex-direction: column;
        padding: 18px;
    }

    nav{
        margin-top: 10px;
    }

    .hero{
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
        gap: 40px;
    }

    .hero img{
        width: 100%;
        max-width: 360px;
    }

    .services,
    .about{
        padding: 60px 20px;
    }

    .cards{
        flex-direction: column;
        align-items: center;
    }

    .card{
        width: 90%;
    }
}
html{
    scroll-behavior: smooth;
}

/* NAVBAR AL HACER SCROLL */
header.scrolled{
    padding: 10px 60px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(18px);
}

/* REVEAL ANIMATION */
.reveal{
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active{
    opacity: 1;
    transform: translateY(0);
}