/* ==================== */
/* HEADER MODERNO Y PROFESIONAL */
/* ==================== */

/* Variables CSS para consistencia */
:root {
    --header-bg: #ffffff;
    --nav-bg: #2c3e50;
    --primary-blue: #3498db;
    --primary-green: #2ecc71;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #e8ecef;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-medium: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-strong: 0 8px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
}

/* Reset de estilos antiguos del header */
.header {
    display: none !important;
}

/* Asegurar que el body tenga el margen correcto */
body {
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
}

/* Header Principal */
.header-modern {
    background: var(--header-bg);
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

/* Ajuste para contenido principal */
.main-slider,
section:first-of-type,
.hero-section,
.clientes-hero {
    margin-top: 0 !important;
}

/* Contenedor del Header */
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    min-height: 100px;
}

/* ==================== */
/* BRANDING Y LOGO */
/* ==================== */
.header-brand {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex: 0 0 auto;
}

.logo-container {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border-radius: 0;
    padding: 0.2rem;
    position: relative;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none; /* Mantener colores originales del logo */
    transition: transform 0.3s ease;
}

.logo-container:hover .logo-img {
    transform: scale(1.05);
}

.company-info {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-size: 2rem;
    font-weight: 600;
    color: #1a252f;
    margin: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.company-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 1px;
}

.company-tagline {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 0.3rem;
    font-family: 'Inter', sans-serif;
}

/* ==================== */
/* INFORMACIÓN DE CONTACTO */
/* ==================== */
.header-contact {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem;
}

.contact-item i {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* ==================== */
/* CALL TO ACTION */
/* ==================== */
.header-cta {
    flex: 0 0 auto;
}

.btn-quote {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.btn-quote:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
}

.btn-quote i {
    font-size: 1rem;
}

/* ==================== */
/* NAVEGACIÓN PRINCIPAL */
/* ==================== */
.navbar-modern {
    background: var(--nav-bg);
    border-top: 3px solid var(--primary-blue);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    width: 100%;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(255,255,255,0.1);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
}

.nav-link i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

/* ==================== */
/* DROPDOWN MENU */
/* ==================== */
.dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.7rem !important;
    margin-left: 0.3rem;
    transition: var(--transition);
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: var(--shadow-strong);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
    list-style: none;
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: #f8f9fa;
    color: var(--primary-blue);
    padding-left: 2rem;
}

/* ==================== */
/* MENÚ MÓVIL */
/* ==================== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.3rem;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

/* ==================== */
/* ANIMACIONES */
/* ==================== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-modern {
    animation: slideDown 0.5s ease-out;
}

/* ==================== */
/* RESPONSIVE DESIGN */
/* ==================== */

/* Tablet */
@media (max-width: 1024px) {
    .header-contact {
        gap: 1rem;
    }
    
    .contact-item {
        gap: 0.5rem;
    }
    
    .contact-details {
        display: none;
    }
    
    .contact-item i {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

/* Móvil */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
        flex-wrap: nowrap;
    }
    
    .header-contact {
        display: none;
    }
    
    .logo-container {
        width: 70px;
        height: 70px;
    }
    
    .company-name {
        font-size: 1.6rem;
        letter-spacing: -0.01em;
    }
    
    .company-name::after {
        width: 25px;
        height: 2px;
    }
    
    .company-tagline {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
    
    .btn-quote span {
        display: none;
    }
    
    .btn-quote {
        padding: 0.8rem;
        border-radius: 50%;
        width: 45px;
        height: 45px;
        justify-content: center;
    }
    
    /* Navegación móvil */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--nav-bg);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 4rem;
        transition: var(--transition);
        box-shadow: var(--shadow-strong);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        padding: 1.2rem 2rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        justify-content: flex-start;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-overlay.active {
        display: block;
    }
    
    /* Animación del hamburger */
    .mobile-menu-btn.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Dropdown en móvil */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255,255,255,0.1);
        border-radius: 0;
        border: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        max-height: 200px;
    }
    
    .dropdown-menu li a {
        color: rgba(255,255,255,0.8);
        padding-left: 3rem;
    }
    
    .dropdown-menu li a:hover {
        background: rgba(255,255,255,0.1);
        color: white;
        padding-left: 3.5rem;
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    .header-container {
        padding: 0.8rem 1rem;
    }
    
    .logo-container {
        width: 55px;
        height: 55px;
    }
    
    .company-name {
        font-size: 1.3rem;
        letter-spacing: -0.005em;
    }
    
    .company-name::after {
        width: 20px;
        height: 1.5px;
    }
    
    .company-tagline {
        font-size: 0.7rem;
        letter-spacing: 0.8px;
    }
    
    .header-brand {
        gap: 0.8rem;
    }
}