html{
    scroll-behavior:smooth;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Segoe UI', Arial, sans-serif;
    background:#f4f6fb;
    color:#222;
    line-height:1.6;
}

/* HEADER */

header{
    background:rgba(15,23,42,0.95);
    color:white;
    padding:18px 8%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    position:sticky;
    top:0;
    z-index:1000;
    backdrop-filter:blur(10px);
    box-shadow:0 8px 25px rgba(0,0,0,0.15);
}

.logo{
    font-size:28px;
    font-weight:800;
    color:#facc15;
    letter-spacing:1px;
}

nav a{
    color:white;
    text-decoration:none;
    margin-left:25px;
    font-weight:500;
    transition:0.3s;
}

nav a:hover{
    color:#facc15;
}

/* HERO */

.hero{
    min-height:100vh;
    background:
        linear-gradient(rgba(15,23,42,0.55), rgba(15,23,42,0.55)),
        url('img/justicia.jpg');
    background-size:cover;
    background-position:center;

    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:white;
    padding:30px;
}

.hero-content{
    max-width:900px;
    animation:subir 1s ease;
}

@keyframes subir{
    from{
        opacity:0;
        transform:translateY(40px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.hero h1{
    font-size:clamp(38px, 6vw, 68px);
    margin-bottom:25px;
    line-height:1.1;
}

.hero p{
    
    font-size:22px;
    margin-bottom:35px;

    color:#FFDE21;

    font-weight:500;

    text-shadow:
    2px 2px 10px rgba(0,0,0,0.8);
}


.hero-buttons{
    display:flex;
    justify-content:center;
    gap:18px;
    flex-wrap:wrap;
}

.hero button{
    padding:16px 36px;
    border:none;
    border-radius:50px;
    background:#facc15;
    color:#111827;
    cursor:pointer;
    font-size:17px;
    font-weight:700;
    transition:0.3s;
    box-shadow:0 10px 25px rgba(250,204,21,0.35);
}

.hero button:hover{
    transform:translateY(-4px);
    background:#eab308;
}

.btn-whatsapp{
    background:#22c55e !important;
    color:white !important;
    box-shadow:0 10px 25px rgba(34,197,94,0.35) !important;
}

.btn-whatsapp:hover{
    background:#16a34a !important;
}

/* NOSOTROS */

.about{
    background:white;
    padding:90px 8%;
}

.about-container{
    display:flex;
    align-items:center;
    gap:60px;
    flex-wrap:wrap;
}

.about img{
    width:380px;
    border-radius:25px;
    box-shadow:0 20px 45px rgba(0,0,0,0.18);
}

.about-text{
    flex:1;
}

.about-text h2,
.services h2,
.contact h2,
.mapa h2{
    font-size:42px;
    margin-bottom:20px;
    color:#0f172a;
}

.about-text p{
    margin-bottom:15px;
    font-size:18px;
    color:#475569;
}

/* ESTADISTICAS */

.stats{
    background:linear-gradient(135deg,#1e3a8a,#0f172a);
    color:white;
    display:flex;
    justify-content:center;
    gap:40px;
    padding:70px 20px;
    flex-wrap:wrap;
}

.stat{
    background:rgba(255,255,255,0.12);
    padding:30px 45px;
    border-radius:22px;
    text-align:center;
    backdrop-filter:blur(10px);
    min-width:220px;
}

.stat h3{
    font-size:52px;
    color:#facc15;
}

.stat p{
    font-size:17px;
}

/* SERVICIOS */

.services{
    padding:90px 8%;
    text-align:center;
}

.cards{
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
    margin-top:40px;
}

.card{
    background:white;
    width:320px;
    padding:38px 30px;
    border-radius:25px;
    box-shadow:0 12px 35px rgba(15,23,42,0.12);
    transition:0.3s;
    border:1px solid #e5e7eb;
}

.card:hover{
    transform:translateY(-12px);
    box-shadow:0 20px 45px rgba(15,23,42,0.18);
}

.card i{
    width:75px;
    height:75px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 22px;
    border-radius:20px;
    background:#fef3c7;
    color:#d97706;
    font-size:36px;
}

.card h3{
    margin-bottom:15px;
    color:#0f172a;
}

.card p{
    color:#64748b;
}

/* CONTACTO */

.contact{
    background:white;
    padding:90px 8%;
    text-align:center;
}

form{
    max-width:650px;
    margin:auto;
    background:#f8fafc;
    padding:35px;
    border-radius:25px;
    box-shadow:0 15px 35px rgba(15,23,42,0.12);
}

form input,
form textarea,
form select{
    width:100%;
    padding:16px;
    margin-bottom:16px;
    border:1px solid #cbd5e1;
    border-radius:14px;
    background:white;
    font-size:16px;
    outline:none;
    transition:0.3s;
}

form input:focus,
form textarea:focus,
form select:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 4px rgba(37,99,235,0.15);
}

form textarea{
    resize:none;
    height:150px;
}

form button{
    width:100%;
    padding:16px;
    border:none;
    border-radius:50px;
    background:#2563eb;
    color:white;
    cursor:pointer;
    font-size:17px;
    font-weight:700;
    transition:0.3s;
}

form button:hover{
    background:#1d4ed8;
    transform:translateY(-3px);
}

/* MAPA */

.mapa{
    padding:90px 8%;
    text-align:center;
}

.mapa iframe{
    width:100%;
    height:420px;
    border:none;
    border-radius:25px;
    box-shadow:0 15px 35px rgba(15,23,42,0.15);
}

/* FOOTER */

footer{
    background:#0f172a;
    color:white;
    text-align:center;
    padding:25px;
}

/* WHATSAPP */

.whatsapp{
    position:fixed;
    bottom:22px;
    right:22px;
    width:65px;
    height:65px;
    background:#22c55e;
    color:white;
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius:50%;
    font-size:32px;
    text-decoration:none;
    box-shadow:0 10px 25px rgba(34,197,94,0.45);
    transition:0.3s;
}

.whatsapp:hover{
    transform:scale(1.1);
}

/* RESPONSIVE */

@media(max-width:768px){

    header{
        flex-direction:column;
        padding:20px;
        gap:15px;
    }

    nav{
        display:flex;
        flex-wrap:wrap;
        justify-content:center;
    }

    nav a{
        margin:8px;
    }

    .hero{
        min-height:90vh;
    }

    .hero p{
        font-size:18px;
    }

    .about-container{
        text-align:center;
    }

    .about img{
        width:100%;
    }

    form{
        padding:25px 18px;
    }

}