/* =========================================
   ESTILOS EXCLUSIVOS: LA EMPRESA
   Archivo: css/empresa.css
   ========================================= */

/* 🌟 HERO BANNER INTERNO - ELEGANTE Y OSCURO (MISMO FORMATO) 🌟 */
.page-hero {
    position: relative;
    padding: 220px 0 100px 0; 
    text-align: center;
    color: white;
    overflow: hidden;
    border-bottom: 6px solid var(--mpc-green);
}

.page-hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.page-hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(17, 17, 17, 0.75); 
}

.relative-z { position: relative; z-index: 2; }

.pill-tag {
    background: var(--mpc-green);
    color: white;
    border: none;
    font-size: 0.9rem;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 900;
    display: inline-block;
    margin-bottom: 20px;
}

.page-hero h1 {
    font-size: 3.8rem; 
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: 1px;
    color: #ffffff; 
}

.page-hero h1 .highlight-green {
    color: var(--mpc-green); 
}

/* EFECTOS DE MOVIMIENTO ELEGANTES (CASCADA) */
@keyframes smoothSlideUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.page-hero h1 .word-1 {
    display: inline-block;
    opacity: 0;
    animation: smoothSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

.page-hero h1 .word-2 {
    display: inline-block;
    opacity: 0;
    animation: smoothSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s;
}

.page-hero p {
    font-size: 1.15rem;
    max-width: 680px;
    margin: 0 auto;
    color: #e5e8eb;
    line-height: 1.6;
    opacity: 0;
    animation: smoothSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s;
}

/* 🌟 SECCIONES GLOBALES 🌟 */
.section-light { background-color: #ffffff; padding: 70px 0; } 
.section-gray { background-color: var(--mpc-gray); padding: 70px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);}
.section-header-center { text-align: center; margin-bottom: 50px; }
.section-header-center h2 { font-size: 2.8rem; color: var(--mpc-dark); font-weight: 900; margin-bottom: 15px;}

/* 🌟 QUIÉNES SOMOS 🌟 */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-text h2 {
    font-size: 2.5rem;
    color: var(--mpc-dark);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}
.about-text .lead {
    font-size: 1.15rem;
    color: var(--mpc-green);
    margin-bottom: 20px;
}
.about-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 15px;
}
.about-img {
    display: flex;
    justify-content: center;
}
.about-img img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 5px solid #fff; 
}

/* 🌟 MISIÓN Y VISIÓN 🌟 */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.mv-card {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.mv-card:hover {
    transform: translateY(-5px);
    border-color: var(--mpc-green);
    box-shadow: 0 15px 40px rgba(0,154,68,0.1);
}
.mv-icon {
    width: 70px; height: 70px;
    background: var(--mpc-gray);
    color: var(--mpc-green);
    font-size: 2rem;
    display: flex; justify-content: center; align-items: center;
    border-radius: 50%;
    margin: 0 auto 25px auto;
}
.mv-card h3 {
    font-size: 1.6rem;
    color: var(--mpc-dark);
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: 1px;
}
.mv-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* 🌟 PILARES (LOGÍSTICA Y SUPERVISIÓN) 🌟 */
.pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.pillar-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
}
.pillar-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    border-bottom: 4px solid var(--mpc-green);
}
.pillar-content {
    padding: 35px;
}
.pillar-content h3 {
    font-size: 1.4rem;
    color: var(--mpc-dark);
    font-weight: 900;
    margin-bottom: 15px;
}
.pillar-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* 🌟 CTA FOOTER 🌟 */
.cta-banner {
    background-color: var(--mpc-green);
    padding: 60px 0;
    color: white;
}
.cta-banner h2 { font-size: 2.2rem; font-weight: 900; margin-bottom: 15px;}
.cta-banner p { font-size: 1.1rem; margin-bottom: 25px;}
.text-center { text-align: center; }

/* =========================================
   MEDIA QUERIES (MOBILE RESPONSIVE)
   ========================================= */
@media (max-width: 992px) {
    /* Ajuste Anti-Desbordamiento del Hero */
    .page-hero { 
        padding: 150px 20px 70px 20px; 
        width: 100%; 
        max-width: 100vw; 
        box-sizing: border-box;
    }
    
    .page-hero h1 { 
        font-size: 2.5rem; 
        word-wrap: break-word; 
        hyphens: auto; 
    }
    
    .page-hero p { 
        font-size: 1.05rem; 
        padding: 0 10px; 
    }
    
    /* Ajuste Anti-Desbordamiento de los Grids */
    .about-grid, .mv-grid, .pillars-grid { 
        grid-template-columns: 1fr; 
        text-align: center;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        gap: 40px;
    }
    
    .about-img { margin-top: 20px; }
    .about-img img { max-width: 100%; height: auto; }
    
    .section-header-center h2 { font-size: 2.2rem; word-wrap: break-word; }
    
    .mv-card { padding: 30px 20px; }
    
    .pillar-item img { height: auto; max-height: 250px; }
    .pillar-content { padding: 25px 20px; }
}