/* ============================================================
   OHANA IMPORT — Main CSS
   Paleta: Rojo #c8102e | Negro #1a1a1a | Blanco #ffffff
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Variables ── */
:root {
  --red:        #c8102e;
  --red-dark:   #a00d25;
  --red-light:  #e8192f;
  --black:      #1a1a1a;
  --gray-dark:  #333333;
  --gray-mid:   #666666;
  --gray-light: #f5f5f5;
  --white:      #ffffff;
  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.18);
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --transition: .25s ease;
  --font:       'Inter', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--black); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

/* ── Top Bar ── */
.top-bar { background: var(--black); color: #ccc; font-size: .8rem; padding: 6px 0; }
.top-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.top-bar-left { display: flex; gap: 20px; align-items: center; }
.top-bar-left span { display: flex; align-items: center; gap: 6px; }
.top-bar-left i { color: var(--red); }
.top-bar-right { display: flex; gap: 14px; align-items: center; }
.top-bar-right a { color: #ccc; transition: color var(--transition); }
.top-bar-right a:hover { color: var(--white); }
.top-bar-right img { width: 18px; height: 18px; filter: brightness(0.7); transition: filter var(--transition); }
.top-bar-right a:hover img { filter: brightness(1); }

/* ── Header ── */
.site-header { background: var(--white); border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 999; box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 20px; padding: 14px 0; }
.logo-wrap img { height: 52px; width: auto; }
.header-search { flex: 1; max-width: 520px; position: relative; }
.header-search input { width: 100%; padding: 10px 44px 10px 16px; border: 2px solid #e8e8e8; border-radius: 50px; font-size: .95rem; font-family: var(--font); outline: none; transition: border-color var(--transition); }
.header-search input:focus { border-color: var(--red); }
.header-search button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--gray-mid); font-size: 1.1rem; transition: color var(--transition); }
.header-search button:hover { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; border-radius: var(--radius-sm); transition: background var(--transition); color: var(--gray-dark); font-size: .72rem; }
.header-btn i { font-size: 1.4rem; }
.header-btn:hover { background: var(--gray-light); color: var(--red); }
.cart-btn { position: relative; }
.cart-badge { position: absolute; top: 2px; right: 6px; background: var(--red); color: var(--white); border-radius: 50%; width: 18px; height: 18px; font-size: .65rem; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ── Navbar ── */
.site-nav { background: var(--white); border-bottom: 2px solid #f0f0f0; }
.nav-inner { display: flex; align-items: center; gap: 0; }
.nav-link { padding: 14px 18px; font-size: .9rem; font-weight: 500; color: var(--gray-dark); transition: color var(--transition); display: flex; align-items: center; gap: 4px; position: relative; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--red); }
.nav-link.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--red); }
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--white); border: 1px solid #eee; border-radius: var(--radius-sm); min-width: 200px; box-shadow: var(--shadow-md); z-index: 998; padding: 8px 0; }
.dropdown:hover .dropdown-menu { display: block; animation: fadeDown .2s ease; }
.dropdown-menu a { display: block; padding: 9px 18px; font-size: .88rem; color: var(--gray-dark); transition: background var(--transition), color var(--transition); }
.dropdown-menu a:hover { background: var(--gray-light); color: var(--red); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Hero Slider ── */
.hero-slider { position: relative; overflow: hidden; background: var(--black); }
.hero-slide { display: none; position: relative; min-height: 520px; align-items: center; }
.hero-slide.active { display: flex; animation: fadeIn .5s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero-content { position: relative; z-index: 2; padding: 60px 0; max-width: 600px; }
.hero-badge { display: inline-block; background: var(--red); color: var(--white); font-size: .75rem; font-weight: 700; letter-spacing: .1em; padding: 5px 14px; border-radius: 50px; margin-bottom: 18px; text-transform: uppercase; }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; color: var(--white); line-height: 1.1; margin-bottom: 16px; }
.hero-title span { color: var(--red); }
.hero-subtitle { color: rgba(255,255,255,.75); font-size: 1rem; margin-bottom: 28px; line-height: 1.7; }
.hero-subtitle span { color: var(--red); font-weight: 600; }
.hero-features { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-feat { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.85); font-size: .82rem; }
.hero-feat img { width: 32px; height: 32px; }
.btn-hero { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: var(--white); padding: 14px 32px; border-radius: 50px; font-weight: 700; font-size: 1rem; transition: background var(--transition), transform var(--transition), box-shadow var(--transition); }
.btn-hero:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,16,46,.4); }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: background var(--transition), width var(--transition); }
.hero-dot.active { background: var(--red); width: 24px; border-radius: 4px; }

/* ── Benefits Bar ── */
.benefits-bar { background: var(--white); box-shadow: var(--shadow-sm); padding: 22px 0; border-bottom: 1px solid #f0f0f0; }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit-item { display: flex; align-items: center; gap: 14px; padding: 4px 0; }
.benefit-icon { width: 44px; height: 44px; flex-shrink: 0; }
.benefit-text strong { display: block; font-size: .9rem; font-weight: 700; color: var(--black); }
.benefit-text span { font-size: .8rem; color: var(--gray-mid); }

/* ── Section Styles ── */
.section { padding: 60px 0; }
.section-alt { background: var(--gray-light); }
.promo-section { padding: 24px 0; }  /* banner promo necesita menos padding */
.section-header { text-align: center; margin-bottom: 40px; }
.section-tag { display: inline-block; color: var(--red); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--black); }
.section-title span { color: var(--red); }
.section-subtitle { color: var(--gray-mid); margin-top: 8px; font-size: .95rem; }

/* ── Categories ── */
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1; cursor: pointer; }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.category-card:hover img { transform: scale(1.08); }
.category-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%); display: flex; align-items: flex-end; padding: 16px; }
.category-name { color: var(--white); font-weight: 700; font-size: 1rem; }
.category-count { color: rgba(255,255,255,.7); font-size: .78rem; }

/* ── Product Cards ── */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow var(--transition), transform var(--transition); position: relative; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.product-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.badge-new { background: #22c55e; color: #fff; }
.badge-sale { background: var(--red); color: #fff; }
.badge-hot { background: #f97316; color: #fff; }
.product-img-wrap { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--gray-light); }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-actions-hover { position: absolute; bottom: -50px; left: 0; right: 0; display: flex; gap: 8px; padding: 10px; transition: bottom .3s ease; background: linear-gradient(to top, rgba(0,0,0,.4), transparent); }
.product-card:hover .product-actions-hover { bottom: 0; }
.btn-quick { flex: 1; background: var(--white); color: var(--black); padding: 8px; border-radius: var(--radius-sm); font-size: .82rem; font-weight: 600; text-align: center; transition: background var(--transition), color var(--transition); }
.btn-quick:hover { background: var(--red); color: var(--white); }
.product-body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: .75rem; color: var(--red); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.product-name { font-size: .95rem; font-weight: 700; color: var(--black); margin-bottom: 8px; line-height: 1.4; flex: 1; }
.product-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.stars i { color: #f59e0b; font-size: .8rem; }
.rating-count { font-size: .75rem; color: var(--gray-mid); }
.product-price { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.price-current { font-size: 1.3rem; font-weight: 900; color: var(--red); }
.price-original { font-size: .9rem; color: var(--gray-mid); text-decoration: line-through; }
.price-discount { background: var(--red); color: var(--white); font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 50px; }
.btn-add-cart { width: 100%; background: var(--black); color: var(--white); padding: 10px; border-radius: var(--radius-sm); font-weight: 700; font-size: .88rem; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background var(--transition); }
.btn-add-cart:hover { background: var(--red); }
.btn-buy-now { width: 100%; background: var(--red); color: var(--white); padding: 11px; border-radius: var(--radius-sm); font-weight: 700; font-size: .9rem; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background var(--transition), transform var(--transition); margin-top: 6px; }
.btn-buy-now:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-buy-now i { font-size: 1.1rem; }

/* ── Promo Banner ── */
.promo-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  width: 100%;
}
.promo-banner a {
  display: block;
  width: 100%;
  line-height: 0; /* elimina espacio fantasma debajo de img */
}
.promo-banner img {
  display: block;
  width: 100%;
  height: auto;  /* respeta las dimensiones naturales 1200x400 */
  max-height: 260px;
  object-fit: cover;
  object-position: center;
}

/* ── WhatsApp Float ── */
.whatsapp-float { position: fixed; bottom: 28px; right: 28px; z-index: 9999; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.whatsapp-bubble { background: var(--white); border-radius: 12px; padding: 10px 16px; box-shadow: var(--shadow-lg); max-width: 220px; }
.whatsapp-bubble strong { display: block; font-size: .85rem; font-weight: 700; color: var(--black); }
.whatsapp-bubble span { font-size: .75rem; color: var(--gray-mid); }
.whatsapp-btn { width: 58px; height: 58px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,.4); transition: transform var(--transition); flex-shrink: 0; }
.whatsapp-btn:hover { transform: scale(1.1); }
.whatsapp-btn img { width: 32px; height: 32px; filter: brightness(0) invert(1); }
.whatsapp-badge { position: absolute; top: -4px; right: -4px; background: var(--red); color: #fff; border-radius: 50%; width: 20px; height: 20px; font-size: .65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ── Footer ── */
.site-footer { background: var(--black); color: rgba(255,255,255,.75); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { height: 44px; margin-bottom: 16px; }
.footer-brand p { font-size: .88rem; line-height: 1.7; color: rgba(255,255,255,.6); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; transition: background var(--transition); }
.footer-social a:hover { background: var(--red); }
.footer-social img { width: 18px; height: 18px; filter: brightness(0.7); }
.footer-social a:hover img { filter: brightness(1); }
.footer-col h4 { font-size: .95rem; font-weight: 700; color: var(--white); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: .86rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-col ul a:hover { color: var(--red); }
.footer-bottom { padding: 20px 0; text-align: center; font-size: .8rem; color: rgba(255,255,255,.4); }

/* ── Buttons ── */
.btn-primary { background: var(--red); color: var(--white); padding: 12px 28px; border-radius: 50px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; transition: background var(--transition), transform var(--transition); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-outline { border: 2px solid var(--red); color: var(--red); padding: 10px 24px; border-radius: 50px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; transition: all var(--transition); }
.btn-outline:hover { background: var(--red); color: var(--white); }

/* ── Utilities ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.text-red { color: var(--red); }
.text-center { text-align: center; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

/* ── Loading Skeleton ── */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Mobile ── */
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.6rem; color: var(--black); padding: 4px; }

@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .top-bar-left { display: none; }
  .mobile-menu-btn { display: block; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .nav-inner { flex-direction: column; align-items: flex-start; }
  .nav-link { width: 100%; border-bottom: 1px solid #f0f0f0; }
  .hero-slide { min-height: 380px; }
  .hero-title { font-size: 2rem; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .whatsapp-bubble { display: none; }
  /* Banner promo móvil */
  .promo-banner { border-radius: var(--radius-md); }
  .promo-banner img { max-height: 130px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .header-btn span { display: none; }
}

