/* ==========================================================================
   VARIABLES Y RESET (TEMA OSCURO BACKSTAGE / TUBOS)
   ========================================================================== */
:root {
  --bg-main: #0e0e10;
  --bg-card: #17171a;
  --bg-elevated: #202025;
  --text-main: #ececec;
  --text-muted: #a1a1aa;
  --accent: #f5a524;
  --accent-hover: #ffb84d;
  --whatsapp: #25d366;
  --whatsapp-hover: #3be278;
  --border-color: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(245, 165, 36, 0.16);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --header-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-main);
}

body.page-product {
  padding-bottom: 76px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent);
  color: #0e0e10;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  z-index: 9999;
}

.skip-link:focus {
  top: 1rem;
}

.is-hidden {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background-color: var(--accent);
  color: #0e0e10;
  box-shadow: 0 4px 18px rgba(245, 165, 36, 0.28);
}

.btn--primary:hover {
  background-color: var(--accent-hover);
}

.btn--outline {
  border: 1.5px solid rgba(236, 236, 236, 0.35);
  background-color: rgba(14, 14, 16, 0.55);
  color: var(--text-main);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--whatsapp {
  background-color: var(--whatsapp);
  color: #0e0e10;
}

.btn--whatsapp:hover {
  background-color: var(--whatsapp-hover);
}

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 1rem 1.8rem;
  font-size: 1.05rem;
}

.btn--full {
  width: 100%;
}

.icon {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}

/* ==========================================================================
   1. HEADER FIJO
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background-color: rgba(14, 14, 16, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-logo span {
  color: var(--accent);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.menu-toggle__bar {
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.main-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 1rem;
  display: none;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.main-nav.is-open {
  display: flex;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-link {
  display: block;
  padding: 0.4rem 0;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent);
}

/* ==========================================================================
   I. HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(85vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 4rem 0;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.42) contrast(1.1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(245, 165, 36, 0.14) 0%, rgba(14, 14, 16, 0.93) 75%),
              linear-gradient(to top, var(--bg-main) 5%, transparent 60%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero__title {
  font-size: clamp(2.15rem, 5vw, 3.65rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.15rem;
}

.hero__subtitle {
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 680px;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__trust {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #d4d4d8;
  background-color: rgba(23, 23, 26, 0.75);
  border: 1px solid rgba(245, 165, 36, 0.25);
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
}

/* ==========================================================================
   II. BARRA DE BENEFICIOS RÁPIDOS (CINTILLO ESCANEABLE)
   ========================================================================== */
.benefits {
  padding: 1.85rem 0;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.benefit-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(245, 165, 36, 0.12);
  border: 1px solid rgba(245, 165, 36, 0.25);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-item__icon svg {
  width: 22px;
  height: 22px;
}

.benefit-item__text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.benefit-item__text span {
  display: block;
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   SECCIONES Y ENCABEZADOS
   ========================================================================== */
.section {
  padding: 4rem 0;
}

.section--alt {
  background-color: #121215;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 2.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ==========================================================================
   TARJETAS DE CATEGORÍA
   ========================================================================== */
.category-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.category-card {
  text-align: left;
  background: linear-gradient(145deg, #1b1b20 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 165, 36, 0.5);
  box-shadow: var(--shadow-glow);
}

.category-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.category-card__title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.category-card__desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.category-card__cta {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
}

/* ==========================================================================
   CATÁLOGO Y FILTROS
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.25);
}

.filter-btn.is-active {
  background-color: var(--accent);
  color: #0e0e10;
  border-color: var(--accent);
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 165, 36, 0.45);
}

.product-card__img-wrap {
  aspect-ratio: 1 / 1;
  background-color: #111114;
  overflow: hidden;
  position: relative;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-card__img {
  transform: scale(1.04);
}

.product-card__body {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.45rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background-color: rgba(245, 165, 36, 0.14);
  color: var(--accent);
}

.product-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.product-card__price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: auto;
  padding-top: 0.25rem;
}

.product-card__btn {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   III. SECCIÓN: ¿POR QUÉ ELEGIR AUDIOTONO? (4 TARJETAS)
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.why-card {
  background: linear-gradient(160deg, #1b1b20 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 165, 36, 0.45);
  box-shadow: var(--shadow-glow);
}

.why-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(245, 165, 36, 0.14);
  border: 1px solid rgba(245, 165, 36, 0.3);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.why-card__icon svg {
  width: 24px;
  height: 24px;
}

.why-card__title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.55rem;
  line-height: 1.3;
}

.why-card__text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ==========================================================================
   ¿PARA QUIÉN ES? Y CÓMO COMPRAR
   ========================================================================== */
.audience-grid,
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.audience-card,
.step-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.audience-card__title,
.step-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.audience-card__text,
.step-card__text {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.step-card__number {
  display: inline-block;
  font-size: 1.75rem;
  font-weight: 900;
  color: rgba(245, 165, 36, 0.35);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   CTA FINAL Y FOOTER
   ========================================================================== */
.cta-box {
  background: radial-gradient(circle at top right, rgba(245, 165, 36, 0.18), var(--bg-card) 70%);
  border: 1px solid rgba(245, 165, 36, 0.3);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-box__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.cta-box__text {
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 1.5rem;
}

.site-footer {
  background-color: #09090b;
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-desc {
  margin-top: 0.5rem;
  max-width: 320px;
}

.footer-heading {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.82rem;
}

/* ==========================================================================
   PÁGINA DE PRODUCTO (producto.html)
   ========================================================================== */
.product-main {
  padding: 1.5rem 0 3rem;
}

.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.breadcrumb__list li + li::before {
  content: "›";
  margin-right: 0.4rem;
  color: var(--accent);
}

.breadcrumb__list a:hover {
  color: var(--accent);
}

.product-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.gallery__stage {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: 0.75rem;
}

.gallery__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.gallery__thumb-btn {
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background-color: var(--bg-card);
  aspect-ratio: 1 / 1;
  opacity: 0.65;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.gallery__thumb-btn:hover,
.gallery__thumb-btn.is-active {
  opacity: 1;
  border-color: var(--accent);
}

.gallery__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-title {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
  margin: 0.5rem 0;
}

.product-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.purchase-cta-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.purchase-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.65rem;
}

.quick-specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.spec-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}

.spec-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(245, 165, 36, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spec-card__icon svg {
  width: 20px;
  height: 20px;
}

.spec-card__label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.spec-card__value {
  font-size: 0.9rem;
}

.product-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.details-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.details-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent);
}

.details-card__body p + p {
  margin-top: 0.85rem;
}

.details-card__body p {
  color: var(--text-muted);
}

.includes-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.includes-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.includes-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.related-section {
  border-top: 1px solid var(--border-color);
  padding-top: 2.5rem;
}

.related-section .section-title {
  margin-bottom: 1.5rem;
}

.not-found {
  text-align: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 3.5rem 1.5rem;
  margin: 2rem 0;
}

.not-found__title {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.not-found__text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 990;
  background-color: rgba(23, 23, 26, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mobile-sticky-bar__info {
  display: flex;
  flex-direction: column;
}

.mobile-sticky-bar__name {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.mobile-sticky-bar__price {
  font-size: 1.05rem;
  color: var(--accent);
}

/* ==========================================================================
   ANIMACIONES DE SCROLL Y REDUCED MOTION
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   MEDIA QUERIES (MÓVIL GRANDE, TABLET Y ESCRITORIO)
   ========================================================================== */
/* 2 columnas en móviles medianos/grandes y tablets para lectura cómoda */
@media (min-width: 540px) {
  .benefits-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  body.page-product {
    padding-bottom: 0;
  }

  .menu-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    gap: 2rem;
  }

  .nav-list {
    flex-direction: row;
    gap: 1.75rem;
  }

  .category-cards,
  .audience-grid,
  .steps-grid,
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .product-card__body {
    padding: 1.25rem;
  }

  .product-card__title {
    font-size: 1.15rem;
  }

  .product-top-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }

  .quick-specs {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-details-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .mobile-sticky-bar {
    display: none;
  }
}

/* 4 columnas en pantallas de escritorio */
@media (min-width: 1024px) {
  .benefits-grid,
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}