/* ============================================
   HUMANPRO - SISTEMA DE DISEÑO GLOBAL
   Version: 2.0 - Enero 2026
   ============================================ */

/* ===== VARIABLES DE MARCA ===== */
:root {
    /* Colores principales según manual de marca */
    --hp-dark-blue: #050a30;
    --hp-primary-blue: #233dff;
    --hp-secondary-blue: #4d5cce;
    --hp-light-bg: #f4f6fc;
    --hp-accent-cyan: #00d4ff;
    --hp-white: #ffffff;
    --hp-black: #000000;
    
    /* Gradientes */
    --hp-gradient-primary: linear-gradient(135deg, #233dff 0%, #00d4ff 100%);
    --hp-gradient-dark: linear-gradient(135deg, #050a30 0%, #0a1550 50%, #050a30 100%);
    --hp-gradient-card: linear-gradient(145deg, rgba(5,10,48,0.95), rgba(35,61,255,0.1));
    --hp-gradient-success: linear-gradient(135deg, #10b981, #059669);
    --hp-gradient-whatsapp: linear-gradient(135deg, #25d366, #128c7e);
    
    /* Tipografía */
    --hp-font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --hp-font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Espaciado */
    --hp-space-xs: 0.5rem;
    --hp-space-sm: 1rem;
    --hp-space-md: 2rem;
    --hp-space-lg: 4rem;
    --hp-space-xl: 6rem;
    
    /* Border radius */
    --hp-radius-sm: 8px;
    --hp-radius-md: 12px;
    --hp-radius-lg: 20px;
    --hp-radius-xl: 24px;
    --hp-radius-full: 50px;
    
    /* Sombras */
    --hp-shadow-sm: 0 2px 10px rgba(0,0,0,0.1);
    --hp-shadow-md: 0 10px 30px rgba(0,0,0,0.15);
    --hp-shadow-lg: 0 20px 60px rgba(35,61,255,0.2);
    --hp-shadow-glow: 0 0 40px rgba(0,212,255,0.3);
    
    /* Transiciones */
    --hp-transition-fast: 0.2s ease;
    --hp-transition-base: 0.3s ease;
    --hp-transition-slow: 0.5s ease;
    --hp-transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Z-index */
    --hp-z-background: -1;
    --hp-z-content: 1;
    --hp-z-header: 1000;
    --hp-z-dropdown: 1010;
    --hp-z-modal: 2000;
    --hp-z-toast: 3000;
}

/* ===== RESET Y BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--hp-font-body);
    background: var(--hp-dark-blue);
    color: var(--hp-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TIPOGRAFÍA GLOBAL ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--hp-font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--hp-space-sm);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }

p {
    margin-bottom: var(--hp-space-sm);
    color: rgba(255,255,255,0.85);
}

a {
    color: var(--hp-accent-cyan);
    text-decoration: none;
    transition: color var(--hp-transition-fast);
}

a:hover {
    color: var(--hp-white);
}

/* ===== UTILIDADES DE TEXTO ===== */
.hp-gradient-text {
    background: var(--hp-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hp-text-center { text-align: center; }
.hp-text-muted { color: rgba(255,255,255,0.6); }
.hp-text-accent { color: var(--hp-accent-cyan); }

/* ===== HEADER GLOBAL ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 10, 48, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(35, 61, 255, 0.2);
    z-index: var(--hp-z-header);
    transition: all var(--hp-transition-base);
}

.main-header.scrolled {
    background: rgba(5, 10, 48, 0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform var(--hp-transition-fast);
}

.logo:hover {
    transform: scale(1.05);
}

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

/* Navegación */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-menu > ul > li {
    position: relative;
}

.nav-menu > ul > li > a {
    color: var(--hp-white);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--hp-transition-fast);
}

.nav-menu > ul > li > a:hover {
    color: var(--hp-accent-cyan);
}

.nav-menu > ul > li > a i.fa-chevron-down {
    font-size: 0.7rem;
    transition: transform var(--hp-transition-base);
}

.nav-menu > ul > li:hover > a i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown Menus */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 15px;
    background: var(--hp-white);
    border-radius: var(--hp-radius-md);
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all var(--hp-transition-base);
    min-width: 240px;
    padding: 0.75rem 0;
}

.mega-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
}

/* Mega Menu */
.mega-menu {
    min-width: 720px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
}

.mega-column {
    padding: 1rem;
    border-radius: var(--hp-radius-sm);
    transition: background var(--hp-transition-base);
}

.mega-column:hover {
    background: var(--hp-light-bg);
}

.mega-column h4 {
    color: var(--hp-primary-blue);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mega-column h4 i {
    font-size: 0.85rem;
}

.mega-column a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    color: #4a5568;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all var(--hp-transition-fast);
    margin-bottom: 0.25rem;
}

.mega-column a:hover {
    background: var(--hp-primary-blue);
    color: white;
    transform: translateX(5px);
}

.mega-column a i {
    font-size: 0.85rem;
    width: 18px;
    opacity: 0.7;
}

.mega-column a:hover i {
    opacity: 1;
}

/* Highlight link */
.highlight-link {
    background: rgba(35, 61, 255, 0.1) !important;
    color: var(--hp-primary-blue) !important;
    font-weight: 600;
}

.highlight-link:hover {
    background: var(--hp-primary-blue) !important;
    color: white !important;
}

/* CTA Button */
.cta-button {
    background: var(--hp-gradient-primary);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--hp-radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--hp-transition-base);
    box-shadow: 0 4px 20px rgba(35, 61, 255, 0.35);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(35, 61, 255, 0.5);
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--hp-white);
    border-radius: 3px;
    transition: all var(--hp-transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== BOTONES GLOBALES ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--hp-gradient-primary);
    color: white;
    border: none;
    border-radius: var(--hp-radius-full);
    font-family: var(--hp-font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--hp-transition-base);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(35, 61, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(35, 61, 255, 0.5);
    color: white;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: transparent;
    color: white;
    border: 2px solid rgba(35, 61, 255, 0.5);
    border-radius: var(--hp-radius-full);
    font-family: var(--hp-font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--hp-transition-base);
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(35, 61, 255, 0.1);
    border-color: var(--hp-accent-cyan);
    transform: translateY(-3px);
    color: white;
}

.btn-whatsapp {
    background: var(--hp-gradient-whatsapp);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--hp-radius-full);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all var(--hp-transition-base);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.5);
    color: white;
}

/* ===== TARJETAS GLOBALES ===== */
.hp-card {
    background: rgba(5, 10, 48, 0.9);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(35, 61, 255, 0.2);
    border-radius: var(--hp-radius-xl);
    padding: 2rem;
    transition: all var(--hp-transition-base);
}

.hp-card:hover {
    border-color: var(--hp-accent-cyan);
    transform: translateY(-8px);
    box-shadow: var(--hp-shadow-lg);
}

.hp-card.featured {
    border-color: var(--hp-accent-cyan);
    background: var(--hp-gradient-card);
}

/* ===== SECCIONES GLOBALES ===== */
.hp-section {
    padding: var(--hp-space-xl) 5%;
    position: relative;
}

.hp-section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--hp-space-lg);
}

.hp-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(35, 61, 255, 0.15);
    color: var(--hp-accent-cyan);
    padding: 0.5rem 1.25rem;
    border-radius: var(--hp-radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hp-container {
    max-width: 1300px;
    margin: 0 auto;
}

/* ===== GRIDS ===== */
.hp-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.hp-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.hp-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.hp-grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* ===== FOOTER GLOBAL ===== */
.mega-footer {
    background: linear-gradient(180deg, rgba(5,10,48,0.98), var(--hp-dark-blue));
    padding: var(--hp-space-xl) 5% var(--hp-space-md);
    position: relative;
    overflow: hidden;
}

.mega-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(35,61,255,0.5), transparent);
}

.footer-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(35,61,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.footer-main {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.footer-brand-section .logo img {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-brand-section p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-tag {
    padding: 0.35rem 0.75rem;
    background: rgba(35,61,255,0.15);
    border-radius: var(--hp-radius-full);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(35,61,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hp-white);
    font-size: 1.1rem;
    transition: all var(--hp-transition-base);
}

.footer-social a:hover {
    background: var(--hp-gradient-primary);
    transform: translateY(-3px);
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--hp-white);
}

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--hp-transition-fast);
}

.footer-links a:hover {
    color: var(--hp-accent-cyan);
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 0.7rem;
    color: var(--hp-secondary-blue);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.contact-item i {
    color: var(--hp-accent-cyan);
    font-size: 1rem;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: rgba(255,255,255,0.6);
}

.footer-bottom a:hover {
    color: var(--hp-accent-cyan);
}

/* ===== BANNER SALARIO ===== */
.salary-banner {
    background: var(--hp-gradient-primary);
    padding: 0.75rem 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1001;
}

.salary-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.salary-banner-text {
    font-size: 0.9rem;
    color: white;
}

.salary-banner-text .amount {
    font-weight: 800;
    margin-left: 0.5rem;
}

.salary-banner-link {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: var(--hp-radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--hp-transition-fast);
}

.salary-banner-link:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

.salary-banner-close {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--hp-transition-fast);
}

.salary-banner-close:hover {
    opacity: 1;
}

/* ===== BACKDROP MÓVIL ===== */
.nav-backdrop {
    display: none;
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    height: calc(100vh - 75px);
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--hp-transition-base);
}

.nav-backdrop.active {
    display: block;
    opacity: 1;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .footer-main {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-brand-section {
        grid-column: 1 / -1;
        margin-bottom: 1rem;
    }
}

@media (max-width: 1024px) {
    .nav-menu ul {
        gap: 1.5rem;
    }
    
    .mega-menu {
        min-width: 600px;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hp-grid-3, .hp-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

  @media (max-width: 768px) {
      body {
          padding-top: 0;
      }
    
    .header-container {
        height: 70px;
    }
    
    .logo img {
        height: 40px;
    }
    
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Mobile Nav */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 85%;
        max-width: 360px;
        height: calc(100vh - 70px);
        background: var(--hp-dark-blue);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow-y: auto;
        transition: left var(--hp-transition-base);
        box-shadow: 5px 0 30px rgba(0,0,0,0.3);
        padding: 1.5rem 0;
        border-right: 1px solid rgba(35,61,255,0.2);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-menu > ul > li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .nav-menu > ul > li > a {
        padding: 1rem 1.5rem;
        justify-content: space-between;
    }
    
    /* Mobile Dropdowns */
    .dropdown {
        position: static;
        transform: none;
        margin: 0;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: rgba(5,10,48,0.95);
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--hp-transition-base);
        padding: 0;
    }
    
    .mega-dropdown.active .dropdown {
        max-height: 1000px;
        padding: 0.75rem 0;
    }
    
    .mega-menu {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        min-width: auto;
    }
    
    .mega-column {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        background: transparent;
    }
    
    .mega-column:hover {
        background: transparent;
    }
    
    .mega-column:last-child {
        border-bottom: none;
    }
    
    .mega-column h4 {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
        color: var(--hp-accent-cyan);
    }
    
    .mega-column a {
        padding: 0.6rem 0.75rem;
        color: rgba(255,255,255,0.8);
    }
    
    .mega-column a:hover {
        background: rgba(35,61,255,0.2);
        transform: translateX(0);
    }
    
    /* Mobile CTA */
    .cta-button {
        margin: 1rem 1.5rem;
        justify-content: center;
    }
    
    /* Footer Mobile */
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-brand-section {
        grid-column: 1 / -1;
    }
    
    /* Grids Mobile */
    .hp-grid-2, .hp-grid-3, .hp-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .hp-section {
        padding: var(--hp-space-lg) 5%;
    }
    
    .salary-banner {
        padding: 0.75rem 3rem 0.75rem 1rem;
    }
    
    .salary-banner-content {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .footer-main {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ===== UTILIDADES ===== */
.hp-hidden { display: none !important; }
.hp-visible { display: block !important; }
.hp-flex { display: flex; }
.hp-flex-center { display: flex; align-items: center; justify-content: center; }
.hp-flex-between { display: flex; align-items: center; justify-content: space-between; }
.hp-gap-sm { gap: var(--hp-space-sm); }
.hp-gap-md { gap: var(--hp-space-md); }
.hp-mt-sm { margin-top: var(--hp-space-sm); }
.hp-mt-md { margin-top: var(--hp-space-md); }
.hp-mt-lg { margin-top: var(--hp-space-lg); }
.hp-mb-sm { margin-bottom: var(--hp-space-sm); }
.hp-mb-md { margin-bottom: var(--hp-space-md); }
.hp-mb-lg { margin-bottom: var(--hp-space-lg); }
.hp-p-sm { padding: var(--hp-space-sm); }
.hp-p-md { padding: var(--hp-space-md); }
