/* ============================================================
   ABA SHOP – styles.css
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --primary:    #0A2540;
  --accent:     #FFC107;
  --accent-dark:#e0a800;
  --white:      #ffffff;
  --gray-50:    #f8f9fb;
  --gray-100:   #eef0f4;
  --gray-300:   #c8cdd8;
  --gray-500:   #7a8494;
  --gray-700:   #3d4452;
  --text:       #1a2030;
  --wa:         #25D366;
  --wa-dark:    #1da851;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 4px 24px rgba(10,37,64,.10);
  --shadow-md:  0 8px 40px rgba(10,37,64,.14);
  --transition: .22s ease;
  --header-h:   68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; }
img { display: block; width: 100%; height: auto; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--dark { background: var(--primary); color: var(--white); }
.section--gray { background: var(--gray-50); }

/* ---------- Section Header ---------- */
.section__header { text-align: center; margin-bottom: 48px; }
.section__badge {
  display: inline-block; background: rgba(255,193,7,.15); color: var(--accent-dark);
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 20px; margin-bottom: 12px;
}
.section--dark .section__badge { background: rgba(255,193,7,.2); color: var(--accent); }
.section__title { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; color: var(--primary); line-height: 1.2; margin-bottom: 12px; }
.section--dark .section__title { color: var(--white); }
.section__sub { color: var(--gray-500); font-size: 1rem; max-width: 520px; margin: 0 auto; }
.section--dark .section__sub { color: rgba(255,255,255,.65); }
.section__cta-wrap { text-align: center; margin-top: 44px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .9rem; font-weight: 600; padding: 11px 22px;
  border-radius: 8px; transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--primary); }
.btn--primary:hover { background: var(--accent-dark); box-shadow: 0 4px 16px rgba(255,193,7,.45); }
.btn--ghost { background: rgba(255,255,255,.12); color: var(--white); border: 1.5px solid rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.22); }
.btn--outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn--outline:hover { background: var(--primary); color: var(--white); }
.btn--outline-light { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.6); }
.btn--outline-light:hover { background: rgba(255,255,255,.1); }
.btn--wa { background: var(--wa); color: var(--white); width: 100%; justify-content: center; padding: 11px 16px; border-radius: var(--radius-sm); font-size: .85rem; }
.btn--wa:hover { background: var(--wa-dark); box-shadow: 0 4px 16px rgba(37,211,102,.4); }
.btn--sm { padding: 8px 16px; font-size: .82rem; width: auto; }
.btn--lg { padding: 14px 28px; font-size: 1rem; }

/* ---------- TOP BAR ---------- */
.topbar { background: var(--primary); color: rgba(255,255,255,.88); font-size: .8rem; text-align: center; padding: 9px 20px; }
.topbar a { color: var(--accent); font-weight: 600; }
.topbar a:hover { text-decoration: underline; }

/* ---------- HEADER ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 1px 0 var(--gray-100);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 700; color: var(--primary); flex-shrink: 0; }
.logo strong { color: var(--accent-dark); }
.logo--light { color: var(--white); }
.logo--light strong { color: var(--accent); }

/* Nav */
.nav { flex: 1; }
.nav__list { display: flex; gap: 4px; justify-content: center; }
.nav__link { font-size: .88rem; font-weight: 500; color: var(--gray-700); padding: 6px 12px; border-radius: 6px; transition: color var(--transition), background var(--transition); }
.nav__link:hover { color: var(--primary); background: var(--gray-50); }

/* Header actions */
.header__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--primary); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { background: linear-gradient(135deg, #0A2540 0%, #0d3060 60%, #0A2540 100%); color: var(--white); padding: 80px 0 60px; position: relative; overflow: hidden; min-height: 92vh; display: flex; align-items: center; }
.hero__bg-shape { position: absolute; right: -10%; bottom: -20%; width: 60%; height: 90%; background: radial-gradient(ellipse, rgba(255,193,7,.08) 0%, transparent 70%); pointer-events: none; }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero__content { display: flex; flex-direction: column; gap: 20px; }

.badge { display: inline-flex; align-items: center; background: rgba(255,193,7,.15); color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; border: 1px solid rgba(255,193,7,.3); width: fit-content; }

.hero__title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.15; }
.word-wrap { display: inline-block; overflow: hidden; vertical-align: bottom; }
.rotating-word { display: inline-block; color: var(--accent); transition: transform .4s ease, opacity .4s ease; }
.rotating-word.exit { transform: translateY(-100%); opacity: 0; }
.rotating-word.enter { transform: translateY(100%); opacity: 0; }

.hero__subtitle { font-size: 1.05rem; color: rgba(255,255,255,.75); line-height: 1.65; max-width: 480px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 32px; padding-top: 8px; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.5rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat span { font-size: .78rem; color: rgba(255,255,255,.6); margin-top: 2px; }

/* Collage */
.hero__collage { display: flex; justify-content: center; align-items: center; }
.collage { position: relative; width: 340px; height: 340px; }
.collage__main { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 240px; height: 240px; border-radius: 20px; box-shadow: var(--shadow-md); object-fit: cover; animation: float 4s ease-in-out infinite; }
.collage__sm { position: absolute; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.collage__sm--a { width: 120px; height: 120px; top: 0; right: 0; animation: float 4s ease-in-out infinite .8s; }
.collage__sm--b { width: 100px; height: 100px; bottom: 10px; left: 10px; animation: float 4s ease-in-out infinite 1.6s; }
.collage__badge { position: absolute; bottom: 30px; right: -10px; background: var(--white); color: var(--primary); font-size: .8rem; font-weight: 700; padding: 8px 16px; border-radius: 20px; box-shadow: var(--shadow); white-space: nowrap; }

@keyframes float { 0%,100% { transform: translate(-50%,-50%) translateY(0); } 50% { transform: translate(-50%,-50%) translateY(-10px); } }

/* ---------- BRANDS ---------- */
.brands { padding: 36px 0; border-bottom: 1px solid var(--gray-100); }
.brands__label-wrap { margin-bottom: 20px; }
.brands__label { text-align: center; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--gray-500); }
.brands__track { overflow: hidden; }
.brands__list { display: flex; gap: 28px; align-items: center; animation: scroll-brands 22s linear infinite; width: max-content; }
.brand-logo { flex-shrink: 0; opacity: .7; transition: opacity var(--transition); }
.brand-logo:hover { opacity: 1; }
@keyframes scroll-brands { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------- PRODUCTS GRID ---------- */
.products__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.product-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-100); overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-card__img-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.product-card__img-wrap img { width: 100%; height: 100%; object-fit: contain; background: #fff; transition: transform .4s ease; }
.product-card:hover .product-card__img-wrap img { transform: scale(1.05); }
.product-card__tag { position: absolute; top: 12px; left: 12px; background: var(--accent); color: var(--primary); font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: .05em; }
.product-card__tag--hot { background: #ff4757; color: #fff; }
.product-card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-dark); }
.product-card__body h3 { font-size: .97rem; font-weight: 700; color: var(--primary); line-height: 1.3; }
.product-card__price-row { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.price { font-size: 1.25rem; font-weight: 800; color: var(--primary); }
.unit { font-size: .78rem; color: var(--gray-500); }
.product-card__min { font-size: .75rem; color: var(--gray-500); }
.product-card__body .btn--wa { margin-top: auto; }

/* ---------- BEST SELLERS ---------- */
.bs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.bs-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; transition: transform var(--transition), background var(--transition); }
.bs-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); }
.bs-card__img { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.bs-card__img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.bs-card__rank { position: absolute; top: 10px; right: 10px; background: var(--accent); color: var(--primary); font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 4px; }
.bs-card__body { padding: 14px; }
.bs-card__body h3 { font-size: .9rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.bs-price { font-size: 1rem; font-weight: 800; color: var(--accent); margin-bottom: 10px; }
.bs-price span { font-size: .75rem; font-weight: 400; color: rgba(255,255,255,.5); }

/* ---------- CATEGORIES ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/2; display: block; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover img { transform: scale(1.07); }
.cat-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,37,64,.85) 0%, rgba(10,37,64,.3) 100%); transition: background var(--transition); }
.cat-card:hover .cat-card__overlay { background: linear-gradient(to top, rgba(10,37,64,.92) 0%, rgba(10,37,64,.45) 100%); }
.cat-card__content { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; color: var(--white); text-align: center; }
.cat-card__icon { display: inline-flex; align-items: center; justify-content: center; background: rgba(255,193,7,.2); border: 1.5px solid rgba(255,193,7,.4); color: var(--accent); border-radius: 50%; width: 52px; height: 52px; margin-bottom: 10px; transition: background var(--transition); }
.cat-card:hover .cat-card__icon { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.cat-card__content h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 4px; }
.cat-card__content p { font-size: .8rem; color: rgba(255,255,255,.7); }

/* ---------- BENEFITS ---------- */
.benefits .section__header { margin-bottom: 56px; }
.benefit-block { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 80px; }
.benefit-block:last-child { margin-bottom: 0; }
.benefit-block--reverse { direction: rtl; }
.benefit-block--reverse > * { direction: ltr; }
.benefit-block__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3; }
.benefit-block__img img { width: 100%; height: 100%; object-fit: cover; }
.benefit-block__text { display: flex; flex-direction: column; gap: 16px; }
.benefit-block__text h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 800; color: var(--primary); line-height: 1.25; }
.benefit-block__text p { color: var(--gray-500); line-height: 1.7; }
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--gray-700); }

/* ---------- TESTIMONIOS ---------- */
.carousel { position: relative; overflow: hidden; padding: 0 48px; }
.carousel__track { display: flex; gap: 24px; transition: transform .45s ease; }
.testi-card {
  flex: 0 0 calc(33.333% - 16px);
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testi-card__stars { color: var(--accent); font-size: 1.1rem; letter-spacing: 2px; }
.testi-card__text { color: var(--gray-700); font-size: .93rem; line-height: 1.7; flex: 1; }
.testi-card__author { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.testi-card__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800; flex-shrink: 0;
}
.testi-card__author strong { display: block; font-size: .92rem; color: var(--primary); }
.testi-card__author span { font-size: .78rem; color: var(--gray-500); }

.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); border: 1.5px solid var(--gray-300);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: background var(--transition), border-color var(--transition);
  z-index: 2;
}
.carousel__arrow:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.carousel__arrow--prev { left: 0; }
.carousel__arrow--next { right: 0; }

.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.carousel__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gray-300); border: none; padding: 0;
  cursor: pointer; transition: background var(--transition), transform var(--transition);
}
.carousel__dot.active { background: var(--primary); transform: scale(1.3); }

/* ---------- FOOTER ---------- */
.footer { background: var(--primary); color: rgba(255,255,255,.75); padding: 64px 0 0; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 48px; padding-bottom: 56px; }
.footer__brand p { font-size: .88rem; line-height: 1.7; margin-top: 16px; margin-bottom: 20px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: rgba(255,255,255,.08); border-radius: 8px; color: rgba(255,255,255,.75); transition: background var(--transition), color var(--transition); }
.footer__social a:hover { background: var(--accent); color: var(--primary); }
.footer__col h4 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--white); margin-bottom: 16px; }
.footer__col ul li + li { margin-top: 10px; }
.footer__col a { font-size: .88rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer__col a:hover { color: var(--accent); }
.footer__newsletter h4 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--white); margin-bottom: 10px; }
.footer__newsletter p { font-size: .85rem; margin-bottom: 16px; }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-form input { flex: 1; min-width: 140px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1.5px solid rgba(255,255,255,.2); background: rgba(255,255,255,.07); color: var(--white); font-size: .88rem; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form input:focus { outline: none; border-color: var(--accent); }
.newsletter-ok { display: none; color: var(--accent); font-size: .85rem; margin-top: 8px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.footer__bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer__bottom p { font-size: .8rem; }
.footer__bottom a { color: var(--accent); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  border-radius: 50px;
  padding: 14px 20px 14px 16px;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  font-size: .88rem;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 32px rgba(37,211,102,.55);
}
.wa-float__label { white-space: nowrap; }

/* Pulso */
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: #25D366;
  animation: wa-pulse 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: .6; }
  70%  { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}

@media (max-width: 480px) {
  .wa-float { bottom: 18px; right: 18px; padding: 13px; border-radius: 50%; }
  .wa-float__label { display: none; }
}

/* ---------- Fade-in animations ---------- */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .bs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .section { padding: 52px 0; }

  /* Header mobile */
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--gray-100);
    padding: 16px 20px; box-shadow: var(--shadow);
    transform: translateY(-110%); transition: transform .3s ease;
    z-index: 99;
  }
  .nav.open { transform: translateY(0); }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__link { display: block; padding: 10px 14px; font-size: .95rem; }
  .hamburger { display: flex; }
  .header__actions .btn--primary { font-size: .78rem; padding: 9px 14px; }

  /* Hero */
  .hero { min-height: auto; padding: 60px 0 50px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero__content { align-items: center; }
  .hero__subtitle { max-width: 100%; }
  .hero__ctas { justify-content: center; }
  .hero__stats { justify-content: center; gap: 24px; }
  .hero__collage { display: none; }

  /* Products */
  .products__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Best sellers */
  .bs-grid { grid-template-columns: repeat(2, 1fr); }

  /* Categories */
  .cat-grid { grid-template-columns: 1fr; gap: 16px; }
  .cat-card { aspect-ratio: 16/7; }

  /* Benefits */
  .benefit-block { grid-template-columns: 1fr; gap: 28px; direction: ltr !important; }
  .benefit-block--reverse .benefit-block__img { order: -1; }

  /* Testimonials */
  .testi-card { flex: 0 0 calc(100% - 0px); }
  .carousel__arrow--prev { left: -4px; }
  .carousel__arrow--next { right: -4px; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .products__grid { grid-template-columns: 1fr; }
  .bs-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom .container { flex-direction: column; text-align: center; }
  .hero__stats { gap: 16px; }
  .stat strong { font-size: 1.25rem; }
  .hero__ctas { flex-direction: column; align-items: center; }
  .benefit-block__text .btn { align-self: flex-start; }
}

@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .hero__title { font-size: 1.75rem; }
  .section__title { font-size: 1.4rem; }
  .hero__ctas .btn--lg { padding: 12px 20px; font-size: .9rem; }
}
