/* ===== FONDO PARA HERO SECTION ===== */
.hero-ley-silla {
    background-image: url('../Imagenes/fondo_index.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 2rem;
}

.hero-ley-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== TIPOGRAFÍA PROFESIONAL Y CREATIVA ===== */
.hero-title {
    color: #ffffff;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.5px;
    text-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.6),
        0 8px 24px rgba(0, 0, 0, 0.4);
    font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Línea decorativa moderna bajo el título */
.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.5);
}

/* Subtítulo - Elegante y legible */
.hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    max-width: 650px;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    position: relative;
    padding: 1.5rem 0 1.5rem 2rem;
}

/* Línea decorativa vertical moderna */
.hero-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        #3b82f6 20%, 
        #60a5fa 50%, 
        #3b82f6 80%, 
        transparent 100%);
    border-radius: 3px;
}

/* Ocultamos el badge de "Comodidad Garantizada" */
.hero-image,
.law-badge {
    display: none;
}

/* ===== BOTONES CON DISEÑO PROFESIONAL ===== */
.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.btn-large {
    padding: 1.2rem 2.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    white-space: nowrap;
    text-align: center;
}

/* Efecto hover con movimiento */
.btn-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.6s;
    z-index: -1;
}

.btn-large:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    box-shadow: 
        0 6px 20px rgba(37, 99, 235, 0.4),
        0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 30px rgba(37, 99, 235, 0.5),
        0 4px 8px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.25),
        0 2px 4px rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.35),
        0 4px 8px rgba(255, 255, 255, 0.2);
}

/* ===== MODO OSCURO CON ESTILOS MEJORADOS ===== */
body.dark-mode .hero-ley-silla {
    background-image: url('../Imagenes/fondo_index.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    color: #e2e8f0;
}

/* Overlay más oscuro para mejor contraste en modo oscuro */
body.dark-mode .hero-ley-silla::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

/* Título en modo oscuro con gradiente mejorado */
body.dark-mode .hero-title {
    background: linear-gradient(135deg, #ffffff 0%, #dbeafe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.8),
        0 8px 30px rgba(0, 0, 0, 0.6);
}

/* Subtítulo en modo oscuro - más brillante */
body.dark-mode .hero-subtitle {
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* Botón secundario en modo oscuro - más visible */
body.dark-mode .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

body.dark-mode .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

/* ===== IMPORTAR FUENTES MODERNAS ===== */
/* Solo necesitas agregar esto al <head> de tu HTML:
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Inter:wght@300;400;500;600&display=swap" rel="stylesheet">
*/

/* ===== MODO OSCURO PARA INDEX (SIN CAMBIOS ESTRUCTURALES) ===== */

/* Sección Empresas Obligadas - Modo Oscuro */
body.dark-mode .section-padding {
    background: #1e293b;
}

/* Encabezado Cumplimiento */
body.dark-mode .encabezado-cumplimiento {
    background: #1e293b;
    color: #e2e8f0;
}

body.dark-mode .badge-legal-profesional {
    background: linear-gradient(135deg, #1e40af, #3730a3);
    color: #f8fafc;
}

body.dark-mode .titulo-cumplimiento {
    color: #f8fafc;
}

/* Contenido Cumplimiento */
body.dark-mode .contenido-cumplimiento{
    background: #334155;
    color: #e2e8f0;
}

body.dark-mode .lead-text {
    color: #e2e8f0;
}

body.dark-mode .subtext {
    color: #cbd5e1;
}

body.dark-mode .highlight-text.es-lang,
body.dark-mode .highlight-text.en-lang {
    background: #1e293b;
    color: #60a5fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline;
    font-weight: 600;
}

body.dark-mode .separador .en-lang,
body.dark-mode .separador .es-lang{
    background: #334155;
    color: #94a3b8;
}

body.dark-mode .separador::before,
body.dark-mode .separador::after {
    background: #64748b;
}

/* Cards de Empresas */
body.dark-mode .empresas-grid {
    background: #1e293b;
}

body.dark-mode .empresa-card {
    background: #334155;
    border: 1px solid #475569;
    color: #e2e8f0;
}

body.dark-mode .empresa-card:hover {
    background: #475569;
    border-color: #60a5fa;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

body.dark-mode .empresa-icon {
    background: linear-gradient(135deg, #1e40af, #3730a3);
    color: #f8fafc;
}

body.dark-mode .empresa-card h3 {
    color: #f8fafc;
}

body.dark-mode .empresa-card p {
    color: #cbd5e1;
}

/* CTA Empresas */
body.dark-mode .cta-empresas {
    background: #334155;
    border: 1px solid #475569;
}

body.dark-mode .cta-empresas h3 {
    color: #f8fafc;
}

body.dark-mode .cta-empresas p {
    color: #cbd5e1;
}

/* Sección Beneficios y Riesgos */
body.dark-mode .beneficios-riesgos {
    background: #1e293b;
}

body.dark-mode .br-grid {
    background: #1e293b;
}

/* Card Beneficios */
body.dark-mode .beneficios-card {
    background: #334155;
    border: 1px solid #475569;
    color: #e2e8f0;
}

body.dark-mode .beneficios-card .br-header {
    background: linear-gradient(135deg, #059669, #047857);
    color: #f8fafc;
}

body.dark-mode .beneficio-item {
    border-bottom: 1px solid #475569;
}

body.dark-mode .beneficio-item:last-child {
    border-bottom: none;
}

body.dark-mode .beneficio-item i {
    color: #10b981;
}

body.dark-mode .beneficio-item h4 {
    color: #f8fafc;
}

body.dark-mode .beneficio-item p {
    color: #cbd5e1;
}

/* Card Riesgos */
body.dark-mode .riesgos-card {
    background: #334155;
    border: 1px solid #475569;
    color: #e2e8f0;
}

body.dark-mode .riesgos-card .br-header {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #f8fafc;
}

body.dark-mode .riesgo-item {
    border-bottom: 1px solid #475569;
}

body.dark-mode .riesgo-item:last-child {
    border-bottom: none;
}

body.dark-mode .riesgo-item i {
    color: #ef4444;
}

body.dark-mode .riesgo-item h4 {
    color: #f8fafc;
}

body.dark-mode .riesgo-item p {
    color: #cbd5e1;
}

/* Botones en Modo Oscuro */
body.dark-mode .btn-secondary {
    background: transparent;
    color: #e2e8f0;
    border: 2px solid #e2e8f0;
}

body.dark-mode .btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: translateY(-2px);
}

body.dark-mode .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

/* Textos generales */
body.dark-mode .es-lang,
body.dark-mode .en-lang {
    color: inherit;
}

/* ===== CONTROL DE IDIOMAS ===== */
.en-lang {
    display: none !important;
}

body.lang-en .es-lang {
    display: none !important;
}

body.lang-en .en-lang {
    display: inline !important;
}

body.lang-en .en-lang.hero-title,
body.lang-en .en-lang.hero-subtitle,
body.lang-en .en-lang.titulo-cumplimiento {
    display: block !important;
}

body.lang-en .en-lang.btn-large,
body.lang-en .en-lang.empresa-card h3,
body.lang-en .en-lang.empresa-card p {
    display: block !important;
}

/* ===== TEXTO GRANDE COMO MODO CLARO ===== */
body.dark-mode .texto-secundario .highlight-text.es-lang,
body.dark-mode .texto-secundario .highlight-text.en-lang {
    background: #1e293b;
    color: #60a5fa;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    display: block;
    margin: 0.75rem 0;
    line-height: 1.6;
    border-left: 4px solid #60a5fa;
    font-size: 1.2rem;
    width: 100%;
    text-align: center;
}

body.lang-en .en-lang {
    display: block !important;
}

/* ===== AJUSTE PARA TEXTO COMPLETO EN BOTONES ===== */
.btn-large .es-lang,
.btn-large .en-lang {
    display: inline-block !important;
    white-space: nowrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        padding-left: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-ley-silla {
        min-height: 500px;
        background-position: 60% center;
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-title::after {
        width: 80px;
        bottom: -8px;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
        padding-left: 1.25rem;
    }
    
    .hero-subtitle::before {
        width: 2px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-large {
        width: 100%;
        max-width: 320px;
        padding: 1.1rem 2rem;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
        padding-left: 1rem;
    }
    
    .hero-actions {
        gap: 0.75rem;
    }
    
    .btn-large {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
}

/* ===== CORRECCIÓN ESPECÍFICA PARA TEXTO EN BOTONES ===== */
.btn-large .en-lang {
    display: none !important;
}

body.lang-en .btn-large .es-lang {
    display: none !important;
}

body.lang-en .btn-large .en-lang {
    display: inline-block !important;
}

/* Esto asegura que solo un idioma se muestre en los botones */
.btn-large > .es-lang,
.btn-large > .en-lang {
    display: inline-block;
}

body:not(.lang-en) .btn-large > .en-lang {
    display: none;
}

body.lang-en .btn-large > .es-lang {
    display: none;
}
