/* ==========================================================================
   🎨 PALETA EDITORIAL MINIMALISTA / CONSULTORÍA PREMIUM (QUIET LUXURY)
   ========================================================================== */
:root {
    --bg-pure: #ffffff;
    --bg-soft: #fcfbf7;          /* Crema sutil muy elegante para fondos alternos */
    --primary-editorial: #111111;/* Negro puro para contrastes tipográficos */
    --accent-gold: #c5a880;      /* Oro suave / Champán (Calidad institucional) */
    --accent-gold-dark: #a3875f;
    --text-main: #2d3748;        /* Gris grafito de alta legibilidad */
    --text-muted: #718096;      /* Gris suave para detalles secundarios */
    --border-thin: #e2e8f0;      /* Líneas divisorias finas estilo editorial */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 🛠️ RESET Y ESTILOS BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html, body { 
    max-width: 100%;
    overflow-x: hidden !important; /* Blindaje definitivo contra desbordes horizontales */
    scroll-behavior: smooth; 
}

body {
    background-color: var(--bg-pure);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.contenedor, .section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* 🧱 SECCIONES ESTILO GALERÍA */
.section-padding {
    padding: 120px 0;
}

.bg-light-section { background-color: var(--bg-soft); }
.bg-accent-section { background-color: var(--bg-pure); }
.bg-dark-section { 
    background-color: var(--primary-editorial); 
    color: var(--bg-pure);
}

/* 🏷️ TIPOGRAFÍA REFINADA */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.section-tag.light {
    color: var(--accent-gold);
}

h2 {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--primary-editorial);
    letter-spacing: -1px;
    margin-bottom: 40px;
    line-height: 1.2;
}

.bg-dark-section h3 {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--bg-pure);
    letter-spacing: -1px;
    margin-bottom: 24px;
}

p {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.bg-dark-section p { color: #a0aec0; }

/* ⚓ MENÚ EDITORIAL */
.header-industrial {
    background-color: rgba(255, 255, 255, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-thin);
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    position: relative;
}

.logo-header {
    max-height: 75px;
    width: auto;
    transition: var(--transition-smooth);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.menu-lista {
    display: flex;
    list-style: none;
    gap: 12px;
    align-items: center;
    margin-left: auto;
}

.menu-link {
    text-decoration: none;
    color: var(--primary-editorial);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 12px;
    position: relative;
    transition: var(--transition-smooth);
}

.menu-link:hover:not(.contacto-btn) {
    color: var(--accent-gold);
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--accent-gold);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.menu-link:hover:not(.contacto-btn)::after {
    width: 80%;
}

.menu-link.contacto-btn {
    background-color: var(--primary-editorial);
    color: var(--bg-pure);
    font-weight: 600;
    border-radius: 0px;
    padding: 12px 24px;
    margin-left: 16px;
    letter-spacing: 1px;
}

.menu-link.contacto-btn::after { display: none; }

.menu-link.contacto-btn:hover {
    background-color: var(--accent-gold);
    color: var(--primary-editorial);
    transform: translateY(-2px);
}

/* 📱 MENÚ HAMBURGUESA */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 14px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 1px;
    background-color: var(--primary-editorial);
    transition: var(--transition-smooth);
}

.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ✨ HERO BANNER */
.hero-banner {
    padding: 180px 0 140px 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.95) 40%, rgba(255,255,255,0.75) 100%), url('banner2.png') no-repeat center right;
    background-size: cover;
    color: var(--primary-editorial);
}

.hero-content {
    max-width: 750px;
    margin-left: 50px;
}

.hero-badge {
    display: inline-block;
    color: var(--primary-editorial);
    border-bottom: 2px solid var(--accent-gold);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding-bottom: 4px;
    margin-bottom: 28px;
    letter-spacing: 2px;
}

.hero-banner h1 {
    font-size: 3.6rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 28px;
    letter-spacing: -1.5px;
}

.hero-banner h1 span {
    color: var(--accent-gold);
    font-weight: 300;
    font-style: italic;
}

.hero-lead {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 44px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* 🎯 BOTONES */
.btn-gold, .btn-outline {
    display: inline-block;
    padding: 16px 36px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 0px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition-smooth);
}

.btn-gold {
    background-color: var(--primary-editorial);
    color: var(--bg-pure);
}

.btn-gold:hover {
    background-color: var(--accent-gold);
    color: var(--primary-editorial);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-editorial);
    border: 1px solid var(--primary-editorial);
}

.btn-outline:hover {
    background-color: var(--primary-editorial);
    color: var(--bg-pure);
    transform: translateY(-3px);
}

/* 🛠️ SERVICIOS */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.card {
    background-color: var(--bg-pure);
    border: none;
    border-bottom: 1px solid var(--border-thin);
    padding: 30px 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-4px);
    border-bottom-color: var(--accent-gold);
}

.numero {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.card h3 {
    font-size: 1.4rem;
    color: var(--primary-editorial);
    font-weight: 700;
    margin-bottom: 16px;
    text-align: left;
    letter-spacing: -0.5px;
}

.card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
    text-align: left;
}

/* 🏢 SOBRE NOSOTROS */
.grid-about {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.stat-card {
    background-color: var(--bg-soft);
    padding: 40px;
    border-left: 2px solid var(--accent-gold);
}

.stat-card h3 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-editorial);
    line-height: 1;
}

.stat-card p {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 8px;
    margin-bottom: 0;
}

.text-highlight {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-editorial);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* 🌍 PRESENCIA */
.presence-intro {
    max-width: 800px;
    font-size: 1.15rem;
    margin-bottom: 50px;
    color: #e2e8f0;
}

.grid-presence {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.presence-node {
    background: transparent;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.presence-node h4 {
    font-size: 1rem;
    color: var(--accent-gold);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.presence-node p {
    font-size: 1.05rem;
    color: var(--bg-pure);
    margin-bottom: 0;
}

/* 🧭 FILOSOFÍA */
.grid-corporate-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 80px;
}

.corp-card {
    background-color: var(--bg-soft);
    padding: 50px 40px;
    border-radius: 0px;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 24px;
    filter: grayscale(100%);
}

.corp-card h3 {
    font-size: 1.6rem;
    color: var(--primary-editorial);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.valores-section {
    border-top: 1px solid var(--border-thin);
    padding-top: 60px;
    text-align: center;
}

.valores-section h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 40px;
    letter-spacing: 3px;
}

.valores-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.pill {
    background-color: var(--bg-pure);
    border: 1px solid var(--border-thin);
    padding: 24px;
    text-align: left;
    max-width: 350px;
}

.pill strong {
    color: var(--primary-editorial);
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 📞 CONTACTO (ESCRITORIO) */
.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--bg-soft);
    border: 1px solid var(--border-thin);
}

.contacto-branding {
    padding: 80px 60px;
    border-right: 1px solid var(--border-thin);
}

.contacto-branding h3 {
    color: var(--primary-editorial);
    font-size: 2.4rem;
    margin-top: 24px;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.contacto-branding p { color: var(--text-muted); }

.contacto-details {
    padding: 80px 60px;
    background-color: var(--bg-pure);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
}

.info-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.info-row .icon {
    font-size: 1.2rem;
    color: var(--accent-gold);
    line-height: 1;
    padding-top: 4px;
}

.info-row h5 {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.info-row p, .info-row a {
    color: var(--primary-editorial);
    font-size: 1.05rem;
    text-decoration: none;
    font-weight: 500;
}

.info-row a:hover {
    color: var(--accent-gold);
}

/* 🏷️ FOOTER */
.main-footer {
    background-color: var(--bg-pure);
    padding: 60px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-thin);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pfooter { margin-bottom: 0; color: var(--text-muted); }

.footer-legal {
    display: flex;
    gap: 32px;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-legal a:hover {
    color: var(--primary-editorial);
}

/* ==========================================================================
   📱 RESPONSIVIDAD Y CORRECCIÓN TOTAL MÓVIL
   ========================================================================== */
@media (max-width: 992px) {
    .grid-about, .grid-corporate-cards, .contacto-wrapper {
        grid-template-columns: 1fr;
    }
    .contacto-branding {
        border-right: none;
        border-bottom: 1px solid var(--border-thin);
    }
    .contacto-branding, .contacto-details {
        padding: 50px 32px;
    }
    .hero-banner {
        background-position: center center;
    }
    .hero-banner h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    /* 🟢 CONTENEDOR SEGURO MÓVIL */
    .contenedor, .section-container {
        padding: 0 16px !important;
    }

    /* 🟢 REAJUSTE DE TÍTULOS GENERALES EN MÓVIL (EVITA CORTES EN PALABRAS LARGAS) */
    h2, .bg-dark-section h3 {
        font-size: 1.65rem !important;
        line-height: 1.25 !important;
        margin-bottom: 24px !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        hyphens: auto;
    }

    /* 🟢 LOGO Y NAVEGACIÓN */
    .logo-header {
        position: static;
        transform: none;
        max-height: 45px;
    }

    .nav-container {
        padding: 12px 16px;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-lista {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-pure);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        border-bottom: 1px solid var(--border-thin);
        transition: max-height 0.4s ease-in-out;
    }

    .menu-lista.active {
        max-height: 460px;
        padding: 20px 0;
    }

    .menu-lista li { width: 100%; }

    .menu-link {
        display: block;
        padding: 16px 0;
        width: 100%;
        text-align: center;
    }

    .menu-link::after { display: none; }

    .menu-link.contacto-btn {
        width: 80%;
        margin: 12px auto;
        text-align: center;
    }

    /* 🟢 HERO BANNER AJUSTADO */
    .hero-banner { 
        padding: 80px 0 50px 0;
        background: var(--bg-pure);
    }

    .hero-content {
        margin-left: 0 !important;
        padding: 0 !important;
        width: 100%;
    }

    .hero-badge {
        font-size: 0.7rem;
        letter-spacing: 1px;
        margin-bottom: 16px;
        display: block;
        line-height: 1.4;
    }

    .hero-banner h1 { 
        font-size: 1.75rem !important; 
        line-height: 1.25;
        margin-bottom: 20px;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .hero-lead {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }

    .hero-actions { 
        flex-direction: column; 
        width: 100%;
    }

    .btn-gold, .btn-outline {
        width: 100%;
        text-align: center;
    }

    /* 🟢 GRIDS EN 1 COLUMNA */
    .servicios-grid, .grid-presence {
        grid-template-columns: 1fr !important;
    }

    /* 🟢 CONTACTO Y DETALLES EN MÓVIL */
    .contacto-wrapper {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .contacto-branding, 
    .contacto-details {
        padding: 30px 20px !important;
        width: 100%;
        box-sizing: border-box;
    }

    .info-row {
        gap: 12px;
    }

    .info-row p, 
    .info-row a {
        font-size: 0.95rem;
        overflow-wrap: anywhere !important;
        word-break: break-word;
    }

    .section-padding { padding: 50px 0; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
}