/* ========== 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,
#header.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: 1.5rem;
    align-items: center;
}

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

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

#navbar > ul > li > .nav-link:hover::after,
#navbar > ul > li > .nav-link.active::after {
    width: 100%;
}

#navbar a:focus-visible,
#navbar .mobile-nav-toggle:focus-visible {
    outline: 2px solid #c8c0f1;
    outline-offset: 4px;
}

#navbar .dropdown > ul {
    min-width: 255px;
    left: 0;
    top: 100%;
    padding: 0.6rem;
    border: 1px solid #e8e5f3;
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(36, 26, 68, 0.18);
}

#navbar .dropdown > ul a {
    color: #4f4869 !important;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: normal;
}

#navbar .dropdown > ul a:hover,
#navbar .dropdown > ul a:focus-visible {
    background: #f1edfc;
    color: #6551a4 !important;
}

#navbar .dropdown:focus-within > ul {
    opacity: 1;
    visibility: visible;
}

#navbar .btn-aplicar,
#navbar .getstarted {
    min-height: 46px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem !important;
    margin: 0 !important;
    line-height: 1.3;
}

#navbar .getstarted {
    border-color: rgba(255, 255, 255, 0.6);
}

#navbar .getstarted:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

#navbar .btn-aplicar::after,
#navbar .getstarted::after,
#navbar .dropdown > ul a::after {
    display: none;
}

/* 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;
    background: transparent;
    border: 0;
    padding: 0.5rem;
    line-height: 1;
}

@media (max-width: 1199px) {
    #navbar {
        position: static;
        padding: 0;
    }

    #navbar > ul {
        display: none;
    }

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

    #navbar.navbar-mobile {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: rgba(35, 30, 59, 0.65);
        z-index: 999;
    }

    #navbar.navbar-mobile > ul {
        display: block;
        top: 75px;
        left: 16px;
        right: 16px;
        bottom: auto;
        max-height: calc(100vh - 95px);
        max-height: calc(100dvh - 95px);
        padding: 1rem;
        border-radius: 18px;
        background: white;
        box-shadow: 0 14px 36px rgba(36, 26, 68, 0.18);
        overflow-y: auto;
    }

    #navbar.navbar-mobile .mobile-nav-toggle {
        top: 20px;
        right: 16px;
    }

    #navbar > ul > li > a {
        color: #4f4869 !important;
        padding: 0.85rem 1rem;
        font-size: 1rem;
    }

    #navbar > ul > li > .nav-link::after {
        display: none;
    }

    #navbar .dropdown > ul {
        position: static;
        display: none;
        margin: 0.25rem 0 0.75rem;
        min-width: 0;
        background: #f8f7fd;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
    }

    #navbar .dropdown > ul.dropdown-active {
        display: block;
    }

    #navbar .btn-aplicar,
    #navbar .getstarted {
        width: 100%;
        margin-top: 0.75rem !important;
    }

    #navbar > ul > li > .btn-aplicar {
        color: white !important;
    }

    #navbar .getstarted {
        border-color: #d5cee9;
    }

    #navbar .getstarted:hover {
        background: #f1edfc;
        border-color: #b8abd9;
    }
}

/* 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: 1.75rem 0;
    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 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    border-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
}

@media (max-width: 575px) {
    #footer .footer-bottom {
        flex-direction: column;
        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;
    }
}

