/* Configuración General del Header */
.main-header {
    background-color: #000000;
    font-family: 'Open Sans', sans-serif;
    font-weight: 100;
    margin: 20px 0 0 0;
    position: relative;
}

.main-header::after {
    content: '';
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
    pointer-events: none;
    z-index: 9998;
}

.header-line1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* 1. Caja de Búsqueda (Izquierda) */
.search-box {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    padding: 5px 10px;
    width: 250px;
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: #333;
    font-family: 'Open Sans', sans-serif;
    font-weight: 100;
}

.search-box i {
    color: #666;
    font-size: 18px;
    cursor: pointer;
}

/* 2. Logo (Centro Absoluto) */
.logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo-img {
    height: 90px; /* Ajusta según el tamaño de tu logo */
    width: auto;
}

.logo-text {
    font-family: 'Raleway', sans-serif;
    font-size: 48px;
    font-weight: 100;
    color: #001a32;
    letter-spacing: 2px;
}

/* 3. Iconos Usuario y Carrito (Derecha) */
.header-icons {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-icons i {
    font-size: 22px;
    color: #ffffff;
    cursor: pointer;
}

.icon-svg {
    width: 22px;
    height: 22px;
    color: #ffffff;
    cursor: pointer;
    stroke-width: 1.5;
}

.cart-container {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    font-size: 12px;
    font-weight: bold;
}

/* 4. Navegación Inferior (Centrada) */
.header-line2 {
    padding: 15px 0 30px 0;
}

.header-line2 ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.header-line2 a {
    text-decoration: none;
    color: #001a32;
    font-size: 16px;
    font-weight: 100;
    font-family: 'Open Sans', sans-serif;
    transition: 0.3s;
}

.header-line2 a:hover {
    color: #666;
}

/* Ajustes Responsive */
@media (max-width: 768px) {
    .header-line1 {
        flex-direction: column;
        gap: 20px;
        padding: 10px;
    }
    .logo-container {
        position: static;
        transform: none;
        order: -1;
    }
    .search-box {
        width: 100%;
    }
    .header-line2 ul {
        gap: 15px;
        font-size: 14px;
    }
}

/* =====================
   Mobile header & sidebar
   (moved from style-mobile.css)
   ===================== */

/* Estilos móviles específicos para el header */
.main-header-mobile {
    background-color: #000000;
    font-family: 'Open Sans', sans-serif;
    font-weight: 100;
    position: relative;
}

.main-header-mobile::after {
    content: '';
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    height: 0px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    pointer-events: none;
    z-index: 9998;
}

.header-mobile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #ffffff;
}

.icon-svg-menu {
    width: 24px;
    height: 24px;
    color: #ffffff;
    cursor: pointer;
    stroke-width: 1.5;
}

.logo-container-mobile { text-align: center; }
.logo-img-mobile { height: 100px; width: auto; }
.logo-text-mobile { font-family: 'Raleway', sans-serif; font-size: 56px; font-weight: 100; color: #ffffff; display: inline-block; }
.header-icons-mobile { display: flex; gap: 15px; margin: 0px 14px 0px 0px; font-size: 18px; color: #ffffff; }

.cart-button { background: none; border: none; cursor: pointer; position: relative; display: flex; align-items: center; justify-content: center; padding: 0; }
.icon-svg { width: 18px; height: 18px; color: #ffffff; cursor: pointer; stroke-width: 1.5; }
.cart-container { position: relative; }

.search-box-mobile { display: flex; align-items: center; border: 1px solid #ccc; padding: 8px 12px; margin: 12px 20px 12px 20px; }
.search-box-mobile input { border: none; outline: none; width: 100%; font-size: 14px; color: #fff; background-color: transparent; font-family: 'Open Sans', sans-serif; font-weight: 100; }
.search-box-mobile i { color: #666; color: #fff; cursor: pointer; margin-left: 8px; }

/* Nav mobile / overlays */
.nav-mobile { position: fixed; top: 0; left: 0; bottom: 0; width: 280px; background-color: #ffffff; z-index: 1001; transform: translateX(-100%); transition: transform 0.3s ease; box-shadow: 2px 0 8px rgba(0,0,0,0.15); display: flex; flex-direction: column; padding-top: 10px; }
.nav-mobile.active { transform: translateX(0); }

.menu-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.5); z-index: 1000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.menu-overlay.active { opacity: 1; visibility: visible; }

.nav-sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 280px; background-color: #ffffff; z-index: 1001; transform: translateX(-100%); transition: transform 0.3s ease; box-shadow: 2px 0 8px rgba(0,0,0,0.15); display: flex; flex-direction: column; padding-top: 115px; }
.nav-sidebar.active { transform: translateX(0); }
.menu-close-btn { align-self: flex-end; margin: 10px 15px 0 0; background: none; border: none; font-size: 24px; cursor: pointer; color: #333; }
.nav-sidebar ul { list-style: none; padding: 0; margin: 0; }
.nav-sidebar li { border-bottom: 1px solid #e0e0e0; }
.nav-sidebar a { display: block; padding: 15px 20px; text-decoration: none; color: #000000; font-family: 'Open Sans', sans-serif; font-size: 15px; font-weight: 100; transition: background-color 0.2s ease; }
.nav-sidebar a:hover, .nav-sidebar a:active { background-color: #e8e8e8; }

.logo-subtitle { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; margin-top: -8px; }
.logo-subtitle::before, .logo-subtitle::after { content: ""; height: 1px; background: rgba(255,255,255,0.9); flex: 1; }
.logo-subtitle span { font-family: 'Raleway', sans-serif; font-size: 19px; font-weight: 100; color: #ffffff; white-space: nowrap; background: #000000; padding: 0 8px; z-index: 1; }

/* Ensure header text is always rendered thin (100) */
.main-header, .main-header a, .main-header input, .main-header select, .logo-text, .logo-text-mobile, .logo-subtitle span, .header-line2 a, .nav-sidebar a { font-weight: 100 !important; }

:root { --header-height: 100px !important; }

/* =====================
   Cart & overlay styles (moved from style.css)
   ===================== */

.cart-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; z-index: 2000; }
.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-sidebar { position: fixed; top: 0; right: 0; bottom: 0; width: 350px; background-color: #ffffff; box-shadow: -2px 0 8px rgba(0,0,0,0.15); z-index: 2001; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.3s ease; }
.cart-sidebar.active { transform: translateX(0); }

.cart-close { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 24px; cursor: pointer; color: #333; transition: color 0.2s ease; padding: 0; z-index: 1000; }
.cart-close:hover { color: #001a32; }

.cart-container { display: flex; flex-direction: column; height: 100%; overflow: hidden; padding: 10px; }
.cart-container h2 { font-size: 1.4rem; color: #001a32; text-align: center; font-family: 'Open Sans', sans-serif; font-weight: 500; }

.cart-products { flex: 1; overflow-y: auto; padding-top: 30px; margin-bottom: 15px; border-bottom: 1px solid #e0e0e0; display: flex; flex-direction: column; gap: 10px; }
.cart-products::-webkit-scrollbar { width: 6px; }
.cart-products::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.cart-products::-webkit-scrollbar-thumb { background: #888; border-radius: 10px; }
.cart-products::-webkit-scrollbar-thumb:hover { background: #555; }

.cart-total { padding: 0px 0px 15px 0px; border-bottom: 1px solid #001a32; margin-bottom: 15px; font-size: 1.1rem; font-family: 'Open Sans', sans-serif; font-weight: 300; text-align: right; color: #000000; }

.cart-buttons { display: flex; flex-direction: column; gap: 10px; }
.btn-payment { padding: 12px 16px; border: none; font-family: 'Open Sans', sans-serif; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background-color 0.2s ease, transform 0.2s ease; }
.btn-card { background-color: #000000; color: #ffffff; }
.btn-card:hover { background-color: #003d66; transform: scale(1.02); }
.btn-transfer { background-color: #e8e8e8; color: #000000; border: 1px solid #ccc; }
.btn-transfer:hover { background-color: #d0d0d0; transform: scale(1.02); }

.cart-item { display: flex; gap: 12px; padding: 12px; background-color: #f9f9f9; border: 1px solid #e0e0e0; border-radius: 6px; align-items: flex-start; transition: background-color 0.2s ease; }
.cart-item:hover { background-color: #f0f0f0; }
.cart-item-imagen { flex-shrink: 0; width: 60px; height: 60px; border-radius: 4px; overflow: hidden; background-color: #f0f0f0; }
.cart-item-imagen img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.cart-item-nombre { font-weight: 500; font-size: 13px; color: #333; font-family: 'Open Sans', sans-serif; }
.cart-item-precio { font-weight: 600; font-size: 13px; color: #001a32; font-family: 'Open Sans', sans-serif; }
.cart-item-cantidad { font-size: 12px; color: #666; font-family: 'Open Sans', sans-serif; }
.cantidad-valor { font-weight: 600; color: #001a32; }
.cart-item-eliminar { flex-shrink: 0; background: none; border: none; color: #d32f2f; cursor: pointer; font-size: 16px; padding: 0; transition: color 0.2s ease; }
.cart-item-eliminar:hover { color: #b71c1c; }

.whatsapp-btn { position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px; z-index: 990; transition: transform 0.3s ease; }
.whatsapp-btn:hover { transform: scale(1.1); }
.whatsapp-btn img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2)); }

