/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --navy:      #0a1a2f;
  --navy-2:    #0f2544;
  --navy-3:    #17355c;
  --navy-line: rgba(255,255,255,0.14);
  --brand-blue: #027cc0;

  --red:       #e2231a;
  --red-2:     #b91710;
  --red-soft:  rgba(226,35,26,0.14);

  --teal:      #1f8f6e;
  --gold:      #d4a24c;
  --gold-soft: rgba(212,162,76,0.35);

  --paper:     #f7f8fa;
  --white:     #ffffff;
  --ink:       #0e1626;
  --ink-soft:  #2c3648;
  --ink-mute:  #5b6472;
  --line:      rgba(14,22,38,0.1);

  --display: "Archivo", "Arial Black", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --container: 1200px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  text-wrap: balance;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: var(--white); }

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

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

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--white); color: var(--ink);
  z-index: 9999; border-radius: 8px; font-weight: 700;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.text-red { color: var(--red); }

[data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

[data-reveal-mask] {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s var(--ease-soft);
}
[data-reveal-mask].is-revealed { clip-path: inset(0); }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .95rem 1.9rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  box-shadow: 0 4px 14px rgba(10,26,47,0.08);
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft), background .3s var(--ease-out), color .3s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--red-2);
  box-shadow: 0 20px 40px -12px rgba(226,35,26,0.45);
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  filter: brightness(0.94);
  box-shadow: 0 20px 40px -12px rgba(212,162,76,0.5);
}
.btn-ghost-light {
  border: 1.5px solid rgba(255,255,255,0.35);
  color: var(--white);
  background: rgba(255,255,255,0.04);
}
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-sm { padding: .65rem 1.3rem; font-size: .85rem; }
@media (max-width: 480px) {
  .nav-actions .btn-sm { padding: .55rem .85rem; font-size: .76rem; }
  .nav-actions { gap: .6rem; }
}
.btn-block { width: 100%; position: relative; overflow: hidden; }

/* Magnetic wrapper */
.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner {
  display: inline-flex; align-items: center; justify-content: center; gap: inherit;
  will-change: transform;
  transition: transform .8s var(--ease-soft);
}

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease-out);
}
.nav.is-scrolled { box-shadow: 0 8px 24px rgba(10,26,47,0.08); }

.nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1rem;
  padding-block: .7rem;
}

/* Below the nav-menu breakpoint: logo + hamburger on top,
   cart + CTA button right-aligned on their own row underneath. */
@media (max-width: 959px) {
  .nav-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo burger"
      "cart actions";
    align-items: center;
    row-gap: .6rem;
    column-gap: 1rem;
  }
  .logo { grid-area: logo; justify-self: start; }
  .nav-burger { grid-area: burger; justify-self: end; }
  .nav-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .6rem;
  }
  .cart-btn { grid-area: cart; justify-self: start; }
}

.logo { display: inline-flex; flex-shrink: 0; border-radius: 8px; overflow: hidden; box-shadow: 0 6px 16px rgba(226,35,26,0.25); }
.logo-img { display: block; height: 44px; width: auto; max-width: none; }
@media (max-width: 420px) { .logo-img { height: 36px; } }

.nav-menu { display: none; align-items: center; gap: 1.75rem; }
.nav-link {
  position: relative;
  padding: .3rem 0;
  font-weight: 700;
  font-size: .92rem;
  color: var(--brand-blue);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-actions { display: flex; align-items: center; gap: .9rem; }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: var(--navy);
  transition: background .25s var(--ease-out);
}
.cart-btn:hover { background: var(--paper); }
.cart-count {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: .65rem;
  font-weight: 700;
  display: grid; place-items: center;
  line-height: 1;
}
.cart-count[hidden] { display: none; }

.cart-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(10,26,47,0.45);
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out);
}
.cart-overlay[aria-hidden="false"] { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 401;
  width: min(400px, 100%);
  background: var(--white);
  box-shadow: -20px 0 60px rgba(10,26,47,0.25);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .45s var(--ease-soft);
}
.cart-drawer[aria-hidden="false"] { transform: translateX(0); }

.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 1.5rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.cart-drawer-header h3 { font-size: 1.15rem; color: var(--navy); }
.cart-drawer-close {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-mute);
  transition: background .2s;
}
.cart-drawer-close:hover { background: var(--paper); color: var(--navy); }

.cart-drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-empty-msg { color: var(--ink-mute); font-size: .92rem; text-align: center; padding-block: 2rem; }
.cart-empty-msg[hidden] { display: none; }

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: .8rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.cart-item-info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.cart-item-info strong { font-size: .92rem; color: var(--navy); }
.cart-item-info span { font-size: .78rem; color: var(--ink-mute); text-transform: capitalize; }
.cart-item-qty {
  display: flex; align-items: center; gap: .5rem;
  font-size: .88rem; font-weight: 700; color: var(--navy);
}
.cart-item-qty button {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: .85rem; line-height: 1;
  transition: border-color .2s, color .2s;
}
.cart-item-qty button:hover { border-color: var(--red); color: var(--red); }
.cart-item-remove { color: var(--ink-mute); font-size: .9rem; transition: color .2s; }
.cart-item-remove:hover { color: var(--red); }

.cart-drawer-footer { padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid var(--line); }
.cart-drawer-footer .cart-clear {
  display: block; text-align: center; margin-top: .8rem;
  font-size: .82rem; color: var(--ink-mute);
}
.cart-drawer-footer .cart-clear:hover { color: var(--red); }

.nav-phone {
  display: none;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  font-size: .88rem;
  color: var(--navy);
}
.nav-phone svg { color: var(--red); }

.nav-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
}
.nav-burger span {
  display: block; width: 100%; height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .35s var(--ease-soft), opacity .3s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.subnav { background: var(--navy); }
.subnav-inner {
  display: flex; justify-content: center; gap: .6rem;
  padding-block: .5rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(255,255,255,0.75);
}
.subnav-inner a:hover { color: var(--white); }
.subnav-dot { color: rgba(255,255,255,0.3); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 300;
  background: var(--navy); color: var(--white);
  display: grid; place-items: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}
.nav-mobile[aria-hidden="false"] { clip-path: inset(0); }
.nav-mobile nav { display: flex; flex-direction: column; align-items: center; gap: 1.75rem; }
.nav-mobile a { font-family: var(--display); font-size: 1.6rem; font-weight: 800; }
.nav-mobile-phone { font-family: var(--sans) !important; font-size: 1rem !important; color: var(--red); margin-top: .5rem; }

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  overflow: clip;
  background: var(--navy);
  color: var(--white);
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  isolation: isolate;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; display: block; }
@media (max-width: 539px) { .hero-bg img { object-position: 88% 50%; } }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,14,26,0.92) 0%, rgba(6,14,26,0.78) 38%, rgba(6,14,26,0.32) 68%, rgba(6,14,26,0.12) 100%),
    linear-gradient(0deg, rgba(6,14,26,0.55) 0%, transparent 30%);
}

.hero-inner { position: relative; z-index: 1; padding-block: clamp(5rem, 12vw, 7rem); max-width: 34rem; margin-inline: 0; margin-right: auto; }

/* Below ~720px the photo crop can't guarantee a dark zone under the text
   (the product needs to stay in frame), so the text sits on its own
   frosted panel instead of relying purely on the image gradient. */
@media (max-width: 719px) {
  .hero-inner {
    padding: 1.5rem 1.25rem;
    margin-block: 6rem 1.5rem;
    background: rgba(6,14,26,0.68);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media (max-width: 719px) {
    .hero-inner { background: rgba(6,14,26,0.85); }
  }
}

.eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 1.1rem;
}
.eyebrow-dark { color: var(--red); }

.hero-eyebrow {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  line-height: 1.02;
  color: var(--white);
  max-width: 14ch;
}
.hero-title-accent { color: var(--gold); }

.hero-sub {
  margin-top: 1.4rem;
  color: rgba(255,255,255,0.82);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 32rem;
}

.hero-trust { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 1.3rem 1.8rem; }
.hero-trust-item { display: flex; align-items: center; gap: .65rem; }
.hero-trust-icon {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}
.hero-trust-item span:last-child { color: var(--white); font-size: .86rem; font-weight: 600; max-width: 9rem; line-height: 1.25; }

.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-actions .btn { border-radius: 999px; }
.hero-actions .btn-gold { gap: .5rem; }

.hero-badge {
  position: absolute;
  z-index: 2;
  top: 1.5rem;
  right: 1.25rem;
}
@media (min-width: 720px) { .hero-badge { top: 2.5rem; right: 3rem; } }
.hero-badge-ring {
  position: relative;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--navy);
  display: grid; place-items: center;
  box-shadow: 0 14px 34px rgba(10,26,47,0.5);
  flex-shrink: 0;
  text-align: center;
  color: var(--white);
  font-weight: 700;
  font-size: .7rem;
  line-height: 1.15;
  padding: .3rem;
}
.hero-badge-ring::before {
  content: "";
  position: absolute; inset: -7px;
  border-radius: 50%;
  border: 1.5px dashed var(--gold-soft);
  animation: spinSlow 14s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.hero-badge-ring strong { display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 900; color: var(--gold); }

.hero-scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 20px;
}
.hero-scroll-cue span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 2px;
  background: var(--red);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  0%, 100% { transform: translate(-50%, 0); opacity: 1; }
  50% { transform: translate(-50%, 12px); opacity: .3; }
}

/* =============================================================
   7. Stats strip
   ============================================================= */
.stats {
  position: relative;
  z-index: 3;
  background: var(--white);
  margin-top: -3.5rem;
  border-radius: 20px;
  max-width: calc(var(--container) - 1rem);
  margin-inline: auto;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(10,26,47,0.18);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
  padding-block: 2rem;
}
.stat { text-align: center; position: relative; }
.stat::before {
  content: "";
  position: absolute; left: -.5rem; top: 10%; bottom: 10%;
  width: 1px; background: var(--line);
}
.stat:nth-child(odd)::before { display: none; }
@media (min-width: 540px) {
  .stat::before { display: block; }
  .stat:first-child::before { display: none; }
}
.stat-num {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--navy);
}
.stat-num::selection { background: var(--red); }
.stat-label {
  display: block;
  margin-top: .3rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: .01em;
}

/* =============================================================
   8. Sections
   ============================================================= */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-dark { background: var(--navy); color: var(--white); }
.section-alt { background: var(--white); }

.section-title { font-size: clamp(1.9rem, 4vw, 2.7rem); max-width: 22ch; }
.section-title-light { color: var(--white); }
.section-lead {
  color: var(--ink-mute);
  margin-top: .9rem;
  max-width: 46ch;
  font-size: 1.05rem;
}
.section-lead-light { color: rgba(255,255,255,0.72); }

/* Intro */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.intro-copy p { margin-top: 1rem; color: var(--ink-soft); }
.intro-copy .section-title { margin-top: .4rem; }
.intro-copy .btn { margin-top: 1.75rem; }

.intro-media { position: relative; }
.media-placeholder {
  aspect-ratio: 4/3;
  border-radius: 20px;
  background: repeating-linear-gradient(45deg, #eef0f3, #eef0f3 12px, #e3e6ea 12px, #e3e6ea 24px);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--ink-mute);
  font-weight: 600;
  font-size: .85rem;
  overflow: hidden;
}
.media-placeholder img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.intro-media-badge {
  position: absolute;
  bottom: -1.2rem; left: -1.2rem;
  background: var(--red);
  color: var(--white);
  border-radius: 16px;
  padding: 1rem 1.3rem;
  display: flex; align-items: center; gap: .6rem;
  box-shadow: 0 20px 40px -14px rgba(226,35,26,0.5);
}
.intro-media-badge strong { font-family: var(--display); font-size: 2.2rem; font-weight: 900; line-height: 1; }
.intro-media-badge span { font-size: .72rem; font-weight: 700; line-height: 1.2; }

/* Advantages */
.grid-advantages {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.advantage-card {
  position: relative;
  isolation: isolate;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.9rem 1.7rem;
  perspective: 900px;
  transform-style: preserve-3d;
  box-shadow: 0 4px 20px rgba(10,26,47,0.05);
  transition: border-color .4s var(--ease-out), box-shadow .4s var(--ease-out), transform .4s var(--ease-soft);
}
.advantage-card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(226,35,26,.12), transparent 60%);
  opacity: 0; transition: opacity .35s;
}
.advantage-card:hover {
  border-color: rgba(226,35,26,0.3);
  box-shadow: 0 26px 50px -18px rgba(10,26,47,0.18);
  transform: translateY(-4px);
}
.advantage-card:hover::before { opacity: 1; }
.advantage-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
}
.advantage-card h3 { font-size: 1.12rem; color: var(--navy); margin-bottom: .5rem; }
.advantage-card p { color: var(--ink-mute); font-size: .93rem; font-family: var(--sans); font-weight: 400; }

/* Catalog */
.grid-catalog {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.catalog-card {
  position: relative;
  isolation: isolate;
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(10,26,47,0.05);
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.catalog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 60px -20px rgba(10,26,47,0.28);
}
.catalog-img {
  aspect-ratio: 4/3;
  background: repeating-linear-gradient(45deg, #eef0f3, #eef0f3 12px, #e3e6ea 12px, #e3e6ea 24px);
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--ink-mute);
  font-weight: 600; font-size: .78rem; padding: 1rem;
  overflow: hidden;
}
.catalog-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-soft);
}
.catalog-card:hover .catalog-img img { transform: scale(1.08); }
.catalog-body { padding: 1.6rem 1.5rem 1.8rem; }
.catalog-body h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.catalog-body p { color: var(--ink-mute); font-size: .93rem; margin-bottom: 1.2rem; }
.catalog-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; font-size: .9rem; color: var(--red);
  position: relative;
}
.catalog-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.catalog-card:hover .catalog-link::after { transform: scaleX(1); transform-origin: left; }

/* =============================================================
   Chat widget (floating assistant)
   ============================================================= */
.chat-fab {
  position: fixed; z-index: 500;
  bottom: 1.5rem; right: 1.5rem;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--red);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(226,35,26,0.45);
  transition: transform .3s var(--ease-soft);
  animation: chatPulse 3.2s ease-in-out infinite;
}
.chat-fab:hover { transform: scale(1.08); }
@keyframes chatPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(226,35,26,0.45), 0 0 0 0 rgba(226,35,26,0.35); }
  50% { box-shadow: 0 10px 30px rgba(226,35,26,0.45), 0 0 0 12px rgba(226,35,26,0); }
}

.chat-window {
  position: fixed; z-index: 501;
  bottom: 6rem; right: 1.5rem;
  width: min(360px, calc(100vw - 2rem));
  max-height: min(520px, calc(100vh - 8rem));
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(10,26,47,0.35);
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(.97);
  pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-soft);
}
.chat-window[aria-hidden="false"] { opacity: 1; transform: none; pointer-events: auto; }

.chat-header {
  background: var(--red); color: var(--white);
  padding: 1rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700;
}
.chat-header button { color: var(--white); display: grid; place-items: center; }

.chat-body {
  flex: 1; overflow-y: auto;
  padding: 1rem 1.1rem;
  display: flex; flex-direction: column; gap: .7rem;
  background: var(--paper);
}
.chat-msg {
  max-width: 84%;
  padding: .65rem .9rem;
  border-radius: 14px;
  font-size: .88rem;
  line-height: 1.45;
}
.chat-msg-bot { align-self: flex-start; background: var(--white); border: 1px solid var(--line); color: var(--ink-soft); border-bottom-left-radius: 4px; }
.chat-msg-user { align-self: flex-end; background: var(--navy); color: var(--white); border-bottom-right-radius: 4px; }

.chat-form {
  display: flex; align-items: center; gap: .6rem;
  padding: .8rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.chat-form input {
  flex: 1; border: 1px solid var(--line); border-radius: 999px;
  padding: .65rem 1rem; font-size: .88rem; background: var(--paper);
}
.chat-form input:focus { outline: none; border-color: var(--red); }
.chat-form button[type=submit] {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--red); color: var(--white);
  display: grid; place-items: center; flex-shrink: 0;
}

@media (max-width: 420px) {
  .chat-window { right: 1rem; bottom: 5.5rem; }
  .chat-fab { right: 1rem; bottom: 1.25rem; width: 54px; height: 54px; }
}

/* =============================================================
   Category pages (mamparas / tuberías / herramientas)
   ============================================================= */
.cat-hero {
  position: relative;
  overflow: clip;
  background: var(--navy);
  color: var(--white);
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
}
.cat-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.cat-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,26,47,.35) 0%, rgba(10,26,47,.92) 88%);
}
.cat-hero-inner { position: relative; z-index: 1; padding-block: 3rem 2.5rem; }
.breadcrumb { font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 1.1rem; }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: var(--red); }
.cat-inline-breadcrumb { color: var(--ink-mute); margin-bottom: 1rem; }
.cat-inline-breadcrumb a { color: var(--ink-mute); }
.cat-inline-breadcrumb a:hover { color: var(--brand-blue); }
.cat-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--white); }
.cat-hero-lead { margin-top: .9rem; color: rgba(255,255,255,.75); max-width: 46rem; font-size: 1.02rem; }

.cat-trust-bar { background: var(--paper); border-bottom: 1px solid var(--line); }
.cat-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 1rem;
  padding-block: 1.5rem;
}
@media (min-width: 720px) { .cat-trust-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-trust-item { display: flex; align-items: center; gap: .7rem; }
.cat-trust-item svg { flex-shrink: 0; color: var(--brand-blue); }
.cat-trust-item strong { display: block; font-size: .85rem; color: var(--navy); }
.cat-trust-item span { display: block; font-size: .76rem; color: var(--ink-mute); }

.color-swatches { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin-bottom: .6rem; }
.swatch {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--swatch-color, #ccc);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  padding: 0;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.swatch:hover { transform: scale(1.1); }
.swatch:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
.swatch[data-selected="true"] { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--brand-blue); }
.swatch-ral { background: conic-gradient(from 0deg, #e2231a, #f2b705, #1f8f6e, #027cc0, #7b2fe0, #e2231a); }
.color-selected-label { font-size: .8rem; color: var(--ink-mute); margin-bottom: .9rem; }
.color-selected-label strong { color: var(--navy); }

/* Catalog filter/sort toolbar */
.catalog-toolbar {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.2rem 1.6rem;
  padding: 1.2rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.catalog-toolbar .field-select { min-width: 170px; margin-bottom: 0; }
.catalog-toolbar .field-select select {
  width: 100%; padding: .65rem .9rem; border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--white); font-size: .88rem; color: var(--navy); font-family: var(--sans);
}
.catalog-toolbar-note { margin-left: auto; font-size: .82rem; color: var(--ink-mute); align-self: center; }
.catalog-toolbar-note strong { color: var(--navy); }

.btn-view-detail {
  font-size: .84rem; font-weight: 700; color: var(--brand-blue);
  display: inline-flex; align-items: center; gap: .3rem;
}
.btn-view-detail:hover { text-decoration: underline; }

/* Product detail modal */
.product-modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(10,26,47,0.55);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease-out);
}
.product-modal-overlay[aria-hidden="false"] { opacity: 1; pointer-events: auto; }
.product-modal {
  position: fixed; z-index: 501;
  top: 50%; left: 50%;
  transform: translate(-50%, -48%) scale(.97);
  width: min(880px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 40px 90px -20px rgba(10,26,47,0.4);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .35s var(--ease-soft);
}
.product-modal[aria-hidden="false"] { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.product-modal-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); box-shadow: 0 4px 14px rgba(10,26,47,.15);
  display: grid; place-items: center; color: var(--navy);
}
.product-modal-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 720px) { .product-modal-grid { grid-template-columns: 1fr 1fr; } }
.product-modal-media { aspect-ratio: 1/1; background: var(--paper); }
.product-modal-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-modal-body { padding: 1.8rem; }
.product-modal-body h3 { font-size: 1.35rem; color: var(--navy); margin-bottom: .5rem; }
.product-modal-specs .product-spec { margin-bottom: .4rem; }
.product-modal-price { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--navy); margin: .8rem 0 1.1rem; }
.product-modal-price span { display: block; font-family: var(--sans); font-weight: 500; font-size: .8rem; color: var(--ink-mute); }
.product-modal-actions { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.2rem; }
.product-modal-related { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.product-modal-related h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute); margin-bottom: .8rem; }
.related-list { display: flex; gap: .8rem; flex-wrap: wrap; }
.related-item { display: flex; align-items: center; gap: .6rem; padding: .4rem .7rem .4rem .4rem; border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s; }
.related-item:hover { border-color: var(--brand-blue); }
.related-item img { width: 42px; height: 42px; object-fit: cover; border-radius: 6px; }
.related-item span { font-size: .78rem; color: var(--navy); font-weight: 600; }
html.modal-open { overflow: hidden; }

/* Category education / SEO block */
.cat-education { margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.cat-education h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 1.2rem; }
.cat-education h3:not(:first-child) { margin-top: 2.6rem; }
.education-grid { display: grid; grid-template-columns: 1fr; gap: 1.3rem; }
@media (min-width: 640px) { .education-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .education-grid { grid-template-columns: repeat(3, 1fr); } }
.education-item h4 { font-size: .98rem; color: var(--navy); margin-bottom: .35rem; }
.education-item p { font-size: .88rem; color: var(--ink-mute); }
.glass-guide { display: flex; flex-wrap: wrap; gap: 1rem; }
.glass-guide-item { flex: 1 1 200px; padding: 1.1rem 1.2rem; background: var(--paper); border-radius: 12px; }
.glass-guide-item strong { display: block; font-family: var(--display); font-size: 1.3rem; color: var(--navy); margin-bottom: .3rem; }
.glass-guide-item span { font-size: .85rem; color: var(--ink-mute); }
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding-block: 1rem;
}
.faq-list summary {
  cursor: pointer; font-weight: 700; color: var(--navy); font-size: .96rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.3rem; color: var(--brand-blue); flex-shrink: 0; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { margin-top: .7rem; font-size: .9rem; color: var(--ink-mute); }

.grid-products {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 540px) { .grid-products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-products { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(10,26,47,0.05);
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft);
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -18px rgba(10,26,47,0.25); }
.product-img {
  aspect-ratio: 1/1;
  background: repeating-linear-gradient(45deg, #eef0f3, #eef0f3 12px, #e3e6ea 12px, #e3e6ea 24px);
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--ink-mute);
  font-weight: 600; font-size: .78rem; padding: 1rem;
}
.product-body { padding: 1.4rem 1.3rem 1.6rem; }
.product-body h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.product-spec { color: var(--ink-mute); font-size: .85rem; margin-bottom: .5rem; }
.product-spec:last-of-type { margin-bottom: 1.1rem; }
.product-spec-more { display: block; font-size: .78rem; color: var(--ink-mute); opacity: .8; margin-top: .15rem; }
.product-price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 1.1rem;
}
.product-price span {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .78rem;
  color: var(--ink-mute);
  margin-top: .1rem;
}
.product-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.btn-add-cart {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-weight: 700;
  font-size: .84rem;
  transition: background .25s var(--ease-out), color .25s var(--ease-out);
}
.btn-add-cart:hover { background: var(--navy); color: var(--white); }
.btn-add-cart.is-added { background: var(--teal); border-color: var(--teal); color: var(--white); }

.cat-subsection-title { margin-top: 0; }
.cat-finishes-divider { margin-top: 3.5rem; }
.cat-subsection + .cat-subsection { margin-top: clamp(3rem, 6vw, 5rem); }

.cat-cta { text-align: center; }
.cat-cta .section-lead { margin-inline: auto; }
.cat-cta .btn { margin-top: 1.5rem; }

/* Testimonials */
.grid-testimonials {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.8rem;
}
.testimonial-stars { color: var(--red); font-size: 1rem; letter-spacing: .1em; margin-bottom: 1rem; }
.testimonial-card p.testimonial-text { color: var(--ink-soft); font-size: .97rem; margin-bottom: 1.4rem; }
.testimonial-who { display: flex; align-items: center; gap: .8rem; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: .85rem;
  flex-shrink: 0;
}
.testimonial-who-name { display: flex; flex-direction: column; }
.testimonial-who-name strong { font-size: .92rem; }
.testimonial-who-name span { display: block; font-size: .8rem; color: var(--ink-mute); }

/* =============================================================
   9. Contact
   ============================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.contact-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.3rem; }
.contact-list li { display: flex; align-items: flex-start; gap: .9rem; }
.contact-list svg { color: var(--red); flex-shrink: 0; margin-top: .2rem; }
.contact-list strong { display: block; font-size: 1rem; color: var(--white); }
.contact-list span { display: block; font-size: .87rem; color: rgba(255,255,255,0.65); margin-top: .15rem; }

.contact-form-wrap { position: relative; }
.cta-form {
  background: var(--white);
  color: var(--ink);
  border-radius: 20px;
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1.1rem;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.35);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-soft);
}
.cta-form h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.cta-form.is-sent { opacity: 0; transform: translateY(-12px); pointer-events: none; position: absolute; inset: 0; }

.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 1.3rem 1rem .5rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  transition: border-color .25s var(--ease-out);
  resize: vertical;
}
.field textarea { min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); outline: none; }
.field label {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  pointer-events: none; transition: all .22s var(--ease-out);
  color: var(--ink-mute); font-size: .95rem;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field-select label {
  top: .55rem; transform: none; font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 700;
}
.field-select select:invalid { color: var(--ink-mute); }
.field-select { display: flex; flex-direction: column; }
.field-select select { order: 2; }
.field-select label { position: static; margin-bottom: .35rem; order: 1; font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; color: var(--ink-mute); }

.cta-submit { margin-top: .4rem; position: relative; }
.cta-form-spinner, .cta-form-check {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; pointer-events: none;
}
.cta-form.is-sending .cta-form-label { opacity: 0; }
.cta-form.is-sending .cta-form-spinner { opacity: 1; }
.cta-form-spinner::after {
  content: ""; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: var(--white);
  border-radius: 50%; animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cta-success {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  opacity: 0; pointer-events: none;
  transform: translateY(12px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-soft);
}
.cta-success svg { color: var(--teal); margin-bottom: 1rem; }
.cta-success h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.cta-success p { color: var(--ink-mute); font-size: .93rem; }
.cta-success.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* =============================================================
   10. Footer
   ============================================================= */
.footer { background: var(--navy); color: rgba(255,255,255,0.7); padding-top: 4rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--navy-line);
  text-align: center;
}
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; }
.footer-col p { font-size: .88rem; margin-bottom: .5rem; }
.footer-col p a:hover { color: var(--white); text-decoration: underline; }
.footer-col-center { display: flex; flex-direction: column; align-items: center; }
.logo-img-footer { height: 40px; margin-bottom: 1rem; border-radius: 8px; }
.footer-tagline { max-width: 22ch; font-size: .85rem; }

.footer-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem;
  padding-block: 1.5rem;
  font-size: .78rem;
  color: rgba(255,255,255,0.55);
  border-bottom: 1px solid var(--navy-line);
}

.footer-bottom {
  display: flex; flex-direction: column; gap: 1rem; align-items: center;
  padding-block: 1.5rem 2rem;
  font-size: .78rem;
  text-align: center;
}
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.footer-legal a:hover { color: var(--white); }

/* =============================================================
   11. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .grid-advantages { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 720px) {
  .grid-catalog { grid-template-columns: repeat(3, 1fr); }
  .grid-testimonials { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); text-align: left; }
  .footer-col-center { align-items: flex-start; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 960px) {
  .nav-menu { display: flex; }
  .nav-phone { display: inline-flex; }
  .nav-burger { display: none; }
  .cart-btn { order: 1; }
  .nav-actions { order: 2; }

  .intro-grid { grid-template-columns: 1.05fr 0.95fr; }
  .grid-advantages { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

/* =============================================================
   12. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-badge-ring::before { animation: none; }
  .hero-scroll-cue span { animation: none; }
  .chat-fab { animation: none; }
}
