/* WhatsApp / catálogo hubs — dptiendaonline.com */
.wa-page {
  --wa-green: #25d366;
  --wa-green-dark: #128c7e;
  --wa-gold: #d4a017;
  --wa-bg: #0c0a09;
  --wa-card: rgba(255, 255, 255, 0.03);
  --wa-border: rgba(255, 255, 255, 0.08);
  --wa-muted: #9ca3af;
  background: var(--wa-bg);
  color: #f8fafc;
}

.wa-hero {
  padding: clamp(5.5rem, 12vh, 7.5rem) 0 clamp(3rem, 6vh, 4.5rem);
  background:
    radial-gradient(ellipse 80% 50% at 70% 0%, rgba(37, 211, 102, 0.12), transparent 55%),
    linear-gradient(180deg, #070604 0%, var(--wa-bg) 100%);
  border-bottom: 1px solid var(--wa-border);
}

.wa-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}

.wa-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wa-green);
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1rem;
}

.wa-hero h1 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: #fff;
}

.wa-hero h1 .wa-accent {
  color: var(--wa-green);
}

.wa-hero__lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--wa-muted);
  line-height: 1.65;
  max-width: 36rem;
  margin: 0 0 1.5rem;
}

.wa-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}

.wa-btn:hover {
  transform: translateY(-2px);
}

.wa-btn--primary {
  background: var(--wa-gold);
  color: #0c0a09;
}

.wa-btn--primary:hover {
  background: #e6b020;
  color: #0c0a09;
}

.wa-btn--wa {
  background: var(--wa-green);
  color: #053a1f;
}

.wa-btn--wa:hover {
  background: #2fe574;
  color: #053a1f;
}

.wa-btn--ghost {
  background: transparent;
  border-color: var(--wa-border);
  color: #e5e7eb;
}

.wa-btn--ghost:hover {
  border-color: rgba(212, 160, 23, 0.45);
  color: var(--wa-gold);
}

.wa-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.wa-hero__chips li {
  font-size: 0.78rem;
  color: var(--wa-muted);
  border: 1px solid var(--wa-border);
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  background: var(--wa-card);
}

.wa-hero__visual {
  position: relative;
  min-height: 280px;
}

.wa-mock-phone {
  max-width: 280px;
  margin: 0 auto;
  background: #111;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 12px 10px 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  position: relative;
  z-index: 2;
}

.wa-mock-phone__notch {
  width: 90px;
  height: 8px;
  background: #1a1a1a;
  border-radius: 0 0 10px 10px;
  margin: 0 auto 10px;
}

.wa-mock-chat {
  background: #0b141a;
  border-radius: 16px;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.wa-mock-chat__head {
  background: #1f2c34;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

.wa-mock-chat__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wa-green), var(--wa-green-dark));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.75rem;
}

.wa-mock-chat__body {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 211, 102, 0.05), transparent 40%),
    #0b141a;
}

.wa-bubble {
  max-width: 88%;
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.45;
  animation: wa-bubble-in 0.45s ease both;
}

.wa-bubble--in {
  align-self: flex-start;
  background: #202c33;
  color: #e9edef;
}

.wa-bubble--out {
  align-self: flex-end;
  background: #005c4b;
  color: #e9edef;
}

.wa-bubble--product {
  background: #1f2c34;
  border: 1px solid rgba(37, 211, 102, 0.25);
  padding: 0;
  overflow: hidden;
}

.wa-bubble--product img {
  display: block;
  width: 100%;
  height: 90px;
  object-fit: cover;
}

.wa-bubble--product .wa-prod-meta {
  padding: 8px 10px;
}

.wa-bubble--product strong {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 2px;
}

.wa-bubble--product span {
  color: var(--wa-green);
  font-weight: 700;
  font-size: 0.85rem;
}

@keyframes wa-bubble-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.wa-mock-store {
  position: absolute;
  right: 0;
  bottom: 10%;
  width: min(220px, 48%);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(212, 160, 23, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  z-index: 1;
  background: #151311;
}

.wa-mock-store img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.wa-mock-store__cap {
  padding: 10px 12px;
  font-size: 0.75rem;
  color: #e5e7eb;
}

.wa-mock-store__cap strong {
  display: block;
  color: var(--wa-gold);
  margin-bottom: 2px;
}

.wa-section {
  padding: clamp(2.5rem, 6vh, 4rem) 0;
}

.wa-section--alt {
  background: #0f0d0b;
  border-top: 1px solid var(--wa-border);
  border-bottom: 1px solid var(--wa-border);
}

.wa-section__title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  color: #fff;
  text-align: center;
  margin: 0 0 0.65rem;
}

.wa-section__lead {
  text-align: center;
  color: var(--wa-muted);
  max-width: 40rem;
  margin: 0 auto 2rem;
  line-height: 1.6;
  font-size: 0.98rem;
}

.wa-tabs {
  max-width: 920px;
  margin: 0 auto;
}

.wa-tabs__list {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.wa-tabs__btn {
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--wa-border);
  background: transparent;
  color: var(--wa-muted);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  font-family: inherit;
  transition: all 0.2s;
}

.wa-tabs__btn:hover,
.wa-tabs__btn[aria-selected='true'] {
  color: var(--wa-green);
  border-color: rgba(37, 211, 102, 0.4);
  background: rgba(37, 211, 102, 0.08);
}

.wa-tabs__panel {
  display: none;
  background: var(--wa-card);
  border: 1px solid var(--wa-border);
  border-radius: 18px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  animation: wa-bubble-in 0.35s ease both;
}

.wa-tabs__panel.is-active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.wa-tabs__panel img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.wa-tabs__panel h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  margin: 0 0 0.65rem;
  color: #fff;
  font-size: 1.2rem;
}

.wa-tabs__panel p {
  color: var(--wa-muted);
  line-height: 1.65;
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
}

.wa-tabs__panel ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #d1d5db;
  font-size: 0.9rem;
  line-height: 1.7;
}

.wa-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.wa-card {
  background: var(--wa-card);
  border: 1px solid var(--wa-border);
  border-radius: 16px;
  padding: 1.35rem;
  transition: border-color 0.2s, transform 0.2s;
}

.wa-card:hover {
  border-color: rgba(37, 211, 102, 0.3);
  transform: translateY(-3px);
}

.wa-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(37, 211, 102, 0.12);
  color: var(--wa-green);
  margin-bottom: 0.85rem;
  font-size: 1.1rem;
}

.wa-card h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.05rem;
  color: #fff;
  margin: 0 0 0.5rem;
}

.wa-card p {
  margin: 0;
  color: var(--wa-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.wa-card a {
  color: var(--wa-gold);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.88rem;
  display: inline-block;
  margin-top: 0.75rem;
}

.wa-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: wa-step;
}

.wa-step {
  background: var(--wa-card);
  border: 1px solid var(--wa-border);
  border-radius: 14px;
  padding: 1.2rem;
  position: relative;
}

.wa-step::before {
  counter-increment: wa-step;
  content: counter(wa-step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #053a1f;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.wa-step h3 {
  font-size: 0.98rem;
  color: #fff;
  margin: 0 0 0.4rem;
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

.wa-step p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--wa-muted);
  line-height: 1.55;
}

.wa-faq {
  max-width: 760px;
  margin: 0 auto;
}

.wa-faq details {
  background: var(--wa-card);
  border: 1px solid var(--wa-border);
  border-radius: 12px;
  margin-bottom: 0.65rem;
  padding: 0.9rem 1.1rem;
}

.wa-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  list-style: none;
  font-size: 0.95rem;
}

.wa-faq summary::-webkit-details-marker {
  display: none;
}

.wa-faq details[open] summary {
  color: var(--wa-green);
  margin-bottom: 0.55rem;
}

.wa-faq p {
  margin: 0;
  color: var(--wa-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.wa-cta-band {
  text-align: center;
  background: rgba(37, 211, 102, 0.06);
  border: 1px solid rgba(37, 211, 102, 0.18);
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3rem);
}

.wa-cta-band h2 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
}

.wa-cta-band p {
  color: var(--wa-muted);
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.wa-related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.wa-related a {
  display: block;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--wa-border);
  background: var(--wa-card);
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.2s;
}

.wa-related a:hover {
  border-color: rgba(212, 160, 23, 0.4);
  color: var(--wa-gold);
}

.wa-related a span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wa-green);
  margin-bottom: 0.25rem;
}

.wa-breadcrumb {
  font-size: 0.85rem;
  color: var(--wa-muted);
  margin-bottom: 1rem;
}

.wa-breadcrumb a {
  color: var(--wa-gold);
  text-decoration: none;
}

@media (max-width: 900px) {
  .wa-hero__grid {
    grid-template-columns: 1fr;
  }

  .wa-hero__visual {
    order: -1;
    min-height: auto;
  }

  .wa-mock-store {
    display: none;
  }

  .wa-tabs__panel.is-active {
    grid-template-columns: 1fr;
  }

  .wa-grid-3,
  .wa-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .wa-cta-row .wa-btn {
    width: 100%;
  }
}

@media (max-width: 768px) and (max-height: 740px) {
  .wa-hero {
    padding-top: calc(4.75rem + env(safe-area-inset-top, 0px));
  }

  .wa-mock-phone {
    max-width: 220px;
  }

  .wa-mock-chat {
    min-height: 240px;
  }
}
