/*
Theme Name: MGI P&P Custom Theme
Theme URI: https://mgipyp.com
Author: MGI P&P Asociados
Author URI: https://mgipyp.com
Description: Un tema profesional y ejecutivo, réplica de la estructura visual principal de MGI Worldwide.
Version: 11.0.0
Text Domain: mgipyp
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

/* 1. VARIABLES (Colores de MGI Worldwide) */
:root {
  --mgi-blue: #00458b; /* Azul oficial de MGI */
  --mgi-light-blue: #004F9F; /* Azul estándar de MGI como acento secundario */
  --mgi-yellow: #f2a900; /* Dorado MGI */
  --mgi-dark: #1a1a1a;
  --mgi-gray: #4a4a4a;
  --mgi-light-gray: #f4f6f8;
  --mgi-white: #ffffff;
  --font-family: 'Outfit', sans-serif;
}

/* 2. RESET & BASICS */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-family); color: var(--mgi-gray); line-height: 1.7; background-color: var(--mgi-white); font-size: 16px; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: var(--mgi-blue); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
a:hover { color: var(--mgi-light-blue); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-weight: 300; color: var(--mgi-blue); margin-bottom: 20px; line-height: 1.2; font-family: 'Outfit', sans-serif; }

.container { width: 92%; max-width: 1300px; margin: 0 auto; padding: 0 20px; }

/* 3. HEADER & TOP BAR */
.top-bar { background-color: #f1f1f1; padding: 5px 0; text-align: right; font-size: 11px; color: #666; border-bottom: 1px solid #e0e0e0; }
.top-bar-container { display: flex; justify-content: flex-end; align-items: center; gap: 15px; }

.site-header { position: sticky; top: 0; z-index: 1000; transition: transform 0.3s ease; }

.header-logo-area { border-bottom: 1px solid #f0f0f0; }

.header-nav-area { padding: 8px 0; position: sticky; top: 0; z-index: 1000; border-bottom: none; }

.main-navigation ul { list-style: none; display: flex; gap: 40px; margin: 0; padding: 0; }
.main-navigation ul li { position: relative; padding: 1px 0; }
.main-navigation ul li a { color: var(--mgi-white); font-weight: 600; text-transform: uppercase; font-size: 13px; letter-spacing: 1.2px; display: block; transition: all 0.2s ease; }
.main-navigation ul li a:hover { color: var(--mgi-yellow); transform: translateY(-1px); }

/* Sub-menus */
.main-navigation ul ul.sub-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--mgi-white);
    min-width: 280px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    z-index: 99999;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid var(--mgi-yellow);
}

.main-navigation ul li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul ul.sub-menu li {
    padding: 0;
    width: 100%;
}

.main-navigation ul ul.sub-menu li a {
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: var(--mgi-blue);
    border-bottom: 1px solid #f8f8f8;
    display: block;
}

.main-navigation ul ul.sub-menu li a:hover {
    background-color: var(--mgi-light-gray);
    color: var(--mgi-light-blue);
    padding-left: 30px;
}

/* 4. HERO SECTION (Réplica de MGI) */
.hero-wrapper {
    position: relative;
    width: 100%;
    height: 650px;
    background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?q=80&w=2070&auto=format&fit=crop'); /* Imagen de equipo global */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.myHeroSwiper {
    width: 100%;
    height: 650px;
}
.swiper-slide {
    display: flex !important; /* overide to ensure centering */
}

.hero-overlay-box {
    background-color: rgba(0, 39, 76, 0.85); /* Caja azul semi-transparente (basada en el azul oscuro) */
    padding: 60px 50px;
    max-width: 900px;
    text-align: center;
    color: var(--mgi-white);
    border-radius: 4px;
}

.hero-overlay-box h1 {
    color: var(--mgi-white);
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 25px;
}

.hero-overlay-box p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    font-weight: 300;
}

.btn-yellow {
    background-color: var(--mgi-yellow);
    color: var(--mgi-blue);
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: background 0.3s;
}

.btn-yellow:hover {
    background-color: #d19200;
    color: var(--mgi-dark);
}

.btn-yellow::after {
    content: '❯'; /* Flecha tipo MGI */
    margin-left: 10px;
    font-size: 16px;
}

/* 5. STICKY BOTTOM CTA (Requested) */
.pre-footer-cta {
    background-color: var(--mgi-blue);
    padding: 2px 0; /* Extremely thin */
    text-align: center;
    color: white;
    width: 100%;
    position: fixed; /* Stick to bottom if needed, or relative if just before footer */
    bottom: 0;
    left: 0;
    z-index: 1000;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}

.pre-footer-cta .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 6. INTERNAL HERO (Reduced 20% Height) */
.internal-hero {
    padding: 60px 0 !important;
}

.pre-footer-cta h2 {
    color: white; 
    font-size: 14px; 
    margin-bottom: 0; 
    font-weight: 400;
    margin-right: 30px;
}
.pre-footer-cta p { display: none; } /* Thinner look */
.pre-footer-cta .btn-yellow { 
    padding: 2px 15px; 
    font-size: 13px; 
    text-transform: none;
}

/* Adjust footer margin if CTA is fixed */
.site-footer {
    padding-bottom: 80px; /* Space for the fixed CTA */
}

/* 6. INTERIOR SECTIONS (Executive focus) */
.executive-section {
    padding: 60px 0;
    background-color: var(--mgi-white);
}

.executive-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.executive-text {
    flex: 1;
}

.executive-text h2 {
    font-size: 2.5rem;
    color: var(--mgi-blue);
    font-weight: 300;
}

.executive-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--mgi-gray);
}

.executive-image {
    flex: 1;
}

/* 6. GRID DE SERVICIOS (Limpio y corporativo) */
.services-bg {
    background-color: var(--mgi-light-gray);
    padding: 80px 0;
    border-top: 1px solid #eaeaea;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--mgi-white);
    padding: 40px 30px;
    border-bottom: 4px solid var(--mgi-yellow);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* FOOTER EXACTLY LIKE MGI */
.site-footer {
    background-color: #2b2b2b;
    color: #999;
    padding: 60px 0 30px;
    font-size: 14px;
}
.site-footer a { color: #ccc; }
.site-footer a:hover { color: var(--mgi-yellow); }
