/* =====================================================
   ACEROS PATAGONIA - Estilos Principales
   ===================================================== */

/* --- Variables CSS --- */
:root {
  --primary:        #e8730a;
  --primary-dark:   #c05e00;
  --primary-light:  #f9924a;
  --primary-pale:   #fff3ea;
  --accent:         #ff9a3c;
  --dark:           #1a1a1a;
  --dark-2:         #2d2d2d;
  --gray:           #6c757d;
  --gray-light:     #f5f5f5;
  --white:          #ffffff;
  --border:         #e0e0e0;
  --text:           #333333;
  --text-light:     #666666;
  --footer-bg:      #1c1c1c;
  --footer-text:    #b0b0b0;
  --shadow:         0 2px 15px rgba(0,0,0,0.08);
  --shadow-md:      0 4px 25px rgba(0,0,0,0.12);
  --radius:         6px;
  --radius-lg:      12px;
  --transition:     all 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

ul { list-style: none; padding: 0; margin: 0; }

/* =====================================================
   PROMO BAR
   ===================================================== */
/* Promo bar móvil */
.promo-bar {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
}
.promo-bar a { color: var(--white); font-weight: 700; text-decoration: underline; }

/* =====================================================
   HEADER UNIFICADO
   ===================================================== */
.main-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1050;
}

/* ── Fila superior: logo + info ── */
.header-top {
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: stretch;
  padding-left: 24px;
}

/* Logo */
.header-logo-col {
  display: flex;
  align-items: center;
  padding: 12px 28px 12px 0;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  text-decoration: none;
}
.site-logo {
  height: 90px;
  width: auto;
  transition: transform .2s ease, filter .2s ease;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.15));
}
.header-logo-col:hover .site-logo {
  transform: scale(1.03);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.22));
}

/* Info columna derecha */
.header-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Promo row */
.header-promo-row {
  background: var(--primary);
  color: #fff;
  font-size: .78rem;
  font-weight: 500;
  padding: 7px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
}
.header-promo-row a { color:#fff; font-weight:700; text-decoration:underline; font-size:.76rem; }
.header-promo-row a:hover { opacity:.8; }

/* Topbar info row */
.header-topbar-row {
  background: var(--dark-2);
  color: #aaa;
  font-size: .75rem;
  padding: 7px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
}
.header-topbar-left span { margin-right: 18px; }
.header-topbar-right a  { margin-left: 16px; }
.header-topbar-row i    { color: var(--primary); margin-right: 4px; }
.header-topbar-row a    { color: #aaa; text-decoration: none; }
.header-topbar-row a:hover { color: var(--primary); }

/* ── Fila inferior: navbar ancho completo ── */
.header-navbar-row { background: var(--white); }
.navbar-main { padding: 0; min-height: 62px; }

/* Móvil */
@media (max-width: 991px) {
  .navbar-main { min-height: 58px; }
}

/* Nav Links */
.navbar-main .nav-link {
  color: var(--dark) !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 24px 14px !important;
  transition: var(--transition);
  position: relative;
}
.navbar-main .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 3px;
  background: var(--primary);
  transition: var(--transition);
}
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active { color: var(--primary) !important; }
.navbar-main .nav-link:hover::after,
.navbar-main .nav-link.active::after { left: 0; right: 0; }

/* Ocultar flecha de Bootstrap en dropdowns del navbar */
.navbar-main .dropdown-toggle::after { display: none; }

/* Dropdown */
.navbar-main .dropdown-menu {
  border: none;
  border-top: 3px solid var(--primary);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  min-width: 220px;
  animation: fadeDropdown 0.18s ease;
}
@keyframes fadeDropdown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.navbar-main .dropdown-item {
  font-size: 0.875rem;
  color: var(--text);
  padding: 8px 20px;
  font-weight: 500;
  transition: var(--transition);
}
.navbar-main .dropdown-item:hover {
  background: var(--primary-pale);
  color: var(--primary);
  padding-left: 26px;
}

/* Mega submenu */
.dropdown-submenu { position: relative; }
.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -3px;
  border-top: 3px solid var(--primary);
}
.dropdown-submenu:hover > .dropdown-menu { display: block; }
.dropdown-submenu > .dropdown-item::after {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  float: right;
  font-size: 0.7rem;
  margin-top: 3px;
  opacity: 0.5;
}

/* Cart icon */
.cart-btn {
  position: relative;
  color: var(--dark);
  font-size: 1.25rem;
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
  background: transparent;
  border: none;
}
.cart-btn:hover { color: var(--primary); background: var(--primary-pale); }
.cart-badge {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  width: 17px; height: 17px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* Search */
.search-form { position: relative; max-width: 300px; }
.search-form input {
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 7px 40px 7px 16px;
  font-size: 0.85rem;
  transition: var(--transition);
  background: var(--gray-light);
}
.search-form input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(232,115,10,0.12);
}
.search-form button {
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
}
.search-form button:hover { color: var(--primary); }

/* Toggler */
.navbar-toggler {
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 5px 8px;
}
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23e8730a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

/* =====================================================
   HERO BANNER / SLIDER
   ===================================================== */
.hero-section { position: relative; overflow: hidden; }

.hero-carousel .carousel-item {
  height: 520px;
  position: relative;
}

.hero-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.hero-content {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 8%;
  max-width: 520px;
  color: #fff;
  z-index: 2;
}
.hero-content .badge-promo {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.hero-content h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-content p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 26px;
  line-height: 1.7;
}
.hero-content .btn-hero {
  background: var(--primary);
  color: #fff;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid var(--primary);
  transition: var(--transition);
  display: inline-block;
}
.hero-content .btn-hero:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.hero-content .btn-hero-outline {
  background: transparent;
  color: #fff;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.6);
  transition: var(--transition);
  margin-left: 12px;
}
.hero-content .btn-hero-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* Carousel controls */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  top: 50%; transform: translateY(-50%);
  opacity: 0; transition: var(--transition);
}
.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next { opacity: 1; }
.hero-carousel .carousel-control-prev { left: 20px; }
.hero-carousel .carousel-control-next { right: 20px; }
.hero-carousel .carousel-indicators button {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
}
.hero-carousel .carousel-indicators .active { background: var(--primary); }

/* =====================================================
   VALUE PROPOSITIONS (4 íconos)
   ===================================================== */
.value-props {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 20px;
  border-right: 1px solid var(--border);
  transition: var(--transition);
}
.value-item:last-child { border-right: none; }
.value-item:hover { background: var(--primary-pale); }

.value-icon {
  width: 50px; height: 50px;
  background: var(--primary-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
  color: var(--primary);
  transition: var(--transition);
}
.value-item:hover .value-icon {
  background: var(--primary);
  color: #fff;
}
.value-text h6 {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--dark);
  margin-bottom: 2px;
}
.value-text p {
  font-size: 0.78rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.4;
}

/* =====================================================
   SECTION HEADINGS
   ===================================================== */
.section-heading {
  text-align: center;
  margin-bottom: 40px;
}
.section-heading .label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.section-heading h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}
.section-heading p {
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.95rem;
}
.section-heading .divider {
  width: 50px; height: 3px;
  background: var(--primary);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* =====================================================
   PRODUCT CARDS
   ===================================================== */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.product-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--gray-light);
  aspect-ratio: 1 / 1;
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }

.product-img-wrap .img-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.product-card:hover .product-img-wrap .img-hover { opacity: 1; }

.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
}
.badge-nuevo  { background: var(--primary); color: #fff; }
.badge-oferta { background: #dc3545; color: #fff; }
.badge-dest   { background: #198754; color: #fff; }

.product-actions {
  position: absolute;
  right: 10px; top: 10px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transform: translateX(10px);
  transition: var(--transition);
  z-index: 2;
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.product-actions .btn-action {
  width: 34px; height: 34px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.product-actions .btn-action:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.product-body {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.product-brand {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 4px;
}
.product-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  flex-grow: 1;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price-wrap { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.product-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}
.product-price-from {
  font-size: 0.72rem;
  color: var(--gray);
  font-weight: 500;
}
.product-price-old {
  font-size: 0.85rem;
  color: var(--gray);
  text-decoration: line-through;
}

.btn-add-cart {
  width: 100%;
  padding: 9px;
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  display: block;
}
.btn-add-cart:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}
.btn-ver-mas {
  width: 100%;
  padding: 9px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  display: block;
  margin-top: 6px;
}
.btn-ver-mas:hover {
  background: var(--primary);
  color: #fff;
}

/* Product section */
.products-section { padding: 60px 0; }
.products-section.bg-alt { background: var(--gray-light); }

/* =====================================================
   CATEGORIES SECTION
   ===================================================== */
.categories-section { padding: 60px 0; background: var(--gray-light); }

.cat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  padding: 30px 20px 24px;
  transition: var(--transition);
  border: 1px solid var(--border);
  display: block;
  color: var(--text);
}
.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  color: var(--primary);
}
.cat-icon {
  width: 70px; height: 70px;
  background: var(--primary-pale);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  transition: var(--transition);
}
.cat-card:hover .cat-icon {
  background: var(--primary);
  color: #fff;
}
.cat-card h5 {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.cat-card p {
  font-size: 0.78rem;
  color: var(--text-light);
  margin: 0;
}

/* =====================================================
   BANNER INTERMEDIO
   ===================================================== */
.mid-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
  padding: 60px 0;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mid-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="60" fill="rgba(255,255,255,0.03)"/><circle cx="80" cy="80" r="80" fill="rgba(255,255,255,0.03)"/></svg>') center/cover;
}
.mid-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
}
.mid-banner p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 28px;
  position: relative;
}
.mid-banner .btn-white {
  background: #fff;
  color: var(--primary);
  padding: 13px 34px;
  border-radius: 50px;
  font-weight: 700;
  border: none;
  transition: var(--transition);
  display: inline-block;
  position: relative;
}
.mid-banner .btn-white:hover {
  background: var(--dark);
  color: #fff;
  transform: translateY(-2px);
}

/* =====================================================
   NEWSLETTER
   ===================================================== */
.newsletter-section {
  padding: 60px 0;
  background: var(--primary-pale);
}
.newsletter-inner {
  max-width: 550px;
  margin: 0 auto;
  text-align: center;
}
.newsletter-inner h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}
.newsletter-inner p {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 12px 18px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 0.9rem;
  transition: var(--transition);
  background: #fff;
}
.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,115,10,0.12);
}
.newsletter-form button {
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* =====================================================
   MINI CART (OFFCANVAS)
   ===================================================== */
.offcanvas-cart { max-width: 360px; z-index: 1100; }
.offcanvas-backdrop { z-index: 1099; }
.offcanvas-cart .offcanvas-header {
  background: var(--dark);
  color: #fff;
  padding: 18px 20px;
  flex-shrink: 0;
}
.offcanvas-cart .btn-close { filter: invert(1); }

/* Botones cantidad (− y +) */
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.qty-btn:hover {
  background: var(--primary);
  color: #fff;
}
.qty-btn:active { opacity: .8; }

/* Contador de cantidad */
.qty-count {
  font-size: .88rem;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
  color: var(--dark);
}

/* Botón eliminar */
.remove-cart-item {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #e5e5e5;
  background: #f8f8f8;
  color: #bbb;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  flex-shrink: 0;
  line-height: 1;
}
.remove-cart-item:hover {
  border-color: #dc3545;
  background: #fff0f0;
  color: #dc3545;
}

/* Sobreescribir Bootstrap: el body es flex column, no scrollea él mismo */
.offcanvas-cart .offcanvas-body {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 0 !important;
  flex: 1 1 auto;
}

/* La lista de items es la única zona que scrollea */
#cartItemsList {
  flex: 1 1 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 12px 0;
  min-height: 0;
}

.cart-empty-msg {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--gray);
}
.cart-empty-msg i { font-size: 3rem; color: var(--border); display: block; margin-bottom: 12px; }
.cart-summary-box {
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  flex-shrink: 0;     /* nunca se comprime, siempre al fondo */
}
.cart-summary-row {
  display: flex; justify-content: space-between;
  margin-bottom: 8px; font-size: 0.9rem;
}
.cart-summary-row.total { font-weight: 800; font-size: 1.05rem; color: var(--dark); }
.btn-checkout {
  display: block; width: 100%;
  padding: 13px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 14px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.btn-checkout:hover { background: var(--primary-dark); color: #fff; }
.btn-view-cart {
  display: block; width: 100%;
  padding: 11px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: 8px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.btn-view-cart:hover { background: var(--primary); color: #fff; }
.min-order-note {
  font-size: 0.75rem;
  color: var(--gray);
  text-align: center;
  margin-top: 8px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding-top: 60px;
}

.footer-brand img { height: 50px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; color: #909090; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #ccc;
  font-size: 0.9rem;
  transition: var(--transition);
}
.social-icon:hover { background: var(--primary); color: #fff; }

.footer-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 0.85rem;
  color: #909090;
  transition: var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.footer-links a::before {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.6rem;
  color: var(--primary);
}
.footer-links a:hover { color: var(--primary); padding-left: 4px; }

.footer-contact-item {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 16px;
}
.footer-contact-icon {
  width: 36px; height: 36px;
  background: rgba(232,115,10,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  font-size: 0.85rem;
}
.footer-contact-item a { color: #909090; font-size: 0.85rem; }
.footer-contact-item a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 40px;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: #666; margin: 0; }
.payment-icons { display: flex; gap: 8px; align-items: center; }
.payment-icon {
  height: 26px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 3px 8px;
  display: flex; align-items: center;
  font-size: 0.75rem;
  color: #ccc;
  font-weight: 600;
}

/* =====================================================
   WHATSAPP FLOTANTE
   ===================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 9999;
  animation: waBounce 2s infinite;
}
@keyframes waBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.whatsapp-float a {
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: var(--transition);
}
.whatsapp-float a:hover { background: #20ba5a; transform: scale(1.1); }
.wa-tooltip {
  position: absolute;
  right: 70px; top: 50%;
  transform: translateY(-50%);
  background: var(--dark);
  color: #fff;
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.whatsapp-float:hover .wa-tooltip { opacity: 1; }
.wa-tooltip::after {
  content: '';
  position: absolute;
  left: 100%; top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--dark);
}

/* =====================================================
   BACK TO TOP
   ===================================================== */
#backToTop {
  position: fixed;
  bottom: 92px; right: 26px;
  width: 42px; height: 42px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  z-index: 999;
  display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 3px 12px rgba(232,115,10,0.4);
  transition: var(--transition);
}
#backToTop:hover { background: var(--primary-dark); transform: translateY(-2px); }
#backToTop.show { display: flex; }

/* =====================================================
   COOKIE BANNER
   ===================================================== */
#cookieBanner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(20,20,20,0.97);
  color: #ddd;
  padding: 18px 30px;
  z-index: 10000;
  display: none;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 3px solid var(--primary);
  backdrop-filter: blur(8px);
}
#cookieBanner.show { display: flex; }
#cookieBanner p { margin: 0; font-size: 0.85rem; flex: 1; min-width: 200px; }
.cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-accept-cookies {
  padding: 9px 22px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-accept-cookies:hover { background: var(--primary-dark); }
.btn-reject-cookies {
  padding: 9px 18px;
  background: transparent;
  color: #aaa;
  border: 1px solid #555;
  border-radius: var(--radius);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-reject-cookies:hover { color: #fff; border-color: #aaa; }

/* =====================================================
   UTILITIES / HELPERS
   ===================================================== */
.text-primary-ap { color: var(--primary) !important; }
.bg-primary-ap   { background: var(--primary) !important; }
.btn-primary-ap  {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
}
.btn-primary-ap:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }

.section-py { padding: 60px 0; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.4s infinite;
  border-radius: var(--radius);
}
@keyframes skeleton-loading {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Tabs highlight */
.nav-tabs .nav-link { color: var(--text); border: none; border-bottom: 3px solid transparent; padding: 10px 20px; font-weight: 600; }
.nav-tabs .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); background: transparent; }
.nav-tabs .nav-link:hover { color: var(--primary); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 991.98px) {
  .hero-carousel .carousel-item { height: 400px; }
  .hero-content { left: 5%; max-width: 85%; }
  .value-item { border-right: none; border-bottom: 1px solid var(--border); }
  .value-item:last-child { border-bottom: none; }
  .navbar-main .nav-link { padding: 12px 16px !important; }
  .navbar-main .nav-link::after { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 767.98px) {
  .hero-carousel .carousel-item { height: 320px; }
  .hero-content h1 { font-size: 1.5rem; }
  .hero-content p { font-size: 0.9rem; display: none; }
  .newsletter-form { flex-direction: column; }
  .promo-bar { font-size: 0.74rem; }
}

@media (max-width: 575.98px) {
  .hero-carousel .carousel-item { height: 260px; }
  .hero-content .btn-hero-outline { display: none; }
  .section-py { padding: 40px 0; }
  .products-section { padding: 40px 0; }
  .categories-section { padding: 40px 0; }
  .mid-banner { padding: 40px 0; }
}

/* =====================================================
   DROPDOWN SUBMENU (flyout nivel 3)
===================================================== */
.dropdown-submenu { position: relative; }

.dropdown-submenu-menu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 200px;
  margin-top: -4px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 1050;
}

/* Abrir al hover en desktop */
@media (min-width: 992px) {
  .dropdown-submenu:hover > .dropdown-submenu-menu {
    display: block;
  }
}

/* En móvil: toggle con JS al hacer click */
@media (max-width: 991.98px) {
  .dropdown-submenu-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    background: transparent;
  }
  .dropdown-submenu-menu.show { display: block; }
}
