/*==========================================================
    OFAMELO
    style.css
==========================================================*/

/*==============================
    VARIABLES
==============================*/

:root{

    --primary:#003A70;
    --secondary:#CE1126;
    --white:#ffffff;
    --light:#f5f7fa;
    --dark:#222;
    --gray:#666;

    --shadow:0 10px 30px rgba(0,0,0,.10);

    --radius:18px;

    --transition:.35s ease;

    --max-width:1200px;

}


/*==============================
    RESET
==============================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;

    color:var(--dark);

    background:#fff;

    line-height:1.6;

    overflow-x:hidden;

}

img{

    display:block;

    width:100%;

}

a{

    text-decoration:none;

    color:inherit;

}

ul{

    list-style:none;

}

.container{

    width:92%;

    max-width:var(--max-width);

    margin:auto;

}


/*==============================
    TITULOS
==============================*/

h1,h2,h3,h4{

    font-family:'Merriweather',serif;

}

h2{

    font-size:2.4rem;

    color:var(--primary);

    margin-bottom:50px;

    text-align:center;

}


/*==============================
    HEADER
==============================*/

header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    z-index:9999;

    transition:.35s ease;

    background:rgba(7,22,43,.25);

    backdrop-filter:blur(12px);

}

header.scrolled{

    background:#07162B;

    box-shadow:0 8px 25px rgba(0,0,0,.20);

}

header .container{

    display:flex;

    justify-content:space-between;

    align-items:center;
    height:90px;

}

.logo{

    font-size:34px;

    font-weight:700;

    color:white;

    letter-spacing:2px;
    line-height:1;  

}

header.scrolled .logo{

    color:white;

}

nav ul{

    display:flex;

    gap:35px;

}


header.scrolled nav a{

    color:white;

}

nav a:hover{

    color:var(--secondary);

}

.menu-btn{

    display:none;

    font-size:28px;

    color:white;

    cursor:pointer;

}

header.scrolled .menu-btn{

    color:var(--primary);

}


nav ul li a{

    color:#fff;

    font-weight:500;

    transition:.30s;

    position:relative;

}

nav ul li a:hover{

    color:#D4AF37;

}


nav ul li a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:0;

    height:2px;

    background:#D4AF37;

    transition:.30s;

}

nav ul li a:hover::after,

nav ul li a.active::after{

    width:100%;

}

/*==============================
    HERO
==============================*/

.hero{

    position:relative;

    height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    overflow:hidden;

    background:url("../images/hero/hero.jpg") center center/cover;

}

.overlay{

    position:absolute;

    inset:0;

    background:rgba(0,43,91,.72);

}

.hero-content{

    position:relative;

    z-index:5;

    color:white;

    width:90%;

    max-width:900px;

}

.hero-content h3{

    font-size:30px;

    margin-bottom:15px;

    font-weight:400;

}

.hero-content h1{

    font-size:80px;

    letter-spacing:4px;

    margin-bottom:20px;

}

.hero-content p{

    font-size:22px;

    margin-bottom:45px;

    opacity:.95;

}


/*==============================
    BOTONES
==============================*/

.btn-primary{

    display:inline-block;

    padding:18px 45px;

    background:var(--secondary);

    color:white;

    border-radius:50px;

    font-size:18px;

    transition:.35s;

    font-weight:600;

    box-shadow:0 10px 25px rgba(206,17,38,.35);

}

.btn-primary:hover{

    transform:translateY(-5px);

    background:#a50d1d;

}


/*==============================
    SERVICES
==============================*/

.services{

    padding:110px 0;

    background:var(--light);

}

.cards{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:35px;

}

.card{

    background:white;

    padding:45px;

    border-radius:var(--radius);

    text-align:center;

    transition:.35s ease;

    box-shadow:var(--shadow);

    border:1px solid rgba(0,0,0,.05);

}

.card:hover{

    transform:translateY(-12px);

    box-shadow:0 20px 45px rgba(0,0,0,.18);

}

.card i{

    font-size:55px;

    color:var(--primary);

    margin-bottom:25px;

    transition:.35s;

}

.card:hover i{

    transform:scale(1.08);

    color:var(--secondary);

}

.card h3{

    color:var(--primary);

    font-size:24px;

    margin-bottom:18px;

}

.card p{

    line-height:1.8;

    color:#555;

}

/*==========================================================
    EQUIPO
==========================================================*/

.team{

    padding:120px 0;

    background:#ffffff;

}

.team-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:40px;

    margin-top:70px;

}

.member{

    background:#fff;

    border-radius:20px;

    padding:40px 30px;

    text-align:center;

    box-shadow:0 12px 30px rgba(0,0,0,.08);

    transition:all .35s ease;

    position:relative;

    overflow:hidden;

}

.member::before{

    content:"";

    position:absolute;

    top:0;

    left:0;

    width:100%;

    height:6px;

    background:linear-gradient(90deg,#003A70,#CE1126);

    transform:scaleX(0);

    transform-origin:left;

    transition:.35s;

}

.member:hover::before{

    transform:scaleX(1);

}

.member:hover{

    transform:translateY(-12px);

    box-shadow:0 25px 45px rgba(0,0,0,.12);

}

.member img{

    width:180px;

    height:180px;

    border-radius:50%;

    object-fit:cover;

    margin:auto;

    border:6px solid #ffffff;

    box-shadow:0 10px 25px rgba(0,0,0,.15);

    transition:.4s;

}

.member:hover img{

    transform:scale(1.08);

}

.member h3{

    margin-top:28px;

    color:#003A70;

    font-size:24px;

}

.member span{

    display:block;

    margin-top:8px;

    color:#777;

    font-size:15px;

}

.member p{

    margin-top:18px;

    color:#666;

    font-size:15px;

    line-height:1.7;

}

.member .perfil{

    display:inline-block;

    margin-top:25px;

    padding:12px 28px;

    background:#003A70;

    color:#fff;

    border-radius:40px;

    transition:.3s;

}

.member .perfil:hover{

    background:#CE1126;

}

/*==========================================================
    ESTADISTICAS
==========================================================*/

.stats{

    background:linear-gradient(135deg,#003A70,#0b5ca7);

    color:#fff;

    padding:90px 0;

}

.stats .container{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;

    text-align:center;

}

.stats h2{

    color:#fff;

    font-size:60px;

    margin-bottom:10px;

}

.stats p{

    font-size:18px;

    opacity:.9;

}

/*==========================================================
    CTA
==========================================================*/

.cta{

    padding:120px 0;

    background:#f7f8fb;

    text-align:center;

}

.cta h2{

    font-size:46px;

    margin-bottom:20px;

}

.cta p{

    max-width:750px;

    margin:auto;

    font-size:20px;

    color:#666;

    margin-bottom:45px;

}

/*==========================================================
    FOOTER
==========================================================*/

footer{

    background:#08182f;

    color:#fff;

    padding:70px 0 25px;

}

.footer-grid{

    display:grid;

    grid-template-columns:2fr 1fr 1fr;

    gap:60px;

}

.footer-grid h3{

    margin-bottom:25px;

    font-size:22px;

}

.footer-grid p{

    color:#d9d9d9;

    margin-bottom:10px;

}

.footer-grid ul li{

    margin-bottom:12px;

    color:#d9d9d9;

    transition:.3s;

    cursor:pointer;

}

.footer-grid ul li:hover{

    color:#ffffff;

    padding-left:8px;

}

.copyright{

    border-top:1px solid rgba(255,255,255,.12);

    margin-top:60px;

    padding-top:25px;

    text-align:center;

    font-size:15px;

    color:#cfcfcf;

}

/*==========================================================
    ANIMACIONES
==========================================================*/

.fade-up{

    opacity:0;

    transform:translateY(40px);

    transition:.8s ease;

}

.fade-up.show{

    opacity:1;

    transform:translateY(0);

}

.zoom{

    overflow:hidden;

}

.zoom img{

    transition:.5s;

}

.zoom:hover img{

    transform:scale(1.1);

}

/*==========================================================
    BOTON WHATSAPP
==========================================================*/

.whatsapp{

    position:fixed;

    bottom:30px;

    right:30px;

    width:65px;

    height:65px;

    border-radius:50%;

    background:#25D366;

    display:flex;

    align-items:center;

    justify-content:center;

    color:#fff;

    font-size:34px;

    box-shadow:0 12px 25px rgba(0,0,0,.25);

    z-index:999;

    transition:.3s;

}

.whatsapp:hover{

    transform:scale(1.1);

}

/*==========================================================
    BACK TO TOP
==========================================================*/

.top{

    position:fixed;

    bottom:110px;

    right:32px;

    width:55px;

    height:55px;

    border-radius:50%;

    background:#003A70;

    color:#fff;

    display:flex;

    justify-content:center;

    align-items:center;

    cursor:pointer;

    box-shadow:0 10px 25px rgba(0,0,0,.20);

    transition:.3s;

}

.top:hover{

    background:#CE1126;

}



/* =====================================
   EQUIPO DE ABOGADOS
===================================== */


.lawyers-grid {

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:40px;

    margin-top:40px;

}



.lawyer-card {

    text-align:center;

    transition:.3s;

}



.lawyer-card a {

    text-decoration:none;

    color:inherit;

}



.lawyer-photo {

    width:180px;

    height:180px;

    margin:auto;

    border-radius:50%;

    overflow:hidden;

    border:5px solid white;

    box-shadow:0 10px 25px rgba(0,0,0,.15);

}



.lawyer-photo img {

    width:100%;

    height:100%;

    object-fit:cover;

}



.lawyer-card h3 {

    margin-top:20px;

    color:#003b70;

}



.lawyer-card p {

    color:#555;

}



.lawyer-card:hover {

    transform:translateY(-8px);

}


/*=================================================
PERFIL DEL ABOGADO
=================================================*/

.profile{

    padding:90px 0;

    background:#fff;

}

.profile-grid{

    display:grid;

    grid-template-columns:320px 1fr;

    gap:70px;

    align-items:center;

}

.profile-left{

    text-align:center;

}

.profile-photo{

    width:300px;

    height:300px;

    object-fit:cover;

    border-radius:50%;

    border:8px solid #fff;

    box-shadow:0 15px 40px rgba(0,0,0,.18);

}

.profile-right h2{

    font-size:2.4rem;

    color:var(--primary);

    margin-bottom:10px;

}

.profile-right h3{

    color:var(--secondary);

    font-weight:600;

    margin-bottom:25px;

}

.profile-right p{

    line-height:1.9;

    color:#555;

}

.profile-buttons{

    display:flex;

    gap:20px;

    margin-top:35px;

    flex-wrap:wrap;

}

.profile-buttons a{

    min-width:180px;

    text-align:center;

}

.profile-buttons i{

    margin-right:8px;

}

.philosophy-card{

    max-width:900px;

    margin:auto;

    text-align:center;

}

.philosophy-card i{

    color:var(--secondary-color);

    margin-bottom:20px;

}

.philosophy-card p{

    font-size:1.2rem;

    font-style:italic;

    line-height:1.9;

}
/*=========================================
PERFIL RESPONSIVE
=========================================*/

@media(max-width:900px){

    .profile-grid{

        grid-template-columns:1fr;

        text-align:center;

        gap:40px;

    }

    .profile-photo{

        width:220px;

        height:220px;

    }

    .profile-buttons{

        justify-content:center;

    }

}


/*=================================================
HEROES DE CADA PÁGINA
=================================================*/

.hero-nosotros{

    background:
    linear-gradient(rgba(8,25,48,.70),rgba(8,25,48,.70)),
    url("../images/heroes/nosotros.png") center/cover;

}

.hero-servicios{

    background:
    linear-gradient(rgba(8,25,48,.70),rgba(8,25,48,.70)),
    url("../images/heroes/servicios.png") center/cover;

}

.hero-equipo{

    background:
    linear-gradient(rgba(8,25,48,.70),rgba(8,25,48,.70)),
    url("../images/heroes/equipo.png") center/cover;

}

.hero-contacto{

    background:
    linear-gradient(rgba(8,25,48,.70),rgba(8,25,48,.70)),
    url("../images/heroes/contacto.png") center/cover;

}

.hero-abogado{

    background:
    linear-gradient(rgba(8,25,48,.70),rgba(8,25,48,.70)),
    url("../images/heroes/perfil.png") center/cover;

}

.hero-home{

    background:
    linear-gradient(rgba(8,25,48,.70), rgba(8,25,48,.70)),
    url("../images/heroes/home.png") center center / cover no-repeat;

}

.map-container{

    margin-top:40px;

}


#map{

    width:100%;

    height:550px;

    border-radius:20px;

    overflow:hidden;

    box-shadow:var(--shadow);

}




/*=========================================================
CONTACTO PREMIUM
=========================================================*/

.contact-section{

    padding:110px 0;

    background:#f7f9fc;

}

.contact-wrapper{

    display:grid;

    grid-template-columns:2fr 1fr;

    gap:50px;

    align-items:start;

}

.contact-form-box{

    background:#fff;

    padding:55px;

    border-radius:22px;

    box-shadow:0 18px 45px rgba(0,0,0,.08);

}

.contact-subtitle{

    display:inline-block;

    color:var(--secondary);

    font-weight:600;

    letter-spacing:2px;

    text-transform:uppercase;

    margin-bottom:10px;

}

.contact-form-box h2{

    font-size:42px;

    color:var(--primary);

    margin-bottom:18px;

}

.contact-form-box p{

    color:#666;

    line-height:1.8;

    margin-bottom:40px;

}

.contact-form{

    display:flex;

    flex-direction:column;

    gap:25px;

}

.form-row{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:20px;

}

.form-group{

    position:relative;

}

.form-group i{

    position:absolute;

    left:22px;

    top:22px;

    color:var(--secondary);

    font-size:18px;

    z-index:2;

}

.contact-form input,

.contact-form select,

.contact-form textarea{

    width:100%;

    padding:18px 22px 18px 60px;

    border:1px solid #d9e0ea;

    border-radius:14px;

    font-size:16px;

    font-family:inherit;

    transition:.35s;

    background:#fff;

}

.contact-form textarea{

    resize:vertical;

    min-height:220px;

}

.contact-form input:focus,

.contact-form select:focus,

.contact-form textarea:focus{

    border-color:var(--secondary);

    outline:none;

    box-shadow:0 0 0 5px rgba(0,82,155,.08);

}

.contact-form button{

    align-self:flex-start;

    margin-top:10px;

    padding:18px 45px;

}

/*==============================
LADO DERECHO
==============================*/

.contact-side{

    background:linear-gradient(160deg,#003A70,#005AA9);

    color:#fff;

    padding:50px;

    border-radius:22px;

    position:sticky;

    top:120px;

    box-shadow:0 20px 45px rgba(0,0,0,.18);

}

.contact-side h3{

    font-size:34px;

    margin-bottom:25px;

}

.contact-side p{

    line-height:1.9;

    opacity:.95;

    margin-bottom:35px;

}

.contact-side ul{

    list-style:none;

    margin:0;

    padding:0;

}

.contact-side li{

    display:flex;

    align-items:center;

    gap:12px;

    margin-bottom:18px;

    font-size:17px;

}

.contact-side li i{

    color:#FFD166;

    font-size:18px;

}

/*==============================
CAJAS
==============================*/

.contact-box{

    display:flex;

    gap:18px;

    align-items:flex-start;

    margin-top:30px;

    padding-top:25px;

    border-top:1px solid rgba(255,255,255,.18);

}

.contact-box i{

    width:55px;

    height:55px;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:50%;

    background:rgba(255,255,255,.12);

    font-size:22px;

}

.contact-box strong{

    display:block;

    margin-bottom:6px;

    font-size:17px;

}

.contact-box span{

    opacity:.9;

    line-height:1.7;

}

/*==============================
RESPONSIVE
==============================*/

@media(max-width:991px){

.contact-wrapper{

grid-template-columns:1fr;

}

.contact-side{

position:relative;

top:0;

}

}

@media(max-width:768px){

.contact-form-box{

padding:35px;

}

.form-row{

grid-template-columns:1fr;

}

.contact-form-box h2{

font-size:32px;

}

.contact-side{

padding:35px;

}

}



/*=========================================================
CONTACT CARDS
=========================================================*/

.contact-cards{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:30px;

    margin-top:50px;

}

.contact-card{

    display:flex;

    gap:25px;

    align-items:flex-start;

    background:#fff;

    padding:35px;

    border-radius:20px;

    box-shadow:var(--shadow);

    transition:.35s;

    border:1px solid rgba(0,0,0,.05);

}

.contact-card:hover{

    transform:translateY(-8px);

    box-shadow:0 20px 45px rgba(0,0,0,.15);

}

.contact-icon{

    width:75px;

    height:75px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    background:linear-gradient(135deg,#003A70,#005AA9);

    color:#fff;

    flex-shrink:0;

}

.contact-icon i{

    font-size:30px;

}

.contact-info span{

    color:var(--secondary);

    text-transform:uppercase;

    font-size:13px;

    letter-spacing:2px;

    font-weight:600;

}

.contact-info h3{

    margin:10px 0;

    color:var(--primary);

    font-size:24px;

    line-height:1.4;

}

.contact-info p{

    color:#666;

    line-height:1.7;

}

@media(max-width:900px){

.contact-cards{

grid-template-columns:1fr;

}

}


/*=========================================================
FAQ
=========================================================*/

.faq{

    max-width:950px;

    margin:70px auto 0;

}

.faq-item{

    background:#fff;

    border-radius:16px;

    margin-bottom:20px;

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:.35s;

}

.faq-item:hover{

    transform:translateY(-3px);

}

.faq-question{

    display:flex;

    justify-content:space-between;

    align-items:center;

    cursor:pointer;

    padding:28px 35px;

    font-size:20px;

    font-weight:600;

    color:var(--primary);

}

.faq-question i{

    width:42px;

    height:42px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    background:#f0f4fa;

    color:var(--secondary);

    transition:.35s;

}

.faq-answer{

    max-height:0;

    overflow:hidden;

    padding:0 35px;

    line-height:1.9;

    color:#666;

    transition:.45s;

}

.faq-item.active .faq-answer{

    max-height:300px;

    padding:0 35px 30px;

}

.faq-item.active .faq-question i{

    transform:rotate(45deg);

    background:var(--secondary);

    color:#fff;

}