/* =========================================
   ESTILOS EXCLUSIVOS: CAPACIDADES TÉCNICAS
   Archivo: css/capacidades.css
   ========================================= */

/* 🌟 HERO BANNER INTERNO - ELEGANTE Y OSCURO 🌟 */
.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%;
}

/* Overlay oscuro sólido y elegante */
.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; }

/* Badge de Servicio */
.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;
}

/* 🌟 TÍTULO LIMPIO 🌟 */
.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 ZIG-ZAG 🌟 */
.service-section { padding: 70px 0; }
.bg-gray { background-color: var(--mpc-gray); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px; 
    align-items: center;
}
.reverse-grid {
    grid-template-areas: "img txt"; 
}
.reverse-grid .service-text { grid-area: txt; }
.reverse-grid .service-img { grid-area: img; }

.service-text { padding-right: 20px; }
.reverse-grid .service-text { padding-right: 0; padding-left: 20px; }

/* ÍCONO MÁS PEQUEÑO Y ELEGANTE */
.icon-box {
    width: 55px; height: 55px; 
    background-color: var(--mpc-dark);
    display: flex; justify-content: center; align-items: center;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.icon-box i { font-size: 1.6rem; color: var(--mpc-green); }

/* TEXTOS PROPORCIONADOS */
.service-text h2 {
    font-size: 2.2rem;
    color: var(--mpc-dark);
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.1;
}
.service-text .lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
}

.service-list { list-style: none; }
.service-list li {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 600;
}
.service-list i { color: var(--mpc-green); font-size: 1.1rem; margin-top: 3px; }

/* IMÁGENES CONTROLADAS */
.service-img {
    display: flex;
    justify-content: center; 
}
.service-img img {
    width: 100%;
    max-width: 480px;
    height: 320px; 
    object-fit: cover; 
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: block;
    transition: 0.5s ease;
}
.service-img img:hover { transform: scale(1.02); }

/* 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 (ZIG-ZAG a Columna Simple) */
    .service-grid, .reverse-grid { 
        grid-template-columns: 1fr; 
        grid-template-areas: none; 
        text-align: center;
        gap: 40px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .reverse-grid .service-text, .reverse-grid .service-img { grid-area: auto; }
    
    .service-text { padding-right: 0; }
    .reverse-grid .service-text { padding-left: 0; }
    
    .icon-box { margin: 0 auto 20px auto; }
    
    .service-list li { justify-content: center; text-align: left; }
    
    .service-img img { 
        height: auto; 
        max-height: 300px; 
        width: 100%; 
        object-fit: cover; 
    }
}