/* Base Styles from Request */
.ccs-header-wrapper {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

header.ccs-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    left: 0;
    /* Ensure full width relative to viewport if outside container */
}

.ccs-header nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem;
}

.ccs-header .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ccs-header .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    cursor: pointer;
}


.ccs-header .logo-image {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.25rem;
    max-width: 60px;
    /* Limit width */
}

.ccs-header .logo-image img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    /* Optional: Keep rounded look */
    display: block;
}

.ccs-header .logo:hover .logo-image {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.ccs-header .logo-text {
    display: flex;
    flex-direction: column;
}

.ccs-header .logo-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: #1e3a8a;
    line-height: 1.25;
}

.ccs-header .logo-subtitle {
    font-size: 0.875rem;
    color: #1d4ed8;
    font-weight: 500;
}

.ccs-header .nav-links {
    display: none;
    gap: 0.25rem;
}

.ccs-header .nav-links a {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ccs-header .nav-links a.active {
    background: #2563eb;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.ccs-header .nav-links a:not(.active) {
    color: #374151;
}

.ccs-header .nav-links a:not(.active):hover {
    background: #eff6ff;
    color: #2563eb;
}

.ccs-header .menu-btn {
    padding: 0.5rem;
    color: #1e3a8a;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ccs-header .menu-btn:hover {
    background: #eff6ff;
}

.ccs-header .menu-btn i {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ccs-header .mobile-menu {
    position: fixed;
    top: 0;
    left: -320px;
    /* Hidden off-screen left */
    width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    /* Above toggle */
    transition: left 0.3s ease-in-out;
    display: flex;
    /* Always display but off-screen */
    flex-direction: column;
    padding: 0;
}

.ccs-header .mobile-menu.open {
    left: 0;
}

.ccs-header .mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    /* Let clicks pass through when hidden */
    transition: opacity 0.3s ease;
}

.ccs-header .mobile-menu-backdrop.open {
    opacity: 1;
    pointer-events: all;
}

.ccs-header .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.ccs-header .close-menu-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: #6b7280;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.ccs-header .close-menu-btn:hover {
    color: #ef4444;
    /* Red color on hover */
}

.ccs-header .mobile-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    margin-top: 0;
}

.ccs-header .mobile-links a {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.ccs-header .mobile-links a.active {
    background: #2563eb;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.ccs-header .mobile-links a:not(.active) {
    color: #374151;
}

.ccs-header .mobile-links a:not(.active):hover {
    background: #eff6ff;
    color: #2563eb;
}

/* Responsive para tablets y desktop */
@media (min-width: 1024px) {
    .ccs-header .nav-links {
        display: flex;
    }

    .ccs-header .menu-btn {
        display: none;
    }

    .ccs-header .mobile-menu {
        display: none;
    }
}