/* ========== ESTILOS MEJORADOS PARA TALENTO IDEAL ========== */

/* Header Mejorado */
#header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 30px rgba(102, 126, 234, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

#header.scrolled {
    background: linear-gradient(135deg, rgba(102, 126, 234, 1) 0%, rgba(118, 75, 162, 1) 100%);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
}

.logo a {
    font-weight: 800 !important;
    font-size: 1.5rem !important;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

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

.subtitle-nave {
    font-size: 0.7rem !important;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Navbar Improvements */
.navbar {
    align-items: center;
}

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

.navbar a {
    color: white !important;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, transparent);
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
}

.navbar a:hover {
    opacity: 0.8;
}

/* Logo Text Improvements */
.title-nave {
    line-height: 1.2;
    transition: all 0.3s ease;
}

.title-nave:hover {
    transform: translateX(5px);
}

/* Mobile Toggle */
.mobile-nav-toggle {
    color: white;
    font-size: 1.5rem;
    display: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-nav-toggle:hover {
    transform: rotate(90deg);
}

@media (max-width: 1200px) {
    .navbar {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        transition: right 0.3s ease;
        padding: 2rem;
        border-radius: 0 0 0 20px;
        z-index: 999;
        box-shadow: -5px 5px 30px rgba(0, 0, 0, 0.3);
    }

    .navbar.active {
        right: 0;
    }

    .navbar ul {
        flex-direction: column;
        gap: 1rem;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .navbar a {
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    .navbar a::after {
        display: none;
    }
}

/* Scrolled Header Animation */
@media (min-width: 1200px) {
    #header {
        animation: slideDown 0.5s ease;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Footer Mejorado */
#footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: white;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(102, 126, 234, 0.3);
}

#footer h4 {
    color: #667eea;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

#footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

#footer a {
    color: #bbb;
    transition: all 0.3s ease;
    text-decoration: none;
}

#footer a:hover {
    color: #667eea;
    transform: translateX(5px);
}

#footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Animaciones Globales */
.scrollto {
    cursor: pointer;
}

/* Scroll Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Links Hover Effects */
a {
    transition: all 0.3s ease;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .logo a {
        font-size: 1.2rem;
    }
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #764ba2, #667eea);
}

/* Selection Color */
::selection {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

::-moz-selection {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Focus States */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Print Styles */
@media print {
    #header,
    #footer,
    .mobile-nav-toggle {
        display: none;
    }
}

/* Dark Mode Support (opcional) */
@media (prefers-color-scheme: dark) {
    ::-webkit-scrollbar-track {
        background: #2c3e50;
    }

    ::-webkit-scrollbar-thumb {
        background: #667eea;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

