/* ── Reset & Variables ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --accent:  #27e0b0;
  --accent2: #1bc99c;
  --bg:      #ffffff;
  --bg2:     #f7f7f5;
  --text:    #0f0f0f;
  --muted:   #6b6b6b;
  --border:  #e4e4e0;
  --sans:    'Syne', sans-serif;
  --mono:    'DM Mono', monospace;
  --radius:  12px;
}
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── HEADER ────────────────────────────────────────────── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 6%;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: padding .3s;
}
header.sticky { padding: 12px 6%; }
.logo-header { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 34px; height: 34px; background: var(--accent);
  border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-name { font-size: 16px; font-weight: 800; letter-spacing: -.3px; }
nav { display: flex; align-items: center; gap: 28px; }
nav a { font-size: 14px; font-weight: 600; color: var(--muted); transition: color .2s; position: relative; }
nav a::after { content:''; position:absolute; bottom:-3px; left:0; width:0; height:1.5px; background:var(--accent); transition:width .25s; }
nav a:hover { color: var(--text); }
nav a:hover::after { width: 100%; }
.nav-cta {
  font-size: 13px; font-weight: 700;
  padding: 9px 22px; border-radius: 8px;
  background: var(--accent); color: #0a0a0a;
  transition: opacity .2s, transform .15s;
}
.nav-cta::after { display: none; }
.nav-cta:hover { opacity: .88; transform: scale(1.03); }
.nav-cta:hover { opacity: .88; }

/* ── HEADER RIGHT ──────────────────────────────────────── */
.header-right { display: flex; align-items: center; gap: 14px; }
.menu-icon { display: none; font-size: 26px; cursor: pointer; color: var(--text); }
.carrito-btn {
  position: relative; cursor: pointer;
  width: 38px; height: 38px; border-radius: 9px;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--text);
  transition: border-color .2s, background .2s;
}
.carrito-btn:hover { border-color: var(--accent); background: rgba(39,224,176,.06); }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: #0a0a0a;
  font-size: 10px; font-weight: 700; font-family: var(--mono);
  display: flex; align-items: center; justify-content: center;
}

/* ── MODAL CARRITO ─────────────────────────────────────── */
.modal-overlay-cart {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  align-items: flex-start; justify-content: flex-end;
}
.modal-overlay-cart[style*="block"] { display: flex; }
.modal-cart {
  background: var(--bg); width: 100%; max-width: 520px;
  height: 100vh; display: flex; flex-direction: column;
  box-shadow: -4px 0 32px rgba(0,0,0,.15);
}
.modal-cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px; border-bottom: 1px solid var(--border);
}
.modal-cart-header h2 { font-size: 18px; font-weight: 800; }
.modal-close { font-size: 28px; cursor: pointer; color: var(--muted); line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-cart-body { flex: 1; overflow-y: auto; padding: 16px 28px; }
#lista-carrito { width: 100%; border-collapse: collapse; font-size: 13px; }
#lista-carrito th { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; color: var(--muted); padding: 8px 6px; text-align: left; border-bottom: 1px solid var(--border); }
#lista-carrito td { padding: 12px 6px; border-bottom: 1px solid var(--border); vertical-align: middle; }
#lista-carrito td img { width: 52px; height: 52px; object-fit: contain; border-radius: 6px; background: var(--bg2); padding: 4px; }
.button-container { display: flex; gap: 4px; }
.button-container button { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg2); cursor: pointer; font-size: 13px; font-weight: 700; transition: background .15s; }
.button-container button:hover { background: var(--border); }
.modal-cart-footer { padding: 20px 28px; border-top: 1px solid var(--border); }
.cart-total { font-size: 16px; margin-bottom: 14px; }
.cart-total strong { color: var(--accent); font-family: var(--mono); font-size: 20px; }
.cart-actions { display: flex; gap: 10px; }
.btn-ghost-cart { flex: 1; padding: 10px; border-radius: 8px; border: 1.5px solid var(--border); background: transparent; font-family: var(--sans); font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted); transition: border-color .2s; }
.btn-ghost-cart:hover { border-color: var(--text); color: var(--text); }
.btn-wa-cart { flex: 2; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 8px; background: #25D366; color: #fff; border: none; font-family: var(--sans); font-size: 13px; font-weight: 700; cursor: pointer; transition: opacity .2s; }
.btn-wa-cart:hover { opacity: .88; }
.btn-wa-cart i { font-size: 18px; }

/* ── HERO ──────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: url('../img/Home.jpg') center/cover no-repeat;
  position: relative; display: flex; align-items: center;
  padding: 100px 6% 60px; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(255,255,255,.92) 45%, rgba(255,255,255,.4) 100%);
}
.hero-deco {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  width: 380px; height: 380px;
  border: 1.5px solid rgba(39,224,176,.2); border-radius: 50%; pointer-events: none;
}
.hero-deco::before { content:''; position:absolute; inset:30px; border:1px solid rgba(39,224,176,.15); border-radius:50%; }
.hero-deco::after  { content:''; position:absolute; inset:60px; border:1px solid rgba(39,224,176,.1);  border-radius:50%; }
.hero-content { position: relative; max-width: 560px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; color: var(--accent2);
  margin-bottom: 18px; background: rgba(39,224,176,.1); padding: 6px 14px; border-radius: 20px;
}
.hero-badge-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 800; line-height: 1; letter-spacing: -2px; margin-bottom: 8px; }
.hero h1 span { color: var(--accent); }
.hero-sub { font-size: 17px; font-weight: 600; color: var(--muted); margin-bottom: 16px; }
.hero p { font-size: 15px; color: #444; line-height: 1.7; max-width: 460px; margin-bottom: 28px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 9px; background: var(--accent); color: #0a0a0a;
  font-family: var(--sans); font-size: 14px; font-weight: 700; transition: opacity .2s, transform .15s;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 9px; border: 1.5px solid var(--border);
  font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--muted);
  transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--text); }
.hero-social { display: flex; gap: 10px; }
.hero-social a {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border); font-size: 17px; color: var(--muted);
  transition: border-color .2s, color .2s, background .2s;
}
.hero-social a:hover { border-color: var(--accent); color: var(--accent); background: rgba(39,224,176,.06); }

/* ── PRODUCTOS ─────────────────────────────────────────── */
.products-section { padding: 80px 6%; position: relative; }
.products-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 40px; gap: 20px; flex-wrap: wrap;
}
.section-label { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--accent); margin-bottom: 8px; }
.products-title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -1px; line-height: 1; }
.search-wrap { position: relative; min-width: 260px; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--muted); pointer-events: none; }
.search-input {
  width: 100%; padding: 10px 14px 10px 38px;
  border: 1.5px solid var(--border); border-radius: 9px;
  font-family: var(--sans); font-size: 13px; color: var(--text);
  background: var(--bg2); outline: none; transition: border-color .2s;
}
.search-input:focus { border-color: var(--accent); background: var(--bg); }

/* ── CARRUSEL ──────────────────────────────────────────── */
.carousel-wrap { overflow: hidden; }
.carousel { position: relative; }
.carousel-container {
  display: flex; gap: 16px;
  align-items: flex-start;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.carousel-container.grid-mode { flex-wrap: wrap; transform: none !important; }

/* ── PRODUCTO ──────────────────────────────────────────── */
.product {
  display: flex; flex-direction: column;
  height: 360px; position: relative; overflow: visible;
  min-width: 200px; max-width: 200px; flex-shrink: 0;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius);
}
.product:hover { border-color: var(--accent); transform: translateY(-3px); }
.product-img {
  height: 180px; min-height: 180px; background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden; padding: 16px; flex-shrink: 0;
}
.product-img img { max-height: 148px; width: auto; max-width: 100%; object-fit: contain; transition: transform .25s; }
.product-img:hover img { transform: scale(1.05); }
.product-txt {
  flex: 1; display: flex; flex-direction: column;
  padding: 14px 16px; gap: 0; overflow: hidden;
}
.product-cat { font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px; color: var(--accent); font-weight: 500; margin-bottom: 4px; }
.product-txt h3 {
  font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--text);
  height: 34px; overflow: hidden; margin-bottom: 8px;
}
.product-colors {
  display: flex; flex-direction: row; align-items: center;
  gap: 6px; min-height: 22px;
}
.product-colors-dots {
  display: flex; flex-wrap: nowrap; gap: 6px;
  align-items: center; height: 22px;
}
.color-label {
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  height: 0; overflow: visible; line-height: 14px;
}
.color-dot {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,.15);
  cursor: pointer; flex-shrink: 0;
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
}
.color-dot:hover { transform: scale(1.35); box-shadow: 0 2px 8px rgba(0,0,0,.22); }
.color-dot::before, .color-dot::after { display: none; }
.product-footer { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.precio { font-size: 15px; font-weight: 800; color: var(--text); font-family: var(--mono); }
.agregar-carrito {
  display: block; width: 100%; text-align: center; padding: 10px;
  background: var(--accent); color: #0a0a0a; border-radius: 7px;
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  transition: opacity .2s; cursor: pointer; margin-top: 6px;
}
.agregar-carrito:hover { opacity: .85; }

/* ── BOTONES CARRUSEL ──────────────────────────────────── */
.carousel-prev, .carousel-next {
  position: absolute; top: 305px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; z-index: 100;
  transition: border-color .2s, background .2s; box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.carousel-prev { left: 80px; }
.carousel-next { right: 80px; }
.carousel-prev:hover, .carousel-next:hover { border-color: var(--accent); background: rgba(39,224,176,.06); }

/* ── OVERLAY imagen ────────────────────────────────────── */
#overlay {
  display: none; position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,.88); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; cursor: pointer;
}
#overlay[style*="flex"] { display: flex; }
#overlay img { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: var(--radius); }

/* ── CONTACTO ──────────────────────────────────────────── */
.contacto {
  padding: 80px 6%; background: var(--text);
  position: relative; overflow: hidden;
}
.contacto::before { content:''; position:absolute; top:-60px; right:-60px; width:300px; height:300px; border:1px solid rgba(39,224,176,.15); border-radius:50%; }
.contacto-inner { display:grid; grid-template-columns:1fr auto; align-items:center; gap:48px; position:relative; }
.contacto-label { font-family:var(--mono); font-size:11px; letter-spacing:2px; color:var(--accent); margin-bottom:14px; }
.contacto h2 { font-size:clamp(1.8rem,3.5vw,2.8rem); font-weight:800; letter-spacing:-1px; color:#fff; line-height:1.15; margin-bottom:12px; }
.contacto h2 span { color:var(--accent); }
.contacto p { font-size:14px; color:rgba(255,255,255,.5); line-height:1.6; }
.btn-wa {
  display:inline-flex; align-items:center; gap:10px;
  padding:14px 28px; border-radius:9px; background:#25D366; color:#fff;
  font-family:var(--sans); font-size:14px; font-weight:700; white-space:nowrap;
  transition:opacity .2s, transform .15s; flex-shrink:0;
}
.btn-wa:hover { opacity:.9; transform:translateY(-2px); }
.btn-wa i { font-size:20px; }

/* ── FOOTER ────────────────────────────────────────────── */
footer {
  background: #0a0a0a; padding: 40px 6%;
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.footer-logo { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.footer-logo-mark { width:28px; height:28px; background:var(--accent); border-radius:7px; display:flex; align-items:center; justify-content:center; }
.footer-name { font-size:14px; font-weight:800; color:#fff; }
.footer-info { display:flex; gap:40px; flex-wrap:wrap; }
.footer-col { display:flex; flex-direction:column; gap:6px; }
.footer-col-title { font-family:var(--mono); font-size:10px; letter-spacing:1.5px; color:var(--accent); margin-bottom:4px; }
.footer-col p { font-size:12px; color:#555; line-height:1.6; max-width:200px; }
.footer-col a { font-size:12px; color:#555; transition:color .2s; }
.footer-col a:hover { color:var(--accent); }
.footer-bottom { background:#0a0a0a; padding:16px 6%; border-top:1px solid #1a1a1a; font-size:12px; color:#444; font-family:var(--mono); text-align:center; }

/* ── BOTÓN OFERTAS ─────────────────────────────────────── */
.info-btn {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  background: var(--accent); color: #0a0a0a;
  border: none; border-radius: 9px; padding: 10px 20px;
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  cursor: pointer; box-shadow: 0 4px 16px rgba(39,224,176,.35);
  transition: opacity .2s, transform .15s;
}
.info-btn:hover { opacity: .88; transform: translateY(-2px); }

/* ── MODAL OFERTAS ─────────────────────────────────────── */
.modal-overlay-offer {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.65); backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
}
.modal-overlay-offer[style*="flex"] { display: flex; }
.modal-offer {
  background: var(--text); border-radius: 20px; padding: 44px 48px;
  max-width: 460px; width: 90%; position: relative; text-align: center;
  border: 1px solid rgba(255,255,255,.08);
}
.modal-offer .modal-close {
  position: absolute; top: 18px; right: 22px;
  font-size: 26px; cursor: pointer; color: rgba(255,255,255,.4); line-height: 1; transition: color .2s;
}
.modal-offer .modal-close:hover { color: #fff; }
.modal-offer h2 { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 28px; letter-spacing: -.4px; }
.countdown { display: flex; justify-content: center; gap: 12px; margin-bottom: 28px; }
.timer {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: rgba(255,255,255,.06); border-radius: 12px; padding: 14px 16px; min-width: 72px;
  border: 1px solid rgba(255,255,255,.08);
}
.timer div { font-size: 30px; font-weight: 800; font-family: var(--mono); color: var(--accent); line-height: 1; }
.timer span { font-size: 10px; font-family: var(--mono); color: rgba(255,255,255,.35); letter-spacing: 1.5px; text-transform: uppercase; }
.modal-offer p { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.65; max-width: 340px; margin: 0 auto; }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
  nav { display: none; }
  .menu-icon { display: block; }
  .contacto-inner { grid-template-columns: 1fr; gap: 28px; }
  .btn-wa { width: 100%; justify-content: center; }
}
@media (max-width: 768px) {
  .products-header { flex-direction: column; align-items: flex-start; }
  .search-wrap { width: 100%; min-width: unset; }
  .modal-cart { max-width: 100%; }
  .footer-info { flex-direction: column; gap: 24px; }
}
@media (max-width: 600px) {
  header { padding: 14px 4%; }
  .hero { padding: 90px 4% 52px; }
  .hero-deco { display: none; }
  .hero h1 { font-size: 2.6rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
  .products-section { padding: 56px 4%; }
  .product { min-width: 160px; max-width: 160px; }
  .product-img { height: 140px; }
  .contacto { padding: 64px 4%; }
  footer { padding: 32px 4%; }
  .info-btn { bottom: 16px; right: 16px; }
}
@media (max-width: 380px) {
  .product { min-width: 140px; max-width: 140px; }
  .product-img { height: 120px; }
}