/* ESTÉTICA FRAMED EDITORIAL - RUBEN HERNÁNDEZ OLIVELLA (SERVICIOS LEGALES) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+Pro:wght@300;400;600&display=swap');

:root {
    --law-navy: #0F172A;        /* Azul Marino / Marco Exterior y Textos */
    --law-gold: #D4AF37;        /* Oro Viejo / Acentos y Enlaces */
    --law-paper: #FAFAFA;       /* Papel Verjurado / Fondo Central */
    --law-grey: #475569;        /* Gris Pizarra / Textos secundarios */
    --border-light: 1px solid rgba(15, 23, 42, 0.1);
    --transition: all 0.4s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Source Sans Pro', sans-serif; 
    background-color: var(--law-navy); /* El color del marco exterior */
    color: var(--law-navy); 
    line-height: 1.7; 
    padding: 2.5vw; /* Crea el efecto de marco perimetral */
    min-height: 100vh;
}
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 600; color: var(--law-navy); }

/* CONTENEDOR ENMARCADO CENTRAL */
.page-wrapper {
    background-color: var(--law-paper);
    min-height: 90vh;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* CABECERA EDITORIAL (CENTRADA) */
header {
    text-align: center;
    padding: 60px 5% 30px;
    border-bottom: var(--border-light);
    position: relative;
}
.brand h1 { font-size: 2.8rem; letter-spacing: 2px; margin-bottom: 10px; text-transform: uppercase; }
.brand p { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--law-gold); font-style: italic; letter-spacing: 1px; }

nav { margin-top: 40px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 30px; }
.nav-links { display: flex; list-style: none; gap: 35px; }
.nav-links a { text-decoration: none; color: var(--law-grey); font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--law-gold); }

.lang-selector { 
    background: transparent; 
    border: 1px solid var(--law-grey); 
    color: var(--law-navy); 
    padding: 5px 10px; 
    font-family: 'Source Sans Pro', sans-serif; 
    font-size: 0.85rem;
    cursor: pointer; 
    outline: none; 
    transition: var(--transition); 
}
.lang-selector:hover { border-color: var(--law-gold); color: var(--law-gold); }

/* HERO SECTION EDITORIAL (CON VÍDEO INTEGRADO) */
.hero { position: relative; display: flex; align-items: center; justify-content: center; min-height: 65vh; padding: 80px 5%; overflow: hidden; background-color: var(--law-navy); }
.hero-video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; filter: grayscale(100%); mix-blend-mode: luminosity; }
.hero-content { position: relative; z-index: 10; background-color: rgba(250, 250, 250, 0.95); padding: 50px; border: 1px solid var(--law-gold); text-align: center; max-width: 850px; box-shadow: 10px 10px 0px rgba(212, 175, 55, 0.15); }
.hero-content h2 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 25px; }
.hero-content p { font-size: 1.2rem; color: var(--law-grey); margin-bottom: 0; font-weight: 300; }
/* CONTENEDORES DE BLOQUE */
.content-block { padding: 80px 8%; }
.alt-bg { background-color: #FFFFFF; }
.section-title { font-size: 2.8rem; margin-bottom: 50px; text-align: center; text-transform: uppercase; letter-spacing: 2px; }
.section-title::after { content: ''; display: block; width: 60px; height: 2px; background-color: var(--law-gold); margin: 20px auto 0; }

/* SERVICIOS (REGLA: SOLO TÍTULOS - CUADRÍCULA SOBRIA) */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.service-card { background: var(--law-paper); border: 1px solid rgba(15,23,42,0.05); transition: var(--transition); cursor: pointer; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.05); }
.service-card img { width: 100%; height: 220px; object-fit: cover; filter: grayscale(100%); transition: var(--transition); }
.service-card:hover img { filter: grayscale(0%); }
.service-card h3 { font-size: 1.3rem; padding: 25px; text-align: center; margin: 0; background-color: #FFFFFF; border-top: 3px solid var(--law-gold); }

/* TESTIMONIOS (REGLA: 100% ANÓNIMOS - ESTILO CITA LEGAL) */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.testimonial-card { padding: 40px; background: #FFFFFF; border: var(--border-light); position: relative; }
.testimonial-card::before { content: '§'; position: absolute; top: 20px; right: 30px; font-family: 'Cormorant Garamond', serif; font-size: 3rem; color: var(--law-gold); opacity: 0.2; }
.testimonial-card p { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-style: italic; color: var(--law-navy); line-height: 1.6; }

/* DUDAS (REGLA: EXACTAMENTE 2, H3 + P) */
.faq-container { display: flex; flex-direction: column; gap: 30px; max-width: 900px; margin: 0 auto; }
.faq-box { padding: 40px; background: #FFFFFF; border-left: 2px solid var(--law-gold); box-shadow: 0 5px 15px rgba(0,0,0,0.02); }
.faq-box h3 { font-size: 1.5rem; margin-bottom: 15px; }
.faq-box p { font-size: 1.1rem; color: var(--law-grey); }

/* FOOTER EDITORIAL */
footer { padding: 60px 8% 40px; border-top: var(--border-light); background-color: #FFFFFF; margin-top: auto; }
.footer-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 50px; }
.footer-columns h4 { font-size: 1.2rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; color: var(--law-navy); }
.footer-columns p { margin-bottom: 8px; font-size: 0.95rem; color: var(--law-grey); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--law-grey); text-decoration: none; font-size: 0.95rem; transition: var(--transition); }
.footer-links a:hover { color: var(--law-gold); }

/* REGLA ESTRICTA LOGO KIT DIGITAL */
.logo-kit-local { display: block; margin: 0 auto 40px; max-width: 250px; width: 100%; height: auto; background-color: #FFFFFF !important; padding: 15px; border: 1px solid rgba(0,0,0,0.1); }
.footer-legal-text { text-align: center; border-top: var(--border-light); padding-top: 20px; font-size: 0.85rem; color: var(--law-grey); text-transform: uppercase; letter-spacing: 1px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    body { padding: 0; }
    .hero { flex-direction: column; text-align: center; padding: 60px 5%; }
    .hero-image img { box-shadow: 0px 15px 0px var(--law-gold); }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .page-wrapper { border-radius: 0; min-height: 100vh; }
}