/* =========================================
   HOJA DE ESTILOS GLOBAL | MPC PERÚ (LIGHT THEME)
   Archivo: css/style.css
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@300;400;600;700;900&display=swap');

:root {
    --mpc-green: #009A44;
    --mpc-dark: #111111;
    --mpc-light: #ffffff;
    --mpc-gray: #e5e8eb;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #d1d5db;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Titillium Web', sans-serif;
    background-color: var(--mpc-light);
    color: var(--text-main);
    overflow-x: hidden;
}

/* ================== NAVBAR ================== */
.navbar {
    background-color: var(--mpc-light);
    height: 90px;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.nav-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-box { display: flex; align-items: center; cursor: pointer; text-decoration: none;}
.nav-logo-img { height: 60px; object-fit: contain; }
.logo-text { font-size: 2.2rem; font-weight: 900; color: var(--mpc-dark); letter-spacing: 2px; margin-left: 15px; }

.menu { list-style: none; display: flex; align-items: center; gap: 30px; }
.menu li a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: 0.3s ease;
    text-transform: uppercase;
}
.menu li a:hover, .menu li a.active { color: var(--mpc-green); }

.cta-button {
    background-color: var(--mpc-green);
    color: white !important;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 900;
    box-shadow: 0 4px 15px rgba(0,154,68,0.3);
}
.cta-button:hover { background-color: var(--mpc-dark); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }

/* ✅ BOTÓN MENÚ MÓVIL (Oculto en PC) ✅ */
.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--mpc-dark);
    cursor: pointer;
}

/* ================== UTILIDADES ================== */
.container-custom { width: 90%; max-width: 1300px; margin: 0 auto; }

.btn-outline-green {
    display: inline-block;
    border: 2px solid var(--mpc-green);
    color: var(--mpc-green);
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: 1px;
    transition: 0.3s;
    border-radius: 4px;
    background: transparent;
}
.btn-outline-green:hover { background: var(--mpc-green); color: white; box-shadow: 0 10px 20px rgba(0,154,68,0.3); transform: translateY(-3px); }

.highlight-green { color: var(--mpc-green); }

.sub-tag {
    display: inline-block;
    color: var(--mpc-green);
    font-weight: 800;
    letter-spacing: 3px;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    border: 1px solid var(--mpc-green);
    padding: 5px 12px;
    border-radius: 3px;
}

/* ================== FOOTER CORPORATIVO ================== */
.footer-corporate {
    background-color: var(--mpc-gray);
    padding: 80px 5% 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 80px; 
    max-width: 1300px;
    margin: 0 auto 50px;
}

.f-logo-img { height: 100px; margin-bottom: 20px; object-fit: contain; }
.f-slogan { font-size: 1.05rem; line-height: 1.6; margin-bottom: 25px; max-width: 400px; }

.social-links { display: flex; gap: 15px; }
.social-icon { 
    width: 42px; height: 42px; 
    display: flex; justify-content: center; align-items: center; 
    border-radius: 50%; font-size: 1.2rem; text-decoration: none; 
    transition: all 0.3s ease;
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.social-icon.ig { color: #E1306C; }
.social-icon.tk { color: #000000; }
.social-icon.fb { color: #1877F2; }

.social-icon:hover { transform: translateY(-5px); color: #fff; border-color: transparent;}
.social-icon.ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); box-shadow: 0 8px 15px rgba(225, 48, 108, 0.3);}
.social-icon.tk:hover { background: #000; text-shadow: -1px -1px 0 #00f2fe, 1px 1px 0 #fe0979; box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);}
.social-icon.fb:hover { background: #1877F2; box-shadow: 0 8px 15px rgba(24, 119, 242, 0.3);}

.footer-col h4 { color: var(--mpc-dark); font-size: 1.2rem; margin-bottom: 25px; font-weight: 900; letter-spacing: 1px; }

.footer-col.links ul { list-style: none; }
.footer-col.links li { margin-bottom: 12px; }
.footer-col.links a { color: var(--text-muted); text-decoration: none; font-size: 1.05rem; transition: 0.3s; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.footer-col.links a::before { content: '›'; color: var(--mpc-green); font-weight: 900; font-size: 1.2rem; transition: 0.3s;}
.footer-col.links a:hover { color: var(--mpc-green); transform: translateX(5px); }

.contact-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; font-size: 1.05rem; line-height: 1.5; }
.contact-item i { color: var(--mpc-green); font-size: 1.3rem; margin-top: 3px;}
.contact-item a { color: var(--text-muted); text-decoration: none; transition: 0.3s; font-weight: 600;}
.contact-item a:hover { color: var(--mpc-green); }
.contact-item strong { color: var(--text-main); font-weight: 800;}

/* ✅ LA CORRECCIÓN CLAVE PARA MATRIZ/SUCURSAL ✅ */
.contact-item div span { 
    display: block; 
    margin-bottom: 8px; 
}

.footer-bottom { text-align: center; border-top: 1px solid var(--border-color); padding-top: 25px; font-size: 0.95rem; color: var(--text-muted); max-width: 1300px; margin: 0 auto; }

.float-wa {
    position: fixed; bottom: 40px; right: 40px; background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center; font-size: 35px; box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4); width: 70px; height: 70px; display: flex; justify-content: center; align-items: center; z-index: 1000; transition: 0.3s; text-decoration: none;
}
.float-wa:hover { transform: scale(1.1); background-color: #128C7E; }

.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ================== RESPONSIVE MÓVIL ================== */
@media (max-width: 900px) {
    /* ✅ MENÚ HAMBURGUESA ✅ */
    .mobile-menu-btn { display: block; }
    
    .menu {
        position: absolute;
        top: 90px; /* Justo debajo del navbar */
        left: 0;
        width: 100%;
        background: var(--mpc-light);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }
    
    .menu.show { max-height: 500px; }
    
    .menu li {
        width: 100%;
        text-align: center;
        border-top: 1px solid var(--mpc-gray);
    }
    
    .menu li a {
        display: block;
        padding: 15px 0;
    }
    
    .cta-button {
        border-radius: 0;
        display: block;
        width: 100%;
        box-shadow: none;
    }

    .footer-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .f-slogan { margin: 0 auto 25px; }
    .social-links { justify-content: center; }
    .contact-item { justify-content: center; text-align: center; flex-direction: column; align-items: center; gap: 5px;}
    .footer-col.links a { justify-content: center; }
}