/* --------------------- */
/* Estilos Base y Layout */
/* --------------------- */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Arial', sans-serif;
background-color: #f5f5f5;
}

/* ===== BANNER SUPERIOR ===== */
.banner-top {
background-color: #1a1a4d;
color: white;
padding: 8px 20px;
text-align: center;
font-size: 14px;
font-weight: bold;
}

/* ===== HEADER PRINCIPAL ===== */
header {
background: linear-gradient(135deg, #ffe3a6 0%, #4da4e2 100%);
padding: 15px 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-container {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
max-width: 1400px;
margin: 0 auto;
}

/* ========== LOGO (IZQUIERDA) ========== */
.header-left {
display: flex;
align-items: center;
gap: 15px;
min-width: 200px;
}

.logo {
font-size: 24px;
font-weight: bold;
color: white;
cursor: pointer;
transition: opacity 0.3s;
}

.logo:hover {
opacity: 0.8;
}

/* ========== BARRA DE BÚSQUEDA (CENTRO) ========== */
.header-center {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
}

.search-bar {
display: flex;
align-items: center;
background-color: white;
border-radius: 5px;
padding: 8px 15px;
width: 100%;
max-width: 600px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
gap: 10px;
}

.search-bar input {
border: none;
outline: none;
flex: 1;
font-size: 14px;
padding: 5px 0;
}

.search-bar input::placeholder {
color: #999;
}

.search-bar button {
background-color: transparent;
border: none;
color: #0099ff;
font-size: 18px;
cursor: pointer;
transition: color 0.3s;
padding: 5px 10px;
}

.search-bar button:hover {
color: #0080d9;
}

/* ========== SECCIÓN DERECHA: Login, Carrito, Dirección, Ayuda ========== */
.header-right {
display: flex;
align-items: center;
gap: 25px;
}

/* --- Botón Iniciar Sesión --- */
.login-btn {
display: flex;
align-items: center;
gap: 8px;
background-color: white;
color: #0099ff;
padding: 8px 16px;
border: none;
border-radius: 5px;
font-weight: bold;
cursor: pointer;
transition: all 0.3s;
font-size: 13px;
position: relative;
z-index: 1;
}

.login-btn::before {
content: '';
position: absolute;
top: -2px;
left: -2px;
right: -2px;
bottom: -2px;
z-index: -1;
border-radius: 8px;
opacity: 0;
transition: opacity 0.3s;
background: linear-gradient(
120deg,
#ff0000,
#ff7700,
#ffff00,
#00ff00,
#00ffff,
#0066ff,
#9900ff
);
background-size: 300% 300%;
}

.login-btn:hover::before {
opacity: 1;
animation: rainbow-spin 2s linear infinite alternate;
}

.login-btn:hover {
background-color: #f0f0f0;
}

/* --- Carrito --- */
.cart-container {
display: flex;
align-items: center;
gap: 8px;
color: white;
cursor: pointer;
transition: opacity 0.3s;
}

.cart-icon {
font-size: 24px;
}

.cart-count {
background-color: #ff4444;
color: white;
border-radius: 50%;
width: 22px;
height: 22px;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-weight: bold;
}

/* --- Dirección --- */
.location-section {
display: flex;
align-items: center;
gap: 8px;
color: white;
font-size: 13px;
cursor: pointer;
transition: opacity 0.3s;
position: relative;
z-index: 1;
}

.location-icon {
font-size: 18px;
}

.location-section:hover {
opacity: 0.8;
}

.location-section::before {
content: '';
position: absolute;
top: -4px;
left: -8px;
right: -8px;
bottom: -4px;
z-index: -1;
border-radius: 5px;
opacity: 0;
transition: opacity 0.3s;
background: linear-gradient(
120deg,
#ff0000,
#ff7700,
#ffff00,
#00ff00,
#00ffff,
#0066ff,
#9900ff
);
background-size: 300% 300%;
}

.location-section:hover::before {
opacity: 1;
animation: rainbow-spin 2s linear infinite alternate;
}

/* --- Ayuda y Soporte --- */
.help-section {
display: flex;
align-items: center;
gap: 8px;
color: white;
font-size: 13px;
cursor: pointer;
transition: all 0.3s;
position: relative;
z-index: 1;
padding: 5px 10px;
border-radius: 5px;
}

.help-icon {
font-size: 20px;
}

.help-section:hover {
opacity: 0.8;
}

.help-section::before {
content: '';
position: absolute;
top: -4px;
left: -8px;
right: -8px;
bottom: -4px;
z-index: -1;
border-radius: 5px;
opacity: 0;
transition: opacity 0.3s;
background: linear-gradient(
120deg,
#ff0000,
#ff7700,
#ffff00,
#00ff00,
#00ffff,
#0066ff,
#9900ff
);
background-size: 300% 300%;
}

.help-section:hover::before {
opacity: 1;
animation: rainbow-spin 2s linear infinite alternate;
}
