/* Estilos para Header y Footer - Componentes Reutilizables */

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
}

header.scrolled {
    background: rgba(42, 42, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--cream);
}

.logo img {
    height: 50px;
    width: auto;
    border-radius: 50%;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

nav {
    display: flex;
    gap: 3rem;
    align-items: center;
}

nav a {
    color: var(--cream);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--gold);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--cream);
    padding: 0.3rem;
    font-size: 1rem;
    letter-spacing: 0;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--gold);
    color: var(--black);
}

.lang-btn img {
    width: 20px;
    height: 14px;
    display: block;
    border-radius: 2px;
    object-fit: cover;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--cream);
    transition: all 0.3s ease;
}

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

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

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

/* ===== FOOTER ===== */
footer {
    background: var(--black);
    padding: 4rem 5% 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--cream);
    letter-spacing: 0.1em;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--cream);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    color: var(--gray);
    font-size: 0.8rem;
}

.footer-bottom p {
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--black);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease;
    }

    nav.active {
        right: 0;
    }

    .lang-switch {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .lang-btn img {
        width: 18px;
        height: 12px;
    }

    .menu-toggle {
        display: flex;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}
