/* /css/header.css */

:root {
    --header-height: 65px;
}
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
}

.site-header {
    background: var(--color-bg-card) !important;
    color: var(--color-text-primary);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1020;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 65px;
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
        height: 60px;
    }
}

.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

@media (max-width: 480px) {
    .header-right {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .header-right {
        gap: 12px;
    }
}

.logo {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .logo {
        font-size: 20px;
    }
}

.logo-link {
    display: flex;
    align-items: center;
    color: #0066CC;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-link:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.logo-image {
    height: 40px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
    .logo-image {
        height: 32px;
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 28px;
        max-width: 100px;
    }
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 8px !important;
    margin: 0 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.theme-toggle-btn:hover {
    background: transparent !important;
    transform: translateY(-1px);
}

.theme-toggle-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.theme-toggle-btn i {
    font-size: 18px;
    transition: all 0.3s ease;
    color: var(--primary-700) !important; /* Primary 700 - Verde oscuro corporativo */
}

.theme-toggle-btn:hover i {
    color: var(--accent-500) !important; /* Accent 500 - Verde azulado en hover */
}

/* Language Toggle Button */
.language-toggle-btn {
    background: transparent;
    border: none;
    color: var(--color-text);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.language-toggle-btn:hover {
    color: var(--color-text);
    transform: translateY(-1px);
}

.language-toggle-btn .flag {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.language-toggle-btn:hover .flag {
    transform: translateY(-1px);
}

html[data-theme="dark"] .language-toggle-btn {
    color: var(--color-text-primary);
}

/* Flag images styling */
.flag-img {
    width: 16px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

@media (max-width: 480px) {
    .language-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    .language-dropdown {
        right: -5px;
        min-width: 120px;
    }
}
@media (max-width: 768px) {
    .language-btn {
        padding: 7px 11px;
        font-size: 12px;
    }
    .language-dropdown {
        min-width: 130px;
    }
}


/* Scroll progress button */
.scroll-progress-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0A74DA, #005AA7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 8px 25px rgba(10, 116, 218, 0.3), 0 4px 10px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-progress-button.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.scroll-progress-button:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 35px rgba(10, 116, 218, 0.4), 0 6px 15px rgba(0,0,0,0.15);
}

.scroll-progress-button:active {
    transform: scale(0.95) translateY(0);
}

.scroll-progress-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: conic-gradient(transparent 0deg, rgba(255,255,255,0.3) 0deg);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.scroll-progress-button .icon {
    color: white;
    font-size: 18px;
    z-index: 1;
    transition: all 0.3s ease;
}

.scroll-progress-button:hover .icon {
    transform: translateY(-1px);
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    transform: rotate(-90deg);
}

.progress-ring-circle {
    fill: none;
    stroke: rgba(255,255,255,0.3);
    stroke-width: 2;
}

.progress-ring-progress {
    fill: none;
    stroke: white;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    transition: stroke-dashoffset 0.3s ease;
}

@media (max-width: 768px) {
    .scroll-progress-button {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-progress-button .icon {
        font-size: 16px;
    }
    
    .progress-ring {
        width: 50px;
        height: 50px;
    }
    
    .progress-ring-circle,
    .progress-ring-progress {
        r: 20;
        cx: 25;
        cy: 25;
    }
    
    .progress-ring-progress {
        stroke-dasharray: 125;
        stroke-dashoffset: 125;
    }
}

/* Dark Mode Overrides */
html[data-theme="dark"] .logo-image {
    filter: brightness(0) saturate(100%) invert(1) !important;
}

html[data-theme="dark"] .theme-toggle-btn i {
    color: var(--color-text-primary) !important;
}
