/* ==========================================================================
   NILUDASA S.A.C. - SYSTEMA DE DISEÑO & ESTILOS PREMIUM
   ========================================================================== */

/* 1. VARIABLES Y DISEÑO SYSTEM */
:root {
    /* Paleta Corporativa */
    --color-primary: #0a305c;          /* Azul Marino Profundo del logo */
    --color-primary-light: #164984;    /* Azul Marino Acentuado */
    --color-primary-dark: #071f3d;     /* Azul Marino Oscuro */
    
    --color-secondary: #e53d34;        /* Naranja/Rojo del isotipo */
    --color-secondary-light: #ff544a;  /* Naranja/Rojo Claro */
    --color-secondary-dark: #b82c24;   /* Naranja/Rojo Oscuro */
    
    --color-text: #1a1a2e;             /* Texto Principal */
    --color-text-muted: #5e6b7e;       /* Texto Secundario/Muted */
    --color-bg-light: #f8f9fa;         /* Fondo Claro */
    --color-bg-white: #ffffff;         /* Fondo Blanco Puro */
    --color-border: #e2e8f0;           /* Bordes del sistema */
    
    /* Fuentes */
    --font-headings: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Sombras y Acentos */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(10, 48, 92, 0.12), 0 10px 10px -5px rgba(10, 48, 92, 0.04);
    --shadow-glow: 0 0 15px rgba(229, 61, 52, 0.4);
    
    /* Transiciones */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Breakpoints */
    --bp-tablet: 768px;
    --bp-desktop: 1024px;
}

/* 2. REINICIO GENERAL (RESET) & BASE */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-light);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-light);
}

/* 3. ESTRUCTURAS Y COMPONENTES REUTILIZABLES */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    max-width: 1200px;
}

.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--color-bg-white);
}

/* Grids Dinámicos */
.grid {
    display: grid;
    gap: 2rem;
    width: 100%;
}

.grid-2col { grid-template-columns: 1fr; }
.grid-3col { grid-template-columns: 1fr; }
.grid-4col { grid-template-columns: 1fr; }
.grid-6col { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 768px) {
    .grid-2col { grid-template-columns: repeat(2, 1fr); }
    .grid-3col { grid-template-columns: repeat(2, 1fr); }
    .grid-4col { grid-template-columns: repeat(2, 1fr); }
    .grid-6col { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3col { grid-template-columns: repeat(3, 1fr); }
    .grid-4col { grid-template-columns: repeat(4, 1fr); }
    .grid-6col { grid-template-columns: repeat(6, 1fr); }
}

/* Encabezados de Sección */
.section-header {
    margin-bottom: 3.5rem;
}

.section-tagline {
    font-family: var(--font-headings);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-secondary);
    display: block;
    margin-bottom: 0.5rem;
}

.tagline-light {
    color: #ffd1cc;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    letter-spacing: -0.5px;
}

.contacto-section .section-title,
.nosotros-section .section-title,
.servicios-section .section-title,
.porque-section .section-title,
.industrias-section .section-title {
    color: inherit;
}

.section-title-line {
    width: 60px;
    height: 4px;
    background-color: var(--color-secondary);
    margin: 0.5rem auto 0;
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.line-light {
    background-color: var(--color-bg-white);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 650px;
    margin: 1rem auto 0;
}

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.85rem 1.85rem;
    border-radius: 5px;
    border: 2px solid transparent;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 48, 92, 0.15);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-bg-white);
}

.btn-secondary:hover {
    background-color: var(--color-secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 61, 52, 0.15);
}

.btn-outline-white {
    background-color: transparent;
    border-color: var(--color-bg-white);
    color: var(--color-bg-white);
}

.btn-outline-white:hover {
    background-color: var(--color-bg-white);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Animación de Pulso para Brochure */
.btn-pulse {
    position: relative;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(229, 61, 52, 0.7);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(229, 61, 52, 0);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(229, 61, 52, 0);
        transform: scale(1);
    }
}

/* 4. HEADER / NAVBAR */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    padding: 1.25rem 0;
}

/* Efecto al hacer scroll */
.main-header.scrolled {
    background-color: var(--color-bg-white);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--color-border);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
    transition: var(--transition-smooth);
}

.main-header.scrolled .logo-img {
    height: 42px;
}

/* Menú de Navegación */
.nav-list {
    display: flex;
    gap: 2.25rem;
}

.nav-link {
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-bg-white);
    position: relative;
    padding: 0.5rem 0;
}

.main-header.scrolled .nav-link {
    color: var(--color-text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--color-secondary);
}

.main-header.scrolled .nav-link:hover {
    color: var(--color-secondary);
}

.nav-link.active {
    color: var(--color-secondary);
}

.nav-link.active::after {
    width: 100%;
}

.main-header.scrolled .nav-link.active {
    color: var(--color-primary);
}

.main-header.scrolled .nav-link.active::after {
    background-color: var(--color-primary);
}

/* Ocultar elementos para móvil */
.mobile-nav-toggle {
    display: none;
}

/* 5. SECCIÓN HERO */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--color-bg-white);
    background-image: url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?auto=format&fit=crop&q=80&w=1920'); /* Backup de alta calidad */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 48, 92, 0.9) 0%, rgba(7, 31, 61, 0.7) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 750px;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--color-bg-white);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.35rem;
    }
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

/* Indicador de Scroll */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-indicator .mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--color-bg-white);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-indicator .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-bg-white);
    border-radius: 2px;
    animation: scrollMouse 1.5s infinite;
}

.scroll-indicator .arrow {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-bg-white);
    border-bottom: 2px solid var(--color-bg-white);
    transform: rotate(45deg);
    animation: scrollArrow 1.5s infinite;
}

@keyframes scrollMouse {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

@keyframes scrollArrow {
    0% { opacity: 0.2; }
    50% { opacity: 1; }
    100% { opacity: 0.2; }
}

/* 6. SECCIÓN NOSOTROS */
.nosotros-section {
    background-color: var(--color-bg-light);
}

.nosotros-grid {
    align-items: center;
}

.lead-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.body-text {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

/* Contadores */
.counters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.counter-card {
    background-color: var(--color-bg-white);
    padding: 1.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid var(--color-primary);
    transition: var(--transition-smooth);
}

.counter-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--color-secondary);
}

.counter-number {
    font-family: var(--font-headings);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .counter-number {
        font-size: 2.5rem;
    }
}

.counter-card:hover .counter-number {
    color: var(--color-secondary);
}

.counter-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    line-height: 1.3;
    display: block;
}

/* Imagen Nosotros */
.nosotros-image-container {
    position: relative;
    padding-right: 1.5rem;
    padding-bottom: 1.5rem;
}

.nosotros-img {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    z-index: 2;
    position: relative;
}

.image-accent-border {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80%;
    height: 80%;
    border: 8px solid var(--color-secondary);
    border-radius: 8px;
    z-index: 1;
}

/* 7. SECCIÓN SERVICIOS */
.servicios-section {
    background-color: var(--color-bg-white);
}

.service-card {
    background-color: var(--color-bg-white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid transparent;
    transition: var(--transition-smooth);
    border: 1px solid var(--color-border);
}

.service-card:hover {
    transform: translateY(-8px);
    border-top: 4px solid var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.service-icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(10, 48, 92, 0.05);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 1.75rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
}

.service-svg {
    width: 32px;
    height: 32px;
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-card-title {
    color: var(--color-primary);
}

.service-card-desc {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

/* 8. SECCIÓN ¿POR QUÉ ELEGIRNOS? */
.porque-section {
    background-color: var(--color-primary-dark);
    position: relative;
    overflow: hidden;
}

/* Sutil patrón de fondo */
.porque-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--color-primary-light) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.15;
    z-index: 1;
}

.porque-section .container {
    position: relative;
    z-index: 2;
}

.porque-grid {
    align-items: stretch;
}

.porque-item {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 2.25rem 2rem;
    border-radius: 8px;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: var(--transition-smooth);
}

.porque-item:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.porque-icon-wrapper {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: rgba(229, 61, 52, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
}

.porque-svg {
    width: 24px;
    height: 24px;
}

.porque-content {
    flex-grow: 1;
}

.porque-item-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-bg-white);
    margin-bottom: 0.5rem;
}

.porque-item-text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
}

/* 9. SECCIÓN INDUSTRIAS */
.industrias-section {
    background-color: var(--color-bg-light);
}

.industry-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem 1rem;
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.industry-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(229, 61, 52, 0.05);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: var(--transition-smooth);
}

.industry-card:hover .industry-icon-box {
    background-color: var(--color-secondary);
    color: var(--color-bg-white);
}

.industry-svg {
    width: 24px;
    height: 24px;
}

.industry-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
}

/* 10. SECCIÓN BROCHURE CTA (banner) */
.brochure-cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-bg-white);
    padding: 4.5rem 0;
    position: relative;
}

.cta-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-bg-white);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 2.5rem;
    }
}

.cta-desc {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

@media (min-width: 768px) {
    .cta-desc {
        font-size: 1.125rem;
    }
}

/* 11. SECCIÓN CONTACTO */
.contacto-section {
    background-color: var(--color-bg-white);
}

.contacto-grid {
    align-items: start;
    gap: 3.5rem;
}

.contacto-sub-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.contacto-intro {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

/* Datos de Contacto */
.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact-detail-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.detail-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(10, 48, 92, 0.05);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.detail-svg {
    width: 22px;
    height: 22px;
}

.detail-text-box {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-secondary);
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-text);
}

a.detail-value:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* Formulario */
.contacto-form-wrapper {
    background-color: var(--color-bg-light);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.form-label {
    font-family: var(--font-headings);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.5px;
}

.form-control {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    padding: 0.85rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background-color: var(--color-bg-white);
    color: var(--color-text);
    transition: var(--transition-smooth);
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(10, 48, 92, 0.15);
}

/* Error states */
.form-group.has-error .form-control {
    border-color: var(--color-secondary);
    background-color: #fff5f5;
}

.error-msg {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-secondary);
    display: none;
    margin-top: 0.25rem;
}

.form-group.has-error .error-msg {
    display: block;
}

.form-note {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 0.5rem;
}

/* Success Box */
.alert-success-box {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 5px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.alert-success-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.alert-success-svg {
    width: 24px;
    height: 24px;
    color: #10b981;
    flex-shrink: 0;
}

.alert-success-box h4 {
    color: #065f46;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.alert-success-box p {
    color: #047857;
    font-size: 0.875rem;
}

/* 12. FOOTER */
.main-footer {
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.footer-grid {
    gap: 3.5rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo-img {
    height: 48px;
    width: auto;
}

.footer-text {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-bg-white);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background-color: var(--color-secondary);
    border-radius: 2px;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links-list a {
    font-size: 0.9375rem;
}

.footer-links-list a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.footer-contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    font-size: 0.9375rem;
}

/* Redes Sociales */
.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-bg-white);
}

.social-icon-link:hover {
    background-color: var(--color-secondary);
    color: var(--color-bg-white);
    transform: translateY(-3px);
}

.social-svg {
    width: 18px;
    height: 18px;
}

/* Pie del Footer */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    font-size: 0.875rem;
}

.copyright-text {
    opacity: 0.8;
}

/* ==========================================================================
   13. ESTILOS DE TRANSICIÓN PARA SCROLL REVEAL (INTERSECTION OBSERVER)
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Animaciones Estrechas/Cascadas (Stagger) */
.stagger-item, .stagger-industry {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.stagger-item.revealed, .stagger-industry.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Animación del Hero (Entrance) */
.animate-hero {
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-hero-delay-1 {
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.animate-hero-delay-2 {
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================================================
   14. ESTILOS ADAPTABLES (MOBILE Y RESPONSIVE DE CABECERA)
   ========================================================================== */
@media (max-width: 1023px) {
    /* Navbar en Tablet/Móvil */
    .mobile-nav-toggle {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
        width: 32px;
        height: 32px;
        position: relative;
        z-index: 1100;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hamburger Line */
    .hamburger {
        display: block;
        width: 22px;
        height: 2px;
        background-color: var(--color-bg-white);
        position: relative;
        transition: var(--transition-smooth);
    }
    
    .main-header.scrolled .hamburger {
        background-color: var(--color-text);
    }
    
    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 22px;
        height: 2px;
        background-color: var(--color-bg-white);
        transition: var(--transition-smooth);
    }
    
    .main-header.scrolled .hamburger::before,
    .main-header.scrolled .hamburger::after {
        background-color: var(--color-text);
    }
    
    .hamburger::before {
        top: -6px;
        left: 0;
    }
    
    .hamburger::after {
        top: 6px;
        left: 0;
    }
    
    /* Active State (X) */
    .mobile-nav-toggle[aria-expanded="true"] .hamburger {
        background-color: transparent !important;
    }
    
    .mobile-nav-toggle[aria-expanded="true"] .hamburger::before {
        top: 0;
        transform: rotate(45deg);
        background-color: var(--color-bg-white) !important;
    }
    
    .mobile-nav-toggle[aria-expanded="true"] .hamburger::after {
        top: 0;
        transform: rotate(-45deg);
        background-color: var(--color-bg-white) !important;
    }
    
    /* Menu Panel */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1000;
        background-color: var(--color-primary-dark);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 5rem 2rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-menu[data-visible="true"] {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .nav-link {
        font-size: 1.5rem;
        color: var(--color-bg-white) !important;
    }
    
    .header-cta {
        display: none; /* Hide header button on mobile headers, but it remains in hero, banner and footer */
    }
}

@media (max-width: 767px) {
    /* Reducir espaciado para móviles pequeños */
    .contacto-form-wrapper {
        padding: 1.5rem;
    }
    
    .counters-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nosotros-image-container {
        padding-right: 0;
        padding-bottom: 0;
        margin-top: 2rem;
    }
    
    .image-accent-border {
        display: none;
    }
    
    .porque-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .contacto-grid {
        gap: 2.5rem;
    }
}
