/* Base styles for Hergom Chile */
:root {
  --bg: #e8d9f3;
  --panel: #f5eeff;
  --card: #ffffff;
  --accent: #9b6fc7;
  --accent-hover: #8555b3;
  --text: #4a2c5e;
  --muted: #8868a1;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(155, 111, 199, 0.15);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  padding-top: 72px; /* Compensar header fixed */
}


header.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 32px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(155, 111, 199, 0.1);
  box-shadow: 0 2px 8px rgba(155, 111, 199, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.logo-img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow);
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
nav a:hover { color: var(--accent); }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.dropdown-toggle:hover {
  color: var(--accent);
  background: var(--panel);
}

.dropdown-toggle .arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.dropdown.active .arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  min-width: 200px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  padding: 8px;
  z-index: 100;
}

.dropdown-item {
  display: block;
  padding: 10px 12px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 600;
}

.dropdown-item:hover {
  color: #fff;
  background: rgba(249, 115, 22, 0.12);
  transform: translateX(4px);
}

.nav-cta {
  padding: 8px 22px !important;
  border-radius: 8px;
  background: linear-gradient(135deg, #b8922a 0%, #e8c96a 45%, #c9a84c 100%);
  color: #1a0f00 !important;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  margin-left: 0 !important;
  box-shadow: 0 2px 12px rgba(201,168,76,0.45), inset 0 1px 0 rgba(255,255,255,0.25);
  letter-spacing: 0.3px;
  transition: box-shadow 0.2s, filter 0.2s;
}

/* Botón AR móvil: oculto en desktop */
.topbar-ar-cta { display: none; }

.nav-cta:hover { 
  filter: brightness(1.1);
  box-shadow: 0 4px 20px rgba(201,168,76,0.6), inset 0 1px 0 rgba(255,255,255,0.3);
  color: #1a0f00 !important;
  transform: none;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-container {
  position: relative;
  flex: 1;
  max-width: 320px;
}

.search-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--accent);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-input:focus {
  border-color: #ff8c42;
  box-shadow: 0 0 0 3px rgba(155, 111, 199, 0.2);
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 400px;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  padding: 8px;
  z-index: 200;
}

.search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.search-result-item:hover {
  background: var(--panel);
}

.search-result-name {
  font-weight: 600;
  color: var(--text);
}

.search-result-category {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.search-result-price {
  color: var(--accent);
  font-weight: 700;
}

.search-no-results {
  padding: 16px;
  text-align: center;
  color: var(--muted);
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--panel);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28); }

.cart-label { font-weight: 700; }

.cart-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
}

/* Estos estilos básicos se sobreescriben más abajo con los completos */

.cart-panel {
  position: fixed;
  right: 16px;
  top: 82px;
  width: min(440px, 92vw);
  max-height: calc(100vh - 100px);
  background: #fff;
  border: 1px solid var(--panel);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(155, 111, 199, 0.25), 0 0 0 1px rgba(155, 111, 199, 0.08);
  padding: 0;
  display: flex;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
}

.hidden { display: none; }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--panel);
  background: linear-gradient(135deg, #f9f5ff 0%, #fff 100%);
}

.cart-header h3 {
  font-size: 1.15rem;
  margin: 0;
}

.cart-kicker { margin: 0; color: var(--muted); font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; font-weight: 600; }

.cart-close {
  background: transparent;
  border: 1px solid var(--panel);
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cart-close:hover {
  background: var(--panel);
  color: var(--accent);
}

.cart-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  max-height: calc(100vh - 300px);
  padding: 12px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.cart-body::-webkit-scrollbar {
  width: 5px;
}

.cart-body::-webkit-scrollbar-track {
  background: transparent;
}

.cart-body::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid transparent;
  align-items: center;
  transition: all 0.2s;
  margin-bottom: 8px;
}

.cart-item:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(155, 111, 199, 0.1);
}

.cart-item-img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--panel);
  padding: 4px;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cart-item-title {
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
}

.cart-qty {
  color: var(--muted);
  font-size: 12px;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s;
  line-height: 1;
}

.cart-item-remove:hover {
  background: #fee;
  color: #e53e3e;
}

.cart-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--panel);
  background: linear-gradient(135deg, #f9f5ff 0%, #fff 100%);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 1.05rem;
}

.cart-total-amount {
  color: var(--accent);
  font-size: 1.15rem;
}

.cart-count-badge {
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
}

.empty { color: var(--muted); margin: 0; padding: 24px 0; text-align: center; font-size: 0.95rem; }

.list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
}

.list li strong { color: #fff; }

.footer {
  margin-top: 36px;
  color: var(--muted);
  font-size: 13px;
}

/* Footer highlight — Soporte Técnico */
.footer-link-highlight {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: rgba(124,58,237,0.12);
  color: #a78bfa !important;
  border: 1px solid rgba(124,58,237,0.3);
  padding: 4px 12px !important;
  border-radius: 6px;
  font-weight: 700 !important;
  transition: background 0.2s;
}
.footer-link-highlight:hover {
  background: rgba(124,58,237,0.22) !important;
  color: #c4b5fd !important;
}

/* ============================================================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   ============================================================================ */

/* MOBILE (320px - 767px) */
/* Hamburger menu button - hidden on desktop */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  z-index: 5001;
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 767px) {
  .hamburger-btn {
    display: block;
    order: 1;
  }

  /* Header y Navegación */
  header.topbar {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .logo-img {
    height: 36px;
  }
  
  .nav {
    display: none;
    width: 100%;
    order: 5;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: 1rem;
    background: #fff;
    border-top: 1px solid var(--panel);
    padding: 8px 0;
  }

  .nav.mobile-open {
    display: flex;
  }

  .nav a, .nav .dropdown-toggle {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(155, 111, 199, 0.08);
    width: 100%;
    text-align: left;
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav .nav-cta {
    margin-top: 4px;
    text-align: center;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--panel);
    border-radius: 0;
    min-width: 100%;
    padding: 4px 0;
  }

  .dropdown-menu .dropdown-item {
    padding: 10px 32px;
  }
  
  .search-container {
    width: 100%;
    max-width: none;
    order: 4;
    flex-basis: 100%;
  }
  
  .search-input {
    font-size: 16px !important; /* Previene zoom en iOS */
  }
  
  .actions {
    order: 2;
    gap: 8px;
  }
  
  .cart-panel {
    right: 8px;
    left: 8px;
    top: 70px;
    width: auto;
    max-height: calc(100vh - 80px);
  }

  .cart-body {
    max-height: calc(100vh - 280px);
  }

  /* Ajuste del offset del header fijo (más alto en móvil por 2 filas) */
  body {
    padding-top: 120px;
  }

  .cart-item-title {
    font-size: 0.82rem;
  }
  
  main {
    padding: 12px 16px 42px;
  }
  
  /* Hero Section - Móvil */
  .hero-home {
    min-height: 0;
    padding: 0;
    background-image: none !important;
    background: transparent !important;
    display: block;
  }

  .hero-home::before { display: none; }
  .hero-content { display: none !important; }
  .cta-row { display: none !important; }

  .hero-mobile-wrapper {
    display: block !important;
    position: relative;
    width: 100%;
    /* Altura fija para que el overlay quede bien posicionado */
    height: 68vw;
    max-height: 420px;
    overflow: hidden;
  }

  .hero-mobile-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% center;
    display: block;
  }

  /* Overlay degradado en la parte inferior */
  .hero-mobile-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 56px 18px 18px;
    background: linear-gradient(
      to top,
      rgba(15, 5, 25, 0.82) 0%,
      rgba(15, 5, 25, 0.55) 45%,
      transparent 100%
    );
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
  }

  .hero-mobile-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .hero-mobile-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #d8b4fe;
    margin: 0;
  }

  .hero-mobile-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin: 0;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  }

  .hero-mobile-title span {
    color: #d8b4fe;
  }

  .hero-mobile-btns {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
  }

  .hero-mobile-btn {
    padding: 9px 14px;
    font-size: 0.76rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
  }

  .hero-mobile-btn.primary {
    background: #9b6fc7;
    color: #fff;
    border: none;
    box-shadow: 0 2px 12px rgba(124,58,237,0.4);
  }

  .hero-mobile-btn.ghost {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.5);
  }

  .hero-mobile-btn:active {
    transform: scale(0.91) translateY(2px);
    opacity: 0.85;
    transition: transform 0.08s ease, opacity 0.08s ease;
  }
  
  /* Sections */
  .carousel-section,
  .product-detail-section,
  .categories-section,
  .benefits-section,
  .contact-section,
  .equipos-container,
  .products,
  .categories,
  .benefits,
  .cta-final,
  footer {
    padding: 40px 16px !important;
  }
  
  .carousel-section h2,
  .product-detail-section h2,
  .categories-section h2,
  .benefits-section h2,
  .contact-section h2,
  .products-header h2,
  .categories-header h2 {
    font-size: 1.6rem !important;
    margin-bottom: 30px;
  }
  
  .equipos-hero h1 {
    font-size: 1.6rem;
  }
  
  /* Carousel */
  .carousel-wrapper {
    padding: 0;
  }
  
  .carousel-container {
    padding: 0;
    overflow: visible;
  }
  
  .carousel-track {
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  
  .carousel-track > * {
    scroll-snap-align: start;
  }
  
  .product-card {
    min-width: 280px;
    height: auto;
  }
  
  .carousel-btn {
    display: none;
  }
  
  /* Grid Layouts */
  .equipos-grid,
  .categories-grid,
  .benefits-grid,
  .footer-container,
  .product-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  
  .product-detail-card {
    display: flex;
    flex-direction: column;
  }
  
  .product-images {
    height: 300px;
  }
  
  .thumbnail-gallery {
    height: 70px;
    gap: 8px;
  }
  
  .thumbnail {
    width: 60px;
    height: 60px;
  }
  
  /* Filter Buttons */
  .equipos-filters {
    gap: 10px;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .filter-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
    white-space: nowrap;
  }
  
  /* Cards */
  .equipo-card-image {
    height: 200px;
  }
  
  .equipo-card-content {
    padding: 16px;
  }
  
  .equipo-card-title {
    font-size: 1.1rem;
  }
  
  .equipo-card-price {
    font-size: 1.4rem;
  }
  
  .equipo-card-footer {
    flex-direction: column;
    gap: 12px;
  }
  
  .equipo-card-btn {
    width: 100%;
  }
  
  /* Productos */
  .product-name {
    font-size: 1.1rem;
  }
  
  .product-description {
    font-size: 0.9rem;
  }
  
  .product-price {
    font-size: 1.5rem;
  }
  
  /* Benefits */
  .benefit-item {
    padding: 20px 16px;
  }
  
  .benefit-icon {
    font-size: 2.5rem;
  }
  
  .benefit-title {
    font-size: 1rem;
  }
  
  /* Contact Section */
  .contact-section h2 {
    font-size: 1.6rem;
  }
  
  .contact-section p {
    font-size: 1rem;
  }
  
  .contact-btn {
    padding: 12px 28px;
    font-size: 1rem;
  }
  
  /* CTA Final */
  .cta-final {
    padding: 80px 20px;
  }

  .cta-final h2 {
    font-size: 1.8rem;
  }
  
  .cta-final p {
    font-size: 1rem;
  }
  
  .cta-button.primary {
    padding: 14px 28px;
    font-size: 0.95rem;
  }
  
  /* Botón Ventas Argentina — solo móvil */
  .topbar-ar-cta {
    display: flex;
    order: 3;
    flex-basis: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #b8922a 0%, #e8c96a 45%, #c9a84c 100%);
    color: #1a0f00 !important;
    font-weight: 700;
    font-size: 0.84rem;
    text-decoration: none;
    border-radius: 8px;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 12px rgba(201,168,76,0.45), inset 0 1px 0 rgba(255,255,255,0.25);
    transition: filter 0.2s;
  }
  .topbar-ar-cta:hover { filter: brightness(1.1); }
  .topbar-ar-cta svg { opacity: 0.8; flex-shrink: 0; }

  /* Footer */
  footer {
    padding: 40px 16px 20px;
  }
  
  .footer-container {
    gap: 30px;
    grid-template-columns: 1fr;
  }
  
  .footer-section h3 {
    font-size: 1.1rem;
  }
  
  .footer-bottom-content {
    flex-direction: column;
  }
  
  /* WhatsApp Float */
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
  }
  
  /* Lists */
  .footer-links li,
  .footer-contact li {
    margin-bottom: 10px;
  }
  
  .footer-text {
    font-size: 0.9rem;
  }
}

/* Estilos completos para Hero, Carousel y Productos */

main {
  padding: 0;
  margin: 0 0 0 0;
}

/* Garantizar que footer siempre esté pegado al contenido */
footer {
  margin-top: 0 !important;
}

/* Hero: el wrapper móvil está oculto por defecto (se activa con media queries) */
.hero-mobile-wrapper {
  display: none;
}

/* Hero Section - Solo escritorio */
@media (min-width: 1024px) {
  .hero-home {
    position: relative;
    min-height: 650px;
    background-image: url('/assets/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 100px 60px;
    overflow: hidden;
  }

  .hero-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(232, 217, 243, 0) 0%, rgba(245, 238, 255, 0) 100%);
    z-index: 1;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    text-align: left;
  }

  .hero-tagline {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #9b6fc7;
    background: rgba(255, 255, 255, 0.85);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
  }

  .hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1.15;
    color: #2d1b3d;
    letter-spacing: -0.5px;
    text-shadow: none;
    background: linear-gradient(135deg, #2d1b3d 0%, #5b3a7a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .hero-content p {
    font-size: 1.15rem;
    margin: 0 0 30px 0;
    line-height: 1.7;
    color: #4a3660;
    font-weight: 400;
    max-width: 520px;
  }

  .cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
    margin-top: 30px;
  }
}

.hero-highlight {
  background: linear-gradient(135deg, #9b6fc7 0%, #ff8c42 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ff8c42;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
  transition: all 0.3s ease;
}

.cta:hover {
  background: #ff7326;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 140, 66, 0.4);
}

.cta.ghost {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: none;
}

.cta.ghost:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(155, 111, 199, 0.4);
}

.cta:active {
  transform: scale(0.93) translateY(2px);
  box-shadow: 0 1px 4px rgba(255, 140, 66, 0.25);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.cta.ghost:active {
  background: var(--accent);
  color: #fff;
  transform: scale(0.93) translateY(2px);
  transition: transform 0.08s ease;
}

.cta.small {
  padding: 10px 24px;
  font-size: 0.95rem;
}

/* Carousel Section */
.carousel-section {
  padding: 80px 40px;
  background: var(--bg);
}

.carousel-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 50px 0;
  color: var(--text);
}

.carousel-wrapper {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

/* carousel-container styles están más abajo en la sección de carrusel */

.product-card {
  min-width: 300px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  overflow: hidden;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(155, 111, 199, 0.25), 0 8px 16px rgba(155, 111, 199, 0.15);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #ffffff;
}

.product-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), rgba(255,255,255,0));
}

.product-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--text);
  line-height: 1.4;
  height: 3.2em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-shadow: 0 1px 2px rgba(0,0,0,0.02);
  transition: color 0.3s ease;
}

.product-card:hover .product-card-title {
  color: var(--accent);
}

.product-card-category {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 15px 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  max-height: 1.2em;
}

.product-card-footer {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  margin-top: auto; /* Empuja los botones hacia abajo */
  padding-top: 10px;
}

.product-card-price {
  margin: 12px 0; /* Aumentado */
  display: flex;
  flex-direction: column;
  gap: 6px; /* Aumentado */
  min-height: 56px; /* Aumentado */
  justify-content: center;
}

.product-card-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-card-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

/* Product Detail Slider */
.product-detail-section {
  padding: 80px 40px;
  background: #fff;
}

.product-detail-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 50px 0;
  color: var(--text);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.product-detail-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.product-detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(155, 111, 199, 0.2);
}

.product-images {
  position: relative;
  height: 400px;
  background: #ffffff;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.thumbnail-gallery {
  display: flex;
  gap: 10px;
  padding: 15px;
  background: rgba(155, 111, 199, 0.05);
  overflow-x: auto;
}

.thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--accent);
  transform: scale(1.05);
}

.product-detail-content {
  padding: 30px;
}

.product-detail-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: var(--text);
}

.product-detail-category {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 20px 0;
}

.product-detail-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 25px 0;
}

.product-detail-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 20px 0;
}

.product-detail-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-detail-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

/* Categories Section */
.categories-section {
  padding: 80px 40px;
  background: var(--panel);
}

.categories-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 50px 0;
  color: var(--text);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  position: relative;
  height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(155, 111, 199, 0.3);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 30px 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: 140px;
}

.category-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

/* Influencers / Videos Section */
.influencers-section {
  position: relative;
  padding: 100px 40px;
  background: linear-gradient(160deg, #f8f4ff 0%, #ede6fa 40%, #f3eeff 100%);
  text-align: center;
  overflow: hidden;
}

.influencers-decoration {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(167,139,250,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.influencers-section::before {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(196,181,253,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.influencers-header {
  position: relative;
  z-index: 2;
  margin-bottom: 50px;
}

.influencers-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(167,139,250,0.12);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(167,139,250,0.2);
}

.influencers-header h2 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 12px 0;
  letter-spacing: -0.5px;
}

.influencers-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.influencers-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.influencer-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(155, 111, 199, 0.1), 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.4s ease;
  width: 380px;
}

.influencer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(155, 111, 199, 0.18), 0 4px 12px rgba(0,0,0,0.06);
}

.influencer-video {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  background: var(--panel);
}

.influencer-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.influencer-info {
  padding: 20px 24px;
  text-align: left;
}

.influencer-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px 0;
}

.influencer-role {
  font-size: 0.9rem;
  color: var(--accent);
  margin: 0;
  font-weight: 500;
}

@media (max-width: 767px) {
  .influencers-section {
    padding: 60px 16px;
  }

  .influencers-header h2 {
    font-size: 1.6rem;
  }

  .influencers-subtitle {
    font-size: 0.95rem;
  }

  .influencers-grid {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .influencer-card {
    width: 300px;
  }
}

/* Benefits Section */
.benefits-section {
  padding: 80px 40px;
  background: #fff;
}

.benefits-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 60px 0;
  color: var(--text);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit-item {
  text-align: center;
  padding: 30px;
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.benefit-item h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  color: var(--text);
}

.benefit-item p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Contact Section */
.contact-section {
  padding: 80px 40px;
  background: var(--panel);
  text-align: center;
}

.contact-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: var(--text);
}

.contact-section p {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 40px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 18px 40px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(155, 111, 199, 0.3);
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(155, 111, 199, 0.4);
}

/* Página Todos los Equipos */
.equipos-hero {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  padding: 60px 40px;
  text-align: center;
  color: #fff;
}

.equipos-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin: 0;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.equipos-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px;
}

.equipos-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 50px;
}

.filter-btn {
  background: var(--card);
  color: var(--text);
  border: 2px solid var(--panel);
  border-radius: 10px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.equipos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.equipo-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
}

.equipo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(155, 111, 199, 0.25);
}

.equipo-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: #ffffff;
}

.equipo-card-content {
  padding: 25px;
}

.equipo-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: var(--text);
}

.equipo-card-category {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 15px 0;
}

.equipo-card-description {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.equipo-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--panel);
}

.equipo-card-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
}

.equipo-card-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.equipo-card-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

/* TABLET (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  header.topbar {
    padding: 14px 24px;
  }
  
  .logo-img {
    height: 40px;
  }
  
  .nav {
    gap: 16px;
    font-size: 0.95rem;
  }
  
  .search-container {
    max-width: 300px;
  }
  
  main {
    padding: 24px;
  }
  
  /* Hero Section - Tablet: usar hero móvil */
  .hero-home {
    min-height: 0;
    padding: 0;
    background-image: none !important;
    background: transparent !important;
    display: block;
    position: relative;
  }

  .hero-home::before {
    display: none;
  }

  .hero-content {
    display: none !important;
  }

  .cta-row {
    display: none !important;
  }

  .hero-mobile-wrapper {
    display: block !important;
    position: relative;
    width: 100%;
    height: 50vw;
    max-height: 520px;
    overflow: hidden;
  }

  .hero-mobile-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% center;
    display: block;
  }

  .hero-mobile-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 80px 40px 32px;
    background: linear-gradient(
      to top,
      rgba(15, 5, 25, 0.80) 0%,
      rgba(15, 5, 25, 0.45) 50%,
      transparent 100%
    );
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    z-index: 2;
  }

  .hero-mobile-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .hero-mobile-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #d8b4fe;
    margin: 0;
  }

  .hero-mobile-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin: 0;
    text-align: left;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  }

  .hero-mobile-title span {
    color: #d8b4fe;
  }

  .hero-mobile-btns {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    align-self: flex-end;
  }

  .hero-mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
  }

  .hero-mobile-btn.primary {
    background: #9b6fc7;
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }

  .hero-mobile-btn.ghost {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.5);
  }

  .hero-mobile-btn:active {
    transform: scale(0.91) translateY(2px);
    opacity: 0.85;
    transition: transform 0.08s ease, opacity 0.08s ease;
  }
  
  /* Sections */
  .carousel-section,
  .product-detail-section,
  .categories-section,
  .benefits-section,
  .contact-section,
  .equipos-container,
  .products,
  .categories,
  .benefits,
  footer {
    padding: 60px 30px;
  }
  
  .carousel-section h2,
  .product-detail-section h2,
  .categories-section h2,
  .benefits-section h2,
  .contact-section h2,
  .products-header h2,
  .categories-header h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
  }
  
  .equipos-hero h1 {
    font-size: 2.2rem;
  }
  
  /* Carousel */
  .carousel-container {
    padding: 0 40px;
  }
  
  .carousel-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  
  .product-card {
    min-width: 280px;
  }
  
  /* Grid Layouts */
  .equipos-grid,
  .product-detail-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .categories-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  
  /* CTA Final */
  .cta-final {
    padding: 80px 40px;
  }
  
  .cta-final h2 {
    font-size: 2.2rem;
  }
  
  .cta-final p {
    font-size: 1.1rem;
  }
}

/* Estilos para sección de productos (Equipos Destacados) */
.products {
  position: relative;
  padding: 100px 40px;
  background: linear-gradient(180deg, #fff 0%, #f8f4ff 100%);
  overflow: hidden;
}

.products::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,0.2), transparent);
}

.products-header {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
  z-index: 2;
}

.products-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(167,139,250,0.1);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(167,139,250,0.18);
}

.products-header h2 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 12px 0;
  letter-spacing: -0.5px;
}

.products-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* Estilos del carrusel */
.carousel-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  transition: transform 0.4s ease;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  border: 1px solid rgba(167,139,250,0.15);
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(155, 111, 199, 0.12);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 24px rgba(155, 111, 199, 0.25);
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

/* Tarjetas de producto */
.product-card {
  flex: 0 0 300px;
  max-width: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f8f5fc 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(155, 111, 199, 0.12), 0 2px 8px rgba(155, 111, 199, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 500px;
  border: 1px solid rgba(155, 111, 199, 0.1);
  position: relative;
}

@media (max-width: 767px) {
  .product-card {
    flex: 0 0 260px;
    height: auto;
    min-height: 380px;
  }
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #c084fc, var(--accent));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(155, 111, 199, 0.2);
}

.product-image {
  width: 100%;
  height: 200px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-content {
  padding: 20px;
}

.product-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
}

.product-description {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.product-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  margin: 12px 0 16px 0;
}

/* Sección de categorías */
.categories {
  padding: 80px 40px;
  background: var(--panel);
}

.categories-header {
  text-align: center;
  margin-bottom: 50px;
}

.categories-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px 0;
  letter-spacing: 2px;
}

.categories-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.categories-link:hover {
  color: var(--accent-hover);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

.category-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 1px;
  align-self: flex-start;
}

.category-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.2;
  align-self: flex-start;
}

/* ── Botón catálogo PDF ──────────────────────── */
.catalog-cta {
  max-width: 1400px;
  margin: 32px auto 0;
  padding: 0 8px;
}
.catalog-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #1a0d2e 0%, #2d1b3d 100%);
  border: 1px solid rgba(155, 111, 199, 0.25);
  border-radius: 16px;
  padding: 20px 28px;
  flex-wrap: wrap;
}
.catalog-cta__text {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,.6);
  flex: 1;
  min-width: 200px;
}
.catalog-cta__text svg { color: #c9a227; flex-shrink: 0; }
.catalog-cta__text strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.catalog-cta__text span { font-size: .85rem; }
.catalog-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #c9a227;
  color: #1a0d2e;
  border: none;
  border-radius: 10px;
  padding: 13px 26px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s, transform .15s;
  cursor: pointer;
}
.catalog-cta__btn:hover { opacity: .88; transform: translateY(-1px); }

@media (max-width: 640px) {
  .catalog-cta__inner { flex-direction: column; align-items: flex-start; }
  .catalog-cta__btn { width: 100%; justify-content: center; }
}

/* Sección de beneficios */
.benefits {
  padding: 48px 40px;
  background: #fff;
  border-top: 1px solid rgba(155, 111, 199, 0.15);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.benefit-item {
  text-align: center;
  padding: 16px 12px;
}

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.benefit-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
  letter-spacing: 0.5px;
}

.benefit-description {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* CTA Final */
.cta-final {
  position: relative;
  padding: 120px 40px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 40%, #c084fc 100%);
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-final::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 50%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-final-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.cta-final h2 {
  font-size: 3rem;
  font-weight: 900;
  margin: 0 0 20px 0;
  letter-spacing: -1px;
  line-height: 1.1;
}

.cta-final p {
  font-size: 1.15rem;
  margin: 0 0 44px 0;
  opacity: 0.9;
  line-height: 1.7;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 44px;
}

.cta-button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 40px;
  background: #fff;
  color: #7c3aed;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.cta-button.primary:hover {
  background: #f0f0f0;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.cta-button.primary svg {
  flex-shrink: 0;
}

/* Footer */
footer {
  background: #2d1b3d;
  color: #fff;
  padding: 0 40px 30px 40px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto 40px auto;
}

.footer-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  letter-spacing: 1px;
}

.footer-tagline {
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}

.footer-text {
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.6;
  margin: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-icon {
  font-size: 1.2rem;
}

.footer-about {
  max-width: 350px;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}

.footer-description {
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.6;
  margin: 12px 0 20px 0;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link[aria-label="Instagram"] {
  color: #E1306C;
  background: rgba(225, 48, 108, 0.12);
}

.social-link[aria-label="WhatsApp"] {
  color: #25D366;
  background: rgba(37, 211, 102, 0.12);
}

.social-link:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-contact svg {
  opacity: 1;
}

.footer-contact a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-certifications {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.cert-badge {
  background: var(--accent);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Banner "Datos de Transferencia" en el footer */
.footer-transfer-banner {
  background: linear-gradient(135deg, rgba(255, 213, 79, 0.13) 0%, rgba(167, 139, 250, 0.13) 100%);
  border: 1px solid rgba(255, 213, 79, 0.35);
  border-radius: 14px;
  padding: 20px 32px;
  margin: 0 auto 32px auto;
  max-width: 1400px;
}

.footer-transfer-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-transfer-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.footer-transfer-text {
  flex: 1;
  min-width: 200px;
}

.footer-transfer-text strong {
  display: block;
  color: #ffd54f;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-transfer-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
}

.footer-transfer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ffd54f 0%, #ffca28 100%);
  color: #1a1a1a;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.2px;
}

.footer-transfer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 213, 79, 0.4);
}

@media (max-width: 640px) {
  .footer-transfer-banner {
    padding: 18px 20px;
  }

  .footer-transfer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-transfer-btn {
    width: 100%;
    justify-content: center;
  }
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: #fff;
}

.separator {
  opacity: 0.5;
}

/* El fondo del body debe ser oscuro en todas las páginas para evitar
   que --bg se cuele entre el final del contenido y el footer */
body {
  background-color: #2d1b3d;
}

/* Divisor entre contenido y footer */
.home-footer-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 40px 20px;
  background: #2d1b3d;
}
.ar-body .home-footer-divider { display: none; }
.home-footer-divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(155, 111, 199, 0.5) 30%,
    rgba(155, 111, 199, 0.5) 70%,
    transparent 100%);
}
.home-footer-divider__icon {
  color: #9b6fc7;
  font-size: 1rem;
  opacity: 0.8;
  flex-shrink: 0;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

.whatsapp-float img {
  width: 60px;
  height: 60px;
}

/* Estilos adicionales para productos */
.product-card-image-container {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #ffffff;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(155, 111, 199, 0.08);
}

.product-card-image-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, rgba(250, 248, 252, 0.8), transparent);
  pointer-events: none;
}

.product-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-image {
  transform: scale(1.08);
}

.product-badge {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.product-badge-destacado {
  background: linear-gradient(135deg, var(--accent) 0%, #8555b3 100%);
}

.product-badge-nuevo {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.product-badge-oferta {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  animation: pulse 2s ease-in-out infinite;
}

.product-badge.bestseller {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.5);
}

.product-badge.premium {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.5);
  border: 1px solid rgba(255,255,255,0.25);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.product-price-original {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 1rem; /* Aumentado */
  margin-right: 8px;
}

.product-price-current {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.3rem;
  background: linear-gradient(135deg, var(--accent) 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Botones mejorados */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(155, 111, 199, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--accent) 0%, #8555b3 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(155, 111, 199, 0.3);
  position: relative;
  z-index: 1;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(155, 111, 199, 0.4);
  background: linear-gradient(135deg, #8555b3 0%, var(--accent-hover) 100%);
}

/* DESKTOP (1024px+) */
@media (min-width: 1024px) {
  header.topbar {
    padding: 14px 40px;
  }
  
  .logo-img {
    height: 45px;
  }
  
  .nav {
    gap: 28px;
    font-size: 0.95rem;
  }
  
  .search-container {
    max-width: 400px;
  }
  
  main {
    padding: 0;
  }
  
  /* Hero Section */
  .hero-home {
    min-height: 650px;
    padding: 100px 60px;
    justify-content: flex-start;
    text-align: left;
  }
  
  .hero-content {
    max-width: 650px;
  }
  
  .hero-content h1 {
    font-size: 3.2rem;
  }
  
  .hero-content p {
    font-size: 1.15rem;
  }
  
  .cta-row {
    justify-content: flex-start;
  }
  
  /* Sections */
  .carousel-section,
  .product-detail-section,
  .categories-section,
  .benefits-section,
  .contact-section,
  .equipos-container,
  .products,
  .categories,
  .benefits {
    padding: 80px 40px;
  }
  
  .carousel-section h2,
  .product-detail-section h2,
  .categories-section h2,
  .benefits-section h2,
  .contact-section h2,
  .products-header h2,
  .categories-header h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
  }
  
  .equipos-hero h1 {
    font-size: 3rem;
  }
  
  .equipos-container {
    padding: 60px 40px;
  }
  
  /* Carousel */
  .carousel-container {
    padding: 0 60px;
    max-width: 1400px;
  }
  
  .carousel-btn {
    width: 48px;
    height: 48px;
    font-size: 24px;
    display: block;
  }
  
  .product-card {
    min-width: 300px;
  }
  
  /* Grid Layouts */
  .equipos-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
  }
  
  .product-detail-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
  }
  
  .categories-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 1400px;
  }
  
  .footer-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }
  
  /* CTA Final */
  .cta-final {
    padding: 100px 40px;
  }
  
  .cta-final h2 {
    font-size: 2.8rem;
  }
  
  .cta-final p {
    font-size: 1.2rem;
  }
  
  footer {
    padding: 60px 40px 30px;
  }
}

/* ============================================
   OVERRIDES MÓVIL - CARRUSEL (al final para ganar la cascada)
   ============================================ */
@media (max-width: 767px) {
  .products {
    padding: 48px 0;
    overflow: visible;
  }

  .products-header {
    padding: 0 16px;
    margin-bottom: 28px;
  }

  .products-header h2 {
    font-size: 1.6rem;
  }

  .products-subtitle {
    font-size: 0.95rem;
  }

  .carousel-wrapper {
    padding: 0;
    width: 100%;
  }

  /* Container: scroll nativo, sin padding que recorte visualmente */
  .carousel-container {
    position: relative !important;
    padding: 0 44px !important;
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Track: scroll horizontal nativo para móvil */
  .carousel-track {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 16px !important;
    padding: 12px 0 !important;
    /* Ocultar scrollbar visual */
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .carousel-track::-webkit-scrollbar {
    display: none;
  }

  .carousel-track > * {
    scroll-snap-align: start !important;
  }

  /* Cada card ocupa el 100% del contenido del container */
  .carousel-track .product-card {
    min-width: 100% !important;
    width: 100% !important;
    flex-shrink: 0 !important;
  }

  /* Mostrar botones prev/next en móvil */
  .carousel-btn {
    display: flex !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
  }

  .carousel-prev {
    left: 4px !important;
  }

  .carousel-next {
    right: 4px !important;
  }
}
