:root {
  /* Paleta de colores solicitada: Naranja, Gris Oscuro, Blanco */
  --bg-color: #f8f9fa; /* Fondo general claro/blanco roto */
  --primary-color: #ff6b00; /* Naranja vibrante */
  --primary-hover: #e05e00;
  --secondary-color: #2c2f33; /* Gris oscuro para header/footer */
  --text-dark: #333333; /* Texto principal */
  --text-light: #ffffff; /* Texto sobre fondos oscuros */
  --text-muted: #6c757d;
  --border-color: #e9ecef;
  --card-bg: #ffffff;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
  
  --radius-md: 8px;
  --radius-lg: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
  background-color: #212121;
}

body {
  background-color: var(--bg-color);
  background-image: url('../img/bg_ferreteria.png');
  background-repeat: repeat;
  background-blend-mode: multiply;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* =========================================
   Barra de Anuncios Superior
   ========================================= */
.top-announcement-bar {
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.announcement-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.announcement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.announcement-item svg {
    color: #ea580c;
}

/* =========================================
   Top Header Rediseñado
   ========================================= */
.top-header {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 1.1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    gap: 1.5rem;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo-img {
    height: 65px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0px 2px 8px rgba(234, 88, 12, 0.4));
    transition: transform 0.25s ease;
}

.logo-link:hover .header-logo-img {
    transform: scale(1.04);
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
}

.logo-title {
    color: #ea580c;
    font-family: 'Arial Black', Impact, sans-serif;
    font-size: 2.1rem;
    margin: 0;
    line-height: 1;
    letter-spacing: -1.2px;
}

.logo-subtitle {
    color: #ffffff;
}

.logo-tagline {
    font-size: 0.65rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 2px;
    margin-top: 2px;
}

/* Barra de Búsqueda */
.search-bar {
    flex: 1;
    max-width: 480px;
    display: flex;
    align-items: center;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.search-icon-inside {
    position: absolute;
    left: 14px;
    pointer-events: none;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.6rem;
    border: 1px solid #334155;
    border-radius: 30px 0 0 30px;
    outline: none;
    font-size: 0.92rem;
    background: #ffffff;
    color: #0f172a;
    transition: all 0.2s ease;
}

.search-bar input:focus {
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
}

.search-btn {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.4rem;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
}

.search-btn:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.45);
}

/* Acciones de Usuario */
.user-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.btn-promos-animado {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ef4444 0%, #ea580c 100%);
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
    transition: all 0.25s ease;
    animation: promoGlow 2.5s infinite alternate;
}

@keyframes promoGlow {
    0% { box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35); }
    100% { box-shadow: 0 4px 20px rgba(239, 68, 68, 0.65); transform: translateY(-1px); }
}

.btn-promos-animado:hover {
    transform: translateY(-2px) scale(1.03);
}

.login-btn {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    transition: background 0.2s ease;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ea580c;
}

.user-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-dropdown {
    position: relative;
}

.user-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 6px;
    background: #ffffff;
    min-width: 210px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    z-index: 1000;
}

.user-dropdown.show .user-dropdown-content {
    display: block;
    animation: fadeInDown 0.2s ease;
}

.user-dropdown.show .login-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #ea580c;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.15s ease, color 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
}

.user-dropdown-content a:last-child {
    border-bottom: none;
}

.user-dropdown-content a:hover {
    background: #fff7ed;
    color: #ea580c;
}

/* Icono Carrito */
.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.2s ease;
}

.cart-icon-wrapper:hover {
    background: rgba(234, 88, 12, 0.2);
    border-color: #ea580c;
    color: #ea580c;
    transform: scale(1.06);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0f172a;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.mobile-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 6px;
}

/* =========================================
   Main Navbar Secundaria Rediseñada
   ========================================= */
.main-nav {
    background: #1e293b;
    border-bottom: 3px solid #ea580c;
    padding: 0;
    position: relative;
    z-index: 90;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 1rem 1.1rem;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
}

.nav-link-item:hover, .nav-link-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border-bottom-color: #ea580c;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    background: none;
    border: none;
    color: #e2e8f0;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 1rem 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
}

.nav-dropdown:hover .nav-dropdown-btn,
.nav-dropdown-btn.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border-bottom-color: #ea580c;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 240px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    padding: 0.6rem 0;
    z-index: 1000;
    margin-top: 2px;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
    animation: fadeInDown 0.2s ease;
}

.categories-dropdown-grid, .brands-dropdown-grid {
    max-height: 380px;
    overflow-y: auto;
}

.dropdown-item-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item-link:hover, .dropdown-item-link.active-item {
    background: #fff7ed;
    color: #ea580c;
    padding-left: 22px;
}

.brand-bullet {
    color: #ea580c;
    font-size: 1.2rem;
    line-height: 1;
}

.btn-presupuesto-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
    transition: all 0.25s ease;
}

.btn-presupuesto-nav:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.45);
}

/* Responsividad para Móviles */
@media (max-width: 992px) {
    .announcement-item.hide-mobile {
        display: none;
    }

    .header-container {
        flex-wrap: wrap;
    }

    .search-bar {
        order: 3;
        max-width: 100%;
        margin: 0.5rem 0 0 0;
    }

    .mobile-toggle-btn {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        background: #1e293b;
        padding: 0.5rem 0;
    }

    .nav-links.show-mobile {
        display: flex;
    }

    .nav-link-item, .nav-dropdown-btn {
        width: 100%;
        padding: 0.85rem 1rem;
        border-bottom: 1px solid #334155;
    }

    .nav-dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        background: #0f172a;
        border-radius: 0;
    }

    .dropdown-item-link {
        color: #94a3b8;
        padding-left: 2rem;
    }
}

/* Slider / Hero Banner */
.slider-container {
  max-width: 1200px;
  margin: 1.5rem auto;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slide {
  min-width: 100%;
  min-height: 300px; /* Altura mínima en caso de que no haya imagen */
  background-color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
}

/* Para cuando pongan una imagen real de banner */
.slide img {
  width: 100%;
  height: auto; /* Permite que la imagen mantenga sus proporciones originales */
  object-fit: contain; /* Ajusta la imagen entera sin recortarla */
  display: block;
  z-index: 1;
}

.slide-content {
  position: absolute; /* Asegura que el texto flote sobre la imagen si la hay */
  z-index: 2;
  text-align: center;
  background: rgba(0,0,0,0.4);
  padding: 2rem;
  border-radius: var(--radius-md);
}

.slide-content h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.slider-dots {
  text-align: center;
  padding: 1rem 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: var(--primary-color);
}

/* Main Content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.section-title {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--primary-color);
  padding-left: 0.75rem;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.09), 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s;
  display: flex;
  flex-direction: column;
  border: 1px solid #d1d5db;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(234, 88, 12, 0.22), 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.product-img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 1rem;
  background-color: #fff;
}

.product-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  flex-grow: 1;
}

/* Opciones de Compra (Contado/Cuotas) */
.purchase-options {
  margin-top: 1rem;
  border-top: 1px dashed var(--border-color);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.price-label {
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  display: block;
}

.cuotas-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contado-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f97316; /* Soft orange border/background */
  padding: 4px;
  border-radius: var(--radius-md);
  justify-content: space-between;
}

.btn-cart-icon {
  background-color: var(--primary-color);
  color: white;
  border: 1px solid rgba(255,255,255,0.5);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.btn-cart-icon:hover {
  background-color: var(--primary-hover);
}

.btn-cart-icon.outline {
  background-color: white;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-cart-icon.outline:hover {
  background-color: var(--primary-color);
  color: white;
}

.price-val-container {
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  flex-grow: 1;
  text-align: center;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.price-value {
  font-size: 1.25rem;
  font-weight: 800;
}

.cuotas-select {
  flex-grow: 1;
  height: 50px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 0.5rem;
  font-size: 1rem;
  font-weight: bold;
  color: var(--text-dark);
  outline: none;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
  background-repeat: no-repeat;
  background-position-x: 95%;
  background-position-y: 50%;
  cursor: pointer;
}

.cuotas-select option {
  font-weight: bold;
}

/* Footer */
footer {
  background-color: #212121;
  color: var(--text-light);
  padding: 4rem 0 2rem;
  margin: 3rem 0 0 0;
  width: 100%;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.footer-col h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Modal de Éxito y Checkout */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(31, 41, 55, 0.85); /* Fondo gris oscuro */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background-color: white;
  padding: 1.5rem 1.5rem; /* Margen interno reducido */
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 750px; /* Modal mucho más ancho */
  width: 95%;
  box-shadow: var(--shadow-lg);
}

/* Estilos para botones de archivo (Cédula Frente/Reverso) */
input[type="file"]::file-selector-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  margin-right: 12px;
  transition: background-color 0.2s, transform 0.1s;
}

input[type="file"]::file-selector-button:hover {
  background-color: var(--primary-hover);
}

input[type="file"]::file-selector-button:active {
  transform: scale(0.97);
}

.modal-icon {
  margin-bottom: 1.5rem;
}

.modal-content h2 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.modal-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.modal-total {
  font-size: 1.1rem;
  margin-bottom: 2rem !important;
}

.btn-modal-ok {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 3rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-modal-ok:hover {
  background-color: var(--primary-hover);
}

/* =========================================
   Rediseño del Carrito (Layout 2 columnas)
   ========================================= */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 4rem;
}

/* Columna Izquierda */
.cart-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.cart-item-img {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-code {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.cart-item-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    min-width: 150px;
}

.btn-trash {
    background: transparent;
    border: none;
    color: #a0a0a0;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
    transition: color 0.2s;
}

.btn-trash:hover {
    color: var(--primary-color);
}

.cart-item-price-col {
    text-align: right;
    margin-top: 1rem;
}

.price-unit-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cart-item-price {
    font-size: 1.25rem;
    color: var(--text-dark);
}

.modern-qty {
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.25rem;
    display: inline-flex;
}

.modern-qty .qty-btn {
    background: transparent;
    color: var(--primary-color);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    width: 25px;
}

.modern-qty .qty-input {
    border: none;
    width: 30px;
    font-weight: bold;
    color: var(--text-dark);
}

/* Caja de Delivery */
.delivery-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.delivery-box h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: normal;
}

.delivery-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    color: var(--text-dark);
}

.delivery-option input[type="radio"] {
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
}

/* Columna Derecha (Resumen) */
.summary-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.summary-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

.summary-total-row {
    font-size: 1.25rem;
    font-weight: bold;
}

.summary-btn {
    width: 100%;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    .cart-item-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .cart-item-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 1rem;
    }
    .btn-trash {
        position: relative;
        top: auto;
        right: auto;
    }
}

/* Banner de Beneficios */
.benefits-banner {
    background-color: #f4f6f8;
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-dark);
}

.benefit-item svg {
    color: var(--text-dark);
}

.benefit-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.benefit-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .benefits-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Catalog Sidebar Layout */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
}

.sidebar-filters {
    background-color: #e5e7eb; /* Fondo gris intermedio */
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.btn-back {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-back:hover {
    background-color: #e65100;
    color: white;
}

.filter-box {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.filter-box-title {
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #1f2937;
}

.filter-radio {
    display: flex;
    align-items: center;
    margin-bottom: 0.6rem;
    cursor: pointer;
}

.filter-radio input[type="radio"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.filter-radio span {
    font-size: 0.95rem;
    color: #4b5563;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 0.6rem;
    cursor: pointer;
}

.filter-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.filter-checkbox span {
    font-size: 0.95rem;
    color: #4b5563;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.user-dropdown-content a {
    color: var(--text-dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
}

.user-dropdown-content a:hover {
    background-color: #f1f5f9;
    color: var(--primary-color);
}

.user-dropdown:hover .user-dropdown-content {
    display: block;
}

/* Botón Promos Animado */
.btn-promos-animado {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(90deg, #1e1b4b, #4c1d95, #1e1b4b);
    background-size: 200% 200%;
    color: #ffffff;
    font-weight: 900;
    font-size: 1rem;
    text-decoration: none;
    padding: 6px 14px 6px 10px;
    border-radius: 8px;
    border: 2px solid #ff8a00;
    box-shadow: 0 0 10px rgba(255, 138, 0, 0.5);
    margin-right: 15px;
    position: relative;
    overflow: hidden;
    animation: gradientMove 3s ease infinite, pulseGlow 2s infinite;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}
.btn-promos-animado:hover {
    transform: scale(1.05);
    color: #ffffff;
}
.btn-promos-animado svg {
    margin-left: 5px;
    font-weight: bold;
}
.btn-promos-animado::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    animation: rotateGlow 4s linear infinite;
    pointer-events: none;
}
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px rgba(255, 138, 0, 0.4); }
    50% { box-shadow: 0 0 15px rgba(255, 138, 0, 0.8); }
    100% { box-shadow: 0 0 5px rgba(255, 138, 0, 0.4); }
}
@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Header */
@media (max-width: 992px) {
  .header-container {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
  }
  .search-bar {
    order: 3;
    max-width: 100%;
    margin: 0;
    flex: 1 1 100%;
  }
  .main-nav > div {
    flex-wrap: wrap !important;
    gap: 1rem !important;
    justify-content: center !important;
  }
  .nav-links {
    flex-wrap: wrap !important;
    gap: 1rem !important;
    justify-content: center !important;
  }
}

@media (max-width: 768px) {
  .user-actions {
    gap: 0.75rem;
  }
  .btn-promos-animado {
    font-size: 0.8rem;
    padding: 4px 8px;
    margin-right: 0;
  }
  .login-btn {
    font-size: 0.85rem;
  }
  .login-btn svg {
    display: none; /* Hide icon to save space on mobile */
  }
  .logo-section h1 {
    font-size: 1.4rem;
  }
  
  .main-nav > div {
    flex-direction: column !important;
    padding: 0.75rem 1rem !important;
  }
  .nav-links {
    gap: 0.5rem 1rem !important;
  }
  
  .nav-dropdown-content {
    left: 50%;
    transform: translateX(-50%);
  }
}


@media (max-width: 576px) {
  .header-container {
    justify-content: center;
  }
  .user-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* Responsive Banner SALE (Última Oportunidad) */
@media (max-width: 768px) {
  .banner-oportunidad-wrapper {
    flex-direction: column !important;
    text-align: center !important;
    padding: 2rem 1.5rem !important;
    gap: 1.5rem !important;
  }
  .banner-oportunidad-center {
    padding: 0 !important;
  }
  .banner-oportunidad-title {
    font-size: 1.5rem !important;
    flex-wrap: wrap !important;
  }
  .banner-oportunidad-desc {
    font-size: 1rem !important;
  }
}

/* Combos Responsive */
@media (max-width: 992px) {
  .combo-section-flex {
    flex-direction: column !important;
    align-items: center !important;
  }
  .combo-banner-left {
    width: 100% !important;
    padding: 2rem 1rem !important;
  }
  .combo-banner-left h3 {
    font-size: 1.8rem !important;
  }
  .combo-banner-left div {
    font-size: 3.5rem !important;
    margin: 0.5rem 0 !important;
  }
}

/* =========================================
   Pantallas Esqueléticas (Skeleton Screens)
   ========================================= */
.skeleton {
  background: #e2e8f0;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite linear;
  border-radius: 8px;
  display: block;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.skeleton-img {
  width: 100%;
  height: 180px;
  border-radius: 12px;
}

.skeleton-title {
  width: 85%;
  height: 20px;
  border-radius: 4px;
}

.skeleton-text {
  width: 60%;
  height: 14px;
  border-radius: 4px;
}

.skeleton-price {
  width: 45%;
  height: 26px;
  border-radius: 6px;
  margin-top: 6px;
}



/* Custom Multi-Select Dropdown */
.custom-multiselect {
  position: relative;
  width: 100%;
  font-family: inherit;
  margin-top: 8px;
}

.multiselect-selected {
  width: 100%;
  padding: 10px 14px;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1f2937;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.multiselect-selected:hover {
  border-color: var(--primary-color, #f97316);
}

.multiselect-arrow {
  transition: transform 0.2s ease;
  color: #6b7280;
}

.custom-multiselect.open .multiselect-arrow {
  transform: rotate(180deg);
}

.multiselect-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  z-index: 100;
  padding: 10px;
}

.custom-multiselect.open .multiselect-dropdown {
  display: block;
}

.multiselect-search {
  margin-bottom: 8px;
}

.multiselect-search input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}

.multiselect-search input:focus {
  border-color: var(--primary-color, #f97316);
}

.multiselect-options {
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 4px;
}

.multiselect-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #374151;
  transition: background-color 0.15s ease;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.multiselect-option:hover {
  background-color: #f3f4f6;
}

.multiselect-option input[type="checkbox"] {
  accent-color: var(--primary-color, #f97316);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.multiselect-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #f3f4f6;
}

.btn-multiselect-apply {
  flex: 1;
  padding: 7px 10px;
  background-color: var(--primary-color, #f97316);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-multiselect-apply:hover {
  background-color: #ea580c;
}

.btn-multiselect-clear {
  padding: 7px 10px;
  background-color: #f3f4f6;
  color: #4b5563;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-multiselect-clear:hover {
  background-color: #e5e7eb;
}
