/* VARIABLES LAVELA GESTIÓN S.L. */
:root {
    --law-navy: #0B1D3A;
    --law-gold: #C5A880;
    --law-gold-dark: #9E825C;
    --law-white: #FFFFFF;
    --law-gray-light: #F4F6F9;
    --law-gray-text: #5A6A7D;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background-color: var(--law-gray-light); color: var(--law-navy); line-height: 1.8; overflow-x: hidden; padding-top: 130px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--law-navy); }

/* DOBLE CABECERA EXCLUSIVA */
.top-bar {
    background: var(--law-navy); color: var(--law-gray-light); padding: 10px 5%;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.8rem; letter-spacing: 1px; position: fixed; top: 0; width: 100%; z-index: 1001;
}
.top-bar-info span { margin-right: 20px; }
.top-bar-info i { color: var(--law-gold); margin-right: 5px; }

header {
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px);
    padding: 20px 5%; display: flex; justify-content: space-between; align-items: center;
    position: fixed; top: 38px; width: 100%; z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); transition: var(--transition-fast);
}
.brand { text-decoration: none; display: flex; flex-direction: column; border-left: 3px solid var(--law-gold); padding-left: 15px; }
.brand h1 { font-size: 1.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; line-height: 1; }
.brand span { font-size: 0.8rem; color: var(--law-gray-text); letter-spacing: 3px; text-transform: uppercase; margin-top: 5px; }

nav { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; list-style: none; gap: 25px; }
.nav-links a {
    color: var(--law-navy); text-decoration: none; font-size: 0.85rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px; transition: var(--transition-fast);
}
.nav-links a:hover, .nav-links a.active { color: var(--law-gold); }

.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--law-navy); }
/* ESTILO DEL DESPLEGABLE DE IDIOMAS */
.lang-selector { 
    background: var(--law-gold); 
    color: var(--law-white); 
    border: none; 
    padding: 8px 15px; 
    font-weight: bold; 
    cursor: pointer; 
    border-radius: 2px; 
    outline: none;
    font-family: var(--font-body);
}
.lang-selector option {
    background: var(--law-navy);
    color: var(--law-white);
}

/* HERO SECTION CON EFECTO PARALLAX */
.hero {
    position: relative; height: calc(100vh - 130px); background: var(--law-navy);
    display: flex; align-items: center; padding: 0 5%; overflow: hidden;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://images.unsplash.com/photo-1589829085413-56de8ae18c73?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
    opacity: 0.3; transform: scale(1.05); transition: transform 10s linear;
}
.hero:hover .hero-bg { transform: scale(1); }
.hero-content { position: relative; z-index: 2; max-width: 800px; color: var(--law-white); }
.hero-content h2 { font-size: 4rem; line-height: 1.1; margin-bottom: 25px; color: var(--law-white); }
.hero-content h2 span { color: var(--law-gold); font-style: italic; }
.hero-content p { font-size: 1.2rem; color: #D1D8E0; margin-bottom: 40px; font-family: var(--font-body); font-weight: 300; }
.btn-gold {
    display: inline-block; background: var(--law-gold); color: var(--law-white);
    padding: 18px 40px; font-size: 0.95rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 2px; text-decoration: none; transition: var(--transition-fast); border-radius: 2px;
}
.btn-gold:hover { background: var(--law-gold-dark); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(197, 168, 128, 0.3); }

/* CLASES JS PARA ANIMACIONES SCROLL */
.fade-in-up { opacity: 0; transform: translateY(40px); transition: var(--transition-slow); }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* SECCIONES Y CONTENIDO MASIVO */
.section-pad { padding: 100px 5%; max-width: 1400px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 70px; }
.section-header h2 { font-size: 3rem; position: relative; display: inline-block; padding-bottom: 15px; }
.section-header h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: var(--law-gold); }

.text-block { background: var(--law-white); padding: 60px; box-shadow: 0 15px 40px rgba(0,0,0,0.03); border-radius: 4px; border-top: 5px solid var(--law-navy); margin-bottom: 40px; }
.text-block p { font-size: 1.1rem; color: var(--law-gray-text); margin-bottom: 20px; text-align: justify; }

/* ESTADÍSTICAS ANIMADAS (JS) */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 60px 0; }
.stat-box { text-align: center; padding: 40px; border: 1px solid rgba(11, 29, 58, 0.1); background: var(--law-white); }
.stat-num { font-size: 3.5rem; color: var(--law-gold); font-family: var(--font-heading); font-weight: bold; display: block; }
.stat-label { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--law-navy); font-weight: bold; }

/* SERVICIOS (REGLA ESTRICTA: SOLO TÍTULO) */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-card { position: relative; height: 350px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.service-card img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); filter: grayscale(100%); }
.service-card:hover img { filter: grayscale(0%); transform: scale(1.05); }
.service-card .overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(11, 29, 58, 0.75); transition: var(--transition-fast); }
.service-card:hover .overlay { background: rgba(11, 29, 58, 0.5); }
.service-card h3 { position: relative; z-index: 2; color: var(--law-white); font-size: 1.8rem; text-align: center; padding: 0 20px; font-weight: normal; }

/* TESTIMONIOS (REGLA: 100% ANÓNIMOS) */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.review-card { background: var(--law-navy); color: var(--law-white); padding: 50px; position: relative; border-bottom: 4px solid var(--law-gold); }
.review-card p { font-size: 1.15rem; font-style: italic; opacity: 0.9; }
.review-card::before { content: '"'; font-family: var(--font-heading); font-size: 6rem; position: absolute; top: 0px; right: 20px; color: rgba(197, 168, 128, 0.2); line-height: 1; }

/* FAQ (REGLA: EXACTAMENTE 2, HTML H3 + P) */
.faq-wrap { max-width: 900px; margin: 0 auto; }
.faq-item { background: var(--law-white); margin-bottom: 20px; padding: 40px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); border-left: 4px solid var(--law-gold); cursor: pointer; transition: var(--transition-fast); }
.faq-item:hover { transform: translateX(5px); }
.faq-item h3 { font-size: 1.4rem; color: var(--law-navy); margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; }
.faq-item h3::after { content: '+'; color: var(--law-gold); font-size: 1.5rem; }
.faq-item p { font-size: 1.1rem; color: var(--law-gray-text); display: none; /* Se activa con JS */ }
.faq-item.active p { display: block; animation: fadeIn 0.5s; }
.faq-item.active h3::after { content: '-'; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* FOOTER & REGLA DEL LOGO KIT */
footer { background: #06111D; color: var(--law-white); padding: 80px 5% 40px; text-align: center; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 60px; text-align: left; }
.footer-grid h4 { color: var(--law-gold); font-size: 1.2rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 2px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #A0AAB5; text-decoration: none; font-size: 0.95rem; transition: var(--transition-fast); }
.footer-links a:hover { color: var(--law-white); }

/* REGLA INQUEBRANTABLE LOGO_KIT.PNG */
.footer-logo-kit {
    height: 125px !important;
    background-color: transparent !important;
    display: block;
    margin: 0 auto 30px;
}

/* RESPONSIVE & MOBILE MENU */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: 1fr; gap: 20px; }
    .hero-content h2 { font-size: 3rem; }
}
@media (max-width: 768px) {
    .top-bar { display: none; }
    header { top: 0; }
    body { padding-top: 90px; }
    .menu-toggle { display: block; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
        background: var(--law-navy); flex-direction: column; padding: 100px 40px;
        transition: right 0.4s ease; box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    }
    .nav-links.active { right: 0; }
    .nav-links a { color: var(--law-white); font-size: 1.1rem; }
}