:root {
  --bg: #050814;
  --bg-card: #0b1020;
  --primary: #ffcc00;
  --accent: #00e0ff;
  --danger: #ff3b3b;
  --text: #f9fafb;
  --muted: #9ca3af;
  --radius-lg: 18px;
  --shadow-soft: 0 16px 40px rgba(0,0,0,0.6);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 60%, #000 100%);
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ======================= HEADER ======================= */

header {
  border-bottom: 1px solid rgba(148,163,184,0.3);
  background: rgba(15,23,42,0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: .65rem;
}

/* ===== LOGO PREMIUM RGB ===== */

.logo-premium {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-premium-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    #ff0000,
    #ff8800,
    #ffee00,
    #33ff00,
    #00ffee,
    #0080ff,
    #aa00ff,
    #ff0080,
    #ff0000
  );
  animation: spinRGB 4s linear infinite;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.18));
  z-index: 0;
}

.logo-premium-img {
  position: relative;
  width: 78%;
  height: 78%;
  border-radius: inherit;
  object-fit: contain;
  background: #0f172a;
  z-index: 1;
}

.logo-premium::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: radial-gradient(
    rgba(255,255,255,0.12),
    rgba(0,0,0,0)
  );
  filter: blur(12px);
  z-index: -1;
}

@keyframes spinRGB {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.logo-text-main {
  font-weight: 700;
  letter-spacing: .06em;
  font-size: .95rem;
  text-transform: uppercase;
}

.logo-text-sub {
  font-size: .72rem;
  color: var(--muted);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.nav-link-main {
  font-size: .8rem;
  color: var(--muted);
}

.nav-link-main:hover {
  color: var(--text);
}

/* Botón carrito */

.cart-button {
  position: relative;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.9);
  color: var(--text);
  padding: .35rem .8rem;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  cursor: pointer;
}

.cart-button span.icon {
  font-size: 1rem;
}

.cart-count {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: .7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .2rem;
}

/* =========================== HERO =========================== */

.hero {
  padding: clamp(2.4rem, 5vw, 3.8rem) 0 2.8rem;
}

.hero .container {
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 2.5rem;
  align-items: stretch;
}

/* Badge LIVE arriba del título */

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .22rem .9rem;
  border-radius: 999px;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: radial-gradient(circle at 0 0, rgba(250, 250, 250, .16), transparent 60%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--muted);
}

.badge-live .badge-dot {
  width: .5rem;
  height: .5rem;
  border-radius: 999px;
  background: radial-gradient(circle, #f97316, #ef4444);
  box-shadow: 0 0 0 6px rgba(248, 113, 113, 0.25);
}

/* Título y texto principal */

.hero-title {
  margin-top: .9rem;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--text);
}

.hero-highlight {
  background: linear-gradient(120deg, #fbbe03, #fd4835);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin-top: .8rem;
  max-width: 40rem;
  font-size: .9rem;
  color: var(--muted);
}

/* Acciones (botones) */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.2rem;
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

/* Por si quieres asegurar tamaños en el hero */

.hero-actions .btn-primary {
  padding-inline: 1.2rem;
  height: 2.4rem;
  font-size: .85rem;
}

.hero-actions .btn-secondary {
  padding-inline: 1.1rem;
  height: 2.4rem;
  font-size: .82rem;
}

/* Meta debajo de los botones */

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 1.3rem;
  font-size: .8rem;
  color: var(--muted);
}

.hero-meta strong {
  color: var(--text);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .65rem 1.25rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(90deg, #fbbe03, #fd4835);
  color: #000;
  border: none;
  box-shadow: 0 10px 25px rgba(251,190,3,0.25);
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(251,190,3,0.35);
}

/* ---- BOTÓN SECUNDARIO ---- */

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .65rem 1.25rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(15,23,42,0.8);
  border: 1px solid rgba(148,163,184,0.4);
  color: var(--text);
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}

.btn-secondary:hover {
  background: rgba(15,23,42,0.95);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* =========================== TARJETA LATERAL "NUESTROS DIRECTOS" =========================== */

.hero-card {
  height: 100%;
  padding: 1.4rem 1.3rem;
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 0 0, rgba(148, 163, 184, 0.25), transparent 55%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.75);
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.hero-card-title {
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: .1rem;
}

.countdown-label {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: .6rem;
}

/* Filas y columnas internas */

.hero-card-row {
  display: flex;
  gap: 1.3rem;
}

.hero-card-col {
  flex: 1;
  min-width: 0;
}

.hero-card-col .label {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: .25rem;
}

.hero-card-col .value {
  display: block;
  font-size: .86rem;
  color: var(--text);
}

/* Pastilla final "grupo VIP" */

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: .76rem;
  color: var(--muted);
}

.pill-dot {
  width: .5rem;
  height: .5rem;
  border-radius: 999px;
  background: radial-gradient(circle, #22c55e, #16a34a);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.22);
}

/* =========================== RESPONSIVE =========================== */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
  }

  .hero-card {
    max-width: 420px;
    margin-inline: auto;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-meta {
    flex-direction: column;
    gap: .4rem;
  }
}

/* ======================= MAIN ========================= */

main {
  padding: 1.8rem 0 2.5rem;
}

.page-head {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.6rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  border: 1px solid rgba(148,163,184,0.5);
  color: var(--muted);
  background: rgba(15,23,42,0.9);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34,197,94,1);
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.page-subtitle {
  color: var(--muted);
  font-size: 1rem;
  max-width: 750px;
  line-height: 1.6;
  margin: 1rem auto 0; /* centra el bloque */
  text-align: center; /* centra el texto */
  /* sutil para hacerlo más destacado sin recargar */
  background: rgba(255, 255, 255, 0.02);
  padding: 1.2rem 1.4rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.08);
  backdrop-filter: blur(2px);
  /* leve sombra difusa para profundidad */
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

@media (max-width: 480px) {
  .page-subtitle {
    font-size: .95rem;
    padding: 1rem 1.1rem;
  }
}

/* =============================== BADGE de inicio de tienda =============================== */

.page-start-badge {
  margin: 1rem auto 0.6rem;
  padding: 0.45rem 1.2rem;
  width: fit-content;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(22, 178, 1, 0.5);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 0 18px rgba(22, 178, 1, 0.25);
  backdrop-filter: blur(8px);
  animation: badgeFadeIn 0.6s ease forwards;
}

/* Puntito animado */

.page-start-badge .pulse-dot {
  width: 10px;
  height: 10px;
  background: #16b201;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(22, 178, 1, 0.8);
  animation: pulse 1.4s infinite ease-in-out;
}

/* Animación de entrada */

@keyframes badgeFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animación del puntito */

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.25);
    opacity: 0.6;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive */

@media (max-width: 640px) {
  .page-start-badge {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }

  .page-start-badge .pulse-dot {
    width: 8px;
    height: 8px;
  }
}

/* ================== GRID PRODUCTOS ==================== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: .9rem;
  border: 1px solid rgba(31,41,55,.9);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: .55rem;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(250,204,21,.7);
  box-shadow: 0 20px 45px rgba(0,0,0,.8);
}

.product-img-wrap {
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(15,23,42,.9), #020617);
  aspect-ratio: 1 / 1;
}

.product-title {
  font-size: .95rem;
  font-weight: 600;
}

.product-desc {
  font-size: .82rem;
  color: var(--muted);
}

.product-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
}

.product-price {
  font-weight: 600;
  color: var(--primary);
}

/* =========================================================
   BOTONES PRODUCTO — ESTILO TIKTOK + GLASS GANGAS LIVE
   ========================================================= */

.product-actions .btn-sm {
  padding: .55rem .85rem;
  border-radius: 12px; /* más cuadrado, pero suave */
  font-size: .8rem;
  font-weight: 500;
  border: 1px solid rgba(148,163,184,0.45);
  background: linear-gradient(
    135deg,
    rgba(15,23,42,0.95),
    rgba(15,23,42,0.85)
  );
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.6);

  transition:
    background .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    transform .16s ease,
    color .18s ease;
}

/* Hover base (Ver detalles) */
.product-actions .btn-sm:hover {
  background: radial-gradient(
      circle at top,
      rgba(148,163,184,0.22),
      rgba(15,23,42,0.9)
    );
  border-color: rgba(148,163,184,0.8);
  transform: translateY(-2px);
}

/* =========================================================
   BOTONES PRODUCTO — ESTILO 100% iOS DARK
   ========================================================= */

.product-actions {
  display: flex;
  gap: .5rem;
}

/* Botón base (Ver detalles) */
.product-actions .btn-sm {
  padding: .5rem .9rem;
  border-radius: 10px; /* más cuadrado, estilo iOS */
  font-size: .8rem;
  font-weight: 500;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(15,23,42,0.9);            /* fondo oscuro suave */
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;

  box-shadow: 0 0 0 rgba(0,0,0,0);           /* casi sin sombra */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  transition:
    background .16s ease,
    border-color .16s ease,
    transform .12s ease,
    box-shadow .12s ease;
}

.product-actions .btn-sm:hover {
  background: rgba(15,23,42,1);
  border-color: rgba(148,163,184,0.7);
  transform: translateY(-1px);
}

/* Botón principal: AÑADIR (estilo acción de iOS) */
.product-actions .btn-sm.primary {
  background: #facc15;          /* amarillo Gangas Live sólido */
  border-color: #eab308;
  color: #111827;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

.product-actions .btn-sm.primary:hover {
  background: #fde047;          /* un pelín más claro al hover */
  border-color: #facc15;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.4);
}

/* Click / tap en ambos */
.product-actions .btn-sm:active,
.product-actions .btn-sm.primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

/* ===== Ajuste iOS en móvil ===== */
@media (max-width: 650px) {
  .product-actions {
    width: 100%;
    gap: .4rem;
  }

  .product-actions .btn-sm {
    flex: 1;
    text-align: center;
    padding: 0.5rem 0.4rem;
    font-size: .78rem;
  }
}

/* =================== CART PANEL ======================= */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 49;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 100%;
  height: 100%;
  background: #020617;
  box-shadow: -12px 0 30px rgba(0,0,0,.7);
  border-left: 1px solid rgba(31,41,55,.9);
  transform: translateX(100%);
  transition: transform .2s ease;
  z-index: 50;
  display: flex;
  flex-direction: column;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-panel-header {
  padding: .9rem 1rem;
  border-bottom: 1px solid rgba(31,41,55,.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-panel-title {
  font-size: .95rem;
  font-weight: 600;
}

.cart-panel-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
}

.cart-panel-body {
  padding: .8rem 1rem;
  flex: 1;
  overflow-y: auto;
  font-size: .85rem;
}

.cart-empty {
  color: var(--muted);
  font-size: .85rem;
}

.cart-item {
  display: flex;
  gap: .6rem;
  margin-bottom: .75rem;
  border-bottom: 1px solid rgba(31,41,55,.7);
  padding-bottom: .6rem;
}

.cart-item-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(15,23,42,.9), #020617);
  flex-shrink: 0;
}

.cart-item-main {
  flex: 1;
}

.cart-item-title {
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: .1rem;
}

.cart-item-meta {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .2rem;
}

.cart-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  border-radius: 999px;
  border: 1px solid rgba(55,65,81,0.9);
  padding: .05rem .35rem;
}

.cart-qty button {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .85rem;
  padding: 0 .1rem;
}

.cart-qty span {
  min-width: 18px;
  text-align: center;
}

.cart-remove {
  border: none;
  background: transparent;
  color: #fca5a5;
  font-size: .75rem;
  cursor: pointer;
}

.cart-panel-footer {
  border-top: 1px solid rgba(31,41,55,.9);
  padding: .8rem 1rem 1rem;
  font-size: .8rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.cart-footer-note {
  color: var(--muted);
}

.cart-footer-actions {
  display: flex;
  gap: .4rem;
  margin-top: .4rem;
}

.btn-cart-footer {
  flex: 1;
  padding: .5rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,.95);
  color: var(--text);
  font-size: .78rem;
  cursor: pointer;
  text-align: center;
}

.btn-cart-footer.primary {
  border-color: rgba(34,197,94,0.8);
  background: linear-gradient(90deg, #22c55e, #16a34a);
  color: #022c22;
  font-weight: 600;
}

/* Toast */

.cart-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: rgba(15,23,42,0.96);
  border-radius: 999px;
  border: 1px solid rgba(34,197,94,0.6);
  padding: .5rem 1rem;
  font-size: .8rem;
  color: #bbf7d0;
  display: flex;
  align-items: center;
  gap: .4rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.8);
  z-index: 60;
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
}

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

.cart-toast-icon {
  font-size: 1rem;
}

/* ======================= MAIN ========================= */

main {
  padding: 1.8rem 0 2.5rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
}

/* GALERÍA */

.gallery {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31,41,55,0.9);
  box-shadow: var(--shadow-soft);
  padding: .8rem;
}

.gallery-main {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: .6rem;
  background: radial-gradient(circle at top, rgba(15,23,42,0.9), #020617);
  aspect-ratio: 1 / 1; /* cuadrada */
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .4rem;
}

.thumb {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(31,41,55,0.9);
  cursor: pointer;
  opacity: .7;
  transition: opacity .15s ease, border-color .15s ease;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at top, rgba(15,23,42,0.9), #020617);
}

.thumb.active,
.thumb:hover {
  opacity: 1;
  border-color: var(--primary);
}

/* INFO PRODUCTO */

.info {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31,41,55,0.9);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
}

.product-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: .3rem;
}

.product-short {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: .8rem;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .7rem;
}

.product-desc {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.cta-buy {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .7rem 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  color: #022c22;
  box-shadow: 0 16px 40px rgba(0,0,0,0.8);
}

.btn-whatsapp-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #022c22;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  color: #bbf7d0;
}

.cta-note {
  font-size: .8rem;
  color: var(--muted);
}

/* ================== BOTONES DE COMPARTIR ================== */

.share-box {
  margin-top: 1.3rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(31,41,55,0.85);
}

.share-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.share-btn {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.9);
  font-size: 0.78rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.share-btn .icon {
  font-size: 0.85rem;
}

/* estilos por red, siguiendo la estética de la web */

.share-btn-wa {
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-color: transparent;
  color: #022c22;
  font-weight: 600;
}

.share-btn-fb {
  background: rgba(37,99,235,0.15);
  border-color: rgba(59,130,246,0.8);
}

.share-btn-x {
  background: rgba(56,189,248,0.12);
  border-color: rgba(2,132,199,0.8);
}

.share-btn-copy {
  background: rgba(15,23,42,0.95);
}

/* Responsive: en móvil, en columna y a ancho completo */

@media (max-width: 650px) {
  .share-buttons {
    flex-direction: column;
  }

  .share-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Caja garantía centrada */

.warranty-box {
  max-width: 650px;
  margin: 2rem auto 1rem auto;
  padding: 1rem 1.4rem;
  border-radius: 18px;
  background: radial-gradient(circle at top, rgba(250,204,21,0.18), rgba(15,23,42,0.9));
  border: 1px solid rgba(250,204,21,0.35);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
  font-size: .9rem;
  text-align: left;
}

.warranty-icon {
  min-width: 32px;
  min-height: 32px;
  border-radius: 999px;
  background: rgba(250,204,21,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #facc15;
  font-weight: 700;
  font-size: 1.1rem;
}

.warranty-text {
  color: var(--muted);
  line-height: 1.45;
}

.warranty-text strong {
  color: var(--primary);
}

@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .logo-premium {
    width: 38px;
    height: 38px;
  }

  .nav-right {
    gap: .5rem;
  }

  .cart-button {
    padding-inline: .6rem;
  }
}

/* ================== FIX FICHA PRODUCTO EN MÓVIL ================== */
/* A partir de tablets pequeñas hacia abajo: 1 columna en la ficha */

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Ajustes más finos para móvil pequeño */

@media (max-width: 650px) {
  main {
    padding: 1.2rem 0 2rem;
  }

  .container {
    padding: 0 0.9rem;
  }

  /* Ficha de producto: tarjetas más compactas */
  .gallery,
  .info {
    padding: 0.75rem;
  }

  .product-title {
    font-size: 1.1rem;
  }

  .product-short {
    font-size: 0.85rem;
  }

  .product-price {
    font-size: 1rem;
  }

  .product-desc {
    font-size: 0.82rem;
  }

  /* Miniaturas más cómodas en móvil */
  .thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.3rem;
  }
}

/* Si quieres que las miniaturas sean todavía más grandes en móviles muy pequeños */

@media (max-width: 430px) {
  .thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* === Ajustes para que 2 tarjetas por fila se vean bien en móvil === */

@media (max-width: 650px) {
  /* un pelín menos de espacio entre tarjetas */
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

  /* precio + botones en columna para que no se desborde */
  .product-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .product-price {
    font-size: 0.9rem;
  }

  /* bloque de botones ocupa todo el ancho de la tarjeta */
  .product-actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 0.35rem;
  }

  .product-actions .btn-sm {
    flex: 1;
    text-align: center;
    padding: 0.4rem 0.3rem;
    font-size: 0.7rem;
    white-space: nowrap;
  }
}

/* ================== PWA INSTALL BANNER ================== */

.pwa-install-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: rgba(15,23,42,0.97);
  border-top: 1px solid rgba(148,163,184,0.5);
  box-shadow: 0 -16px 40px rgba(0,0,0,0.8);
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  /* Estado por defecto: oculto con animación preparada */
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}

.pwa-install-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.pwa-install-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: .75rem .9rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.pwa-install-banner-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: radial-gradient(circle at top, rgba(250,204,21,0.3), #020617);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pwa-install-banner-icon img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
}

.pwa-install-banner-text {
  flex: 1;
  min-width: 0;
}

.pwa-install-banner-title {
  font-size: .9rem;
  font-weight: 600;
}

.pwa-install-banner-sub {
  font-size: .78rem;
  color: var(--muted);
}

.pwa-install-banner-actions {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.pwa-btn-primary,
.pwa-btn-secondary {
  border-radius: 999px;
  padding: .35rem .9rem;
  font-size: .78rem;
  cursor: pointer;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,.95);
  color: var(--text);
  white-space: nowrap;
}

.pwa-btn-primary {
  border-color: transparent;
  background: linear-gradient(90deg, #fbbe03, #fd4835);
  color: #000;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.8);
}

.pwa-btn-secondary {
  font-weight: 500;
  color: var(--muted);
}

/* móvil */

@media (max-width: 650px) {
  .pwa-install-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .pwa-install-banner-actions {
    flex-direction: row;
    justify-content: flex-end;
    width: 100%;
  }

  .pwa-btn-primary,
  .pwa-btn-secondary {
    flex: 0 0 auto;
  }
}

/* ======================= FOOTER ======================== */

.site-footer {
  border-top: 1px solid rgba(31,41,55,.9);
  background: #020617;
  color: var(--muted);
  font-size: .76rem;
  padding: 0.6rem 0 0.4rem; /* muy poco padding */
}

/* BLOQUE SUPERIOR: 2 columnas en escritorio */

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.6rem 2rem; /* poca separación */
  margin-bottom: 0.3rem;
}

/* Columnas genéricas */

.footer-col {
  flex: 1 1 220px;
}

/* Marca + texto */

.site-footer .logo-premium {
  width: 34px;
  height: 34px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .35rem;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.footer-brand-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}

.footer-brand-sub {
  font-size: .76rem;
  color: var(--muted);
}

/* Badges */

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .45rem;
  margin-bottom: .2rem;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  padding: .14rem .42rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(15,23,42,0.7);
  font-size: .7rem;
  color: var(--muted);
}

.footer-badge-icon {
  font-size: .85rem;
}

/* Enlaces derecha */

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.5rem;
}

.footer-links-group {
  min-width: 130px;
}

.footer-links-title {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text);
  margin: 0 0 .18rem 0;
}

.footer-link {
  display: block;
  font-size: .76rem;
  color: var(--muted);
  margin-bottom: .14rem;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--text);
}

/* BLOQUE INFERIOR */

.footer-bottom {
  border-top: 1px solid rgba(31,41,55,0.8);
  margin-top: 0.25rem;
  padding-top: .35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
  font-size: .74rem;
}

.footer-copy {
  color: var(--muted);
}

.footer-small {
  color: rgba(156,163,175,0.85);
}

/* ===== FOOTER RESPONSIVE ===== */
/* Tablet y móvil */

@media (max-width: 768px) {
  .site-footer {
    padding: 0.45rem 0 0.35rem;
  }

  .footer-top {
    flex-direction: column; /* TODO EN UNA COLUMNA */
    gap: 0.25rem;
    margin-bottom: 0.25rem;
  }

  .footer-links {
    justify-content: flex-start;
    gap: 1.1rem;
  }

  .footer-links-group {
    margin-bottom: 0.15rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.18rem;
    margin-top: 0.15rem;
    padding-top: 0.25rem;
  }
}

/* Móviles pequeños */

@media (max-width: 480px) {
  .site-footer {
    padding: 0.4rem 0 0.3rem;
  }

  .footer-badge {
    font-size: 0.68rem;
    padding: 0.12rem 0.36rem;
  }

  .footer-links-title {
    margin-bottom: 0.12rem;
  }
}

/* ===== FIX REAL DEL FOOTER — RESTAURAR ANCHO COMPLETO EN MÓVIL ===== */

.site-footer .container {
  max-width: 100% !important;
  padding: 0 0.8rem !important;
}

/* En móvil, que el footer NO intente alinear columnas tipo escritorio */

@media (max-width: 768px) {
  .footer-top {
    display: block !important;
  }

  .footer-col {
    flex: none !important;
    width: 100% !important;
    margin-bottom: 0.4rem !important;
  }

  .footer-links {
    display: block !important;
    margin-top: 0.5rem;
  }

  .footer-bottom {
    width: 100%;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
  }
}

/* ======================= COOKIE BANNER ======================== */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60; /* por debajo del banner PWA (70) */
  background: rgba(15,23,42,0.97);
  border-top: 1px solid rgba(31,41,55,0.8);
  box-shadow: 0 -12px 30px rgba(0,0,0,0.8);
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--muted);
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: .7rem .9rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}

.cookie-text {
  font-size: .78rem;
  line-height: 1.4;
  flex: 1;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.cookie-link {
  font-size: .75rem;
  color: var(--accent);
  text-decoration: none;
}

.cookie-link:hover {
  text-decoration: underline;
}

.cookie-btn {
  border-radius: 999px;
  padding: .35rem .9rem;
  font-size: .78rem;
  cursor: pointer;
  border: none;
  background: linear-gradient(90deg, #fbbe03, #fd4835);
  color: #000;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0,0,0,0.7);
}

/* Móvil: en columna */

@media (max-width: 650px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ===== FAQ / REGLAS ===== */

#faq {
  padding: 3rem 0 4rem;
}

#faq .container {
  max-width: 960px;
  margin: 0 auto;
}

#faq h2 {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.4rem;
}

#faq .section-subtitle {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 1.6rem;
}

/* Card contenedor */

.card.faq {
  background: var(--bg-card, #020617);
  border-radius: var(--radius-lg, 18px);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.9);
  padding: 1.2rem 1.4rem;
}

/* Cada ítem */

.faq-item {
  border-bottom: 1px solid rgba(51, 65, 85, 0.7);
  padding: 0.4rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

/* Cabecera (pregunta) */

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  color: var(--text, #e5e7eb);
}

.faq-q span:first-child {
  flex: 1;
}

/* Icono (flecha) */

.faq-q .icon {
  font-size: 0.8rem;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

/* Estado abierto */

.faq-item.open .faq-q .icon {
  transform: rotate(90deg);
  opacity: 1;
  color: var(--primary, #fbbe03);
}

/* Respuesta (contenido) */

.faq-a {
  font-size: 0.9rem;
  color: var(--muted, #9ca3af);
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease, padding-top 0.2s ease;
  padding-top: 0;
}

/* Abierto: se muestra */

.faq-item.open .faq-a {
  opacity: 1;
  padding-top: 0.25rem;
  max-height: 300px; /* suficiente para cada bloque de texto */
}

/* Hover ligero en la pregunta */

.faq-q:hover {
  color: #f9fafb;
}

/* Responsive */

@media (max-width: 640px) {
  #faq {
    padding: 2.2rem 0 3rem;
  }

  #faq h2 {
    font-size: 1.4rem;
  }

  .card.faq {
    padding: 1rem 1rem;
  }

  .faq-q {
    font-size: 0.9rem;
  }

  .faq-a {
    font-size: 0.85rem;
  }
}

/* ============================ SECCIÓN: CÓMO FUNCIONA ============================ */

#como-funciona {
  padding: 3.2rem 0 4rem;
}

#como-funciona h2 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

#como-funciona .section-subtitle {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}

/* Contenedor general */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

/* CARD */

.step-card {
  background: var(--bg-card, #020617);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius-lg, 18px);
  padding: 1.6rem 1.4rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.85);
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Hover efecto moderno */

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(250, 204, 21, 0.7);
  box-shadow: 0 28px 55px rgba(15, 23, 42, 1);
}

/* Icono de paso (círculo numerado) */

.step-icon {
  width: 55px;
  height: 55px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  background: linear-gradient(90deg, #fbbe03, #fd4835);
  color: #000;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(250, 204, 21, 0.4);
}

/* Título */

.step-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Texto */

.step-text {
  font-size: 0.9rem;
  color: var(--muted, #9ca3af);
  line-height: 1.55;
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  #como-funciona {
    padding: 2.2rem 0 3rem;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .step-card {
    padding: 1.4rem;
  }

  .step-icon {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }
}

/* ==== BLOQUE PROMOCIÓN DILARA ==== */

.partner-dilara {
  padding: 2rem 0 0.5rem;
}

.partner-card {
  background: radial-gradient(circle at top, rgba(148,163,184,0.15), #020617);
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  padding: 1.4rem 1.2rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 1.3rem;
  align-items: center;
}

.partner-text h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.partner-text p {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.partner-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.partner-list li::before {
  content: "• ";
  color: #facc15;
}

.partner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  background: linear-gradient(90deg, #facc15, #f97316);
  color: #020617;
  box-shadow: 0 14px 30px rgba(0,0,0,0.6);
}

.partner-btn:hover {
  transform: translateY(-1px);
}

.partner-side {
  text-align: right;
}

.partner-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.9);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.partner-badge-top {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.partner-badge-main {
  font-weight: 600;
}

.partner-tagline {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 220px;
  margin-left: auto;
}

/* LOGO DILARA EN EL BLOQUE */

.partner-logo {
  width: 130px;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.55);
  background: rgba(255,255,255,0.03);
  padding: 6px;
  border: 1px solid rgba(148,163,184,0.25);
  object-fit: contain;
}

/* Responsive promo Dilara */

@media (max-width: 800px) {
  .partner-card {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
  }

  .partner-side {
    text-align: left;
  }

  .partner-tagline {
    margin-left: 0;
  }
}

/* ======================= PÁGINA 404 ======================= */

.error-404 {
  padding: 3rem 0;
}

.error-404-container {
  max-width: 500px;
  margin: auto;
  text-align: center;
}

.error-404-img {
  width: 100%;
  max-width: 380px;
  margin: 0 auto 1.5rem auto;
  display: block;
  filter: drop-shadow(0 0 25px rgba(255,255,255,0.12));
}

.error-404-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.error-404-text {
  font-size: .95rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
  line-height: 1.5;
}

.error-404-btn {
  display: inline-block;
  padding: .75rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #fbbe03, #fd4835);
  color: #000;
  font-weight: 600;
  text-decoration: none;
  font-size: .95rem;
  box-shadow: 0 10px 25px rgba(0,0,0,.4);
}

.error-404-btn:hover {
  opacity: .9;
}

/* =========================================================
   OPTIMIZACIÓN ESTÉTICA iOS PARA MÓVIL
   ========================================================= */
@media (max-width: 650px) {
  /* Hero un poco más compacto, botones tipo app */
  .hero {
    padding: 1.6rem 0 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
  }

  /* Tarjeta de directos más ligera */
  .hero-card {
    padding: 1.1rem 1rem;
    border-radius: 16px;
    box-shadow: 0 14px 32px rgba(0,0,0,0.7);
  }

  /* Cards de pasos estilo iOS */
  .step-card {
    padding: 1.2rem 1.05rem;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.75);
  }

  .step-icon {
    width: 46px;
    height: 46px;
    font-size: 1.08rem;
  }

  /* Grid de productos más estilo app */
  .products-grid {
    gap: 0.8rem;
  }

  .product-card {
    padding: 0.8rem;
    border-radius: 16px;
    box-shadow: 0 12px 26px rgba(0,0,0,0.75);
  }

  .product-img-wrap {
    border-radius: 12px;
    margin-bottom: 0.45rem;
  }

  .product-title {
    font-size: 0.95rem;
  }

  .product-desc {
    font-size: 0.8rem;
  }

  .product-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .product-price {
    font-size: 0.95rem;
  }

  .product-actions {
    width: 100%;
    gap: 0.35rem;
  }

  .product-actions .btn-sm {
    flex: 1;
    text-align: center;
    padding-block: 0.45rem;
    font-size: 0.78rem;
  }

  /* Tarjetas grandes (subtítulo / garantía) más suaves */
  .page-subtitle {
    max-width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  }

  .warranty-box {
    margin: 1.4rem auto 0.8rem;
    padding: 0.85rem 1.1rem;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.5);
  }

  .warranty-icon {
    min-width: 28px;
    min-height: 28px;
    font-size: 1rem;
  }

  .warranty-text {
    font-size: 0.85rem;
  }

  /* Navbar algo más compacto */
  header .nav {
    padding: 0.6rem 0;
  }

  .logo-premium {
    width: 34px;
    height: 34px;
  }

  .logo-text-main {
    font-size: 0.8rem;
  }

  .logo-text-sub {
    font-size: 0.68rem;
  }
}

/* ================== BOTÓN SUBIR ARRIBA (ESTILO iOS) ================== */

#scrollTopBtn {
  position: fixed;
  right: 1rem;
  bottom: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 14px;              /* cuadro con esquinas redondas */
  border: 1px solid rgba(148,163,184,0.45);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  background: rgba(15,23,42,0.85);   /* fondo oscuro tipo tarjeta */
  backdrop-filter: blur(14px);       /* efecto cristal/frosted iOS */
  -webkit-backdrop-filter: blur(14px);

  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;

  z-index: 80;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition:
    opacity .2s ease,
    transform .2s ease,
    box-shadow .18s ease,
    background .18s ease;
  box-shadow: 0 10px 26px rgba(0,0,0,0.65);
}

#scrollTopBtn span {
  display: block;
  transform: translateY(-1px);       /* flecha un pelín arriba */
}

/* Estado visible */
#scrollTopBtn.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Efecto al pulsar (tap) */
#scrollTopBtn:active {
  box-shadow: 0 6px 18px rgba(0,0,0,0.8);
  transform: translateY(2px);
}

/* Ajuste en móviles para no pisar banners */
@media (max-width: 650px) {
  #scrollTopBtn {
    right: 0.9rem;
    bottom: 3.2rem;  /* deja espacio por cookie/PWA */
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
}
