/* ============================================================
   EPICO INDUMENTARIA - styles.css
   Paleta: verde lima #39FF14, azul electrico #1E90FF, negro #0a0a0a
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:   #39FF14;
  --blue:    #1E90FF;
  --purple:  #a855f7;
  --black:   #0a0a0a;
  --surface: #111111;
  --card:    #1a1a1a;
  --border:  #2a2a2a;
  --text:    #f0f0f0;
  --muted:   #888888;
  --wapp:    #25D366;
  --radius:  12px;
  --header-h: 110px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- TYPOGRAPHY HELPERS ---- */
.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.hl-blue   { color: var(--blue); }
.hl-green  { color: var(--green); }
.hl-purple { color: var(--purple); }

/* ============================================================
   TICKER
   ============================================================ */
.ticker-wrap {
  background: var(--green);
  color: #000;
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
}
.ticker-track { display: flex; width: 100%; overflow: hidden; }
.ticker-content {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  animation: ticker-scroll 40s linear infinite;
  will-change: transform;
}
.ticker-content .sep { opacity: .4; font-size: .7rem; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  transition: height .35s cubic-bezier(.4,0,.2,1), box-shadow .35s;
}
.site-header.scrolled {
  height: 60px;
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
}
.logo-wrap { flex-shrink: 0; }
.logo-img {
  height: 100px;
  width: auto;
  mix-blend-mode: screen;
  transition: height .35s cubic-bezier(.4,0,.2,1);
}
.site-header.scrolled .logo-img {
  height: 48px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.main-nav a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .2s;
}
.main-nav a:hover { color: var(--text); }
.nav-ig { color: var(--muted) !important; transition: color .2s; }
.nav-ig:hover { color: #e1306c !important; }

.cart-toggle {
  position: relative;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  color: var(--text);
  transition: background .2s;
}
.cart-toggle:hover { background: var(--card); }
.cart-badge {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--green);
  color: #000;
  font-size: .65rem;
  font-weight: 800;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  transition: transform .2s;
}
.cart-badge.bump { transform: scale(1.4); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 8px;
  transition: background .2s;
}
.menu-toggle:hover { background: var(--card); }
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ============================================================
   CLIENT SELECTOR
   ============================================================ */
.client-selector-section {
  background: var(--surface);
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.selector-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: .02em;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 12px;
}
.selector-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
  max-width: 560px;
  margin: 0 auto 32px;
}
.selector-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.selector-card { cursor: pointer; }
.selector-card input[type="radio"] { display: none; }
.selector-card-inner {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color .2s, background .2s, transform .15s;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.selector-card-inner:hover {
  border-color: var(--blue);
  background: rgba(30,144,255,.06);
  transform: translateY(-2px);
}
.selector-card input:checked + .selector-card-inner {
  border-color: var(--blue);
  background: rgba(30,144,255,.1);
  box-shadow: 0 0 0 1px var(--blue);
}
.selector-icon { font-size: 2rem; }
.selector-card-inner h3 { font-size: 1rem; font-weight: 700; }
.selector-card-inner p  { font-size: .85rem; color: var(--muted); flex: 1; }

.selector-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--border);
  color: var(--muted);
  width: fit-content;
}
.selector-badge.discount-a {
  background: rgba(57,255,20,.15);
  color: var(--green);
}
.selector-badge.discount-b {
  background: rgba(57,255,20,.25);
  color: var(--green);
}

/* ============================================================
   HERO CAROUSEL
   ============================================================ */
.hero-section {
  position: relative;
  overflow: hidden;
  height: 520px;
}
.hero-slides { position: relative; height: 100%; }
.hero-slide {
  position: absolute;
  inset: 0;
  background: var(--slide-bg);
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}
.slide-tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.slide-content h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: .02em;
  margin-bottom: 20px;
}
.slide-content p {
  font-size: 1.05rem;
  color: rgba(240,240,240,.75);
  margin-bottom: 32px;
  max-width: 440px;
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  border-radius: 50px;
  transition: opacity .2s, transform .15s;
}
.btn-hero:hover { opacity: .88; transform: translateY(-1px); }
.btn-hero-green  { background: var(--green); color: #000; }
.btn-hero-purple { background: var(--purple); }

.slide-deco {
  position: absolute;
  right: -40px; top: 0; bottom: 0;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.deco-ring {
  position: absolute;
  border-radius: 50%;
  background: rgba(30,144,255,.1);
}
.deco-ring.r1 { width: 420px; height: 420px; }
.deco-ring.r2 { width: 280px; height: 280px; background: rgba(30,144,255,.06); }
.deco-word {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14rem;
  letter-spacing: -.02em;
  color: rgba(30,144,255,.05);
  user-select: none;
  position: absolute;
}

.slide-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  color: var(--text);
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.slide-arrow:hover { background: rgba(255,255,255,.18); }
.arrow-prev { left: 20px; }
.arrow-next { right: 20px; }

.slide-dots {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 10;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  transition: background .2s, transform .2s;
}
.dot.active {
  background: var(--blue);
  transform: scale(1.3);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-section { padding: 80px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: .02em;
  margin-bottom: 20px;
}
.about-text p { color: var(--muted); margin-bottom: 16px; font-size: .97rem; }
.about-text strong { color: var(--text); }

.btn-outline {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 28px;
  border: 2px solid var(--blue);
  color: var(--blue);
  font-weight: 700;
  border-radius: 50px;
  font-size: .9rem;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--blue); color: #fff; }

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pillar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color .2s;
}
.pillar:hover { border-color: var(--blue); }
.pillar-icon { font-size: 1.8rem; margin-bottom: 10px; }
.pillar h4 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.pillar p  { font-size: .82rem; color: var(--muted); }

/* ============================================================
   CATALOG
   ============================================================ */
.catalog-section { padding: 80px 0; background: var(--surface); }

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.catalog-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  letter-spacing: .03em;
}
.price-mode-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: .85rem;
}
.pill-icon { font-size: 1rem; }

.catalog-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
  transition: all .2s;
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* PRODUCT CARD */
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 8px 32px rgba(30,144,255,.12);
}
.product-card.hidden { display: none; }

.product-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f5f5f5;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.product-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  font-size: 3rem;
}
.product-placeholder span.label {
  font-size: .7rem;
  font-weight: 600;
  color: rgba(255,255,255,.3);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.product-img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform .35s;
}
.product-card:hover .product-img { transform: scale(1.06); }

/* Overlay oscuro en hover */
.product-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background .25s;
  z-index: 1;
  pointer-events: none;
}
.product-img-wrap:hover::before { background: rgba(0,0,0,.38); }

/* Ícono lupa en hover */
.product-img-wrap::after {
  content: '🔍';
  font-size: 2.4rem;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.6);
  z-index: 2;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.product-img-wrap:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.product-img-wrap { cursor: zoom-in; }

/* ---- LIGHTBOX ---- */
.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  cursor: zoom-out;
}
.img-lightbox.visible {
  opacity: 1;
  pointer-events: auto;
}
.img-lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
  transform: scale(.92);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  cursor: default;
}
.img-lightbox.visible img { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 42px; height: 42px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }

.product-info { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.product-sku { font-size: .7rem; color: var(--muted); font-weight: 600; letter-spacing: .06em; }
.product-name { font-size: .97rem; font-weight: 700; line-height: 1.3; }

.product-pricing { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price-original {
  font-size: .85rem;
  color: var(--muted);
  text-decoration: line-through;
}
.price-current { font-size: 1.15rem; font-weight: 800; color: var(--green); }
.discount-tag {
  font-size: .7rem;
  font-weight: 800;
  padding: 2px 8px;
  background: rgba(57,255,20,.15);
  color: var(--green);
  border-radius: 20px;
}

.saving-tag {
  font-size: .75rem;
  font-weight: 700;
  color: var(--green);
  background: rgba(57,255,20,.1);
  border: 1px solid rgba(57,255,20,.25);
  border-radius: 6px;
  padding: 3px 8px;
  width: fit-content;
}

.variant-group { display: flex; flex-direction: column; gap: 6px; }
.variant-group label { font-size: .75rem; color: var(--muted); font-weight: 600; }

.color-swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.color-swatch {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: transform .15s, border-color .15s;
  position: relative;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.active { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }

.size-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.size-btn {
  min-width: 34px; height: 30px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  transition: all .15s;
}
.size-btn:hover { border-color: var(--blue); color: var(--blue); }
.size-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.qty-control {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.qty-btn {
  width: 30px; height: 32px;
  color: var(--text);
  font-size: 1.1rem;
  transition: background .15s;
}
.qty-btn:hover { background: var(--border); }
.qty-val {
  width: 28px;
  text-align: center;
  font-size: .9rem;
  font-weight: 700;
}
.btn-add-cart {
  flex: 1;
  padding: 8px 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: .83rem;
  border-radius: 8px;
  transition: opacity .2s, transform .15s;
}
.btn-add-cart:hover { opacity: .88; transform: scale(1.01); }
.btn-add-cart:active { transform: scale(.97); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { padding: 80px 0; }
.contact-section h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  letter-spacing: .03em;
  margin-bottom: 32px;
}
.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
.location-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .2s;
}
.location-card:hover { border-color: var(--blue); }
.loc-icon { font-size: 2rem; margin-bottom: 12px; }
.location-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.loc-address { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.btn-map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--blue);
  color: #fff;
  font-size: .83rem;
  font-weight: 600;
  border-radius: 8px;
  transition: opacity .2s;
}
.btn-map:hover { opacity: .85; }

.contact-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-wapp-big, .btn-ig-big {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  transition: opacity .2s, transform .15s;
}
.btn-wapp-big:hover, .btn-ig-big:hover { opacity: .88; transform: translateY(-1px); }
.btn-wapp-big { background: var(--wapp); color: #fff; }
.btn-ig-big   { background: linear-gradient(135deg, #e1306c, #f77737, #405de6); color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo {
  height: 60px;
  width: auto;
  mix-blend-mode: screen;
  margin-bottom: 14px;
}
.footer-brand p { color: var(--muted); font-size: .88rem; }
.footer-nav h4, .footer-info h4 {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-nav a { display: block; color: var(--muted); font-size: .88rem; margin-bottom: 8px; transition: color .2s; }
.footer-nav a:hover { color: var(--text); }
.footer-info p { color: var(--muted); font-size: .88rem; margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  color: var(--muted);
  font-size: .82rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-dev a {
  color: var(--blue);
  font-weight: 600;
  transition: opacity .2s;
}
.footer-dev a:hover { opacity: .75; }

/* ============================================================
   CART SIDEBAR
   ============================================================ */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.cart-overlay.visible { opacity: 1; pointer-events: auto; }

.cart-sidebar {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 380px;
  max-width: 100vw;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.cart-sidebar.open { transform: translateX(0); }

.cart-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.cart-top h3 { font-size: 1.1rem; font-weight: 700; }
.cart-close-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 1rem;
  transition: background .2s, color .2s;
}
.cart-close-btn:hover { background: var(--card); color: var(--text); }

.cart-client-pill {
  margin: 12px 16px 0;
  padding: 6px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  width: fit-content;
}

.cart-body { flex: 1; overflow-y: auto; padding: 16px; }
.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  gap: 12px;
  color: var(--muted);
}
.cart-empty-state span { font-size: 3rem; }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-icon {
  width: 48px; height: 48px;
  background: var(--card);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-meta { font-size: .76rem; color: var(--muted); margin-top: 2px; }
.cart-item-price { font-size: .9rem; font-weight: 700; color: var(--green); margin-top: 4px; }
.cart-item-remove {
  width: 26px; height: 26px;
  border-radius: 6px;
  color: var(--muted);
  font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
  flex-shrink: 0;
}
.cart-item-remove:hover { background: rgba(255,50,50,.15); color: #ff5555; }

.cart-foot {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1rem;
}
.cart-total { color: var(--green); font-size: 1.2rem; }

.cart-saving-row {
  justify-content: space-between;
  font-size: .85rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(57,255,20,.08);
  border: 1px solid rgba(57,255,20,.2);
  border-radius: 8px;
  padding: 8px 12px;
}
.cart-saving-amount { font-weight: 800; }

.cart-min-warning {
  padding: 10px 14px;
  background: rgba(255,170,0,.1);
  border: 1px solid rgba(255,170,0,.3);
  border-radius: 8px;
  font-size: .82rem;
  color: #ffaa00;
  line-height: 1.5;
}

.cart-promo-banner {
  padding: 10px 14px;
  background: rgba(30,144,255,.1);
  border: 1px solid rgba(30,144,255,.3);
  border-radius: 8px;
  font-size: .82rem;
  color: var(--blue);
  line-height: 1.5;
  text-align: center;
}
.cart-promo-banner strong { color: var(--text); }

.btn-finalize {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--wapp);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  border-radius: 10px;
  width: 100%;
  transition: opacity .2s, transform .15s;
}
.btn-finalize:hover  { opacity: .88; transform: scale(1.01); }
.btn-finalize:active { transform: scale(.98); }
.btn-finalize:disabled { opacity: .4; pointer-events: none; }

/* ============================================================
   ORDER MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.modal-overlay.visible { opacity: 1; pointer-events: auto; }

.order-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(.95);
  transition: transform .3s;
}
.modal-overlay.visible .order-modal { transform: scale(1); }

.modal-close-btn {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 1rem;
  transition: background .2s;
}
.modal-close-btn:hover { background: var(--card); }

.order-modal h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.modal-sub { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }

.disclaimer-box {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255,170,0,.08);
  border: 1px solid rgba(255,170,0,.25);
  border-radius: 8px;
  margin-bottom: 24px;
}
.disclaimer-box span { font-size: 1.1rem; flex-shrink: 0; }
.disclaimer-box p { font-size: .82rem; color: rgba(240,240,240,.7); line-height: 1.5; }

.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.form-field input {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-size: .9rem;
  font-family: inherit;
  transition: border-color .2s;
  outline: none;
}
.form-field input:focus { border-color: var(--blue); }
.form-field input.error { border-color: #ff5555; }

.delivery-options { display: flex; gap: 12px; flex-wrap: wrap; }
.delivery-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px 16px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  transition: border-color .2s;
  flex: 1;
}
.delivery-opt input { display: none; }
.delivery-opt:has(input:checked) { border-color: var(--blue); background: rgba(30,144,255,.08); }

.btn-modal-submit { margin-top: 8px; }

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
#cartToast {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 400;
  background: var(--card);
  border: 1px solid var(--green);
  color: var(--text);
  font-size: .88rem;
  font-weight: 500;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 280px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
#cartToast.visible {
  opacity: 1;
  transform: translateY(0);
}
.toast-check {
  width: 22px; height: 22px;
  background: var(--green);
  color: #000;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 150;
  width: 56px; height: 56px;
  background: var(--wapp);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
}
.wapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.55);
}

/* ============================================================
   CURVA CERRADA — variantes en tarjeta de producto
   ============================================================ */
.variants-standard,
.variants-curva {
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.curva-info-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.curva-label-text {
  font-size: .72rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.curva-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.curva-color-chips { display: flex; gap: 5px; flex-wrap: wrap; }

.curva-color-chip {
  width: 16px; height: 16px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.curva-colors-names {
  font-size: .75rem;
  color: var(--text);
  font-weight: 500;
}

.curva-breakdown-row {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-family: 'Courier New', monospace;
  letter-spacing: .02em;
}

.curva-total-text { font-size: .72rem; color: var(--muted); }

.curva-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(57,255,20,.06);
  border: 1px solid rgba(57,255,20,.2);
  border-radius: 8px;
  padding: 8px 12px;
}

.curva-price-label { font-size: .78rem; color: var(--muted); font-weight: 600; }
.curva-price-value { font-size: 1rem; font-weight: 800; color: var(--green); }

.curva-qty-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.curva-qty-unit {
  font-size: .65rem;
  color: var(--muted);
  text-align: center;
}

.btn-add-curva {
  flex: 1;
  padding: 8px 12px;
  background: var(--green);
  color: #000;
  font-weight: 700;
  font-size: .83rem;
  border-radius: 8px;
  transition: opacity .2s, transform .15s;
}
.btn-add-curva:hover  { opacity: .88; transform: scale(1.01); }
.btn-add-curva:active { transform: scale(.97); }

/* ============================================================
   CART — cantidad editable inline
   ============================================================ */
.cart-item { align-items: center; }

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 8px;
}

.cart-qty-control {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.cart-qty-btn {
  width: 26px; height: 26px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.cart-qty-btn:hover { background: var(--border); }

.cart-qty-val {
  width: 28px;
  text-align: center;
  font-size: .85rem;
  font-weight: 700;
}

.cart-qty-unit-label {
  font-size: .62rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .selector-cards { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --header-h: 80px; }
  .logo-img { height: 68px; }
  .site-header.scrolled .logo-img { height: 44px; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open { display: flex; }
  .menu-toggle { display: flex; }
  .hero-section { height: 460px; }
  .slide-content h1 { font-size: 3rem; }
  .slide-deco { display: none; }
  .locations-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-sidebar { width: 100%; }
}

@media (max-width: 480px) {
  :root { --header-h: 70px; }
  .logo-img { height: 56px; }
  .products-grid { grid-template-columns: 1fr; gap: 16px; }
  .catalog-header { flex-direction: column; align-items: flex-start; }
  .contact-ctas { flex-direction: column; }
  .btn-wapp-big, .btn-ig-big { width: 100%; justify-content: center; }
  .hero-section { height: 400px; }
  .selector-cards { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr 1fr; }
}
