/* ============================================================
   SMART SITE — Sistema de diseño V2
   Profesional, moderno, cercano, minimalista.
   Paleta derivada del logo: petróleo, cyan y coral difuminados
   en los fondos como una marca de agua del color de marca.
   ============================================================ */

:root {
  /* Marca */
  --cyan: #1fe1f9;
  --coral: #ff6a5e;
  --petrol: #236980;
  --white: #ffffff;

  /* Difusión del color del logo en fondos */
  --petrol-tint: #dfeef2;   /* petróleo al ~7% */
  --cyan-tint: #e3f9fd;     /* cyan al ~8% */
  --coral-tint: #ffecea;    /* coral al ~8% */

  /* Neutros */
  --ink: #142b36;          /* texto principal */
  --ink-soft: #3c5663;     /* texto secundario */
  --muted: #6b828e;        /* texto terciario / helper */
  --line: #e2e9ed;         /* bordes */
  --line-strong: #ccd8de;
  --bg: #ffffff;
  --bg-soft: var(--petrol-tint); /* fondos alternos */
  --bg-deep: #183f4e;      /* fondos oscuros (footer), petróleo profundo */
  --surface: #ffffff;      /* fondo de tarjetas y superficies elevadas */

  /* Tipografía */
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3rem;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(18, 38, 49, 0.06);
  --shadow: 0 4px 12px rgba(18, 38, 49, 0.08);
  --shadow-lg: 0 12px 32px rgba(18, 38, 49, 0.12);

  --container: 1120px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Movimiento */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.4s;
}

/* ---------- Modo oscuro ---------- */
:root.theme-dark {
  --petrol: #2c7b95;
  --ink: #e6f1f5;
  --ink-soft: #a9c0cb;
  --muted: #7f98a4;
  --line: #2a3d46;
  --line-strong: #3d5560;
  --bg: #101b20;
  --bg-soft: #15262c;
  --bg-deep: #0a151a;
  --surface: #16262c;
  --white: #f2f7f9;
  --petrol-tint: #15262c;
  --cyan-tint: #14333a;
  --coral-tint: #33201f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);
}

:root.theme-dark ::selection {
  background: rgba(31, 225, 249, 0.35);
  color: var(--white);
}

/* ---------- Reset básico ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--petrol);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection {
  background: var(--cyan);
  color: var(--ink);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: 2.5rem 0;
}

@media (max-width: 640px) {
  .section {
    padding: 2rem 0;
  }
}

.section--soft {
  background: var(--bg-soft);
  background-image: linear-gradient(
    180deg,
    var(--cyan-tint) 0%,
    var(--petrol-tint) 40%,
    var(--surface) 100%
  );
}

.section--deep {
  background: var(--bg-deep);
  background-image: linear-gradient(135deg, #1b4a5c 0%, var(--bg-deep) 55%, #0f2b38 100%);
  color: var(--white);
}

.section-header {
  max-width: 720px;
  margin-bottom: var(--space-8);
}

.section-header--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--petrol);
  margin-bottom: var(--space-3);
}

.section--deep .eyebrow {
  color: var(--cyan);
}

.section h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

@media (max-width: 640px) {
  .section h2 {
    font-size: var(--text-2xl);
  }
}

.section-lead {
  font-size: var(--text-lg);
  color: var(--ink-soft);
}

.section--deep .section-lead {
  color: #bfd3dc;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: var(--text-base);
  font-weight: 600;
  text-align: center;
  transition: background-color 0.18s var(--ease-out),
    border-color 0.18s var(--ease-out),
    color 0.18s var(--ease-out),
    transform 0.18s var(--ease-out),
    box-shadow 0.18s var(--ease-out);
  text-decoration: none;
  will-change: transform;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(18, 38, 49, 0.10);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

.btn--primary {
  background: var(--petrol);
  background-image: linear-gradient(180deg, #2f88a1 0%, var(--petrol) 55%, #1b5570 100%);
  color: var(--white);
}

.btn--primary:hover {
  background: #1b5570;
  background-image: none;
  text-decoration: none;
}

.btn--accent {
  background: var(--cyan);
  background-image: linear-gradient(180deg, #6cebfa 0%, var(--cyan) 60%, #12c7de 100%);
  color: var(--ink);
}

.btn--accent:hover {
  background: #0fd0e8;
  background-image: none;
  text-decoration: none;
}

.btn--coral {
  background: var(--coral);
  background-image: linear-gradient(180deg, #ff897f 0%, var(--coral) 60%, #f05447 100%);
  color: var(--white);
}

.btn--coral:hover {
  background: #ef5245;
  background-image: none;
  text-decoration: none;
}

.btn--outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--petrol);
}

.btn--outline:hover {
  border-color: var(--petrol);
  background: var(--bg-soft);
  text-decoration: none;
}

.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn--outline-light:hover {
  border-color: var(--white);
  text-decoration: none;
}

.btn--light {
  background: var(--surface);
  color: var(--ink);
}

.btn--light:hover {
  background: #f2f6f8;
  text-decoration: none;
}

.btn--block {
  width: 100%;
}

.btn--lg {
  padding: 0.9rem 1.8rem;
  font-size: var(--text-md);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--petrol);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: box-shadow .25s var(--ease-out), background-color .25s ease;
}

.site-header.is-scrolled {
  background: #1b5570;
  box-shadow: 0 4px 20px rgba(9, 28, 37, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 44px;
  width: auto;
}

@media (max-width: 480px) {
  .brand-logo {
    height: 38px;
  }
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--petrol);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand-tag {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
  margin-right: auto;
}

.nav-link {
  position: relative;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: var(--space-3);
  right: var(--space-3);
  bottom: 3px;
  height: 2px;
  border-radius: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease-out);
}

.nav-link:hover {
  color: var(--white);
  text-decoration: none;
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--white);
  font-weight: 600;
}

.nav-cta {
  margin-left: var(--space-2);
  background: var(--cyan);
  background-image: linear-gradient(180deg, #6cebfa 0%, var(--cyan) 60%, #12c7de 100%);
  color: var(--ink);
}

.nav-cta:hover {
  background: #0fd0e8;
  background-image: none;
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(9, 28, 37, 0.25);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-3);
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.18s var(--ease-out), color 0.18s var(--ease-out),
    background-color 0.18s var(--ease-out);
}

.theme-toggle:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.theme-toggle-icon {
  width: 18px;
  height: 18px;
}

.theme-icon--sun {
  display: none;
}

.theme-dark .theme-icon--moon {
  display: none;
}

.theme-dark .theme-icon--sun {
  display: block;
}

@media (max-width: 640px) {
  .theme-toggle-label {
    display: none;
  }

  .theme-toggle {
    padding: 0;
    width: 42px;
    justify-content: center;
  }
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  transition: border-color 0.18s var(--ease-out), color 0.18s var(--ease-out),
    background-color 0.18s var(--ease-out);
}

.cart-btn:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.cart-btn svg {
  width: 20px;
  height: 20px;
}

.cart-btn-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 10px;
  background: var(--coral);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.cart-btn-count[hidden] {
  display: none;
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.nav-toggle:hover {
  border-color: var(--white);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--petrol);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    border-bottom-color: transparent;
    transition: max-height 0.32s var(--ease-out),
      opacity 0.24s var(--ease-out),
      transform 0.32s var(--ease-out),
      padding 0.32s var(--ease-out),
      border-bottom-color 0.1s ease;
    padding: 0 var(--space-6);
  }

  .nav.is-open {
    max-height: 420px;
    opacity: 1;
    transform: translateY(0);
    padding: var(--space-4) var(--space-6) var(--space-6);
    border-bottom-color: rgba(255, 255, 255, 0.14);
  }

  .nav-link {
    padding: var(--space-3);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: var(--space-2);
  }
}

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 38, 49, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease-out), visibility 0.28s var(--ease-out);
  z-index: 60;
}

.cart-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 100%);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  z-index: 61;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.34s var(--ease-out);
}

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

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6);
  border-bottom: 1px solid var(--line);
}

.cart-drawer-head h2 {
  font-size: var(--text-lg);
  margin: 0;
}

.cart-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}

.cart-close:hover {
  border-color: var(--petrol);
  color: var(--petrol);
}

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.cart-empty {
  text-align: center;
  color: var(--muted);
  font-size: var(--text-sm);
  padding: var(--space-12) var(--space-6);
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.cart-item-name {
  font-weight: 600;
  color: var(--ink);
  font-size: var(--text-sm);
  display: block;
  line-height: 1.35;
}

.cart-item-price {
  font-size: var(--text-sm);
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
}

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

.cart-qty-num {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
  color: var(--ink);
}

.cart-item-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: var(--muted);
}

.cart-item-remove:hover {
  color: var(--coral);
}

.cart-drawer-foot {
  border-top: 1px solid var(--line);
  padding: var(--space-6);
  background: var(--bg-soft);
  display: grid;
  gap: var(--space-3);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-2);
}

.cart-total-row span {
  color: var(--ink-soft);
  font-weight: 500;
}

.cart-total-row strong {
  font-size: var(--text-xl);
  color: var(--petrol);
}

.cart-note {
  font-size: var(--text-sm);
  color: var(--muted);
  text-align: center;
}

body.has-cart-open {
  overflow: hidden;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--space-16) 0 var(--space-12);
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--petrol) 0%,
    var(--petrol) 120px,
    #e8f4f7 220px,
    var(--white) 480px
  );
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(820px 320px at 82% -10%, rgba(31, 225, 249, 0.22), transparent 68%),
    radial-gradient(560px 300px at 6% 8%, rgba(255, 255, 255, 0.16), transparent 65%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-12);
  align-items: center;
}

.hero-content h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.hero-content h1 em {
  font-style: normal;
  color: var(--petrol);
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}

.hero-fact {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.hero-fact svg {
  width: 18px;
  height: 18px;
  color: var(--petrol);
  flex-shrink: 0;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
  transition: transform 0.28s var(--ease-out),
    box-shadow 0.28s var(--ease-out),
    border-color 0.28s var(--ease-out);
}

.hero-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.hero-card:first-child {
  margin-top: var(--space-8);
}

.hero-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--petrol);
  margin-bottom: var(--space-4);
  transition: background-color 0.28s var(--ease-out),
    color 0.28s var(--ease-out);
}

.hero-card:hover .hero-card-icon {
  background: var(--cyan);
  background-image: linear-gradient(135deg, #6cebfa 0%, var(--cyan) 70%);
  color: var(--ink);
}

.hero-card-icon svg {
  width: 22px;
  height: 22px;
}

.hero-card h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-2);
}

.hero-card p {
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .hero {
    padding: var(--space-12) 0;
    background: linear-gradient(
      180deg,
      var(--petrol) 0%,
      var(--petrol) 90px,
      #e8f4f7 200px,
      var(--white) 430px
    );
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .hero-content h1 {
    font-size: var(--text-2xl);
  }

  .hero-visual {
    order: -1;
  }
}

/* ---------- Pilares / cards de valor ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

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

@media (max-width: 560px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.value-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease-out),
    box-shadow 0.28s var(--ease-out),
    border-color 0.28s var(--ease-out);
}

.value-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--petrol) 60%, var(--coral) 120%);
  opacity: 0;
  transition: opacity 0.28s var(--ease-out);
  pointer-events: none;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.value-card:hover::before {
  opacity: 1;
}

.value-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--petrol);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  transition: background-color 0.28s var(--ease-out),
    color 0.28s var(--ease-out),
    background-image 0.28s var(--ease-out);
}

.value-card:hover .value-card-icon {
  background: var(--cyan);
  background-image: linear-gradient(135deg, #6cebfa 0%, var(--cyan) 70%);
  color: var(--ink);
}

.value-card-icon svg {
  width: 24px;
  height: 24px;
}

.value-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.value-card p {
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

/* ---------- Pasos (proceso) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  counter-reset: step;
}

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

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

.step {
  counter-increment: step;
  position: relative;
  padding: var(--space-6);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  transition: transform 0.28s var(--ease-out),
    background-color 0.28s var(--ease-out),
    border-color 0.28s var(--ease-out);
}

.step:hover {
  transform: translateY(-3px);
}

.section:not(.section--deep) .step:hover {
  background: var(--bg-soft);
  border-color: var(--line);
}

.step-number {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.section--deep .step-number {
  color: var(--cyan);
}

.step h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.section--deep .step h3 {
  color: var(--white);
}

.step p {
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.section--deep .step p {
  color: #bfd3dc;
}

/* ---------- Reseñas ---------- */
.google-reviews-error {
  text-align: center;
  color: var(--coral);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.google-reviews-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.google-reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink);
}

.google-reviews-badge-stars {
  color: #f5a623;
  font-size: var(--text-sm);
  letter-spacing: 1px;
}

.google-reviews-total {
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ---------- Puntaje general ---------- */
.google-reviews-score {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  padding: var(--space-4) var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  background-image: linear-gradient(180deg, rgba(223, 238, 242, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
  box-shadow: var(--shadow-sm);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.google-reviews-score-num {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--petrol);
  line-height: 1;
}

.google-reviews-score-stars {
  color: #f5a623;
  font-size: var(--text-base);
  letter-spacing: 2px;
}

.google-reviews-score-total {
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ---------- Carrusel de reseñas ---------- */
.google-reviews-carousel {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  overflow: hidden;
}

.google-reviews-track {
  display: flex;
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
}

.google-review-slide {
  flex: 0 0 33.3333%;
  box-sizing: border-box;
  padding: 0 var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.google-review-slide::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--petrol) 60%, var(--coral) 120%);
  z-index: 1;
}

.google-review-photo {
  height: 140px;
  margin: 0;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.google-review-slide.has-photo .google-review-stars {
  padding-top: var(--space-4);
}

.google-review-quote {
  position: absolute;
  top: var(--space-5);
  right: var(--space-6);
  font-size: 3rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  color: rgba(35, 105, 128, 0.14);
  pointer-events: none;
  z-index: 0;
}

.google-review-stars {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1px;
  color: #f5a623;
  font-size: var(--text-sm);
  letter-spacing: 1px;
  padding: var(--space-6) var(--space-6) 0;
  margin-bottom: var(--space-4);
}

.google-review-text {
  color: var(--ink-soft);
  font-size: var(--text-base);
  line-height: 1.55;
  padding: 0 var(--space-6);
  margin-top: var(--space-3);
  margin-bottom: var(--space-5);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 6.7em;
}

.google-review-foot {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--line);
}

.google-review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--white);
  font-weight: 700;
  font-size: var(--text-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  object-fit: cover;
  overflow: hidden;
  background: var(--petrol);
  background-image: linear-gradient(135deg, #2f88a1 0%, var(--petrol) 70%);
}

.google-review-slide:nth-child(3n + 2) .google-review-avatar {
  background: var(--cyan);
  background-image: linear-gradient(135deg, #6cebfa 0%, #12c7de 70%);
  color: var(--ink);
}

.google-review-slide:nth-child(3n + 3) .google-review-avatar {
  background: var(--coral);
  background-image: linear-gradient(135deg, #ff897f 0%, #f05447 70%);
}

.google-review-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.google-review-author {
  font-weight: 600;
  color: var(--ink);
  font-size: var(--text-base);
}

.google-review-source {
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ---------- Navegación ---------- */
.google-reviews-prev,
.google-reviews-next {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--petrol);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: border-color 0.18s var(--ease-out), color 0.18s var(--ease-out),
    transform 0.18s var(--ease-out);
}

.google-reviews-prev {
  left: 8px;
}

.google-reviews-next {
  right: 8px;
}

.google-reviews-prev:hover,
.google-reviews-next:hover {
  border-color: var(--petrol);
  transform: translateY(-50%) scale(1.06);
}

.google-reviews-prev svg,
.google-reviews-next svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 1040px) {
  .google-reviews-prev {
    left: 8px;
  }

  .google-reviews-next {
    right: 8px;
  }
}

.google-reviews-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-5);
}

.google-reviews-dots {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.google-reviews-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out),
    width 0.2s var(--ease-out);
}

.google-reviews-dot.is-active {
  background: var(--petrol);
  width: 20px;
  border-radius: 5px;
}

.google-reviews-dot:hover {
  background: var(--petrol-tint);
  transform: scale(1.15);
}

.google-reviews-more {
  text-align: center;
  margin-top: var(--space-6);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--petrol);
  font-weight: 600;
  text-decoration: none;
  font-size: var(--text-base);
  transition: color 0.18s var(--ease-out), gap 0.18s var(--ease-out);
}

.link-arrow:hover {
  color: var(--ink);
  gap: var(--space-3);
}

.link-arrow svg {
  width: 18px;
  height: 18px;
}

/* ---------- Tabla: 2 por fila ---------- */
@media (max-width: 919px) and (min-width: 560px) {
  .google-review-slide {
    flex-basis: 50%;
  }
}

/* ---------- Móvil: 1 por fila ---------- */
@media (max-width: 559px) {
  .google-review-slide {
    flex-basis: 100%;
    padding: 0;
  }

  .google-review-text {
    min-height: 6em;
  }

  .google-reviews-prev {
    left: 6px;
  }

  .google-reviews-next {
    right: 6px;
  }
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

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

.review-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: var(--surface);
  background-image: linear-gradient(180deg, rgba(223, 238, 242, 0.35) 0%, rgba(255, 255, 255, 0) 42%);
  box-shadow: var(--shadow-sm);
}

.review-stars {
  color: #f5a623;
  font-size: var(--text-sm);
  letter-spacing: 2px;
  margin-bottom: var(--space-3);
}

.review-text {
  color: var(--ink-soft);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.review-author {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}

.review-source {
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--petrol);
  background-image: linear-gradient(135deg, #2f88a1 0%, var(--petrol) 45%, var(--bg-deep) 130%);
  color: var(--white);
  padding: var(--space-12) 0;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(720px 260px at 15% 110%, rgba(255, 106, 94, 0.14), transparent 60%),
    radial-gradient(520px 300px at 90% -20%, rgba(31, 225, 249, 0.14), transparent 65%);
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: var(--white);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.cta-band p {
  color: #d7e6ec;
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  max-width: 46ch;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ---------- Servicios list ---------- */
.service-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

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

.service-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.service-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--petrol);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-item-icon svg {
  width: 22px;
  height: 22px;
}

.service-item h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.service-item p {
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

/* ---------- Garantías ---------- */
.garantia-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

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

.garantia-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: var(--surface);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  transition: transform 0.28s var(--ease-out),
    box-shadow 0.28s var(--ease-out),
    border-color 0.28s var(--ease-out);
}

.garantia-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.garantia-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform 0.28s var(--ease-out);
}

.garantia-item:hover .garantia-check {
  transform: scale(1.1);
}

.garantia-check svg {
  width: 16px;
  height: 16px;
}

.garantia-item h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.garantia-item p {
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

/* ---------- Información local / contacto ---------- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

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

.info-map {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-soft);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: var(--text-sm);
  position: relative;
}

.info-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.info-list {
  list-style: none;
  display: grid;
  gap: var(--space-6);
}

.info-list li {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--petrol);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg {
  width: 22px;
  height: 22px;
}

.info-list h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.info-list p {
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.info-list p strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Horarios ---------- */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

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

.schedule-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: var(--surface);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease-out),
    box-shadow 0.28s var(--ease-out),
    border-color 0.28s var(--ease-out);
}

.schedule-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.schedule-days {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-1);
}

.schedule-hours {
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--bg-deep);
  background-image: linear-gradient(180deg, #1b4a5c 0%, var(--bg-deep) 40%, #0d2430 100%);
  color: #bfd3dc;
  padding: var(--space-16) 0 var(--space-8);
  font-size: var(--text-sm);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(31, 225, 249, 0.55) 30%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 106, 94, 0.5) 70%,
    transparent 100%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

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

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

.footer-brand p {
  margin-top: var(--space-4);
  max-width: 34ch;
  color: #9fbac6;
}

.footer-brand .brand-logo {
  border-radius: var(--radius-sm);
}

.footer-brand .brand-name {
  color: var(--white);
}

.footer-brand .brand-mark {
  background: var(--surface);
  color: var(--petrol);
}

.footer h3 {
  color: var(--white);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
}

.footer ul {
  list-style: none;
  display: grid;
  gap: var(--space-2);
}

.footer a {
  color: #bfd3dc;
}

.footer a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-contact li {
  display: flex;
  gap: var(--space-2);
  align-items: baseline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  color: #8fa9b5;
}

/* ---------- Página: catálogo ---------- */
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  padding: var(--space-2) 0;
}

.catalog-count-pill {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  white-space: nowrap;
}

.search-wrap {
  position: relative;
  flex: 1 1 320px;
  min-width: 240px;
}

.search-wrap svg,
.search-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  color: var(--muted);
  pointer-events: none;
  z-index: 2;
  display: block;
}

.search-input {
  width: 100%;
  height: 42px;
  padding: 0 1rem 0 2.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-input:focus {
  outline: none;
  border-color: var(--petrol);
  box-shadow: 0 0 0 3px rgba(35, 105, 128, 0.15);
}

:root.theme-dark .search-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(31, 225, 249, 0.18);
}

.sort-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.sort-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.sort-select {
  padding: 0.65rem 2.2rem 0.65rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%23236980' stroke-width='2' fill='none'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 14px;
  transition: border-color 0.2s;
}

.sort-select:focus {
  outline: none;
  border-color: var(--petrol);
  box-shadow: 0 0 0 3px rgba(35, 105, 128, 0.15);
}

/* Estado vacío cuando la búsqueda no arroja resultados */
.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-12) var(--space-6);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  max-width: 540px;
  margin: var(--space-4) auto var(--space-8);
}

.catalog-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--petrol);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.catalog-empty-icon svg {
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  display: block;
}

:root.theme-dark .catalog-empty-icon {
  background: rgba(31, 225, 249, 0.1);
  color: var(--cyan);
}

.catalog-empty h3 {
  font-size: var(--text-lg);
  color: var(--ink);
  margin-bottom: var(--space-2);
}

.catalog-empty p {
  font-size: var(--text-sm);
  color: var(--muted);
  max-width: 42ch;
  margin: 0 auto var(--space-5);
  line-height: 1.5;
}

.catalog-filters {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.catalog-filters::-webkit-scrollbar {
  display: none;
}

@media (min-width: 900px) {
  .catalog-filters {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

.chip {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: inherit;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.18s var(--ease-out), color 0.18s var(--ease-out),
    background-color 0.18s var(--ease-out), transform 0.18s var(--ease-out),
    box-shadow 0.18s;
}

.chip:hover {
  border-color: var(--petrol);
  color: var(--petrol);
  transform: translateY(-1px);
}

.chip.is-active {
  background: var(--petrol);
  border-color: var(--petrol);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(35, 105, 128, 0.25);
}

.chip--clear {
  border-style: dashed;
  color: var(--muted);
}

.chip--clear:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-6);
}

.product-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow 0.25s var(--ease-out),
    transform 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--petrol) 60%, var(--coral) 120%);
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
  pointer-events: none;
  z-index: 2;
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

.product-card--nostock {
  opacity: 0.82;
}
.product-card--nostock:hover {
  opacity: 1;
}

/* Imagen encuadrada sin cortes ni deformación */
.product-media {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: var(--space-4);
  border-bottom: 1px solid var(--line);
}

:root.theme-dark .product-media {
  background: rgba(255, 255, 255, 0.03);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}

.product-card:hover .product-media img {
  transform: scale(1.05);
}

.product-media .hover-swap {
  position: absolute;
  inset: var(--space-4);
  width: calc(100% - 2 * var(--space-4));
  height: calc(100% - 2 * var(--space-4));
  object-fit: contain;
  opacity: 0;
  z-index: 1;
}

.product-media .hover-swap.hover-swap--on {
  opacity: 1;
}

/* Placeholder elegante cuando no hay imagen */
.product-media--nogfx {
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-6);
}

.product-media--nogfx::before {
  content: "";
  display: block;
  width: 44px;
  height: 44px;
  background-color: var(--muted);
  opacity: 0.45;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2' ry='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21'/%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2' ry='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21'/%3E%3C/svg%3E") no-repeat center / contain;
}

.product-media--nogfx::after {
  content: "Foto próximamente";
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.product-body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.product-cat {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--petrol);
  background: var(--petrol-tint);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
}

:root.theme-dark .product-cat {
  color: var(--cyan);
  background: rgba(31, 225, 249, 0.12);
}

.product-cat[hidden] {
  display: none;
}

.product-sku {
  display: none;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.65em;
  margin-bottom: var(--space-2);
}

.product-pricing {
  margin-top: auto;
  padding-top: var(--space-2);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.product-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* Indicador de stock con punto de estado */
.product-stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.775rem;
  font-weight: 600;
}

.product-stock::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.product-stock--ok {
  color: #1e7e34;
}
.product-stock--ok::before {
  background-color: #28a745;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

.product-stock--low {
  color: #b26a00;
}
.product-stock--low::before {
  background-color: #fd7e14;
  box-shadow: 0 0 0 2px rgba(253, 126, 20, 0.2);
}

.product-stock--no {
  color: var(--muted);
}
.product-stock--no::before {
  background-color: var(--muted);
}

:root.theme-dark .product-stock--ok {
  color: #68d391;
}
:root.theme-dark .product-stock--low {
  color: #f6ad55;
}

/* Acciones de tarjeta */
.product-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.btn--add-cart {
  flex: 1;
  height: 40px;
  padding: 0 var(--space-3);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius);
}

.btn--add-cart svg {
  flex-shrink: 0;
}

.product-wa-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid #25d366;
  background: rgba(37, 211, 102, 0.08);
  color: #128c7e;
  transition: all 0.2s var(--ease-out);
}

.product-wa-btn:hover {
  background: #25d366;
  color: #ffffff;
  transform: translateY(-1px);
  text-decoration: none;
}

:root.theme-dark .product-wa-btn {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
}

:root.theme-dark .product-wa-btn:hover {
  background: #25d366;
  color: #ffffff;
}

/* ---------- Modal de producto ---------- */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease-out), visibility 0.25s;
}

.product-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 26, 33, 0.62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.product-modal-panel {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: min(860px, 100%);
  max-height: 90vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.product-modal-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s var(--ease-out), color 0.18s var(--ease-out),
    transform 0.18s var(--ease-out);
}

.product-modal-close:hover {
  border-color: var(--coral);
  color: var(--coral);
  transform: rotate(90deg);
}

.product-modal-close svg {
  width: 18px;
  height: 18px;
}

.product-modal-media {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
}

.product-modal-stage {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-4);
}

:root.theme-dark .product-modal-stage {
  background: rgba(255, 255, 255, 0.04);
}

.product-modal-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.35s var(--ease-out);
}

.product-modal-thumbs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
}

.product-modal-thumb {
  width: 64px;
  height: 64px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  transition: border-color 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}

.product-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-modal-thumb.is-active {
  border-color: var(--petrol);
}

.product-modal-thumb:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.product-modal-thumb:disabled {
  cursor: default;
  color: var(--muted);
  font-size: var(--text-sm);
}

.product-modal-info {
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  border-left: 1px solid var(--line);
}

.product-modal-info .product-name {
  font-size: var(--text-xl);
  line-height: 1.3;
  display: block;
  -webkit-line-clamp: unset;
  min-height: unset;
  overflow: visible;
}

.product-modal-info .product-price {
  font-size: var(--text-2xl);
}

.product-details-title {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-details-title[hidden] {
  display: none;
}

.product-details {
  color: var(--ink-soft);
  font-size: var(--text-base);
  line-height: 1.55;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: var(--space-4);
  white-space: pre-line;
}

.has-modal-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .product-modal-panel {
    grid-template-columns: 1fr;
    max-height: 92vh;
  }

  .product-modal-media {
    padding: var(--space-4);
  }

  .product-modal-info {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: var(--space-4);
  }

  .product-modal-stage {
    aspect-ratio: 4 / 3;
  }
}

.catalog-empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-16) var(--space-6);
  text-align: center;
  color: var(--ink-soft);
  background: var(--bg-soft);
}

.catalog-empty h3 {
  margin-bottom: var(--space-2);
}

.catalog-empty p {
  margin-bottom: var(--space-6);
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

.catalog-message,
.catalog-error {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-16) var(--space-6);
  text-align: center;
  color: var(--ink-soft);
  background: var(--bg-soft);
}

.catalog-message h3,
.catalog-error h3 {
  margin-bottom: var(--space-2);
}

.catalog-error h3 {
  color: var(--coral);
}

.catalog-message p,
.catalog-error p {
  margin-bottom: var(--space-6);
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

.catalog-spinner {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto var(--space-4);
  border: 3px solid var(--cyan-tint);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Tienda: destacados ---------- */
.store-highlight {
  background: var(--surface);
}

.store-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.store-head .section-header {
  margin-bottom: 0;
}

/* ---------- Categorías / chips de compra ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

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

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

.cat-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: var(--surface);
  background-image: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--petrol-tint) 40%, var(--surface)) 100%);
  text-decoration: none;
  display: block;
  transition: transform 0.28s var(--ease-out),
    box-shadow 0.28s var(--ease-out),
    border-color 0.28s var(--ease-out);
}

.cat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--petrol) 60%, var(--coral) 120%);
  opacity: 0;
  transition: opacity 0.28s var(--ease-out);
  pointer-events: none;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
  text-decoration: none;
}

.cat-card:hover::before {
  opacity: 1;
}

.cat-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--ink);
}

.cat-card:nth-child(4n + 1) .cat-card-icon {
  background: var(--petrol-tint);
  color: var(--petrol);
}

.cat-card:nth-child(4n + 2) .cat-card-icon {
  background: var(--cyan-tint);
  color: var(--petrol);
}

.cat-card:nth-child(4n + 3) .cat-card-icon {
  background: var(--coral-tint);
  color: var(--coral);
}

.cat-card:nth-child(4n + 4) .cat-card-icon {
  background: var(--petrol-tint);
  color: var(--petrol);
}

.cat-card-icon svg {
  width: 22px;
  height: 22px;
}

.cat-card h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
  color: var(--ink);
}

.cat-card p {
  color: var(--muted);
  font-size: var(--text-sm);
}

/* ---------- Cómo comprar (tienda) ---------- */
.buy-steps {
  background: var(--bg-soft);
  background-image: linear-gradient(
    180deg,
    var(--cyan-tint) 0%,
    var(--petrol-tint) 45%,
    var(--surface) 100%
  );
}

/* Recorrido: tarjetas conectadas por una línea con badges */
.steps--journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  padding-top: 36px;
}

.steps--journey::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  z-index: 0;
  background: repeating-linear-gradient(
    90deg,
    var(--line-strong) 0 10px,
    transparent 10px 20px
  );
}

.step--card {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding: calc(var(--space-6) + 24px) var(--space-6) var(--space-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out),
    border-color 0.28s var(--ease-out);
}

.step--card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cyan);
}

.section:not(.section--deep) .step--card:hover {
  background: var(--surface);
  border-color: var(--cyan);
}

.step-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 4px solid var(--surface);
  background-image: linear-gradient(135deg, #6cebfa 0%, var(--cyan) 55%, #12c7de 100%);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(31, 225, 249, 0.4);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}

.step-badge svg {
  width: 26px;
  height: 26px;
}

.step--card:hover .step-badge {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 12px 28px rgba(31, 225, 249, 0.55);
}

.step-num {
  position: absolute;
  top: var(--space-5);
  right: var(--space-6);
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: 1;
  color: var(--line-strong);
  opacity: 0.7;
}

.step--card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

@media (max-width: 1024px) {
  .steps--journey {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    padding-top: 0;
  }

  .steps--journey::before {
    display: none;
  }

  .step--card {
    padding: var(--space-6);
  }

  .step-badge {
    position: static;
    transform: none;
    width: 54px;
    height: 54px;
    margin-bottom: var(--space-4);
  }

  .step-badge svg {
    width: 24px;
    height: 24px;
  }

  .step--card:hover .step-badge {
    transform: scale(1.08);
  }

  .step-num {
    top: var(--space-4);
    right: var(--space-5);
  }
}

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

/* ---------- Reseñas de Google ---------- */
.reviews-band {
  background: var(--surface);
}

.google-reviews-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.google-reviews-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
  padding: var(--space-8) var(--space-6);
}

.google-reviews-placeholder svg {
  width: 32px;
  height: 32px;
}

.google-reviews-placeholder p {
  color: var(--ink-soft);
  max-width: 46ch;
}

.google-reviews-placeholder .btn {
  margin-top: var(--space-2);
}

.review-actions {
  margin-top: var(--space-8);
  text-align: center;
}

.review-actions .btn {
  margin: var(--space-2);
}

/* ---------- G remisión a servicio/gremio ---------- */
.stores-band {
  background: var(--bg-soft);
}

.dual-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

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

.dual-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.dual-card h3 {
  font-size: var(--text-xl);
}

.dual-card p {
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.dual-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- Page hero ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--petrol) 0%, #164858 140px, var(--bg-soft) 280px);
  border-bottom: 1px solid var(--line);
  padding: var(--space-12) 0;
}

.page-hero h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
  color: var(--white);
}

.page-hero .section-lead {
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--text-lg);
  line-height: 1.5;
}

.page-hero .eyebrow {
  color: var(--cyan);
}

.crumbs {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: var(--space-4);
}

.crumbs a {
  color: rgba(255, 255, 255, 0.72);
}

.crumbs a:hover {
  color: var(--white);
}

.crumbs span[aria-current] {
  color: var(--white);
  font-weight: 500;
}

@media (max-width: 640px) {
  .page-hero {
    padding: var(--space-12) 0;
    background: var(--petrol);
  }

  .page-hero h1 {
    font-size: var(--text-2xl);
  }
}

/* ---------- Split / feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.split h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.split p {
  color: var(--ink-soft);
  margin-bottom: var(--space-4);
}

.split .btn {
  margin-top: var(--space-2);
}

.split-media {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: var(--text-sm);
}

/* ---------- Banner gremio (dentro del ecosistema) ---------- */
.gremio-banner {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease-out),
    box-shadow 0.28s var(--ease-out),
    border-color 0.28s var(--ease-out);
}

.gremio-banner:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.gremio-banner h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.gremio-banner p {
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.gremio-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--petrol);
  background: var(--bg-soft);
  border-radius: 100px;
  padding: var(--space-2) var(--space-4);
  margin-bottom: var(--space-4);
}

.gremio-badge svg {
  width: 16px;
  height: 16px;
}

/* ---------- Utilidades ---------- */
.text-center {
  text-align: center;
}

/* ---------- Reveal al hacer scroll (JS aplica y limpia la clase) ---------- */
.js-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.js-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--petrol);
  color: var(--white);
  padding: var(--space-3) var(--space-4);
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Video promo (short) ---------- */
.hero-media {
  width: 100%;
  max-width: 320px;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Tapa la marca de agua / logo de YouTube (esquina inferior derecha) */
.video-frame::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 96px;
  height: 56px;
  pointer-events: none;
  background: linear-gradient(315deg, transparent 0%, var(--bg-soft) 60%);
}

:root.theme-dark .video-frame::after {
  background: linear-gradient(315deg, transparent 0%, #15262c 60%);
}

/* Overlay: bloquea el iframe para que YouTube no muestre título, controles
   ni íconos al pasar el mouse. Se oculta al primer contacto con la página. */
.video-block {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: transparent;
}

/* Botón de sonido propio (oculto hasta la primera interacción) */
.video-sound {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(9, 28, 37, 0.55);
  backdrop-filter: blur(4px);
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out), background-color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.video-frame.is-live .video-block {
  display: none;
}

.video-frame.is-live .video-sound {
  opacity: 1;
  pointer-events: auto;
}

.video-sound:hover {
  background: rgba(9, 28, 37, 0.8);
  border-color: var(--white);
  transform: scale(1.06);
}

.video-sound svg {
  width: 20px;
  height: 20px;
}

.video-sound-on {
  display: none;
}

.video-sound[aria-pressed="true"] .video-sound-on {
  display: block;
}

.video-sound[aria-pressed="true"] .video-sound-off {
  display: none;
}

/* ---------- Fila de 4 value-cards ---------- */
.value-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  align-items: stretch;
}

.value-row .hero-card {
  margin-top: 0;
  display: flex;
  flex-direction: column;
}

.value-row .hero-card h3 {
  margin-top: 0;
}

@media (max-width: 1024px) {
  .value-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .value-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Modo oscuro: ajustes por componente ---------- */
:root.theme-dark .hero {
  background: linear-gradient(
    180deg,
    var(--petrol) 0%,
    var(--petrol) 120px,
    var(--bg-soft) 260px,
    var(--bg) 520px
  );
}

:root.theme-dark .hero-sub {
  color: rgba(230, 241, 245, 0.85);
}

:root.theme-dark .product-media {
  background: var(--bg-soft);
  background-image: linear-gradient(150deg, #1a2e36 0%, #17303980 55%, #14333a 100%);
}

:root.theme-dark .google-review-card,
:root.theme-dark .review-card {
  background: var(--surface);
  border-color: var(--line);
}

:root.theme-dark .map-placeholder {
  background: var(--bg-soft);
}

:root.theme-dark .img-wrap,
:root.theme-dark .img-box {
  background: var(--bg-soft);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .js-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   Ajustes moviles
   consolidated aqui para no repartir reglas chicas por todo
   el archivo. Solo corrigen desbordes y Targets tactiles.
   ============================================================ */

/* Los nombres de producto vienen de la base y pueden ser largos
   o no tener espacios (SKU del tipo ARK-T2BA), asi que se
   permiten cortes en cualquier punto para no romper la grilla. */
.product-name,
.product-cat,
.product-modal-info .product-name,
h1,
h2,
h3,
h4 {
  overflow-wrap: break-word;
}

/* Embechos y mapas nunca deben exceder el ancho de la pantalla. */
iframe,
img,
video,
embed,
object {
  max-width: 100%;
}

@media (max-width: 640px) {
  .catalog-toolbar {
    gap: var(--space-3);
  }

  .search-wrap {
    order: 3;
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
  }

  .search-input {
    min-width: 0;
    width: 100%;
  }

  .sort-wrap {
    margin-left: auto;
  }

  .sort-label {
    flex: 0 0 auto;
  }

  .sort-select {
    flex: 1 1 auto;
  }

  /* Target tactil minimo de 44px recomendado. */
  .chip {
    padding: 0.6rem 0.9rem;
  }

  .product-modal-close {
    width: 44px;
    height: 44px;
  }

  .cart-close {
    width: 44px;
    height: 44px;
  }

  .product-modal-thumb {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 380px) {
  /* Pantallas muy angostas: la barra de catalogo pasa a una sola
     columna y el padding lateral baja para ganar ancho util. */
  .container {
    padding: 0 var(--space-4);
  }

  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .sort-wrap {
    margin-left: 0;
    width: 100%;
  }

  .search-wrap,
  .sort-select {
    width: 100%;
  }
}

/* ============================================================
   SMART SITE — Estilos de Gremio & GSM FORO Técnico
   ============================================================ */

.gremio-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

/* Tarjeta de Acceso Restringido (Locked Gate) */
.gremio-auth-card {
  max-width: 580px;
  margin: 0 auto;
  padding: var(--space-8);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
}

.gremio-auth-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--petrol-tint);
  color: var(--petrol);
}

.gremio-auth-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
  color: var(--ink);
}

.gremio-auth-desc {
  color: var(--ink-soft);
  font-size: var(--text-base);
  margin-bottom: var(--space-6);
  line-height: 1.5;
}

.gremio-code-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 400px;
  margin: 0 auto;
}

.gremio-code-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-align: center;
  text-transform: uppercase;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gremio-code-input:focus {
  outline: none;
  border-color: var(--petrol);
  box-shadow: 0 0 0 3px rgba(35, 105, 128, 0.2);
}

.gremio-auth-error {
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  background: #fdf2f2;
  color: #c81e1e;
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: center;
}

:root.theme-dark .gremio-auth-error {
  background: #3c1e1e;
  color: #f98080;
}

.gremio-auth-hint {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
}

.gremio-auth-hint a {
  color: var(--petrol);
  font-weight: 600;
  text-decoration: underline;
}

:root.theme-dark .gremio-auth-hint a {
  color: var(--cyan);
}

/* ---------- SmartLab: Google Sign-In & Single Session ---------- */
.btn-google-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
  max-width: 380px;
  margin: 0 auto var(--space-4);
  padding: 13px 22px;
  background: #ffffff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
  transition: background-color 0.2s, box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-google-auth:hover {
  background: #f8f9fa;
  border-color: #c6c9ce;
  box-shadow: 0 2px 6px rgba(60, 64, 67, 0.16);
  transform: translateY(-1px);
}

.btn-google-auth:active {
  background: #f1f3f4;
  transform: translateY(0);
}

:root.theme-dark .btn-google-auth {
  background: #1f2937;
  color: #f3f4f6;
  border-color: #374151;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

:root.theme-dark .btn-google-auth:hover {
  background: #374151;
  border-color: #4b5563;
}

.google-svg {
  flex-shrink: 0;
}

.smartlab-auth-features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.auth-feature-pill {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 4px 10px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 9999px;
}

:root.theme-dark .auth-feature-pill {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.smartlab-pin-toggle-wrap {
  margin-bottom: var(--space-4);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: var(--space-5) 0;
  color: var(--muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--line);
}

.auth-divider span {
  padding: 0 var(--space-3);
}

.btn-link-subtle {
  background: none;
  border: none;
  padding: 4px 8px;
  font-size: var(--text-xs);
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.18s;
}

.btn-link-subtle:hover {
  color: var(--ink);
}

.gremio-pin-box {
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* Tarjeta de Cuenta Pendiente */
.gremio-pending-card {
  border-color: #f59e0b;
}

.gremio-pending-avatar-wrap {
  margin-bottom: var(--space-3);
}

.gremio-pending-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f59e0b;
  margin: 0 auto;
}

.gremio-pending-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #fef3c7;
  color: #92400e;
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: 9999px;
  margin-bottom: var(--space-3);
}

:root.theme-dark .gremio-pending-badge {
  background: #78350f;
  color: #fde68a;
}

.gremio-pending-email {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  margin-top: -4px;
  margin-bottom: var(--space-4);
  font-weight: 500;
}

.gremio-pending-actions {
  margin-top: var(--space-4);
}

/* Tarjeta de Sesión Superseded / Duplicada */
.gremio-superseded-card {
  border-color: #ef4444;
}

.gremio-auth-icon--warn {
  background: #fee2e2;
  color: #dc2626;
}

:root.theme-dark .gremio-auth-icon--warn {
  background: #7f1d1d;
  color: #fca5a5;
}

/* Barra de Sesión de Usuario en Panel */
.gsm-user-session-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}

.gsm-user-chip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 12px 4px 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 9999px;
}

:root.theme-dark .gsm-user-chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.gsm-user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

.gsm-user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.gsm-user-name {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--ink);
}

.gsm-user-email {
  font-size: 11px;
  color: var(--muted);
}

.gsm-session-live-dot {
  font-size: 10px;
  font-weight: 700;
  color: #10b981;
  margin-left: var(--space-1);
}

/* Panel Desbloqueado: GSM FORO */
.gsm-forum-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow);
}

.gsm-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-6);
}

.gsm-panel-title-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.gsm-panel-title-wrap h2 {
  font-size: var(--text-2xl);
  margin: 0;
}

.gsm-status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 10px;
  background: #def7ec;
  color: #03543f;
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: 9999px;
}

:root.theme-dark .gsm-status-badge {
  background: #044e39;
  color: #84e1bc;
}

.gsm-multisource-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid var(--line);
}

:root.theme-dark .gsm-multisource-pill {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-soft);
  border-color: var(--line);
}

/* Barra de Búsqueda y Filtros de GSM FORO */
.gsm-toolbar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.gsm-search-bar {
  display: flex;
  gap: var(--space-3);
  position: relative;
}

.gsm-search-input {
  width: 100%;
  padding: var(--space-3) var(--space-4) var(--space-3) 44px;
  font-size: var(--text-base);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
}

.gsm-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

/* ============================================================
   Filtro Jerárquico en Cascada con Menús Desplegables (Marca -> Modelo -> Falla)
   ============================================================ */
.smartlab-filter-tree {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.smartlab-tree-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
}

.smartlab-tree-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.smartlab-tree-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: var(--text-base);
  color: var(--ink);
}

.smartlab-tree-title svg {
  color: var(--petrol);
}

:root.theme-dark .smartlab-tree-title svg {
  color: var(--cyan);
}

.smartlab-tree-hint {
  font-size: var(--text-xs);
  color: var(--muted);
}

.smartlab-btn-reset {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.smartlab-btn-reset:hover {
  color: var(--coral);
  border-color: var(--coral);
  background: rgba(239, 68, 68, 0.06);
}

/* Fila de Menús Desplegables */
.smartlab-dropdowns-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

.smartlab-dropdown-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.smartlab-dropdown-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink);
}

.smartlab-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--petrol);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
}

:root.theme-dark .smartlab-step-num {
  background: var(--cyan);
  color: #0b1319;
}

.smartlab-select-wrapper {
  position: relative;
  width: 100%;
}

.smartlab-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  appearance: auto;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.smartlab-select:focus {
  border-color: var(--petrol);
  box-shadow: 0 0 0 3px rgba(35, 105, 128, 0.15);
}

:root.theme-dark .smartlab-select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}

.smartlab-select:disabled {
  opacity: 0.55;
  background: var(--bg);
  cursor: not-allowed;
  border-color: var(--line);
}

.smartlab-tree-search-wrap {
  padding-top: var(--space-3);
  border-top: 1px dashed var(--line);
}

/* Pantalla de espera interactiva antes de elegir modelo */
.smartlab-placeholder-card {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  background: var(--surface);
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  color: var(--muted);
}

.smartlab-placeholder-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--petrol);
  margin-bottom: var(--space-2);
}

:root.theme-dark .smartlab-placeholder-icon {
  color: var(--cyan);
}

.smartlab-placeholder-card h3 {
  font-size: var(--text-lg);
  color: var(--ink);
  margin: 0;
}

.smartlab-placeholder-card p {
  max-width: 500px;
  font-size: var(--text-sm);
  margin: 0;
  line-height: 1.6;
}

.gsm-chip {
  padding: 6px 14px;
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--bg);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s;
}

.gsm-chip:hover {
  border-color: var(--petrol);
  color: var(--ink);
}

.gsm-chip.is-active {
  background: var(--petrol);
  color: var(--white);
  border-color: var(--petrol);
}

.gsm-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: var(--space-4);
}

/* Tarjetas de Soluciones GSM FORO */
.gsm-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  min-width: 0;
}

/* Fila de tema estilo Foro — Diseño Limpio y Minimalista */
.gsm-forum-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
  min-width: 0;
  box-sizing: border-box;
}

.gsm-forum-row:hover {
  border-color: var(--petrol);
  background: var(--bg-soft);
  transform: translateY(-1px);
}

:root.theme-dark .gsm-forum-row:hover {
  border-color: var(--cyan);
}

.gsm-forum-row-hitbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  text-decoration: none;
  color: inherit;
  width: 100%;
  box-sizing: border-box;
}

.gsm-forum-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gsm-forum-row-title-wrap {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
  min-width: 0;
}

.gsm-tag-brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  line-height: 1.2;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.gsm-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
}

.gsm-brand-icon svg {
  width: 100%;
  height: 100%;
}

/* Samsung: Azul corporativo icónico (#034ea2 / #1428a0) */
.gsm-tag-brand--samsung {
  color: #0c4a6e;
  background: rgba(14, 116, 144, 0.12);
  border: 1px solid rgba(14, 116, 144, 0.25);
}
:root.theme-dark .gsm-tag-brand--samsung {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.3);
}

/* Motorola: Azul marino eléctrico / cian (#001489 / #007ac1) */
.gsm-tag-brand--motorola {
  color: #1e3a8a;
  background: rgba(30, 58, 138, 0.1);
  border: 1px solid rgba(30, 58, 138, 0.22);
}
:root.theme-dark .gsm-tag-brand--motorola {
  color: #93c5fd;
  background: rgba(147, 197, 253, 0.15);
  border-color: rgba(147, 197, 253, 0.3);
}

/* Apple: Gris grafito neutro / titanio premium */
.gsm-tag-brand--apple {
  color: #334155;
  background: rgba(71, 85, 105, 0.1);
  border: 1px solid rgba(71, 85, 105, 0.22);
}
:root.theme-dark .gsm-tag-brand--apple {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Xiaomi: Naranja corporativo distintivo (#ff6900) */
.gsm-tag-brand--xiaomi {
  color: #c2410c;
  background: rgba(234, 88, 12, 0.12);
  border: 1px solid rgba(234, 88, 12, 0.25);
}
:root.theme-dark .gsm-tag-brand--xiaomi {
  color: #fb923c;
  background: rgba(251, 146, 60, 0.16);
  border-color: rgba(251, 146, 60, 0.35);
}

/* Default */
.gsm-tag-brand--default {
  color: var(--petrol);
  background: rgba(35, 105, 128, 0.1);
  border: 1px solid rgba(35, 105, 128, 0.2);
}
:root.theme-dark .gsm-tag-brand--default {
  color: var(--cyan);
  background: rgba(31, 225, 249, 0.15);
  border-color: rgba(31, 225, 249, 0.3);
}

/* Etiqueta de Modelo de Dispositivo (Pill tag filtrable) */
.gsm-tag-model {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 4px;
  line-height: 1.2;
  flex-shrink: 0;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.28);
  transition: all 0.15s ease;
  user-select: none;
}
:root.theme-dark .gsm-tag-model {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.14);
  border-color: rgba(96, 165, 250, 0.35);
}
.gsm-tag-model:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.55);
  transform: translateY(-1px);
}

.gsm-meta-item--model {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--ink-secondary);
}

.gsm-badge--model {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.25);
  font-weight: 700;
}
:root.theme-dark .gsm-badge--model {
  color: #93c5fd;
  background: rgba(147, 197, 253, 0.15);
  border-color: rgba(147, 197, 253, 0.35);
}

.gsm-forum-row-title {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  color: var(--ink);
  word-break: break-word;
}

.gsm-title-sep {
  color: var(--line-strong);
  font-weight: 400;
  margin: 0 2px;
}

.gsm-title-fault {
  color: var(--ink-soft);
  font-weight: 500;
}

.gsm-forum-row:hover .gsm-forum-row-title {
  color: var(--petrol);
}

:root.theme-dark .gsm-forum-row:hover .gsm-forum-row-title {
  color: var(--cyan);
}

.gsm-forum-row-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.3;
}

.gsm-meta-item {
  color: var(--muted);
}

.gsm-meta-source {
  color: var(--ink-soft);
  font-weight: 500;
}

.gsm-meta-dot {
  color: var(--line-strong);
}

.gsm-forum-arrow {
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.18s ease, color 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gsm-forum-row:hover .gsm-forum-arrow {
  color: var(--petrol);
  transform: translateX(3px);
}

:root.theme-dark .gsm-forum-row:hover .gsm-forum-arrow {
  color: var(--cyan);
}

@media (max-width: 640px) {
  .gsm-forum-row-hitbox {
    padding: var(--space-3) var(--space-4);
    gap: var(--space-3);
  }

  .gsm-forum-row-title {
    font-size: var(--text-sm);
  }
}

.gsm-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  word-break: break-word;
  box-sizing: border-box;
}

.gsm-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--petrol);
}

:root.theme-dark .gsm-card:hover {
  border-color: var(--cyan);
}

.gsm-card-header {
  margin-bottom: var(--space-4);
  min-width: 0;
}

.gsm-card-title-group {
  min-width: 0;
}

.gsm-card-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  min-width: 0;
}

.gsm-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.gsm-badge--brand {
  background: var(--petrol);
  color: #ffffff;
}

.gsm-badge--cat {
  background: var(--petrol-tint);
  color: var(--petrol);
}

:root.theme-dark .gsm-badge--cat {
  background: rgba(31, 225, 249, 0.15);
  color: var(--cyan);
}

.gsm-badge--source {
  background: rgba(35, 105, 128, 0.08);
  color: var(--petrol);
  border: 1px solid rgba(35, 105, 128, 0.2);
}

:root.theme-dark .gsm-badge--source {
  background: rgba(31, 225, 249, 0.12);
  color: var(--cyan);
  border-color: rgba(31, 225, 249, 0.25);
}

.gsm-card-model {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 var(--space-1);
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: break-word;
}

.gsm-card-fault {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--coral);
  margin: 0;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
}

.gsm-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex-grow: 1;
  min-width: 0;
}

.gsm-card-section {
  min-width: 0;
}

.gsm-sec-title {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-1);
}

.gsm-card-section p {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: break-word;
}

.gsm-card-solution {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid #10b981;
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.gsm-solution-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  margin-top: 4px;
}

.gsm-solution-step {
  font-size: var(--text-sm);
  color: var(--ink);
  margin: 0;
  line-height: 1.55;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.gsm-solution-text {
  font-family: inherit;
  font-size: var(--text-sm);
  color: var(--ink);
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.6;
  max-width: 100%;
}

.gsm-card-diodo {
  background: var(--bg-soft);
  border-left: 3px solid var(--petrol);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  min-width: 0;
}

:root.theme-dark .gsm-card-diodo {
  border-left-color: var(--cyan);
}

.gsm-diodo-label {
  font-weight: 600;
  color: var(--ink-soft);
}

.gsm-diodo-val {
  display: block;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: var(--text-xs);
  color: var(--coral);
  font-weight: 700;
  margin-top: 2px;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.gsm-card-components {
  font-size: var(--text-xs);
  color: var(--ink-soft);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  min-width: 0;
}

.gsm-card-components strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.gsm-card-components ul {
  margin: 0;
  padding-left: var(--space-4);
}

.gsm-card-components li {
  margin-bottom: 2px;
  word-break: break-word;
}

.gsm-card-footer {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}

.gsm-card-author {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.4;
  word-break: break-word;
}

.gsm-author-label {
  font-weight: 600;
}

.gsm-source-note {
  font-weight: 600;
  color: var(--petrol);
}

:root.theme-dark .gsm-source-note {
  color: var(--cyan);
}

.gsm-card-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  font-size: var(--text-xs);
}

.gsm-empty-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-12) var(--space-6);
  background: var(--bg);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.gsm-empty-icon {
  margin-bottom: var(--space-4);
  color: var(--muted);
}

/* Formulario de Calificación / Solicitud */
.gremio-request-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow);
}

.gremio-request-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.gremio-field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-1);
  color: var(--ink);
}

.gremio-field input,
.gremio-field select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-size: var(--text-base);
}

.gremio-field input:focus,
.gremio-field select:focus {
  outline: none;
  border-color: var(--petrol);
}

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

  .gremio-auth-card,
  .gsm-forum-panel,
  .gremio-request-card {
    padding: var(--space-6) var(--space-4);
  }
}

/* ============================================================
   SMART SITE — Celulares Reacondicionados & Panel Admin
   ============================================================ */

/* ---------- Pestañas de sección de la tienda ---------- */
.store-tabs-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--space-3);
}

.store-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--petrol);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.store-admin-btn:hover {
  background: var(--cyan-tint);
  border-color: var(--cyan);
  color: #0b677a;
  transform: translateY(-1px);
}

:root.theme-dark .store-admin-btn {
  color: var(--cyan);
  background: rgba(31, 225, 249, 0.1);
  border-color: rgba(31, 225, 249, 0.25);
}

.store-tabs {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
}

.store-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--text-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
}

.store-tab:hover {
  border-color: var(--petrol);
  color: var(--ink);
  transform: translateY(-1px);
}

.store-tab.is-active {
  background: var(--petrol);
  color: var(--white);
  border-color: var(--petrol);
  box-shadow: var(--shadow-sm);
}

.store-tab--reacon {
  border-color: rgba(31, 225, 249, 0.45);
}

.store-tab--reacon.is-active {
  background: linear-gradient(135deg, #184f63 0%, #1f6b80 100%);
  border-color: var(--cyan);
  color: var(--white);
}

.store-tab-pill {
  background: rgba(31, 225, 249, 0.2);
  color: #0b677a;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.store-tab.is-active .store-tab-pill {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.chip--reacon {
  border-color: var(--cyan);
  background: var(--cyan-tint);
  color: #0e677c;
  font-weight: 700;
}

.chip--reacon.is-active {
  background: var(--petrol);
  color: var(--white);
  border-color: var(--petrol);
}

/* ---------- Tarjetas de Celulares Reacondicionados en Tienda ---------- */
.product-card--reacon {
  border: 1px solid rgba(31, 225, 249, 0.35);
  position: relative;
}

.product-card--reacon:hover {
  border-color: var(--cyan);
  box-shadow: 0 8px 24px rgba(31, 225, 249, 0.14);
}

.product-media--reacon {
  background: radial-gradient(circle at center, var(--cyan-tint) 0%, var(--surface) 80%);
}

.reacon-cat-pill {
  background: var(--cyan-tint);
  color: #0c6174;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
}

.reacon-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: var(--space-2) 0;
}

.reacon-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
}

.reacon-badge--battery {
  background: rgba(39, 174, 96, 0.12);
  color: #1e824c;
  border: 1px solid rgba(39, 174, 96, 0.25);
}

.reacon-badge--condition {
  background: rgba(31, 225, 249, 0.14);
  color: #0d798b;
  border: 1px solid rgba(31, 225, 249, 0.3);
}

.reacon-badge--storage {
  background: var(--bg-soft);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.reacon-badge--ram {
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.reacon-badge--upcoming {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-weight: 700;
}

.product-stock--upcoming {
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-weight: 700;
}

.btn--reserve, .btn--reserve-wa {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn--reserve:hover, .btn--reserve-wa:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

/* Cartel / Banner de Próximos Ingresos configurable */
.reacon-promo-banner {
  background: linear-gradient(135deg, rgba(31, 225, 249, 0.08) 0%, rgba(245, 158, 11, 0.09) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.reacon-promo-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.reacon-promo-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.reacon-promo-text-wrap {
  flex: 1;
  min-width: 240px;
}

.reacon-promo-badge {
  display: inline-block;
  background: #f59e0b;
  color: #1e293b;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.reacon-promo-text {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
}

.reacon-promo-cta {
  white-space: nowrap;
}

/* Sección destacada de reacondicionados en index */
.section--reacon-featured {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--space-12) 0;
}

/* Admin Presets & RAM controls */
.admin-quick-type-selector {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: 1.25rem;
  padding: var(--space-3);
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  flex-wrap: wrap;
}

.quick-type-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.quick-type-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-type-buttons .btn.is-active {
  background: var(--petrol);
  color: #fff;
  border-color: var(--petrol);
}

.quick-ram-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.chip-sm {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.15s ease;
}

.chip-sm:hover {
  border-color: var(--cyan);
  background: var(--cyan-tint);
  color: var(--petrol);
}

.chip-sm--clear {
  color: var(--color-text-muted);
}

/* Card del banner en el panel Admin */
.admin-banner-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.admin-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.admin-banner-title-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.admin-banner-icon {
  font-size: 1.6rem;
}

.reacon-warranty-note {
  display: block;
  font-size: 0.78rem;
  color: #27ae60;
  font-weight: 600;
  margin-top: 3px;
}

.reacon-modal-specs {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  background: var(--bg-soft);
  padding: var(--space-3);
  border-radius: var(--radius);
  margin-top: var(--space-2);
  border: 1px solid var(--line);
}

/* Modo oscuro adaptaciones */
:root.theme-dark .store-tab-pill {
  color: var(--cyan);
  background: rgba(31, 225, 249, 0.2);
}

:root.theme-dark .reacon-cat-pill {
  color: var(--cyan);
  background: rgba(31, 225, 249, 0.15);
}

:root.theme-dark .chip--reacon {
  color: var(--cyan);
  background: rgba(31, 225, 249, 0.12);
}

:root.theme-dark .reacon-badge--battery {
  color: #2ecc71;
  background: rgba(46, 204, 113, 0.15);
  border-color: rgba(46, 204, 113, 0.3);
}

:root.theme-dark .reacon-badge--condition {
  color: var(--cyan);
  background: rgba(31, 225, 249, 0.15);
  border-color: rgba(31, 225, 249, 0.3);
}

:root.theme-dark .reacon-warranty-note {
  color: #2ecc71;
}

:root.theme-dark .reacon-badge--ram {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.4);
}

:root.theme-dark .reacon-badge--upcoming {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}

:root.theme-dark .product-stock--upcoming {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}

:root.theme-dark .reacon-promo-banner {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
}

:root.theme-dark .section--reacon-featured {
  background: rgba(255, 255, 255, 0.02);
}

/* ============================================================
   PANEL DE ADMINISTRACIÓN (admin-reacondicionados.html)
   ============================================================ */

.admin-auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
  padding: var(--space-8) var(--space-4);
}

.admin-auth-card {
  max-width: 440px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.admin-auth-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cyan-tint);
  color: var(--petrol);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.admin-auth-card h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.admin-auth-card p {
  color: var(--muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.admin-pin-form {
  text-align: left;
}

.admin-pin-form .form-group {
  margin-bottom: var(--space-4);
}

.admin-pin-form label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.admin-pin-form .form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-lg);
  letter-spacing: 2px;
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
}

.admin-pin-form .form-control:focus {
  outline: none;
  border-color: var(--petrol);
  box-shadow: 0 0 0 3px rgba(35, 105, 128, 0.2);
}

.admin-auth-hint {
  margin-top: var(--space-4);
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-authorized-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan-tint);
  border: 1px solid rgba(31, 225, 249, 0.4);
  color: var(--petrol);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.auth-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27ae60;
  display: inline-block;
  box-shadow: 0 0 6px #27ae60;
}

:root.theme-dark .admin-authorized-pill {
  background: rgba(31, 225, 249, 0.12);
  color: var(--cyan);
}

.admin-emergency-details {
  margin-top: var(--space-6);
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
  text-align: left;
}

.admin-emergency-details summary {
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  user-select: none;
}

.admin-emergency-details summary:hover {
  color: var(--ink);
}

.admin-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
}

.admin-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.admin-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.admin-user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.admin-user-email {
  font-size: 0.72rem;
  color: var(--muted);
}

.admin-alert--info {
  background: var(--cyan-tint);
  color: var(--petrol);
  border: 1px solid rgba(31, 225, 249, 0.4);
}

/* Toolbar de Dashboard */
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.admin-stats-group {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.admin-stat-badge {
  display: flex;
  flex-direction: column;
  padding: 8px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 110px;
}

.admin-stat-num {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--ink);
}

.admin-stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}

.admin-stat-badge--success .admin-stat-num {
  color: #27ae60;
}

.admin-stat-badge--paused .admin-stat-num {
  color: #e67e22;
}

.admin-actions-group {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* Formulario de carga */
.admin-form-card {
  background: var(--surface);
  border: 2px solid var(--cyan);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-lg);
}

.admin-form-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-6);
}

.admin-form-header h2 {
  font-size: var(--text-xl);
  margin-bottom: 4px;
}

.admin-form-subtitle {
  color: var(--muted);
  font-size: var(--text-sm);
  margin: 0;
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  width: 34px;
  height: 34px;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: var(--bg-soft);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.admin-form-grid .form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.req {
  color: var(--coral);
}

.admin-form-card .form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
}

.admin-form-card .form-control:focus {
  outline: none;
  border-color: var(--petrol);
  box-shadow: 0 0 0 3px rgba(35, 105, 128, 0.15);
}

/* Sección de Fotos */
.admin-photos-section {
  margin: var(--space-6) 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
}

.form-label-photos {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-3);
}

.form-label-photos span {
  font-weight: 700;
  font-size: var(--text-base);
}

.form-label-photos small {
  color: var(--muted);
  font-size: var(--text-sm);
}

.photo-dropzone {
  border: 2px dashed var(--petrol);
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s ease;
}

.photo-dropzone:hover,
.photo-dropzone.dragover {
  background: var(--cyan-tint);
  border-color: var(--cyan);
}

.dropzone-icon {
  color: var(--petrol);
  margin-bottom: var(--space-2);
}

.dropzone-text {
  font-size: var(--text-base);
  margin-bottom: 4px;
}

.dropzone-hint {
  font-size: var(--text-sm);
  color: var(--muted);
}

.photo-url-wrap {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.photo-compressing {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
  padding: var(--space-3);
  background: var(--cyan-tint);
  border-radius: var(--radius);
  color: var(--petrol);
  font-weight: 600;
  font-size: var(--text-sm);
}

.photos-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.photo-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-main-tag {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: var(--petrol);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.btn-remove-photo {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.btn-remove-photo:hover {
  background: var(--coral);
}

.photos-empty-hint {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: var(--text-sm);
  text-align: center;
  padding: var(--space-3);
  margin: 0;
}

.admin-switches-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin: var(--space-4) 0;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.admin-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 600;
}

.admin-form-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* Tarjeta y Grilla de Celulares en Admin */
.admin-list-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.admin-list-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.admin-list-title-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.admin-list-title-wrap h2 {
  font-size: var(--text-xl);
  margin: 0;
}

.admin-search-wrap {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.admin-phones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: var(--space-4);
}

.admin-phone-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s ease;
}

.admin-phone-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--petrol);
}

.admin-phone-card--paused {
  opacity: 0.65;
  border-style: dashed;
}

.admin-phone-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  overflow: hidden;
}

.admin-phone-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 4px;
}

.admin-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.admin-badge--active {
  background: #27ae60;
  color: #fff;
}

.admin-badge--paused {
  background: #7f8c8d;
  color: #fff;
}

.admin-badge--featured {
  background: #f39c12;
  color: #fff;
}

.admin-phone-content {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.admin-phone-header-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.admin-phone-title {
  font-size: var(--text-md);
  margin-bottom: var(--space-2);
}

.admin-specs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: var(--space-3);
}

.spec-pill {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--ink-soft);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.spec-pill--battery {
  background: rgba(39, 174, 96, 0.1);
  color: #27ae60;
  border-color: rgba(39, 174, 96, 0.2);
}

.spec-pill--condition {
  background: rgba(31, 225, 249, 0.12);
  color: #0d8396;
  border-color: rgba(31, 225, 249, 0.25);
}

.admin-phone-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  margin-bottom: var(--space-3);
}

.admin-phone-price {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--ink);
}

.admin-phone-stock {
  font-size: 0.8rem;
  color: var(--muted);
}

.admin-phone-actions {
  display: flex;
  gap: var(--space-1);
}

.btn--danger {
  color: var(--coral) !important;
}

.btn--danger:hover {
  background: rgba(255, 106, 94, 0.15) !important;
}

/* Empty State */
.admin-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-12) var(--space-4);
}

.admin-empty-icon {
  font-size: 3rem;
  margin-bottom: var(--space-3);
}

.admin-empty-state h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.admin-empty-state p {
  color: var(--muted);
  margin-bottom: var(--space-4);
}

/* Modal SQL Supabase */
.admin-sql-modal-dialog {
  max-width: 650px;
}

.admin-sql-body p {
  margin-bottom: var(--space-3);
}

.admin-sql-steps {
  margin: var(--space-3) 0 var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.admin-sql-steps li {
  margin-bottom: 4px;
}

.admin-sql-code-wrap {
  position: relative;
  background: #111e24;
  border-radius: var(--radius);
  padding: var(--space-4);
  max-height: 320px;
  overflow: auto;
}

.admin-sql-code-wrap pre {
  margin: 0;
  color: #92d4e8;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 0.82rem;
  line-height: 1.45;
}

.btn-copy-sql {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.admin-alert {
  padding: var(--space-3);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.admin-alert--error {
  background: rgba(255, 106, 94, 0.15);
  color: var(--coral);
  border: 1px solid rgba(255, 106, 94, 0.3);
}

.admin-alert--success {
  background: rgba(39, 174, 96, 0.15);
  color: #27ae60;
  border: 1px solid rgba(39, 174, 96, 0.3);
}

/* ============================================================
   AUTENTICACIÓN SUPERIOR (HEADER USER BUTTON & DROPDOWN & MODAL)
   ============================================================ */

.header-user-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.account-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 42px;
  padding: 0 var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: all 0.18s var(--ease-out);
}

.account-btn * {
  pointer-events: none;
}

.account-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(31, 225, 249, 0.15);
}

.nav-link--auth {
  display: none !important;
}

@media (max-width: 900px) {
  .nav-link--auth {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--cyan) !important;
  }
}

.account-btn-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.account-icon-default {
  width: 19px;
  height: 19px;
}

.account-avatar-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--cyan);
}

.account-avatar-initial {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--petrol);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.account-online-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ecc71;
  border: 1px solid var(--petrol);
  box-shadow: 0 0 4px #2ecc71;
}

@media (max-width: 640px) {
  .account-btn {
    padding: 0;
    width: 42px;
    justify-content: center;
  }
  .account-btn-label {
    display: none;
  }
}

/* Dropdown de Usuario */
.account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
  padding: var(--space-3);
  z-index: 1100;
  animation: fadeInDown 0.18s ease;
}

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

.account-drop-head {
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-2);
}

.account-drop-name {
  display: block;
  font-size: var(--text-base);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
}

.account-drop-email {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  word-break: break-all;
  margin-top: 2px;
  margin-bottom: 6px;
}

.account-role-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.account-role-badge--admin {
  background: rgba(31, 225, 249, 0.15);
  color: var(--petrol);
  border-color: rgba(31, 225, 249, 0.4);
}

:root.theme-dark .account-role-badge--admin {
  color: var(--cyan);
}

.account-drop-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-drop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.account-drop-item:hover {
  background: var(--cyan-tint);
  color: var(--petrol);
}

:root.theme-dark .account-drop-item:hover {
  background: rgba(31, 225, 249, 0.12);
  color: var(--cyan);
}

.account-drop-item--admin-btn {
  background: var(--cyan-tint);
  border: 1px solid rgba(31, 225, 249, 0.35);
  color: var(--petrol);
  font-weight: 600;
  margin-bottom: 4px;
}

:root.theme-dark .account-drop-item--admin-btn {
  background: rgba(31, 225, 249, 0.15);
  color: var(--cyan);
}

.account-drop-item--admin-btn:hover {
  background: var(--cyan);
  color: #052631;
}

.account-drop-foot {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
}

.account-logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--coral);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.account-logout-btn:hover {
  background: rgba(255, 106, 94, 0.12);
}

/* Modal Genérico de Login / Cuenta */
.smart-auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 29, 36, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: fadeInModal 0.2s ease;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.smart-auth-modal {
  max-width: 440px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: scaleUpModal 0.22s var(--ease-out);
}

@keyframes scaleUpModal {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.smart-auth-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--space-5) var(--space-6) var(--space-3);
  border-bottom: 1px solid var(--line);
}

.smart-auth-modal-head h2 {
  font-size: var(--text-xl);
  margin-bottom: 2px;
  color: var(--ink);
}

.smart-auth-modal-sub {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 0;
}

.smart-auth-modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}

.smart-auth-modal-close:hover {
  color: var(--ink);
  background: var(--bg-soft);
}

.smart-auth-modal-body {
  padding: var(--space-6);
}

.smart-auth-google-hint {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
  margin-bottom: var(--space-4);
}

.smart-auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: var(--space-4) 0;
}

.smart-auth-divider::before,
.smart-auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--line);
}

.smart-auth-divider span {
  padding: 0 10px;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.smart-auth-form .form-group {
  margin-bottom: var(--space-3);
}

.smart-auth-form label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ink);
}

.smart-auth-form .form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font-size: var(--text-base);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.smart-auth-form .form-control:focus {
  outline: none;
  border-color: var(--petrol);
  box-shadow: 0 0 0 3px rgba(35, 105, 128, 0.2);
}

/* Toast de Notificaciones */
.smart-auth-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #112832;
  color: #fff;
  border: 1px solid rgba(31, 225, 249, 0.4);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: var(--text-sm);
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  z-index: 3000;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.smart-auth-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.smart-auth-toast.toast--success {
  border-color: #27ae60;
  background: #0e291b;
  color: #8ce4af;
}

/* ============================================================
   OPTIMIZACIONES CLAVE: MOBILE-FIRST, PRUEBA SOCIAL & WHATSAPP
   ============================================================ */

/* ---------- 1. Botón Flotante de WhatsApp Contextual ---------- */
.wa-float-wrap {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  right: 20px;
  z-index: 990;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
  font-family: var(--font);
}

.wa-float-bubble {
  pointer-events: auto;
  position: relative;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 10px 14px;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 8px 24px rgba(18, 38, 49, 0.16);
  max-width: 260px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  animation: waBubbleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.wa-float-bubble:hover {
  transform: translateY(-2px);
  border-color: #25d366;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.2);
}

.wa-float-bubble.is-highlighted {
  border-color: #25d366;
  animation: waBubblePulse 0.8s ease;
}

.wa-float-online-dot {
  width: 9px;
  height: 9px;
  background: #25d366;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.25);
  animation: waPulseDot 2s infinite;
}

.wa-float-bubble-text {
  flex: 1;
  color: var(--ink);
}

.wa-float-bubble-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.wa-float-bubble-close:hover {
  color: var(--coral);
}

.wa-float-btn {
  pointer-events: auto;
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  background: linear-gradient(135deg, #2ae06d 0%, #25d366 50%, #1da851 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.wa-float-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.58);
  color: #ffffff;
}

.wa-float-btn:active {
  transform: scale(0.95);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.wa-float-pulse {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #25d366;
  opacity: 0.7;
  animation: waPulseRing 2.4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}

.wa-float-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--coral);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

@keyframes waPulseRing {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

@keyframes waPulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
}

@keyframes waBubbleIn {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes waBubblePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

:root.theme-dark .wa-float-bubble {
  background: #173847;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

:root.theme-dark .wa-float-bubble-text {
  color: #ffffff;
}

:root.theme-dark .wa-float-badge {
  border-color: #173847;
}

/* ---------- 2. Prueba Social: Local Físico Real en Lomas ---------- */
.store-showcase {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-8);
  align-items: center;
}

.store-showcase-info .eyebrow {
  margin-bottom: var(--space-2);
}

.store-showcase-info h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  line-height: 1.18;
  margin-bottom: var(--space-3);
}

.store-showcase-lead {
  font-size: var(--text-md);
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.store-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-8) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.store-features-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.store-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--petrol);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.store-feature-icon svg {
  width: 20px;
  height: 20px;
}

.store-features-list strong {
  display: block;
  font-size: var(--text-base);
  color: var(--ink);
  margin-bottom: 2px;
}

.store-features-list p {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

.store-showcase-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Galería de fotos del local */
.store-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.store-gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 14px 38px rgba(18, 38, 49, 0.16);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  aspect-ratio: 4 / 3;
}

.store-gallery-featured {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.store-gallery-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(18, 38, 49, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.store-badge-dot {
  width: 8px;
  height: 8px;
  background: #25d366;
  border-radius: 50%;
}

.store-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

.store-gallery-thumb {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  touch-action: manipulation;
  aspect-ratio: 4 / 3;
}

.store-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-gallery-thumb span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  padding: 2px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-gallery-thumb:hover {
  border-color: var(--petrol);
  transform: translateY(-2px);
}

.store-gallery-thumb.is-active {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px var(--cyan);
}

/* Badge de Reseñas en Hero */
.hero-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: var(--text-sm);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-3);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.hero-rating-badge:hover {
  border-color: #fbbc04;
  transform: translateY(-1px);
  text-decoration: none;
}

.hero-rating-badge .stars {
  color: #f59e0b;
  letter-spacing: 2px;
  font-size: 0.95rem;
}

.hero-rating-badge strong {
  font-weight: 700;
}

.hero-rating-badge .count {
  color: var(--muted);
}

/* ---------- 3. Mobile-First Ergonomics (< 2s & Pantallas Rotas) ---------- */
@media (max-width: 900px) {
  .store-showcase {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

@media (max-width: 640px) {
  /* Tap targets mínimos de 48px en móvil */
  .btn {
    min-height: 48px;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    touch-action: manipulation;
  }

  .nav-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
  }

  .nav-toggle {
    width: 48px;
    height: 48px;
    touch-action: manipulation;
  }

  .cart-btn,
  .account-btn,
  .theme-toggle {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
  }

  /* Evitar zoom molesto en inputs en Safari iOS */
  input, select, textarea {
    font-size: 16px !important;
  }

  /* WhatsApp Flotante en Móviles */
  .wa-float-wrap {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: 14px;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .wa-float-btn {
    width: 56px;
    height: 56px;
  }

  .wa-float-bubble {
    max-width: calc(100vw - 40px);
    font-size: 0.82rem;
    padding: 8px 12px;
  }

  /* Galería compacta en pantallas chicas */
  .store-gallery-thumbs {
    gap: 6px;
  }

  .store-gallery-thumb span {
    display: none; /* en móvil prima la foto limpia */
  }

  .store-showcase-actions {
    flex-direction: column;
  }

  .store-showcase-actions .btn {
    width: 100%;
  }
}

