/* ============================================================
   ECOMMERCE PLATFORM — app.css
   Design System: Corporate Premium
   Fonts: Sora (display) + DM Sans (body)
   ============================================================ */

/* ---- CSS CUSTOM PROPERTIES ---- */
:root {
  --primary:        #0A2463;
  --primary-dark:   #071A47;
  --primary-light:  #1A3A8A;
  --accent:         #E63946;
  --accent-dark:    #C1121F;
  --success:        #2D9B6B;
  --warning:        #F4A261;
  --info:           #3A86FF;
  --dark:           #0D0D0D;
  --gray-900:       #1A1A2E;
  --gray-800:       #2D2D44;
  --gray-700:       #4A4A6A;
  --gray-600:       #6C6C8A;
  --gray-400:       #ABABC4;
  --gray-200:       #E8E8F0;
  --gray-100:       #F5F5FA;
  --white:          #FFFFFF;

  --font-display:   'Sora', sans-serif;
  --font-body:      'DM Sans', sans-serif;

  --radius-sm:      6px;
  --radius:         12px;
  --radius-lg:      20px;
  --radius-xl:      30px;

  --shadow-sm:      0 2px 8px rgba(10,36,99,.08);
  --shadow:         0 4px 20px rgba(10,36,99,.12);
  --shadow-lg:      0 8px 40px rgba(10,36,99,.18);
  --shadow-hover:   0 12px 50px rgba(10,36,99,.22);

  --transition:     all .25s cubic-bezier(.4,0,.2,1);
  --transition-slow: all .4s cubic-bezier(.4,0,.2,1);

  --header-h:       72px;
  --topbar-h:       36px;
  --nav-h:          48px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}

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

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

/* ---- TOPBAR ---- */
.topbar {
  background: var(--primary-dark);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  font-size: .8rem;
}

.topbar-link {
  color: rgba(255,255,255,.8);
  font-size: .8rem;
  transition: var(--transition);
}
.topbar-link:hover { color: var(--white); }

.topbar-social {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  margin-left: .75rem;
  transition: var(--transition);
}
.topbar-social:hover { color: var(--white); transform: translateY(-1px); }

.topbar-divider {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,.2);
  margin: 0 .75rem;
  vertical-align: middle;
}

/* ---- HEADER ---- */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  top: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.site-logo img { height: 48px; width: auto; object-fit: contain; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.5px;
}

/* ---- BUSCADOR ---- */
.header-search { flex: 1; max-width: 600px; position: relative; }

.search-form { position: relative; }

.search-wrapper {
  display: flex;
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  overflow: hidden;
  transition: var(--transition);
  background: var(--gray-100);
}
.search-wrapper:focus-within {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(10,36,99,.08);
}

.search-category {
  border: none;
  background: transparent;
  padding: .5rem .75rem .5rem 1rem;
  font-size: .85rem;
  color: var(--gray-700);
  border-right: 1px solid var(--gray-200);
  cursor: pointer;
  font-family: var(--font-body);
  min-width: 160px;
  outline: none;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: .6rem 1rem;
  font-size: .95rem;
  font-family: var(--font-body);
  outline: none;
  color: var(--dark);
}
.search-input::placeholder { color: var(--gray-400); }

.search-btn {
  border: none;
  background: var(--primary);
  color: var(--white);
  padding: .6rem 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}
.search-btn:hover { background: var(--primary-dark); }

.search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  display: none;
  overflow: hidden;
  max-height: 400px;
  overflow-y: auto;
}
.search-suggestions.show { display: block; }

.suggestion-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--dark);
}
.suggestion-item:hover { background: var(--gray-100); }

.suggestion-img {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* ---- HEADER ACTIONS ---- */
.header-actions {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-shrink: 0;
}

.header-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: .4rem .75rem;
  border: none;
  background: transparent;
  color: var(--gray-700);
  font-size: .75rem;
  font-family: var(--font-body);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}
.header-action-btn i { font-size: 1.3rem; }
.header-action-btn:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.cart-icon-wrap { position: relative; }
.cart-count {
  position: absolute;
  top: -8px; right: -10px;
  background: var(--accent);
  color: var(--white);
  font-size: .65rem;
  min-width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  line-height: 1;
  padding: 0 3px;
}

/* ---- CATEGORY NAV ---- */
.category-nav {
  background: var(--primary);
  height: var(--nav-h);
  overflow: hidden;
}

.category-nav-list {
  display: flex;
  align-items: stretch;
  list-style: none;
  height: 100%;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-nav-list::-webkit-scrollbar { display: none; }

.category-nav-list li { position: relative; }

.category-nav-list a {
  display: flex;
  align-items: center;
  gap: .4rem;
  height: 100%;
  padding: 0 1rem;
  color: rgba(255,255,255,.88);
  font-size: .875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
}
.category-nav-list a:hover,
.category-nav-list a.active {
  background: rgba(255,255,255,.12);
  color: var(--white);
}
.category-nav-list .sale-link { color: #FFD166 !important; }

.category-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 600px;
  background: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 500;
  padding: 1.5rem;
  animation: dropdownIn .2s ease;
}

.has-dropdown:hover .category-dropdown { display: block; }

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropdown-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .25rem;
}
.dropdown-links a {
  color: var(--gray-700);
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  display: block;
  height: auto;
}
.dropdown-links a:hover { background: var(--gray-100); color: var(--primary); }

/* ---- MOBILE MENU ---- */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1050;
  backdrop-filter: blur(2px);
}
.mobile-menu-overlay.show { display: block; }

.mobile-menu {
  position: fixed;
  top: 0; left: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--white);
  z-index: 1060;
  transition: left .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mobile-menu.open { left: 0; }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--primary);
  color: var(--white);
}
.mobile-logo { color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }

.mobile-menu-close {
  border: none;
  background: rgba(255,255,255,.15);
  color: var(--white);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
}

.mobile-menu-body { flex: 1; overflow-y: auto; padding: 1rem; }

.mobile-search { margin-bottom: 1rem; }
.mobile-search .input-group { gap: .5rem; }

.mobile-nav-list { list-style: none; }
.mobile-nav-list a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem .5rem;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-200);
  font-size: .9rem;
}
.mobile-nav-list a:hover { color: var(--primary); background: var(--gray-100); border-radius: var(--radius-sm); }
.mobile-nav-divider { height: 1px; background: var(--gray-200); margin: .75rem 0; }

/* ---- HERO ---- */
.hero-section { position: relative; }

.hero-swiper, .hero-slide { height: 520px; }
@media (max-width: 768px) { .hero-swiper, .hero-slide { height: 380px; } }

.hero-slide {
  background-image: var(--slide-bg);
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,36,99,.75) 0%, rgba(10,36,99,.2) 100%);
}

.hero-default {
  height: 500px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, var(--info) 100%);
  position: relative;
  overflow: hidden;
}
.hero-default::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 600px; height: 600px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: heroIn .6s ease;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: .75rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 2rem;
  max-width: 500px;
}

.btn-hero {
  background: var(--accent);
  border: none;
  color: var(--white);
  font-weight: 600;
  border-radius: 50px;
  padding: .85rem 2rem;
  transition: var(--transition);
}
.btn-hero:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(230,57,70,.4);
}

/* Swiper customization */
.swiper-button-next, .swiper-button-prev {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  width: 44px !important;
  height: 44px !important;
  border: 1px solid rgba(255,255,255,.2);
  transition: var(--transition);
}
.swiper-button-next:hover, .swiper-button-prev:hover {
  background: rgba(255,255,255,.25);
}
.swiper-button-next::after, .swiper-button-prev::after { display: none; }
.swiper-button-next i, .swiper-button-prev i { color: var(--white); font-size: 1rem; }

.hero-swiper .swiper-button-next { right: 20px; }
.hero-swiper .swiper-button-prev { left: 20px; }

.swiper-pagination-bullet {
  background: rgba(255,255,255,.5);
  opacity: 1;
  width: 8px; height: 8px;
}
.swiper-pagination-bullet-active { background: var(--white); width: 24px; border-radius: 4px; }

/* ---- PROMO BANNERS ---- */
.promo-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: var(--transition);
}
.promo-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.promo-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.promo-shipping .promo-icon { background: #E8F5E9; color: #2D9B6B; }
.promo-secure .promo-icon   { background: #E3F2FD; color: #1A3A8A; }
.promo-return .promo-icon   { background: #FFF3E0; color: #F4A261; }

.promo-info strong { display: block; font-size: .9rem; font-weight: 600; color: var(--gray-900); }
.promo-info span, .promo-info a { font-size: .8rem; color: var(--gray-600); }
.promo-info a:hover { color: var(--primary); }

/* ---- SECTIONS ---- */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: .25rem;
}

.section-subtitle {
  color: var(--gray-600);
  font-size: .9rem;
  margin: 0;
}

/* ---- CATEGORY CARDS ---- */
.categories-swiper .swiper-slide { width: 160px; }

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}
.category-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  color: var(--primary);
}

.category-img-wrap {
  width: 80px; height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
}
.category-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.category-img-placeholder { font-size: 2rem; color: var(--gray-400); }

.category-name {
  font-size: .875rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}
.category-count { font-size: .75rem; color: var(--gray-600); }

/* ---- PRODUCT CARD ---- */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: transparent;
}
.product-card:hover .product-card-actions { opacity: 1; transform: translateY(0); }

.product-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--gray-100);
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}
.product-card:hover .product-card-img { transform: scale(1.06); }

.product-badges {
  position: absolute;
  top: .75rem; left: .75rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  z-index: 1;
}

.badge-product {
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
  display: inline-block;
}
.badge-sale { background: var(--accent); color: var(--white); }
.badge-new  { background: var(--success); color: var(--white); }
.badge-hot  { background: var(--warning); color: var(--dark); }

.product-card-actions {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: .75rem;
  background: linear-gradient(to top, rgba(0,0,0,.08), transparent);
  display: flex;
  gap: .4rem;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
}

.btn-add-cart {
  font-size: .8rem;
  padding: .45rem .75rem;
  border-radius: var(--radius-sm);
}

.btn-wishlist, .btn-quick-view {
  width: 36px; height: 36px;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  font-size: .9rem;
}

.product-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  font-size: .72rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .35rem;
  display: block;
}
.product-category:hover { color: var(--accent); }

.product-name {
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .4rem;
  flex: 1;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-name a { color: var(--dark); }
.product-name a:hover { color: var(--primary); }

.product-rating {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-bottom: .5rem;
  font-size: .75rem;
  color: #F4A261;
}
.product-rating .bi-star { color: var(--gray-300); }
.rating-count { color: var(--gray-500); font-size: .72rem; }

.product-price {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.price-current {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

/* Products swiper */
.products-swiper .swiper-slide { width: 220px; height: auto; }
@media (max-width: 576px) { .products-swiper .swiper-slide { width: 170px; } }

/* ---- SALE BANNER ---- */
.sale-banner-card {
  background-image: var(--bg), linear-gradient(135deg, var(--accent) 0%, #FF6B6B 100%);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  padding: 2.5rem;
  color: var(--white);
}
.sale-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(230,57,70,.85) 0%, rgba(193,18,31,.6) 100%);
}
.sale-banner-content { position: relative; z-index: 1; }
.sale-banner-card h2 { color: var(--white); font-size: 2rem; margin: .25rem 0; }
.sale-banner-card p { color: rgba(255,255,255,.9); font-size: 1rem; }
.sale-tag {
  background: rgba(255,255,255,.2);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: .25rem .75rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,.3);
  display: inline-block;
  margin-bottom: .5rem;
}

/* ---- BRANDS ---- */
.brands-section { background: var(--gray-100); }
.brands-swiper .swiper-slide { width: 160px; }

.brand-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  filter: grayscale(1);
  opacity: .7;
  min-height: 80px;
}
.brand-logo-link:hover {
  filter: grayscale(0);
  opacity: 1;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.brand-name-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  color: var(--gray-700);
}

/* ---- TESTIMONIALS ---- */
.testimonials-section { background: var(--primary); }
.testimonials-section .section-title { color: var(--white); }
.testimonials-swiper { padding: 0 .5rem 2rem; }

.testimonial-card {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--white);
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,.9);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  flex-shrink: 0;
}

.testimonial-author strong { display: block; font-size: .9rem; color: var(--white); }
.testimonial-author small  { font-size: .8rem; color: rgba(255,255,255,.6); }

/* ---- NEWSLETTER ---- */
.newsletter-card {
  background: linear-gradient(135deg, var(--gray-100) 0%, rgba(10,36,99,.04) 100%);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 3rem;
}

.newsletter-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: .75rem;
}

.newsletter-card h3 {
  font-size: 1.75rem;
  margin-bottom: .5rem;
}

.newsletter-card p { color: var(--gray-600); margin-bottom: 0; }

.newsletter-form .form-control {
  border-radius: 50px 0 0 50px;
  border: 1.5px solid var(--gray-200);
  padding: .75rem 1.5rem;
  font-size: .95rem;
}
.newsletter-form .btn {
  border-radius: 0 50px 50px 0;
  font-size: .95rem;
}

/* ---- FOOTER ---- */
.site-footer { background: var(--gray-900); }

.footer-top { padding: 4rem 0 2rem; }

.footer-heading {
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.25rem;
}

.footer-brand .footer-desc {
  color: rgba(255,255,255,.55);
  font-size: .875rem;
  line-height: 1.7;
}

.footer-social { display: flex; gap: .5rem; flex-wrap: wrap; }
.social-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.social-icon:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.social-icon.whatsapp:hover { background: #25D366; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a {
  color: rgba(255,255,255,.55);
  font-size: .875rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--white); padding-left: .25rem; }

.footer-contact { list-style: none; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  margin-bottom: .65rem;
}
.footer-contact li i { color: var(--primary-light); margin-top: 2px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,.6); }
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 1.25rem 0;
}

.footer-copy { color: rgba(255,255,255,.4); font-size: .8rem; }

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
}

.footer-payments { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.payment-badge {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.6);
  font-size: .72rem;
  font-weight: 600;
  padding: .25rem .6rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.payment-badge.wompi { color: #6C5CE7; border-color: #6C5CE7; }
.payment-badge.mp    { color: #009EE3; border-color: #009EE3; }
.payment-badge.addi  { color: #C6F135; border-color: #C6F135; }
.payment-badge.pse   { color: #FFC907; border-color: #FFC907; }

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  z-index: 900;
  transition: var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,.5);
  color: var(--white);
}

.whatsapp-tooltip {
  position: absolute;
  right: 65px;
  white-space: nowrap;
  background: var(--dark);
  color: var(--white);
  font-size: .8rem;
  padding: .35rem .75rem;
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* ---- CART OFFCANVAS ---- */
.cart-offcanvas { width: min(420px, 95vw) !important; }

.offcanvas-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--gray-200);
}

/* ---- FLASH MESSAGES ---- */
.flash-messages { margin-top: .5rem; }

/* ---- BUTTONS OVERRIDE ---- */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(10,36,99,.3);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* ---- UTILITIES ---- */
.bg-light { background: var(--gray-100) !important; }

/* =======================================================
   MOBILE — v3 — definitivo
   ======================================================= */

/* Promo cards: fila en desktop, scroll en móvil */
.promo-scroll-wrap {
  display: flex;
  gap: 1rem;
}
.promo-scroll-wrap .promo-card { flex: 1 1 0; min-width: 0; }

/* Categorías swiper overflow visible */
.categories-swiper { overflow: visible !important; }
.categories-section .swiper { overflow: visible; }

/* ── ≤991px: tablet ── */
@media (max-width: 991.98px) {
  /* Topbar oculto */
  .topbar { display: none !important; }
  /* Buscador oculto */
  .header-search { display: none !important; flex: 0 !important; width: 0 !important; }
  /* Nav escritorio oculto */
  .category-nav { display: none !important; }
  /* Logo empuja acciones a la derecha */
  .header-inner { gap: 0 !important; }
  .site-logo { flex: 1 1 auto !important; }
  .header-actions { flex: 0 0 auto !important; gap: 0 !important; }
  /* Texto de botones oculto */
  .header-action-btn span { display: none !important; }
  .header-action-btn { padding: .35rem .5rem !important; flex-direction: row !important; }
  .header-action-btn i { font-size: 1.5rem !important; }
}

/* ── ≤767px: móvil ── */
@media (max-width: 767.98px) {
  /* Hero */
  .hero-slide { height: auto !important; min-height: 260px; padding: 1.75rem 1.25rem !important; }
  .hero-title { font-size: 1.55rem !important; line-height: 1.3 !important; }
  .hero-subtitle { font-size: .9rem !important; }
  .hero-cta { flex-direction: column !important; gap: .65rem !important; }
  .hero-cta > * { width: 100% !important; justify-content: center !important; }

  /* Promo scroll */
  .promo-scroll-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: .75rem !important;
    padding-right: 1.5rem;
  }
  .promo-scroll-wrap::-webkit-scrollbar { display: none; }
  .promo-scroll-wrap .promo-card {
    flex: 0 0 78vw !important;
    min-width: 78vw !important;
    max-width: 78vw !important;
  }

  /* Grid productos 2 col */
  .products-grid { grid-template-columns: repeat(2,1fr) !important; gap: .6rem !important; }
  .product-card-img { height: 150px !important; }
  .product-card-body { padding: .65rem !important; }
  .product-name { font-size: .82rem !important; }
  .product-price { font-size: .95rem !important; }
  .product-card .text-muted.small { display: none; }

  /* Cart */
  .cart-summary { position: static !important; }
  .cart-item { grid-template-columns: 65px 1fr !important; padding: .75rem !important; }
  .cart-item-img img { width: 65px !important; height: 65px !important; }
  .cart-item-actions { grid-column: 1/-1; }

  /* Checkout */
  .checkout-summary { position: static !important; }

  /* Categorías - ocultar flechas */
  .categories-swiper .swiper-button-next,
  .categories-swiper .swiper-button-prev { display: none; }
}

/* ── ≤479px: móvil pequeño ── */
@media (max-width: 479.98px) {
  .hero-slide { min-height: 220px; padding: 1.5rem 1rem !important; }
  .hero-title { font-size: 1.3rem !important; }
  .products-grid { gap: .4rem !important; }
  .product-card-img { height: 130px !important; }
  .cart-offcanvas { width: 100vw !important; }
}

/* Touch: botones grandes */
@media (hover: none) {
  .btn, .header-action-btn { min-height: 44px; }
  .product-card:hover { transform: none !important; }
}
