/* ==========================================================================
   MÓDULO: EMPRESA (empresa.css)
   ========================================================================== */
.section-empresa {
    padding: 80px 4vw;
    background-color: var(--color-white, #ffffff);
}

.empresa-layout-global {
    max-width: 1100px;
    margin: 40px auto 0;
}

/* --- BLOQUE SUPERIOR: IMAGEN Y TEXTO --- */
.empresa-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center; /* CENTRADO VERTICAL: Alinea perfectamente la foto con el bloque de texto derecho */
    margin-bottom: 50px;
}

.empresa-visual img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    display: block;
    object-fit: cover;
}

/* Tipografía del Editor WYSIWYG (Descripción Superior) */
.empresa-descripcion-wysiwyg h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-red, #e3001b);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 8px 0;
}

.empresa-descripcion-wysiwyg h2 {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--color-darker, #111111);
    line-height: 1.2;
    margin: 0 0 25px 0;
    text-transform: uppercase;
}

/* Texto de descripción oscurecido para contraste máximo */
.empresa-descripcion-wysiwyg p {
    font-size: 1.05rem;
    color: var(--color-darker, #111111);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* --- BLOQUE INFERIOR: VALORES CORPORATIVOS --- */
.empresa-valores-wysiwyg {
    background-color: #f8f9fa;
    padding: 50px;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

/* Tratamiento de Alto Impacto para el Título de Valores */
.empresa-valores-wysiwyg > p:first-child,
.empresa-valores-wysiwyg > h3:first-child,
.empresa-valores-wysiwyg > h2:first-child {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--color-darker, #111111);
    margin: 0 0 35px 0;
    text-align: left;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
    display: block;
}

/* Línea roja corporativa anclada automáticamente al título */
.empresa-valores-wysiwyg > p:first-child::after,
.empresa-valores-wysiwyg > h3:first-child::after,
.empresa-valores-wysiwyg > h2:first-child::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--color-red, #e3001b);
    border-radius: 2px;
}

/* Grilla de Valores Auto-Adaptable */
.empresa-valores-wysiwyg ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.empresa-valores-wysiwyg ul li {
    position: relative;
    padding-left: 20px;
    font-size: 1rem;
    color: #333333;
    line-height: 1.6;
}

.empresa-valores-wysiwyg ul li strong,
.empresa-valores-wysiwyg ul li b {
    font-weight: 800;
    color: var(--color-darker, #111111);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.empresa-valores-wysiwyg ul li::before {
    content: '■';
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--color-red, #e3001b);
    font-size: 0.8rem;
}

/* --- BLOQUE CTA: BOTÓN DE ACCIÓN --- */
.empresa-actions {
    margin-top: 50px;
}

.btn-outline-red {
    display: inline-block;
    border: 2px solid var(--color-red, #e3001b);
    background: transparent;
    color: var(--color-red, #e3001b);
    font-weight: 800;
    padding: 14px 35px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.btn-outline-red:hover {
    background: var(--color-red, #e3001b);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(227, 0, 27, 0.2);
}

/* --- RESPONSIVE MÓVIL --- */
@media (max-width: 992px) {
    .empresa-top-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .empresa-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .section-empresa { 
        padding: 50px 5vw; 
    }
    .empresa-descripcion-wysiwyg h2 { 
        font-size: 1.6rem; 
    }
    .empresa-valores-wysiwyg { 
        padding: 30px 20px; 
    }
    .empresa-valores-wysiwyg > p:first-child,
    .empresa-valores-wysiwyg > h3:first-child,
    .empresa-valores-wysiwyg > h2:first-child { 
        font-size: 1.4rem; 
    }
    
    .empresa-actions {
        margin-top: 40px;
    }
    .btn-outline-red {
        display: block;
        width: 100%;
        text-align: center;
    }
}