/* ============================================================
   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-8);
}

.search-input {
  flex: 1;
  min-width: 240px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: var(--text-base);
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
}

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

.search-input:focus {
  outline: 2px solid var(--cyan);
  outline-offset: -1px;
  border-color: transparent;
}

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

.sort-select {
  max-width: 100%;
  padding: 0.65rem 2rem 0.65rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: var(--text-base);
  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.6rem center;
  background-size: 16px;
}

.sort-select:focus {
  outline: 2px solid var(--cyan);
  outline-offset: -1px;
  border-color: transparent;
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.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.4rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  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);
}

.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);
}

.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(240px, 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);
  transition: box-shadow 0.28s var(--ease-out),
    transform 0.28s var(--ease-out),
    border-color 0.28s 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.28s var(--ease-out);
  pointer-events: none;
  z-index: 1;
}

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

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

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

.product-media {
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  background-image: linear-gradient(150deg, #ebf6f9 0%, var(--petrol-tint) 55%, var(--cyan-tint) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

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

.product-media .hover-swap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
}

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

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

.product-media--empty {
  color: var(--muted);
  font-size: var(--text-sm);
}

.product-media--nogfx::after {
  content: "Imagen próximamente";
  color: var(--muted);
  font-size: var(--text-sm);
}

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

.product-name {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.3;
}

.product-cat {
  align-self: flex-start;
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--petrol);
  background: var(--cyan-tint);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  margin-bottom: var(--space-1);
}

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

.product-sku {
  font-size: var(--text-sm);
  color: var(--muted);
}

.product-price {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--petrol);
}

.product-stock {
  font-size: var(--text-sm);
  font-weight: 500;
}

.product-stock--ok {
  color: #2e7d3c;
}

.product-stock--low {
  color: #b26a00;
}

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

.product-actions {
  margin-top: auto;
  padding-top: var(--space-2);
  display: grid;
  gap: var(--space-2);
}

/* ---------- 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: var(--bg-soft);
  background-image: linear-gradient(150deg, #ebf6f9 0%, var(--petrol-tint) 55%, var(--cyan-tint) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-modal-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  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;
}

.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, rgba(255, 255, 255, 0) 55%, rgba(223, 238, 242, 0.4) 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%, var(--petrol) 130px, var(--bg-soft) 260px);
  border-bottom: 1px solid var(--line);
  padding: var(--space-12) 0;
}

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

.page-hero .section-lead {
  max-width: 60ch;
}

.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) {
  /* El buscador con min-width fijo empujaba la barra de filtros
     fuera de pantalla en equipos de 320px. */
  .search-input {
    min-width: 0;
    flex: 1 1 100%;
  }

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

  .sort-select {
    flex: 1 1 100%;
  }

  /* 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);
  }

  .search-input,
  .sort-select {
    flex: 1 1 100%;
  }
}