:root{
    --bg:#0f172a;
    --bg-dark:#020617;
    --panel:#1e293b;
    --primary:#38bdf8;
    --primary-soft:#7dd3fc;
    --text:#ffffff;
    --muted:#cbd5e1;
    --muted-2:#94a3b8;
    --border:rgba(255,255,255,0.08);
    --shadow:0 20px 60px rgba(0,0,0,0.28);
}

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

html{
    scroll-behavior:smooth;
    font-size:16px;
    width:100%;
    overflow-x:hidden;
}

body{
    width:100%;
    min-width:0;
    background:var(--bg);
    color:var(--text);
    overflow-x:hidden;
    font-family:Arial, Helvetica, sans-serif;
}

img{
    max-width:100%;
    height:auto;
    display:block;
}

a{
    -webkit-tap-highlight-color:transparent;
}

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

header{
    width:100%;
    padding:clamp(12px, 2vw, 20px) clamp(16px, 6vw, 8%);
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    position:fixed;
    top:0;
    left:0;
    z-index:1000;
    background:rgba(15,23,42,0.95);
    backdrop-filter:blur(10px);
    border-bottom:1px solid rgba(255,255,255,0.05);
}

.logo{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}

.logo img{
    width:clamp(42px, 6vw, 55px);
    height:clamp(42px, 6vw, 55px);
    object-fit:contain;
    flex:0 0 auto;
}

.logo h1{
    color:var(--primary);
    font-size:clamp(20px, 3vw, 28px);
    line-height:1.1;
    white-space:nowrap;
}

nav{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:clamp(10px, 2vw, 25px);
    flex-wrap:wrap;
}

nav a{
    color:var(--text);
    text-decoration:none;
    transition:0.3s;
    font-weight:bold;
    font-size:clamp(14px, 1.4vw, 16px);
}

nav a:hover{
    color:var(--primary);
}

/* ========================= */
/* HERO */
/* ========================= */

.hero{
    min-height:100svh;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:clamp(120px, 16vw, 150px) clamp(16px, 6vw, 8%) clamp(56px, 8vw, 80px);
    background:
        linear-gradient(rgba(15,23,42,0.82), rgba(15,23,42,0.96)),
        url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=1600&auto=format&fit=crop');
    background-size:cover;
    background-position:center;
}

.hero-content{
    width:min(100%, 980px);
    margin-inline:auto;
}

.eyebrow{
    display:inline-flex;
    max-width:100%;
    margin-bottom:18px;
    color:var(--primary-soft);
    background:rgba(56,189,248,0.12);
    border:1px solid rgba(56,189,248,0.25);
    padding:8px 16px;
    border-radius:999px;
    font-size:clamp(13px, 2.5vw, 15px);
    font-weight:bold;
    letter-spacing:0.4px;
    line-height:1.35;
}

.hero h2{
    color:var(--primary);
    font-size:clamp(34px, 7vw, 64px);
    line-height:1.12;
    margin-bottom:clamp(18px, 3vw, 25px);
    text-wrap:balance;
}

.hero p{
    color:var(--muted);
    font-size:clamp(17px, 2.5vw, 22px);
    line-height:1.65;
    margin:0 auto 24px;
    max-width:900px;
}

.hero-highlight{
    color:var(--text);
    font-weight:bold;
}

.hero-actions{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:16px;
    flex-wrap:wrap;
    margin-top:34px;
}

/* ========================= */
/* BOTONES */
/* ========================= */

.btn{
    display:inline-flex;
    justify-content:center;
    align-items:center;
    width:auto;
    max-width:100%;
    min-height:52px;
    padding:15px 30px;
    text-decoration:none;
    border-radius:14px;
    font-weight:bold;
    transition:0.3s;
    font-size:clamp(15px, 2vw, 17px);
    line-height:1.25;
    text-align:center;
}

.btn-primary{
    background:var(--primary);
    color:var(--bg);
    box-shadow:0 12px 30px rgba(56,189,248,0.22);
}

.btn-primary:hover{
    transform:translateY(-4px);
    background:var(--text);
}

.btn-secondary{
    color:var(--text);
    border:1px solid rgba(255,255,255,0.22);
    background:rgba(255,255,255,0.06);
}

.btn-secondary:hover{
    transform:translateY(-4px);
    border-color:var(--primary);
    color:var(--primary);
}

/* ========================= */
/* SECTIONS */
/* ========================= */

section{
    width:100%;
    padding:clamp(64px, 9vw, 90px) clamp(16px, 6vw, 8%);
}

.section-title{
    text-align:center;
    font-size:clamp(32px, 5vw, 44px);
    line-height:1.15;
    margin-bottom:18px;
    color:var(--primary);
    text-wrap:balance;
}

.section-subtitle{
    width:min(100%, 760px);
    margin:0 auto 55px;
    text-align:center;
    color:var(--muted);
    line-height:1.7;
    font-size:clamp(17px, 2vw, 19px);
}

/* ========================= */
/* SERVICIOS */
/* ========================= */

.services{
    width:100%;
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(min(100%, 270px), 1fr));
    gap:clamp(18px, 3vw, 30px);
}

.card{
    min-width:0;
    background:var(--panel);
    padding:clamp(24px, 4vw, 35px);
    border-radius:22px;
    transition:0.3s;
    border:1px solid var(--border);
    overflow-wrap:anywhere;
}

.card:hover{
    transform:translateY(-10px);
    border-color:var(--primary);
    box-shadow:0 10px 30px rgba(56,189,248,0.15);
}

.card h3{
    margin-bottom:18px;
    color:var(--primary);
    font-size:clamp(21px, 3vw, 24px);
    line-height:1.25;
}

.card p{
    color:var(--muted);
    line-height:1.7;
    margin-bottom:20px;
}

.card-link{
    color:var(--primary-soft);
    text-decoration:none;
    font-weight:bold;
}

.card-link:hover{
    color:var(--text);
}

/* ========================= */
/* CTA */
/* ========================= */

.cta-section{
    padding-top:40px;
    padding-bottom:40px;
}

.cta-box{
    width:min(100%, 980px);
    margin:auto;
    text-align:center;
    padding:clamp(34px, 6vw, 55px) clamp(20px, 5vw, 35px);
    border-radius:clamp(22px, 4vw, 28px);
    background:
        radial-gradient(circle at top, rgba(56,189,248,0.22), transparent 38%),
        var(--panel);
    border:1px solid rgba(56,189,248,0.25);
    box-shadow:var(--shadow);
}

.cta-box h2{
    color:var(--primary);
    font-size:clamp(28px, 4vw, 36px);
    line-height:1.18;
    margin-bottom:18px;
    text-wrap:balance;
}

.cta-box p{
    width:min(100%, 760px);
    margin:0 auto 28px;
    color:var(--muted);
    font-size:clamp(17px, 2vw, 19px);
    line-height:1.7;
}

/* ========================= */
/* ABOUT */
/* ========================= */

.about{
    width:100%;
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:clamp(28px, 5vw, 50px);
    align-items:center;
}

.about img{
    width:100%;
    border-radius:25px;
    box-shadow:var(--shadow);
}

.about-text{
    min-width:0;
}

.about-text h2{
    font-size:clamp(30px, 4.5vw, 42px);
    margin-bottom:25px;
    color:var(--primary);
    line-height:1.2;
    text-wrap:balance;
}

.about-text p{
    line-height:1.85;
    color:var(--muted);
    margin-bottom:20px;
    font-size:clamp(16px, 2vw, 18px);
}

/* ========================= */
/* CONTACTO */
/* ========================= */

.contact{
    text-align:center;
    padding-top:clamp(70px, 9vw, 105px);
    padding-bottom:clamp(70px, 9vw, 105px);
    background:
        radial-gradient(circle at top left, rgba(56,189,248,0.14), transparent 34%),
        radial-gradient(circle at bottom right, rgba(125,211,252,0.08), transparent 32%);
}

.contact-card{
    position:relative;
    width:min(100%, 900px);
    margin:auto;
    padding:clamp(34px, 6vw, 58px) clamp(20px, 5vw, 48px);
    border-radius:clamp(24px, 4vw, 32px);
    background:
        linear-gradient(145deg, rgba(30,41,59,0.98), rgba(15,23,42,0.96));
    border:1px solid rgba(56,189,248,0.24);
    box-shadow:
        0 24px 70px rgba(0,0,0,0.38),
        0 0 45px rgba(56,189,248,0.10);
    overflow:hidden;
}

.contact-card::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(90deg, transparent, rgba(56,189,248,0.16), transparent);
    height:1px;
}

.contact-card::after{
    content:"";
    position:absolute;
    width:210px;
    height:210px;
    right:-85px;
    top:-85px;
    border-radius:50%;
    background:rgba(56,189,248,0.12);
    filter:blur(4px);
    pointer-events:none;
}

.contact .section-title{
    margin-bottom:16px;
}

.contact .section-subtitle{
    margin-bottom:34px;
}

.contact-info{
    width:min(100%, 720px);
    margin:0 auto 34px;
    display:grid;
    gap:14px;
}

.contact-info p{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    margin:0;
    padding:15px 18px;
    color:var(--muted);
    font-size:clamp(17px, 2.2vw, 20px);
    line-height:1.5;
    overflow-wrap:anywhere;
    background:rgba(255,255,255,0.045);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:16px;
}

.contact-info span{
    flex:0 0 auto;
}

/* ========================= */
/* FOOTER */
/* ========================= */

footer{
    background:var(--bg-dark);
    padding:25px clamp(16px, 6vw, 8%);
    text-align:center;
    color:var(--muted-2);
    border-top:1px solid rgba(255,255,255,0.05);
}

footer p{
    margin:5px 0;
    line-height:1.5;
}

/* ========================= */
/* WHATSAPP */
/* ========================= */

.whatsapp{
    position:fixed;
    right:clamp(14px, 3vw, 20px);
    bottom:clamp(14px, 3vw, 20px);
    width:clamp(56px, 12vw, 65px);
    height:clamp(56px, 12vw, 65px);
    border-radius:50%;
    background:#25D366;
    display:flex;
    justify-content:center;
    align-items:center;
    text-decoration:none;
    font-size:clamp(27px, 6vw, 32px);
    color:white;
    box-shadow:0 0 20px rgba(0,0,0,0.4);
    z-index:999;
    transition:0.3s;
}

.whatsapp:hover{
    transform:scale(1.1);
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media(max-width:980px){
    header{
        align-items:flex-start;
        flex-direction:column;
    }

    nav{
        width:100%;
        justify-content:flex-start;
        gap:10px;
    }

    nav a{
        padding:8px 11px;
        border-radius:999px;
        background:rgba(255,255,255,0.06);
        border:1px solid rgba(255,255,255,0.07);
    }

    .hero{
        padding-top:170px;
    }

    .about{
        grid-template-columns:1fr;
    }
}

@media(max-width:640px){
    header{
        padding:12px 14px;
        gap:12px;
    }

    .logo{
        width:100%;
    }

    .logo h1{
        white-space:normal;
    }

    nav{
        display:grid;
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap:8px;
    }

    nav a{
        text-align:center;
        font-size:13px;
        padding:9px 8px;
    }

    .hero{
        min-height:auto;
        padding-top:210px;
    }

    .hero-actions{
        width:100%;
        gap:12px;
    }

    .hero-actions .btn,
    .cta-box .btn,
    .about-text .btn,
    .contact .btn{
        width:100%;
    }

    .section-subtitle{
        margin-bottom:36px;
    }

    .contact-info p{
        align-items:flex-start;
        justify-content:flex-start;
        text-align:left;
    }

    .card:hover,
    .btn-primary:hover,
    .btn-secondary:hover,
    .whatsapp:hover{
        transform:none;
    }
}

@media(max-width:390px){
    .hero{
        padding-top:230px;
    }

    nav{
        grid-template-columns:1fr;
    }

    .btn{
        padding:14px 18px;
    }
}
