/* ============================================================
   QUANTIC SHOP — mockup de tienda (azul corporativo)
   Solo front. Sin funcionalidad.
   ============================================================ */

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/instrument-sans.woff2') format('woff2');
}

:root {
  --navy:      #16386E;   /* barra superior, franja garantías */
  --navy-2:    #1B4A8F;
  --navy-3:    #0F2C58;
  --blue:      #1F7BC4;   /* acento, códigos Q1/K0/R0 */
  --blue-soft: #EAF3FB;
  --cyan:      #29ABE2;   /* marca Quantic */
  --ink:       #1C2B41;
  --ink-2:     #55637A;
  --ink-3:     #8895A8;
  --card:      #F4F6F9;
  --line:      #E3E8EF;
  --white:     #FFFFFF;
  --ok:        #2BA463;

  --r:    10px;
  --r-lg: 14px;
  --wrap: 1200px;
  --ease: cubic-bezier(.32,.72,0,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: 16px; line-height: 1.55; color: var(--ink);
  background: var(--white); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
[data-inert] { cursor: pointer; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

/* ---------------- Topbar ---------------- */
.topbar { background: var(--navy); color: rgba(255,255,255,.9); font-size: 12.5px; }
.topbar__in { display: flex; align-items: center; gap: 26px; min-height: 38px; flex-wrap: wrap; }
.topbar__in .sep { margin-left: auto; }
.tb-i { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.tb-i svg { width: 15px; height: 15px; opacity: .9; flex: none; }
.tb-i b { font-weight: 600; }
.tb-offer { font-weight: 600; letter-spacing: .01em; }
.tb-flag { width: 17px; height: 12px; border-radius: 2px; overflow: hidden; display: inline-block; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
@media (max-width: 900px) { .topbar__in { min-height: 34px; gap: 16px; font-size: 11.5px; } .tb-hide { display: none; } }

/* ---------------- Header ---------------- */
.hdr { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.hdr__in { display: flex; align-items: center; gap: 20px; min-height: 78px; }
.hdr__logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink); padding: 28px 0; border-bottom: 3px solid transparent; transition: color .2s; }
.nav a:hover { color: var(--blue); }
.nav a.is-active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.hdr__search { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); transition: background .2s; }
.hdr__search:hover { background: var(--card); }
.hdr__search svg { width: 20px; height: 20px; }
.hdr__burger { display: none; width: 42px; height: 42px; border-radius: 8px; place-items: center; color: var(--ink); }
.hdr__burger svg { width: 24px; height: 24px; }
@media (max-width: 1000px) {
  .hdr__in { min-height: 66px; }
  .hdr__logo img { height: 38px; }
  .nav { display: none; }
  .hdr__burger { display: grid; margin-left: auto; }
}

/* menú móvil */
.mnav { display: none; background: var(--white); border-bottom: 1px solid var(--line); }
.mnav.open { display: block; }
.mnav a { display: block; padding: 13px 22px; font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--line); }
.mnav a.is-active { color: var(--blue); font-weight: 600; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(175deg, #DDEEFB 0%, #EAF4FD 42%, #F7FBFE 78%, #FFFFFF 100%);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(255,255,255,0) 70%);
}
.hero::before { width: 420px; height: 420px; right: -60px; top: -120px; }
.hero::after  { width: 300px; height: 300px; right: 38%; bottom: -140px; }
.hero__in { display: grid; grid-template-columns: 1fr 1.08fr; gap: 30px; align-items: center; padding: 46px 22px 34px; }
.hero h1 { font-size: clamp(30px, 4.1vw, 46px); line-height: 1.14; letter-spacing: -.02em; color: var(--navy); font-weight: 400; }
.hero h1 b { display: block; font-weight: 700; }
.hero p { color: var(--ink-2); font-size: 16.5px; margin-top: 16px; max-width: 27em; line-height: 1.62; }
.hero .btn { margin-top: 26px; }
.hero__media { position: relative; display: grid; place-items: center; min-height: 260px; }
.hero__media .stage { position: relative; width: 100%; max-width: 680px; display: flex; align-items: center; justify-content: center; }
.hero__media img { filter: drop-shadow(0 24px 34px rgba(22,56,110,.22)); }
.hero__media .h-q1 { width: 54%; transform: rotate(-5deg) translateY(4%); z-index: 3; }
.hero__media .h-k0 { width: 46%; margin-left: -11%; z-index: 2; }
.hero__media .h-r0 { width: 40%; margin-left: -8%; transform: translateY(-4%); z-index: 1; }
@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; padding: 34px 22px 26px; gap: 18px; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero__media { min-height: 0; }
  .hero__media .stage { max-width: 440px; }
  /* los anchos + solapes deben sumar <100% para que nada se corte */
  .hero__media .h-q1 { width: 44%; }
  .hero__media .h-k0 { width: 38%; margin-left: -10%; }
  .hero__media .h-r0 { width: 32%; margin-left: -7%; }
}

/* ---------------- Botones ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  background: var(--navy); color: #fff; font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: var(--r);
  transition: background .22s var(--ease), transform .22s var(--ease), box-shadow .22s;
  box-shadow: 0 8px 20px -10px rgba(22,56,110,.7);
}
.btn:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; }
.btn--sm { padding: 9px 16px; font-size: 13.5px; gap: 7px; border-radius: 8px; }
.btn--ghost { background: #fff; color: var(--navy); box-shadow: none; border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--card); }
.btn--white { background: #fff; color: var(--navy); box-shadow: none; }
.btn--white:hover { background: #EAF3FB; }
.btn--wide { width: 100%; }

/* ---------------- Secciones ---------------- */
.sec { padding: 46px 0; }
.sec--tight { padding: 16px 0; }
/* la fila de zonas enlaza con el trío: menos aire entre ambas */
#zonas { padding-bottom: 24px; }
.sec-title { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.sec-title::before, .sec-title::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.sec-title h2 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; color: var(--navy); letter-spacing: -.01em; white-space: nowrap; }

.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(18px, 2.3vw, 22px); font-weight: 700; color: var(--navy); display: inline-flex; align-items: center; gap: 10px; }
.sec-head h2 svg { width: 22px; height: 22px; color: var(--blue); }
.sec-head p { color: var(--ink-2); font-size: 14.5px; }

/* ---------------- Zonas (Q1 / K0 / R0) ---------------- */
.zonas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 950px) { .zonas { grid-template-columns: 1fr; } }
.zona {
  background: var(--card); border-radius: var(--r-lg); padding: 24px 0 22px 22px;
  display: grid; grid-template-columns: 1fr 1.02fr; gap: 4px; align-items: center;
  position: relative; overflow: hidden; min-height: 262px;
  transition: box-shadow .28s var(--ease), transform .28s var(--ease);
}
.zona:hover { box-shadow: 0 18px 40px -22px rgba(22,56,110,.4); transform: translateY(-3px); }
.zona__k { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--navy); text-transform: uppercase; }
.zona__sub { font-size: 14.5px; color: var(--ink-2); margin-top: 1px; }
.zona__code { font-size: 44px; line-height: 1; font-weight: 700; color: var(--blue); letter-spacing: -.02em; margin: 6px 0 12px; }
.zona__txt { font-size: 14px; color: var(--ink-2); line-height: 1.5; min-height: 3.6em; }
.zona .btn { margin-top: 16px; }
.zona__img { display: grid; place-items: center; }
.zona__img img { width: 128%; max-width: none; margin-right: -14%; filter: drop-shadow(0 16px 24px rgba(22,56,110,.22)); transition: transform .5s var(--ease); }
.zona:hover .zona__img img { transform: scale(1.05); }
@media (max-width: 950px) {
  .zona { min-height: 0; padding: 22px; grid-template-columns: 1fr .9fr; }
  .zona__img img { width: 100%; margin-right: 0; }
}

/* ---------------- Trío: packs / financiación / alquiler ---------------- */
.trio { display: grid; grid-template-columns: 1fr 1.06fr 1fr; gap: 18px; align-items: stretch; }
@media (max-width: 1000px) { .trio { grid-template-columns: 1fr; } }
.tcard {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px;
  display: flex; flex-direction: column; background: #fff;
}
.tcard__h { display: flex; align-items: flex-start; gap: 11px; }
.tcard__h svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 2px; }
.tcard__h h3 { font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.25; }
.tcard__h p { font-size: 14px; color: var(--ink-2); margin-top: 4px; line-height: 1.45; }
.tcard .btn { margin-top: auto; align-self: flex-start; }
.tcard__img { margin: 16px 0; display: grid; place-items: center; }
.tcard__img img { max-height: 150px; width: auto; filter: drop-shadow(0 12px 20px rgba(22,56,110,.16)); }

/* tarjeta financiación (destacada) */
.tcard--fin { background: linear-gradient(160deg, var(--navy-2), var(--navy-3)); border-color: transparent; color: #fff; }
.tcard--fin .tcard__h svg { color: #8EC5F0; }
.tcard--fin .tcard__h h3 { color: #fff; }
.tcard--fin .tcard__h p { color: rgba(255,255,255,.78); }
.fin-box { border: 1px solid rgba(255,255,255,.28); border-radius: var(--r); padding: 14px; text-align: center; margin: 16px 0 14px; background: rgba(255,255,255,.06); }
.fin-box .k { font-size: 13px; color: rgba(255,255,255,.8); }
.fin-box .v { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.fin-box .v small { font-size: 16px; font-weight: 600; }
.fin-box .m { font-size: 12.5px; color: rgba(255,255,255,.7); }
.fin-list { list-style: none; display: grid; gap: 7px; margin-bottom: 18px; }
.fin-list .lbl { font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.85); margin-bottom: 2px; }
.fin-list li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: rgba(255,255,255,.92); }
.fin-list li svg { width: 16px; height: 16px; color: #7FD8A6; flex: none; }

/* alquiler */
.rent { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 18px; }
.rent__i { text-align: center; }
.rent__i img { height: 78px; width: auto; margin: 0 auto 8px; filter: drop-shadow(0 8px 14px rgba(22,56,110,.16)); }
.rent__i b { display: block; font-size: 14px; font-weight: 600; }
.rent__i span { font-size: 13px; color: var(--ink-2); }

/* ---------------- Complementos ---------------- */
.acc { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 0; align-items: center; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.acc__i { padding: 18px 14px; text-align: center; border-right: 1px solid var(--line); transition: background .2s; }
.acc__i:hover { background: var(--card); }
.acc__i img { height: 76px; width: auto; margin: 0 auto 10px; object-fit: contain; }
.acc__i b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.acc__i span { font-size: 13px; color: var(--ink-2); }
.acc__all { padding: 18px; display: grid; place-items: center; }
@media (max-width: 1000px) {
  .acc { grid-template-columns: repeat(3, 1fr); }
  .acc__i:nth-child(3n) { border-right: 0; }
  .acc__i { border-bottom: 1px solid var(--line); }
  .acc__all { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .acc { grid-template-columns: repeat(2, 1fr); } .acc__i:nth-child(3n) { border-right: 1px solid var(--line); } .acc__i:nth-child(2n) { border-right: 0; } }

/* ---------------- Franja garantías ---------------- */
.trust { background: var(--navy); color: #fff; margin-top: 20px; }
.trust__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 22px; }
.trust__i { display: flex; align-items: center; gap: 13px; justify-content: center; }
.trust__i svg { width: 30px; height: 30px; color: #8EC5F0; flex: none; }
.trust__i b { display: block; font-size: 14.5px; font-weight: 600; }
.trust__i span { font-size: 13px; color: rgba(255,255,255,.72); }
@media (max-width: 900px) { .trust__in { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; } .trust__i { justify-content: flex-start; } }
@media (max-width: 520px) { .trust__in { grid-template-columns: 1fr; } }

/* ---------------- CTA final ---------------- */
.help { background: var(--blue-soft); }
.help__in { display: flex; align-items: center; justify-content: center; gap: 40px; padding: 34px 22px; flex-wrap: wrap; }
.help h2 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; color: var(--navy); }
.help p { color: var(--ink-2); font-size: 15px; margin-top: 3px; }
@media (max-width: 700px) { .help__in { flex-direction: column; text-align: center; gap: 18px; } }

/* ---------------- Footer ---------------- */
.ftr { background: #0F2542; color: rgba(255,255,255,.62); font-size: 14px; padding: 40px 0 22px; }
.ftr__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 820px) { .ftr__grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 480px) { .ftr__grid { grid-template-columns: 1fr; } }
.ftr img.flogo { height: 34px; width: auto; margin-bottom: 12px; }
.ftr p { line-height: 1.6; max-width: 26em; font-size: 13.5px; }
.ftr h4 { color: #fff; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; font-weight: 600; }
.ftr ul { list-style: none; display: grid; gap: 8px; }
.ftr a:hover { color: #fff; }
.ftr__legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255,255,255,.45); }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px);
  background: var(--navy); color: #fff; padding: 12px 22px; border-radius: 99px;
  font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 9px;
  box-shadow: 0 18px 34px -14px rgba(15,37,66,.7); z-index: 90;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.toast svg { width: 17px; height: 17px; color: #7FD8A6; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}


/* --------- Cabecera de tienda: cuenta y anclas --------- */
.hdr__acc {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14.5px; font-weight: 500; color: var(--ink);
  padding: 8px 12px; border-radius: 8px; transition: background .2s;
}
.hdr__acc:hover { background: var(--card); }
.hdr__acc svg { width: 19px; height: 19px; }
@media (max-width: 1160px) { .hdr__acc span { display: none; } }
@media (max-width: 1000px) { .hdr__acc { display: none; } }

/* Que la cabecera pegajosa no tape el destino al saltar a una categoría. */
#manos, #rodilla, #pulgar, #packs, #alquiler, #accesorios { scroll-margin-top: 96px; }

.mnav__back { color: var(--ink-2) !important; font-size: 14px !important; }
