/* ========== FUENTES PERSONALIZADAS ========== */
@font-face {
    font-family: 'Carnero';
    src: url('../Fonts/Carnero Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Carnero';
    src: url('../Fonts/Carnero SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Carnero';
    src: url('../Fonts/Carnero Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

/* ========== VARIABLES GLOBALES ========== */
:root {
    --primary-blue: #003da5;
    --secondary-blue: #003da5;
    --accent-cyan: #00b4d6;
    --accent-green: #b4d600;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== ANIMACIONES ========== */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ========== HEADER / NAVEGACIÓN ========== */
body {
    font-family: 'Carnero', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideInDown 0.6s ease-out;
}

/* LOGO FLOTANTE ENCIMA DE LAS FRANJAS */
.logo-container {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.logo {
    height: 90px;
    width: auto;
    animation: bounce 0.6s ease-out;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

/* FRANJA AZUL SUPERIOR */
.header-top {
    background-color: var(--primary-blue);
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 60px;
}

.header-top .container-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

.container-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* FRANJA BLANCA INFERIOR */
.header-bottom {
    background-color: var(--white);
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.header-bottom .container-nav {
    display: flex;
    justify-content: flex-end;
}

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

.nav-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active::after {
    width: 100%;
}

.btn-ofertas {
    background-color: var(--accent-green);
    color: var(--primary-blue);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-ofertas:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(180, 214, 0, 0.4);
    background-color: #a3c200;
}

.btn-ofertas::after {
    display: none;
}

/* HAMBURGUESA */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    margin-right: 2rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: 0.3s;
    border-radius: 2px;
}

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

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .logo {
        height: 70px;
    }

    .logo-container {
        left: 1rem;
    }

    .header-bottom {
        display: none;
    }

    .header-bottom.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
    }

    .nav-menu {
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    .btn-ofertas {
        width: 100%;
        text-align: center;
    }

    .header-bottom .container-nav {
        padding: 0 2rem;
    }
}
