/* =========================================
   ESTILOS EXCLUSIVOS: INICIO - MPC
   Archivo: css/inicio.css
   ========================================= */

/* 🌟 HERO: DISEÑO DIVIDIDO 🌟 */
.hero-split-section {
    min-height: 100vh;
    width: 100%;
    background-color: #ffffff;
    position: relative;
    padding-top: 130px; 
    padding-bottom: 50px;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.hero-tech-pattern {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(#009A44 1px, transparent 1px);
    background-size: 40px 40px; opacity: 0.05; z-index: 1;
}
.hero-split-container {
    width: 100%; max-width: 1300px; margin: 0 auto; padding: 0 5%;
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px;
    align-items: center; position: relative; z-index: 2;
}
.hero-left { text-align: left; padding-right: 20px; }
.hero-massive-logo { width: 450px; max-width: 100%; margin: 0 0 20px 0; display: block; object-fit: contain; }
.hero-left h1 { font-size: 4.5rem; letter-spacing: 2px; line-height: 1.1; margin-top: 0; margin-bottom: 20px; color: var(--mpc-dark); font-weight: 900; }
.hero-desc { font-size: 1.4rem; color: var(--text-muted); font-weight: 600; margin: 0 0 35px 0; max-width: 600px; }
.hero-stats-row { display: flex; justify-content: flex-start; gap: 50px; margin-top: 20px; padding-top: 30px; border-top: 1px solid var(--border-color); }
.stat-item { text-align: left; }
.stat-num { font-weight: 900; color: var(--mpc-green); font-size: 2.2rem; display: block; letter-spacing: 1px; }
.stat-desc { font-size: 0.95rem; color: var(--text-main); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; }

.hero-right { display: flex; justify-content: flex-end; }
.fiberplus-big-card {
    display: block; background: #ffffff; border-radius: 12px; border: 1px solid #d1d5db; 
    border-top: 6px solid var(--mpc-green); padding: 50px 40px; text-align: center; text-decoration: none;
    box-shadow: 0 25px 80px rgba(0,0,0,0.22); transition: all 0.4s ease; width: 100%; max-width: 420px;
    transform: translateY(-80px); 
}
.fiberplus-big-card:hover { transform: translateY(-90px); box-shadow: 0 35px 90px rgba(0,154,68,0.3); }
.fp-card-header { margin-bottom: 25px; }
.fp-badge { background: var(--mpc-gray); color: var(--text-muted); font-size: 0.85rem; font-weight: 900; padding: 8px 18px; border-radius: 20px; letter-spacing: 1px; border: 1px solid var(--border-color); }
.fp-logo-big { height: 75px; margin: 25px auto; display: block; object-fit: contain; }
.fp-card-body p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.6; margin-bottom: 30px; }
.fp-btn-link { color: var(--mpc-green); font-weight: 900; font-size: 1.15rem; display: inline-flex; align-items: center; gap: 8px; transition: 0.3s; }
.fiberplus-big-card:hover .fp-btn-link { gap: 15px; color: var(--mpc-dark); }

/* 🌟 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: 3rem; color: var(--mpc-dark); font-weight: 900; margin-bottom: 15px;}

/* 🌟 INTRODUCCIÓN 🌟 */
.intro-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.intro-text-content h2 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 25px; color: var(--mpc-dark); font-weight: 900; }
.intro-lead { font-size: 1.15rem; color: var(--text-main); line-height: 1.7; margin-bottom: 25px; font-weight: 700; border-left: 4px solid var(--mpc-green); padding-left: 20px; }
.intro-desc { color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; margin-bottom: 35px; }
.intro-img-box img { width: 100%; border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); display: block; }

/* 🌟 VIDEO 🌟 */
.video-split-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}
.video-text-content h2 { font-size: 3rem; line-height: 1.1; margin-bottom: 25px; color: var(--mpc-dark); font-weight: 900;}
.video-text-content p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.7; margin-bottom: 20px;}
.video-bullets { list-style: none; margin-bottom: 30px; }
.video-bullets li { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; color: var(--text-main); font-weight: 600; margin-bottom: 12px;}
.video-bullets i { color: var(--mpc-green); font-size: 1.2rem;}

.video-player-box {
    display: flex;
    justify-content: center;
    width: 100%;
}

.corp-video-wrapper {
    width: 100%;
    max-width: 550px; 
    aspect-ratio: 1 / 1; 
    border-radius: 12px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border: 5px solid #fff; 
    background-color: #000;
    overflow: hidden; 
    display: block;
    position: relative;
    margin: 0 auto;
}

.corp-video {
    width: 100%;
    height: 100%; 
    display: block;
    object-position: center;
    object-fit: cover; 
}

/* 🌟 CAPACIDADES (SOLO ÍCONOS) 🌟 */
.cards-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.icon-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.icon-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,154,68,0.15);
    border-color: var(--mpc-green);
}
.icon-card i { font-size: 3.5rem; color: var(--mpc-green); margin-bottom: 20px; display: block;}
.icon-card h3 { font-size: 1.4rem; color: var(--mpc-dark); font-weight: 900; margin-bottom: 15px; }
.icon-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* ANIMACIONES */
@keyframes scaleIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.pop-in { animation: scaleIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.slide-up-delay { opacity: 0; animation: slideUp 0.8s ease forwards 0.3s; }
.slide-up-delay-2 { opacity: 0; animation: slideUp 0.8s ease forwards 0.5s; }
.slide-up-delay-3 { opacity: 0; animation: slideUp 0.8s ease forwards 0.7s; }

/* =========================================
   MEDIA QUERIES - INICIO MPC (MOBILE RESPONSIVE CORREGIDO)
   ========================================= */
@media (max-width: 992px) {
    /* CORRECCIÓN DEL HERO PARA QUE NO SE DESBORDE */
    .hero-split-section { 
        padding-top: 120px; 
        padding-bottom: 60px; 
        min-height: auto;
    }
    
    .hero-split-container { 
        grid-template-columns: 1fr; 
        gap: 40px; 
        text-align: center; 
        /* CLAVE: Forzamos a que no se pase del ancho de la pantalla */
        width: 100%;
        max-width: 100vw;
        padding: 0 20px; 
        box-sizing: border-box;
    }
    
    .hero-left { 
        text-align: center; 
        padding-right: 0; 
        /* CLAVE: El div izquierdo tampoco debe pasarse del ancho */
        width: 100%;
        max-width: 100%;
        overflow-wrap: break-word; /* Permite cortar palabras larguísimas si es necesario */
    }
    
    .hero-massive-logo { 
        margin: 0 auto 25px auto; 
        max-width: 250px; 
        width: 80%;
    }
    
    /* ACHICAMOS EL TEXTO PARA EVITAR DESBORDE */
    .hero-left h1 { 
        font-size: 2.2rem; 
        word-wrap: break-word;
        hyphens: auto; 
        margin-bottom: 15px;
    } 
    
    .hero-desc { 
        font-size: 1.1rem; 
        margin: 0 auto 30px; 
        padding: 0 10px; 
    }
    
    .hero-stats-row { 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 20px; 
        width: 100%;
    }
    
    .stat-item { 
        flex: 1 1 45%; 
        min-width: 130px;
        text-align: center;
    }
    
    .stat-num { font-size: 1.8rem; }

    /* TARJETA CENTRADA */
    .fiberplus-big-card { 
        max-width: 95%; 
        margin: 0 auto; 
        transform: translateY(0); 
        padding: 30px 20px;
    }
    
    /* Arreglo de los Grids (Para que bajen en 1 columna) */
    .intro-layout { grid-template-columns: 1fr; text-align: center;}
    .intro-lead { border-left: none; padding-left: 0;}
    .intro-text-content h2 { font-size: 2rem; }
    
    .video-split-layout { grid-template-columns: 1fr; text-align: center; }
    .video-text-content h2 { font-size: 2rem; }
    .video-bullets li { justify-content: center; text-align: left; }
    
    .cards-icon-grid { grid-template-columns: 1fr; }
    .section-header-center h2 { font-size: 2rem; }
    
    .corp-video-wrapper { max-width: 100%; aspect-ratio: 16 / 9; }
}