/* ==========================================
   🎨 VARIABLES: CLEAN BRUTALISM / ALTA PRECISIÓN
   ========================================== */
:root {
    --primary-color: #9e1b1b;       /* Rojo industrial */
    --primary-dark: #5A1010;
    --neutral-dark: #0D0E10;        /* Negro carbón de alta densidad */
    --neutral-grey: #4A5568;        /* Gris de legibilidad técnica */
    --bg-light: #FFFFFF;            /* Fondo puro */
    --bg-alt: #F8FAFC;              /* Fondo de contraste limpio */
    --border-solid: #0D0E10;        /* Bordes definidos estilo Brutalista */
    --border-soft: #CBD5E1;
    
    /* Variables requeridas por el HTML */
    --white: #FFFFFF;
    --black: #000000;
    --accent-color: #64748B;
    --accent-light: #F1F5F9;
    --text-muted: #64748B;
}

/* 🛠️ RESET Y REGLAS DE ESTRUCTURA */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-light);
    color: var(--neutral-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Evita cualquier scroll horizontal indeseado */
}

.contenedor, .section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ⚓ HEADER MODULAR CON BORDE SÓLIDO */
.header-industrial {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--border-solid);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible; /* Permite que el logo sobresalga dinámicamente */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* LOGO DESTACADO (GRANDE EN ESCRITORIO) */
.logo-header {
    height: 105px;
    width: auto;
    object-fit: contain;
    margin-top: -30px;
    margin-bottom: -30px;
    position: relative;
    z-index: 10;
    transition: transform 0.2s ease;
}

/* Estilos principales de la sección */
  .hero-section {
    width: 100%;
    padding: 60px 20px;
    background-color: #ffffff;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
  }

  .hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }

  /* Columna izquierda (Texto) */
  .hero-content {
    flex: 1;
    max-width: 550px;
  }

  .hero-tag {
    display: inline-block;
    background-color: #0d0d0d;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    padding: 6px 12px;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: 42px;
    line-height: 1.15;
    font-weight: 900;
    color: #0d0d0d;
    margin: 0 0 20px 0;
  }

  .hero-title .highlight {
    color: #a82725;
  }

  .hero-description {
    font-size: 15px;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 30px;
  }

  /* Botones */
  .hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
  }

  .btn {
    display: inline-block;
    padding: 14px 24px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: -4px 4px 0px 0px #a82725; /* Sombra roja estilizada */
  }

  .btn-primary {
    background-color: #0d0d0d;
    color: #ffffff;
    border: 1px solid #0d0d0d;
  }

  .btn-secondary {
    background-color: #ffffff;
    color: #0d0d0d;
    border: 2px solid #0d0d0d;
  }

  .btn:hover {
    transform: translateY(-2px);
  }

  /* Columna derecha (Banner) */
  .hero-banner {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-banner img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    object-fit: cover;
  }

  /* Adaptabilidad para móviles y pantallas pequeñas */
  @media (max-width: 900px) {
    .hero-container {
      flex-direction: column;
      text-align: left;
    }

    .hero-content, 
    .hero-banner {
      max-width: 100%;
      width: 100%;
    }

    .hero-title {
      font-size: 32px;
    }
  }

/* 🔗 ENLACES DEL MENÚ CON RECUADRO INTERACTIVO */
.menu-lista {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.menu-link {
    text-decoration: none;
    color: var(--neutral-dark);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 14px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.menu-link:hover {
    color: var(--primary-color);
    border-color: var(--border-solid);
}

/* 🚨 BOTÓN LLAMADO A LA ACCIÓN CON SOMBRA SÓLIDA */
.menu-link.contacto-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--border-solid);
    box-shadow: 3px 3px 0px var(--border-solid);
}

.menu-link.contacto-btn:hover {
    background-color: var(--white);
    color: var(--neutral-dark);
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px var(--border-solid);
}

/* --- HERO BANNER ASIMÉTRICO GRÁFICO --- */
.hero-banner {
    padding: 150px 0 110px 0;
    background: linear-gradient(to bottom, transparent 80%, var(--bg-alt) 100%), var(--bg-light);
    border-bottom: 2px solid var(--border-solid);
    overflow: hidden; /* Control estricto para evitar desbordamientos laterales */
}

.hero-content {
    max-width: 820px;
    width: 100%;
    padding-left: 50px;
}

.hero-badge {
    display: inline-block;
    max-width: 100%;
    background-color: var(--border-solid);
    color: var(--white);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 6px 12px;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    white-space: normal;
    word-break: break-word;
}

.hero-banner h1 {
    font-size: 3.6rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-banner h1 span {
    color: var(--primary-color);
}

.hero-lead {
    font-size: 1.2rem;
    color: var(--neutral-grey);
    margin-bottom: 40px;
    max-width: 720px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
}

/* --- BOTONES BRUTALISTAS --- */
.btn-gold, .btn-outline {
    padding: 14px 24px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid var(--border-solid);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: inline-block;
    text-align: center;
    max-width: 100%;
}

.btn-gold {
    background-color: var(--border-solid);
    color: var(--white);
    box-shadow: 4px 4px 0px var(--primary-color);
}

.btn-gold:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--primary-color);
}

.btn-outline {
    background-color: var(--white);
    color: var(--border-solid);
    box-shadow: 4px 4px 0px var(--border-solid);
}

.btn-outline:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--border-solid);
}

/* --- COMPONENTES ESTRUCTURALES --- */
.section-padding {
    padding: 120px 0;
}

.bg-light-section {
    background-color: var(--bg-alt);
}

.bg-dark-section {
    background-color: var(--border-solid);
    color: var(--white);
}

.bg-accent-section {
    background-color: var(--white);
    border-top: 2px solid var(--border-solid);
    border-bottom: 2px solid var(--border-solid);
}

.section-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: block;
}

.section-tag.light {
    color: #94A3B8;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--border-solid);
    margin-bottom: 48px;
}

.bg-dark-section h2 {
    color: var(--white);
}

/* --- TARJETAS DE SERVICIOS --- */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.card {
    background-color: var(--white);
    border: 2px solid var(--border-solid);
    padding: 40px;
    height: 100%;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0px rgba(13, 14, 16, 0.08);
}

.card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0px var(--primary-color);
}

.numero {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 24px;
    font-family: monospace;
}

.card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--border-solid);
    margin-bottom: 16px;
    line-height: 1.3;
}

.card p {
    font-size: 0.95rem;
    color: var(--neutral-grey);
    line-height: 1.6;
}

/* --- SECCIÓN SOBRE NOSOTROS --- */
.grid-about {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-card {
    background-color: var(--bg-alt);
    border: 2px solid var(--border-solid);
    padding: 35px 20px;
    text-align: center;
}

.stat-card h3 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.stat-card p {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--border-solid);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-highlight {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--border-solid);
    margin-bottom: 24px;
}

.about-text p {
    color: var(--neutral-grey);
    margin-bottom: 16px;
}

/* --- SECCIÓN COBERTURA / NODOS LOGÍSTICOS --- */
.presence-intro {
    font-size: 1.1rem;
    color: #94A3B8;
    max-width: 800px;
    margin-bottom: 48px;
}

.grid-presence {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.presence-node {
    border: 1px solid #2D3748;
    padding: 35px;
    background-color: #14171C;
    transition: border-color 0.2s ease;
}

.presence-node:hover {
    border-color: var(--primary-color);
}

.presence-node h4 {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.presence-node p {
    font-size: 1.1rem;
    color: var(--white);
    font-weight: 700;
}

/* --- FILOSOFÍA CORPORATIVA --- */
.grid-corporate-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 60px;
}

.corp-card {
    background-color: var(--bg-alt);
    border: 2px solid var(--border-solid);
    padding: 45px;
}

.card-icon {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.corp-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--border-solid);
    margin-bottom: 16px;
}

.corp-card p {
    font-size: 0.95rem;
    color: var(--neutral-grey);
}

.valores-section h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--border-solid);
    letter-spacing: 1.5px;
    margin-bottom: 28px;
    text-align: center;
}

.valores-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.pill {
    background-color: var(--white);
    border: 2px solid var(--border-solid);
    padding: 12px 24px;
    font-size: 0.9rem;
    color: var(--neutral-dark);
    font-weight: 600;
}

.pill strong {
    color: var(--primary-color);
}

/* --- SECCIÓN CONTACTO --- */
.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 2px solid var(--border-solid);
    background-color: var(--white);
    width: 100%;
}

.contacto-branding, .contacto-details {
    min-width: 0;
}

.contacto-branding {
    padding: 60px;
    border-right: 2px solid var(--border-solid);
    background-color: var(--bg-alt);
}

.contacto-branding img {
    max-width: 100% !important;
    height: auto !important;
}

.contacto-branding h3 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 20px 0;
    line-height: 1.2;
}

.contacto-branding .text {
    color: var(--neutral-grey);
}

.contacto-details {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

.info-row {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-soft);
    width: 100%;
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-row .icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 2px;
    flex-shrink: 0;
}

.info-row > div {
    flex: 1;
    min-width: 0; 
}

.info-row h5 {
    color: var(--border-solid);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-weight: 800;
}

.info-row p, .info-row a {
    color: var(--neutral-grey);
    font-size: 0.95rem;
    text-decoration: none;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.info-row a:hover {
    color: var(--primary-color);
}

/* --- FOOTER ESTRUCTURAL --- */
.main-footer {
    background-color: var(--bg-alt);
    padding: 40px 0;
    border-top: 2px solid var(--border-solid);
    font-size: 0.85rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pfooter {
    color: var(--neutral-grey);
    font-weight: 600;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--neutral-grey);
    text-decoration: none;
    font-weight: 700;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* 📱 MENÚ HAMBURGUESA BRUTALISTA */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--border-solid);
    transition: all 0.2s ease;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* ==========================================
   📲 MEDIA QUERIES (RESPONSIVO MÓVIL Y TABLET)
   ========================================== */

@media (max-width: 1024px) {
    .grid-about {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .grid-corporate-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .section-padding {
        padding: 80px 0;
    }

    .hero-banner h1 {
        font-size: 2.8rem;
    }

    .contacto-wrapper {
        grid-template-columns: 1fr;
    }

    .contacto-branding {
        border-right: none;
        border-bottom: 2px solid var(--border-solid);
        padding: 40px;
    }

    .contacto-details {
        padding: 40px;
    }
}

/* 📱 CORRECCIONES CLAVE PARA CELULARES */
@media (max-width: 768px) {
    .contenedor, .section-container {
        padding: 0 16px;
    }

    .section-padding {
        padding: 60px 0;
    }

    /* Logo ajustado sin sobrepasar */
    .logo-header {
        height: 60px;
        margin-top: -8px;
        margin-bottom: -8px;
    }

    /* Menú Desplegable */
    .menu-toggle { 
        display: flex; 
    }

    .menu-lista {
        position: absolute;
        top: 100%; 
        left: 0; 
        width: 100%;
        background-color: var(--white);
        border-bottom: 2px solid var(--border-solid);
        flex-direction: column;
        gap: 0; 
        padding: 0;
        max-height: 0; 
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    .menu-lista.active { 
        max-height: 500px; 
        padding: 12px 0; 
    }

    .menu-link { 
        display: block; 
        padding: 14px 24px; 
        border: none; 
    }

    .menu-link.contacto-btn { 
        width: calc(100% - 48px); 
        margin: 8px 24px; 
        text-align: center; 
        box-shadow: none; 
    }

    /* Hero Responsive para evitar que el texto o botones sobresalgan */
    .hero-banner {
        padding: 60px 0 40px 0;
    }

    .hero-badge {
        font-size: 0.65rem;
        padding: 6px 10px;
    }

    .hero-banner h1 {
        font-size: 2.1rem;
    }

    .hero-lead {
        font-size: 0.95rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-gold, .btn-outline {
        width: 100%;
        box-shadow: 3px 3px 0px var(--border-solid);
    }

    h2 {
        font-size: 1.7rem;
        margin-bottom: 28px;
    }

    .contacto-branding, .contacto-details {
        padding: 24px 16px;
    }

    .corp-card, .card {
        padding: 24px;
    }

    .footer-content { 
        flex-direction: column; 
        gap: 16px; 
        text-align: center; 
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }

    .valores-pills {
        flex-direction: column;
    }

    .pill {
        text-align: center;
    }
}