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

:root {
  --green: #4caf50;
  --green-dim: #388e3c;
  --green-glow: rgba(76, 175, 80, 0.3);
  --bg: #0d0d0d;
  --bg2: #141414;
  --bg3: #1a1a1a;
  --border: rgba(76, 175, 80, 0.22);
  --text: #e8e8e8;
  --text-muted: #888;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.brand-name .dot { color: var(--green); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--green); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.cart-btn {
  position: relative;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0 12px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s, color 0.2s;
}

.cart-btn:hover { border-color: var(--green); color: var(--green); }

.cart-count {
  background: var(--green);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CART SIDEBAR */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
}

.cart-overlay.open { display: block; }

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 360px;
  height: 100vh;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  z-index: 201;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open { right: 0; }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cart-header h3 { font-size: 1rem; font-weight: 600; }

.cart-header button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-empty { color: var(--text-muted); font-size: 0.9rem; text-align: center; margin-top: 2rem; }

.cart-item {
  display: flex;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  gap: 0.8rem;
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-price { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.qty-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.qty-btn:hover { border-color: var(--green); color: var(--green); }

.qty-num {
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.cart-item-subtotal {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
  min-width: 70px;
  text-align: right;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
}

.cart-footer {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid var(--border);
}

.cart-total {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.cart-total span { color: var(--green); }

/* HERO */
.hero {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 4rem;
  gap: 2rem;
  background:
    radial-gradient(ellipse 55% 65% at 72% 52%, rgba(76,175,80,0.13) 0%, rgba(76,175,80,0.04) 45%, transparent 70%),
    radial-gradient(ellipse 30% 30% at 72% 52%, rgba(76,175,80,0.08) 0%, transparent 60%);
}

.hero-content { max-width: 540px; }

.hero-badge {
  display: inline-block;
  background: rgba(57,230,0,0.1);
  border: 1px solid var(--border);
  color: var(--green);
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  letter-spacing: -1px;
}

.highlight { color: var(--green); }

.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  flex-shrink: 0;
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
}

.hero-logo-wrap {
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-glow 3s ease-in-out infinite;
}

.hero-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-house {
  filter: none;
  animation: none;
}

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(76,175,80,0.4)) drop-shadow(0 0 40px rgba(76,175,80,0.18)); }
  50% { filter: drop-shadow(0 0 35px rgba(76,175,80,0.75)) drop-shadow(0 0 70px rgba(76,175,80,0.35)); }
}

.floating-badge {
  position: absolute;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
  animation: float 3s ease-in-out infinite;
}

.badge-1 { top: 20px; right: -20px; animation-delay: 0s; }
.badge-2 { top: 50%; right: -40px; animation-delay: 0.8s; }
.badge-3 { bottom: 30px; right: -10px; animation-delay: 1.6s; }

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

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: var(--green);
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.btn-primary:hover {
  background: #66bb6a;
  box-shadow: 0 0 20px var(--green-glow);
  transform: translateY(-1px);
}

.btn-primary.full-width { width: 100%; text-align: center; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--green);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid var(--green);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-outline:hover {
  background: rgba(57,230,0,0.08);
  box-shadow: 0 0 15px var(--green-glow);
}

.btn-outline.small { padding: 8px 16px; font-size: 0.8rem; }

/* SECTIONS */
.section { padding: 5rem 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 2.5rem;
  letter-spacing: -0.5px;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--green);
  margin-top: 8px;
  border-radius: 2px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.section-header .section-title { margin-bottom: 0; }

/* CATEGORIES */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.category-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.category-card:hover {
  border-color: var(--green);
  background: rgba(57,230,0,0.05);
  transform: translateY(-3px);
}

.cat-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.category-card span { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }

/* PRODUCTS */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.product-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(76,175,80,0.12);
}

/* ── CAROUSEL ── */
.product-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg3);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg3);
  display: block;
}

.carousel-slide-video {
  cursor: default;
}

.yt-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.yt-iframe {
  position: absolute;
  /* Agrandar el iframe para que las barras de YT queden fuera del área visible */
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  border: none;
  pointer-events: all;
}

/* Tapa la barra superior (título + canal) */
.yt-mask-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12%;
  background: var(--bg3);
  z-index: 2;
  pointer-events: none;
}

/* Tapa la barra inferior (logo YouTube + controles extra) */
.yt-mask-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 14%;
  background: var(--bg3);
  z-index: 2;
  pointer-events: none;
}

.carousel-dot {
  font-size: 0.55rem;
  line-height: 1;
}

.carousel-slide .emoji-fallback {
  font-size: 5rem;
  cursor: default;
}

/* flechas */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.55);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  z-index: 2;
}
.carousel-btn:hover { background: rgba(76,175,80,0.75); }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }
.product-carousel:hover .carousel-btn { opacity: 1; }

/* dots */
.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active {
  background: var(--green);
  transform: scale(1.3);
}

/* contador */
.carousel-counter {
  position: absolute;
  top: 8px;
  right: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 10px;
  z-index: 2;
}

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

.product-badge {
  display: inline-block;
  background: rgba(76,175,80,0.1);
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-ver-mas {
  font-size: 0.78rem;
  color: var(--green);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.8rem;
  font-weight: 600;
  transition: opacity 0.2s;
}
.product-ver-mas:hover { opacity: 0.75; }

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green);
}

.add-cart-btn {
  background: var(--green);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.add-cart-btn:hover {
  background: #66bb6a;
  box-shadow: 0 0 12px var(--green-glow);
}

.add-cart-btn:disabled {
  background: var(--bg3);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

.card-qty-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-qty-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.card-qty-btn:hover { border-color: var(--green); color: var(--green); }
.card-qty-num {
  min-width: 20px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
}

.stock-warning {
  font-size: 0.72rem;
  color: #ff9800;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,152,0,0.15);
}

.out-of-stock {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e53935;
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 500;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}
.lightbox.open { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-nav:hover { background: rgba(76,175,80,0.5); }
.lightbox-nav.prev { left: 1.5rem; }
.lightbox-nav.next { right: 1.5rem; }

.lightbox-thumbs {
  display: flex;
  gap: 8px;
  padding: 0 1rem;
}
.lightbox-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
}
.lightbox-thumb.active { border-color: var(--green); opacity: 1; }
.lightbox-counter {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
}

/* NAV SEARCH */
.nav-search {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search input {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px 7px 34px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  width: 200px;
  height: 36px;
  transition: border-color 0.2s, width 0.3s;
}
.nav-search input:focus {
  outline: none;
  border-color: var(--green);
  width: 260px;
}
.nav-search input::placeholder { color: var(--text-muted); }

.nav-search-icon {
  position: absolute;
  left: 10px;
  color: var(--text-muted);
  pointer-events: none;
}

.nav-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  z-index: 150;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  max-height: 360px;
  overflow-y: auto;
}
.nav-search-results.open { display: block; }

.nav-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(76,175,80,0.07);
}
.nav-result-item:last-child { border-bottom: none; }
.nav-result-item:hover { background: rgba(76,175,80,0.07); }

.nav-result-img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 1px solid var(--border);
}
.nav-result-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }

.nav-result-info { flex: 1; min-width: 0; }
.nav-result-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-result-name mark {
  background: rgba(76,175,80,0.25);
  color: var(--green);
  border-radius: 2px;
  padding: 0 1px;
}
.nav-result-cat  { font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }
.nav-result-price { font-size: 0.85rem; font-weight: 700; color: var(--green); flex-shrink: 0; }

.nav-result-empty {
  padding: 1.2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* PRODUCTS SEARCH BAR */
.products-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s;
}
.products-search-bar:focus-within { border-color: var(--green); }
.products-search-bar svg { color: var(--text-muted); flex-shrink: 0; }

.products-search-bar input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}
.products-search-bar input::placeholder { color: var(--text-muted); }

.search-results-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.search-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.2s;
}
.search-clear:hover { color: var(--text); }

mark.hl {
  background: rgba(76,175,80,0.2);
  color: var(--green);
  border-radius: 2px;
  padding: 0 1px;
}
.benefits-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.benefit-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem 1.5rem;
  transition: border-color 0.2s;
}

.benefit-card:hover { border-color: var(--green); }

.benefit-icon { font-size: 2rem; margin-bottom: 1rem; }

.benefit-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.benefit-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* CONTACT */
.contact-container { max-width: 640px; text-align: center; }

.contact-sub {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.contact-form { display: flex; flex-direction: column; gap: 1rem; text-align: left; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.contact-form input,
.contact-form textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
}

.contact-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.social-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: color 0.2s, border-color 0.2s;
}

.social-link:hover { color: var(--green); border-color: var(--green); }

/* FOOTER */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
}

.footer .brand-name { font-size: 1.1rem; font-weight: 700; }
.footer p { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.4rem; }
.footer-copy { margin-top: 1.5rem; font-size: 0.75rem; color: #555; }

/* TOAST */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--green);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 8px;
  z-index: 300;
  transition: transform 0.3s ease;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 3rem 1.5rem;
    text-align: center;
    min-height: auto;
  }
  .hero-cta { justify-content: center; }
  .hero-visual { display: none; }
  .hero-logo-img { display: none; }
  .nav-links { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }

  /* Buscador mobile: oculto por defecto, se expande al tocar el ícono */
  .nav-search input {
    width: 0;
    padding: 0;
    border-color: transparent;
    background: transparent;
    overflow: hidden;
  }
  .nav-search.open input {
    width: 160px;
    padding: 8px 12px 8px 34px;
    background: var(--bg3);
    border-color: var(--border);
  }
  .nav-search-icon { cursor: pointer; }
}

/* ── CHECKOUT ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 400;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  padding: 1.8rem;
  max-height: 90vh;
  overflow-y: auto;
  margin: 1rem;
}

.modal-checkout { max-width: 520px; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.4rem;
}
.modal-header h3 { font-size: 1.1rem; font-weight: 700; }
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

.checkout-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.2rem; }

.payment-options { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 1.5rem; }

.payment-option {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg3);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.payment-option:hover { border-color: var(--green); }
.payment-option.selected { border-color: var(--green); background: rgba(76,175,80,0.06); }
.payment-option-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.payment-option input[type="radio"] { accent-color: var(--green); margin-top: 3px; flex-shrink: 0; }

.payment-option-body { flex: 1; }
.payment-option-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 3px; }
.payment-option-desc  { font-size: 0.8rem; color: var(--text-muted); }
.payment-option-badge {
  background: rgba(76,175,80,0.15);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  align-self: center;
}

/* resumen */
.checkout-summary { margin-bottom: 1.2rem; }
.checkout-summary-title { font-weight: 700; font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.8rem; }

.checkout-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 5px 0;
  border-bottom: 1px solid rgba(76,175,80,0.07);
}
.checkout-line:last-child { border-bottom: none; }
.checkout-line .qty { color: var(--text-muted); font-size: 0.78rem; }

.checkout-totals { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.checkout-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 4px 0;
}
.checkout-total-row.discount { color: var(--green); }
.checkout-total-row.final {
  font-size: 1.1rem;
  font-weight: 800;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* datos transferencia */
.checkout-transfer-info {
  background: rgba(76,175,80,0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
}
.checkout-transfer-info h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.8rem; color: var(--green); }
.transfer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 5px 0;
  border-bottom: 1px solid rgba(76,175,80,0.1);
  gap: 1rem;
}
.transfer-row:last-child { border-bottom: none; }
.transfer-label { color: var(--text-muted); flex-shrink: 0; }
.transfer-value { font-weight: 600; text-align: right; word-break: break-all; }
.copy-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 0.72rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}
.copy-btn:hover { border-color: var(--green); color: var(--green); }

/* confirmación */
.checkout-confirmed { text-align: center; padding: 1rem 0; }
.checkout-confirmed .check-icon { font-size: 3rem; margin-bottom: 1rem; }
.checkout-confirmed h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.5rem; }
.checkout-confirmed p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

.order-id-badge {
  display: inline-block;
  background: rgba(76,175,80,0.12);
  border: 1px solid rgba(76,175,80,0.35);
  color: var(--green);
  font-size: 0.9rem;
  padding: 6px 18px;
  border-radius: 20px;
  margin: 0.6rem 0 1rem;
  letter-spacing: 0.5px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

/* ── COMPROBANTE UPLOAD ── */
.comprobante-upload {
  margin-top: 1.2rem;
  background: rgba(76,175,80,0.06);
  border: 1px dashed rgba(76,175,80,0.35);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
}

.comprobante-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.comprobante-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 16px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
  margin-bottom: 0.8rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comprobante-label:hover { border-color: var(--green); color: var(--green); }
.comprobante-label input[type="file"] { display: none; }

.comprobante-btn { margin-bottom: 0.5rem; }

.comprobante-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.comprobante-status {
  font-size: 0.82rem;
  min-height: 1rem;
  margin-top: 0.3rem;
}

/* ── TRACKING LINK ── */
.tracking-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(76,175,80,0.3);
  border-radius: 8px;
  padding: 7px 14px;
  margin: 0.8rem 0;
  transition: background 0.2s;
}
.tracking-link:hover { background: rgba(76,175,80,0.08); }

.footer-tracking {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.footer-tracking:hover { color: var(--green); }

/* ── CHECKOUT STEP 0: datos del cliente ── */
.form-group-co {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 1rem;
}

.form-row-co {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.co-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.co-required { color: var(--green); }

.form-group-co input {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  width: 100%;
}

.form-group-co input:focus {
  outline: none;
  border-color: var(--green);
}

.form-group-co input::placeholder { color: var(--text-muted); }

.co-hint {
  font-size: 0.75rem;
  min-height: 1rem;
}

.co-error {
  font-size: 0.82rem;
  color: #ff9800;
  min-height: 1rem;
  margin-bottom: 0.5rem;
}

/* ── Resumen cliente en step 2 ── */
.checkout-cliente-resumen {
  background: rgba(76,175,80,0.05);
  border: 1px solid rgba(76,175,80,0.18);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
}

.co-resumen-row {
  display: flex;
  gap: 10px;
  font-size: 0.84rem;
  padding: 3px 0;
  color: var(--text-muted);
}

.co-resumen-row span:last-child {
  color: var(--text);
  font-weight: 500;
}
