/* 🎨 PALETA DE COLORES CORPORATIVA REFINADA (NAVY & GOLD LUXURY) */
:root {
    --bg-dark: #0b1329;          /* Azul Marino Profundo */
    --bg-surface: #111b38;       /* Superficie de módulos */
    --bg-surface-alt: #172447;   /* Superficie secundaria */
    --accent-gold: #c5a059;      /* Oro Cepillado del Logo */
    --accent-gold-bright: #e5c178;/* Oro Brillante */
    --text-primary: #ffffff;     /* Texto Principal */
    --text-muted: #a0aec0;       /* Texto Secundario */
    --border-light: rgba(197, 160, 89, 0.2);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* 🛠️ RESET Y ESTILOS BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html { 
    scroll-behavior: smooth; 
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

.contenedor {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 📌 1. HEADER INTEGRADO */
.top-bar {
    background-color: #060b18;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.82rem;
    padding: 8px 0;
    color: var(--text-muted);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info { display: flex; gap: 20px; }
.top-info span { display: flex; align-items: center; gap: 6px; }

.header-principal {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--bg-dark);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    position: relative;
}

.logo-brand {
    height: 48px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.menu-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.menu-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.92rem;
    transition: color 0.3s ease;
}

.menu-links a:hover {
    color: var(--accent-gold);
}

.btn-header-cta {
    background: var(--accent-gold);
    color: var(--bg-dark) !important;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
}

.btn-header-cta:hover {
    background: var(--accent-gold-bright);
    transform: translateY(-2px);
}

/* 📱 BOTÓN MÓVIL */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
}

/* 🚀 2. HERO SECTION */
.banner-card {
    width: 100%;
    padding: 80px 0;
    background-image: linear-gradient(
        rgba(8, 13, 26, 0.85), 
        rgba(8, 13, 26, 0.85)
    ), url("./banner.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--border-light);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-tag {
    color: var(--accent-gold);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    word-wrap: break-word;
}

.hero-title highlight {
    color: var(--accent-gold);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary-gold {
    background: linear-gradient(135deg, var(--accent-gold-bright), var(--accent-gold));
    color: var(--bg-dark);
    padding: 16px 36px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.25);
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(197, 160, 89, 0.4);
}

.btn-secondary-border {
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 16px 36px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-secondary-border:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(197, 160, 89, 0.05);
}

/* Tarjeta Destacada Hero */
.hero-card-widget {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 35px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    max-width: 100%;
}

.hero-card-widget h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-gold);
}

.widget-feature-list {
    list-style: none;
    margin: 20px 0;
}

.widget-feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.widget-feature-list li:last-child { border-bottom: none; }

/* 📊 3. MOSAICO BENTO DE SERVICIOS */
.section-padding { padding: 90px 0; }
.bg-surface-alt { background-color: #080e1f; }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-top: 10px;
    word-wrap: break-word;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.bento-card {
    background-color: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 35px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 100%;
}

.bento-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.bento-card.wide { grid-column: span 2; }

.bento-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.bento-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 🏛️ 4. SECCIÓN NOSOTROS & METRICAS */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.metric-box {
    background-color: var(--bg-surface);
    border-left: 4px solid var(--accent-gold);
    padding: 30px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.metric-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

/* 🗺️ 5. SECCIÓN PRESENCIA Y COBERTURA */
.presence-flex {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.presence-card {
    flex: 1;
    background: linear-gradient(145deg, var(--bg-surface), var(--bg-surface-alt));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 35px;
    max-width: 100%;
}

.presence-card h4 {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* 🎯 6. FILOSOFÍA CORPORATIVA */
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.phil-card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 100%;
}

.phil-icon {
    width: 50px;
    height: 50px;
    background: rgba(197, 160, 89, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.values-bar {
    display: flex;
    justify-content: space-around;
    background: var(--bg-surface);
    padding: 25px;
    border-radius: var(--radius-md);
    margin-top: 40px;
    border: 1px solid var(--border-light);
}

.value-item strong { color: var(--accent-gold); }

/* 📞 7. SECCIÓN CONTACTO (AJUSTES DE RESPONSIVIDAD Y DESBORDAMIENTO) */
.contact-section-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    width: 100%;
    max-width: 100%;
}

.contact-info-panel {
    padding: 50px;
    background: linear-gradient(135deg, #0f1936 0%, #080d1e 100%);
    max-width: 100%;
}

.contact-info-panel img {
    max-width: 160px;
    width: 100%;
    height: auto;
    margin-bottom: 30px;
}

.contact-map-panel {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px;
    max-width: 100%;
    width: 100%;
    overflow: hidden; /* Evita que los elementos internos fuercen un scroll */
}

.info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.info-item div {
    flex: 1;
    min-width: 0; /* Permite que el contenedor flexible encoja si el texto es largo */
}

.info-item p, 
.info-item a {
    overflow-wrap: anywhere;
    word-break: break-all; /* Evita que el correo electrónico desborde la tarjeta */
}

.info-item-icon {
    font-size: 1.4rem;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.map-container {
    height: 220px;
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-light);
    margin-top: 10px;
}

/* 🏁 8. FOOTER */
.site-footer {
    background-color: #040711;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
}

.footer-links a:hover { color: var(--accent-gold); }

/* ==========================================================
   📱 9. MEDIA QUERIES (RESPONSIVIDAD MÓVIL EXACTA)
   ========================================================== */

/* Tabletas y Laptops Pequeñas (<= 1024px) */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-card.wide {
        grid-column: span 2;
    }

    .contact-section-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Tabletas Verticales y Móviles (<= 768px) */
@media (max-width: 768px) {
    .top-bar { display: none; }
    .mobile-nav-toggle { display: block; }

    /* Desplegable móvil */
    .menu-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-surface);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border-light);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85);
        z-index: 999;
    }

    .menu-links.show { display: flex; }

    .menu-links a {
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }

    .btn-header-cta {
        display: block;
        text-align: center;
    }

    .section-padding { padding: 50px 0; }

    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card.wide {
        grid-column: span 1;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .presence-flex {
        flex-direction: column;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .values-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-flex {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-links a {
        margin: 0 10px;
    }

    /* Reducción de paddings internos en pantallas pequeñas para dar espacio */
    .contact-info-panel {
        padding: 24px 18px;
    }

    .contact-map-panel {
        padding: 20px 16px;
    }
}

/* Teléfonos Pequeños (<= 480px) */
@media (max-width: 480px) {
    .contenedor {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary-gold, .btn-secondary-border {
        width: 100%;
    }

    .about-metrics {
        grid-template-columns: 1fr;
    }

    .hero-card-widget, .bento-card, .phil-card {
        padding: 20px 16px;
    }
}