:root {
    /* Brand Colors - Authority & Urgency */
    --primary: #D90429; /* Rojo Carmesí Intenso (Urgencia Profesional) */
    --primary-dark: #9d0208;
    
    --secondary: #0f172a; /* Slate 900 (Autoridad Legal) */
    --secondary-light: #1e293b;
    
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Manrope', system-ui, sans-serif; /* Más geométrica y moderna */
    color: var(--secondary);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

p { margin-bottom: 1.5rem; color: var(--text-muted); }
a { text-decoration: none; transition: 0.3s; color: inherit; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-primary { color: var(--primary); }
.section-padding { padding: 6rem 0; }

/* --- Header & Nav --- */
.header {
    position: fixed; top: 0; left: 0; right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    z-index: 1000;
    display: flex; align-items: center;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo {
    font-size: 1.5rem; font-weight: 900; color: var(--secondary);
    display: flex; align-items: center; gap: 8px;
    text-transform: uppercase; letter-spacing: -0.5px;
}
.logo span { color: var(--primary); }

.nav-menu { display: flex; gap: 2rem; align-items: center; }
.nav-link { font-weight: 600; font-size: 0.9rem; color: var(--secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.nav-link:hover { color: var(--primary); }

.btn-urgent-nav {
    background: var(--primary); color: white;
    padding: 0.75rem 1.5rem; border-radius: 4px; /* Bordes más rectos = seriedad */
    font-weight: 700; font-size: 0.9rem; text-transform: uppercase;
    display: flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 14px 0 rgba(217, 4, 41, 0.39);
}
.btn-urgent-nav:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* Mobile Toggle */
.mobile-toggle { display: none; font-size: 1.5rem; color: var(--secondary); cursor: pointer; }

/* --- Hero Section --- */
.hero {
    position: relative;
    padding-top: 160px; padding-bottom: 100px;
    background: var(--secondary); /* Fondo oscuro por defecto si falla img */
    color: white; overflow: hidden;
}

/* Overlay oscuro profesional */
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 100%);
    z-index: 1;
}

/* Imagen de fondo (asegúrate de que la ruta sea correcta) */
.hero-bg-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
    filter: grayscale(100%); /* Desaturar para seriedad */
}

.hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; margin: 0 auto; }

.hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); color: white; margin-bottom: 1.5rem; text-transform: uppercase; }
.hero-subtitle { font-size: 1.25rem; color: #cbd5e1; margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }

.hero-badges { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.badge {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    padding: 0.5rem 1rem; border-radius: 50px; font-size: 0.9rem; font-weight: 600;
    backdrop-filter: blur(5px); display: flex; align-items: center; gap: 6px;
}
.badge i { color: var(--primary); }

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
    background: var(--primary); color: white; padding: 1rem 2.5rem;
    border-radius: var(--radius-sm); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    border: none; cursor: pointer; transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(217, 4, 41, 0.4);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-outline {
    background: transparent; color: white; padding: 1rem 2.5rem;
    border-radius: var(--radius-sm); font-weight: 700; border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer; transition: all 0.3s;
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.05); }

/* --- Stats Section (Legal Dashboard Look) --- */
.stats-section { margin-top: -50px; position: relative; z-index: 3; padding-bottom: 4rem; }
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem;
    background: white; padding: 3rem 2rem; border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover); border-top: 4px solid var(--primary);
}
.stat-item { text-align: center; border-right: 1px solid #e2e8f0; }
.stat-item:last-child { border-right: none; }
.stat-item h3 { font-size: 2.5rem; color: var(--secondary); margin-bottom: 0.2rem; }
.stat-item p { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin: 0; }

/* --- Services Grid --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; margin-top: 3rem; }
.service-card {
    background: white; padding: 2.5rem; border-radius: var(--radius-md);
    border: 1px solid #e2e8f0; transition: all 0.3s; position: relative;
}
.service-card:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.service-icon {
    width: 50px; height: 50px; background: #fff1f2; color: var(--primary);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 1.5rem;
}
.service-card h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.service-card p { font-size: 0.95rem; }

/* --- Process (Timeline) --- */
/* --- Process (Timeline) - MEJORADO --- */
.process-section { 
    background: var(--secondary); 
    color: white; 
    position: relative; 
    overflow: hidden;
}

.section-header.light h2 { color: white; }
.section-header.light p { color: #94a3b8; }

.process-steps { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    gap: 4rem; 
    margin-top: 5rem; 
}

.step { 
    position: relative; 
    z-index: 1; 
    text-align: center; 
    padding: 2rem 1rem;
    background: rgba(255,255,255,0.03); /* Fondo sutil para cada paso */
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}

.step:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
}

/* El número ahora es un círculo visible arriba */
.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary); /* Rojo corporativo */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Manrope', sans-serif;
    /* Centrado absoluto arriba */
    position: absolute;
    top: -30px; 
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 15px rgba(217, 4, 41, 0.4);
    z-index: 10;
}

.step h3 { 
    color: white; 
    margin-top: 1.5rem; /* Espacio para el número */
    margin-bottom: 1rem; 
    font-size: 1.25rem;
}

.step p { 
    color: #cbd5e1; 
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- FAQ & Accordion --- */
.faq-container { max-width: 800px; margin: 0 auto; margin-top: 3rem; }
details.faq-item {
    background: white; border: 1px solid #e2e8f0; border-radius: var(--radius-md);
    margin-bottom: 1rem; transition: 0.3s;
}
details.faq-item[open] { border-color: var(--primary); box-shadow: var(--shadow-card); }
details.faq-item summary {
    padding: 1.5rem; font-weight: 700; color: var(--secondary); cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
}
details.faq-item summary::after { content: '+'; font-size: 1.5rem; font-weight: 300; }
details.faq-item[open] summary::after { content: '-'; color: var(--primary); }
details.faq-item p { padding: 0 1.5rem 1.5rem; margin: 0; font-size: 0.95rem; }

/* --- Contact Section --- */
.cta-section { background: white; border-top: 1px solid #e2e8f0; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.contact-info h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.contact-form {
    background: var(--bg-body); padding: 2.5rem; border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
}
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.5rem; color: var(--secondary); }
.form-control {
    width: 100%; padding: 0.9rem; border: 1px solid #cbd5e1; border-radius: 6px;
    font-family: inherit; transition: 0.3s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.1); }
.form-submit {
    width: 100%; padding: 1rem; background: var(--secondary); color: white;
    font-weight: 700; border: none; border-radius: 6px; cursor: pointer; transition: 0.3s;
}
.form-submit:hover { background: var(--primary); }

/* --- Footer --- */
footer { background: #020617; color: #94a3b8; padding: 4rem 0 2rem; font-size: 0.9rem; }
.footer-title { color: white; font-weight: 700; margin-bottom: 1.5rem; font-size: 1.1rem; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }

/* --- Floating Elements --- */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
    background: #25D366; color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 999; transition: 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* Banner Cookies */
/* --- Banner de Cookies (Estilo Desokupa) --- */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 30px;
    max-width: 420px;
    background: white;
    padding: 1.5rem;
    border-radius: 8px; /* Bordes más rectos para seriedad */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 10000;
    display: none; /* Se activa con JS */
    border-left: 5px solid var(--primary); /* Línea roja a la izquierda */
    animation: slideUp 0.5s ease;
}

.cookie-banner.show {
    display: block;
}

.cookie-banner p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.cookie-banner a {
    color: var(--secondary);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-btns {
    display: flex;
    gap: 10px;
}

.btn-cookie-accept {
    flex: 1;
    background: var(--secondary); /* Azul oscuro */
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}
.btn-cookie-accept:hover { background: var(--primary); }

.btn-cookie-deny {
    flex: 1;
    background: white;
    color: var(--text-muted);
    border: 1px solid #cbd5e1;
    padding: 0.8rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.btn-cookie-deny:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

@media (max-width: 768px) {
    .cookie-banner {
        left: 10px; right: 10px; bottom: 10px;
        max-width: none; width: auto;
    }
}

/* Responsive & Animations */
@media (max-width: 992px) {
    .contact-layout { grid-template-columns: 1fr; }
    .hero h1 { font-size: 3rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav-menu {
        position: fixed; top: 80px; left: 0; width: 100%; background: white;
        flex-direction: column; padding: 2rem; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transform: translateY(-150%); transition: 0.3s;
    }
    .nav-menu.active { transform: translateY(0); }
    .stat-item { border-right: none; border-bottom: 1px solid #e2e8f0; padding-bottom: 1rem; }
    .cookie-banner { left: 10px; right: 10px; width: auto; max-width: none; }
}

@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.8s ease-out forwards; }