/* ========== RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #fff;
}

/* ========== HEADER ========== */
.navbar {
    background-color: #000;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ========== BARRA SUPERIOR REDES SOCIALES ========== */
.top-bar {
    background-color: #0a0a0a;
    padding: 8px 40px;
    border-bottom: 1px solid #1a1a1a;
}

.social-links {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    align-items: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    opacity: 0.7;
    transform: translateY(-2px);
}

.social-links a img {
    width: 20px;
    height: 20px;
}

/* ========== BARRA PRINCIPAL ========== */
.navbar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 40px;
    border-bottom: 1px solid #222;
    gap: 25px;
}

/* ========== LOGO ========== */
.logo {
    flex-shrink: 0;
}

.logo a {
    display: block;
}

.logo img {
    height: 75px;
    width: auto;
    display: block;
}

/* ========== BUSCADOR ========== */
.search-box {
    position: relative;
    width: 280px;
    flex-shrink: 0;
}

.search-box input {
    width: 100%;
    padding: 8px 40px 8px 15px;
    border: none;
    border-radius: 18px;
    background-color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    outline: none;
}

.search-box input::placeholder {
    color: #999;
}

.search-box button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

/* ========== ICONOS ========== */
.icons {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-shrink: 0;
}

.icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    position: relative;
}

.icon-link:hover {
    opacity: 0.7;
}

.icon-link img {
    width: 28px;
    height: 28px;
}

.icon-link span {
    color: #fff;
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #e74c3c;
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

/* ========== MENÚ TOGGLE (MÓVIL) ========== */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 4px;
    margin-left: auto;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========== MENÚ NAVEGACIÓN ========== */
.menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background-color: #000;
    padding: 12px 40px;
    border-bottom: 2px solid #1a1a1a;
}

.menu a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.menu a:hover {
    color: #00d4ff;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #00d4ff;
    transition: width 0.3s ease;
}

.menu a:hover::after {
    width: 100%;
}

/* ========== RESPONSIVE ========== */

/* Tablets grandes */
@media (max-width: 1200px) {
    .top-bar {
        padding: 8px 30px;
    }

    .social-links {
        gap: 12px;
    }

    .social-links a img {
        width: 18px;
        height: 18px;
    }

    .navbar-container {
        padding: 12px 30px;
        gap: 20px;
    }

    .menu {
        gap: 30px;
        padding: 12px 30px;
    }

    .search-box {
        width: 240px;
    }

    .icons {
        gap: 20px;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .top-bar {
        padding: 6px 20px;
    }

    .social-links {
        gap: 10px;
    }

    .social-links a img {
        width: 16px;
        height: 16px;
    }

    .navbar-container {
        padding: 10px 20px;
        gap: 15px;
    }

    .logo img {
        height: 40px;
    }

    .search-box {
        width: 200px;
    }

    .menu {
        gap: 25px;
        padding: 10px 20px;
    }

    .menu a {
        font-size: 12px;
    }

    .icons {
        gap: 18px;
    }

    .icon-link img {
        width: 26px;
        height: 26px;
    }

    .icon-link span {
        font-size: 8px;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .top-bar {
        padding: 6px 15px;
    }

    .social-links {
        justify-content: center;
        gap: 12px;
    }

    .social-links a img {
        width: 18px;
        height: 18px;
    }

    .navbar-container {
        padding: 12px 15px;
        gap: 10px;
        justify-content: flex-start;
    }

    .logo img {
        height: 35px;
    }

    .search-box {
        width: 160px;
        flex-grow: 1;
        max-width: 200px;
    }

    .search-box input {
        font-size: 12px;
        padding: 7px 35px 7px 12px;
    }

    .search-box button {
        right: 10px;
    }

    .search-box button img {
        width: 14px;
        height: 14px;
    }

    /* Ocultar textos de iconos en móvil */
    .icon-link span:not(.cart-badge) {
        display: none;
    }

    .icons {
        gap: 12px;
    }

    .icon-link img {
        width: 24px;
        height: 24px;
    }

    /* Mostrar botón menú hamburguesa */
    .menu-toggle {
        display: flex;
    }

    /* Menú desplegable móvil */
    .menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .menu.active {
        max-height: 300px;
    }

    .menu a {
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid #222;
        text-align: left;
    }

    .menu a::after {
        display: none;
    }

    .menu a:hover {
        background-color: #111;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .social-links {
        gap: 10px;
    }

    .social-links a img {
        width: 16px;
        height: 16px;
    }

    .navbar-container {
        padding: 10px 12px;
        gap: 8px;
    }

    .logo img {
        height: 30px;
    }

    .search-box {
        width: 120px;
        max-width: 150px;
    }

    .search-box input {
        font-size: 11px;
        padding: 6px 30px 6px 10px;
    }

    .search-box button img {
        width: 13px;
        height: 13px;
    }

    .icons {
        gap: 10px;
    }

    .icon-link img {
        width: 22px;
        height: 22px;
    }

    .cart-badge {
        width: 14px;
        height: 14px;
        font-size: 9px;
    }

    .menu a {
        font-size: 11px;
        padding: 12px 15px;
    }

    .menu-toggle span {
        width: 22px;
        height: 2.5px;
    }
}