/* =========================================================
   Diego Pinsak · Servicio técnico
   Paleta tomada del logo (azul marino) y la bandera (celeste).
   ========================================================= */

:root {
  --navy: #0d2170;
  --navy-900: #081548;
  --azul: #1557d6;
  --celeste: #74b9f0;
  --celeste-50: #eef6fe;
  --celeste-100: #dcecfc;
  --azul-700: #0f45ad;
  --celeste-300: #a9d2f7;
  --wa: #25d366;

  --ink: #0f1b3d;
  --ink-soft: #4a5679;
  --line: #d9e3f2;
  --bg: #ffffff;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(15, 27, 61, .08);
  --shadow: 0 12px 32px -14px rgba(15, 27, 61, .22);

  --font-display: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--azul); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -.015em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); color: var(--navy); }
h3 { font-size: 1.2rem; color: var(--navy); }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 8px; }

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

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 700 1rem/1 var(--font-body);
  padding: .85em 1.35em; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn .ico { width: 1.25em; height: 1.25em; }
.btn--lg { font-size: 1.08rem; padding: 1em 1.6em; }
.btn--block { width: 100%; }
.btn--primary { background: var(--azul); color: #fff; }
.btn--primary:hover { background: var(--azul-700); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--celeste-50); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-900); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--navy-900); color: #cfe0ff; font-size: .9rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.topbar__text { margin: 0; }
.topbar__phones { display: flex; gap: 8px; font-weight: 600; white-space: nowrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--celeste-300); }

/* ---------- Encabezado ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s, border-color .2s;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; flex-shrink: 0; }
.brand img { width: 168px; height: auto; }
.brand__tag { font: 600 .68rem/1 var(--font-body); letter-spacing: .32em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; padding-left: 2px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 8px; transition: color .15s, background-color .15s; }
.nav a:not(.btn):hover { color: var(--azul); background: var(--celeste-50); }
.nav__cta { margin-left: 8px; padding: .7em 1.2em; }

.header__actions { display: flex; align-items: center; gap: 8px; }

.cart-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; display: grid; place-items: center; transition: border-color .15s, background-color .15s; }
.cart-btn:hover { border-color: var(--navy); background: var(--celeste-50); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-btn__count { position: absolute; top: -4px; right: -4px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px; background: var(--azul); color: #fff; font: 700 .75rem/21px var(--font-body); text-align: center; }
.cart-btn__count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }

.menu-btn { display: none; width: 46px; height: 46px; border: 0; background: var(--navy); border-radius: var(--radius-sm); cursor: pointer; padding: 13px 12px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2.5px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; min-height: clamp(520px, 78vh, 720px); display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 21, 72, .92) 0%, rgba(8, 21, 72, .78) 34%, rgba(8, 21, 72, .15) 62%, rgba(8, 21, 72, 0) 75%),
    linear-gradient(0deg, rgba(8, 21, 72, .35), rgba(8, 21, 72, 0) 30%);
}
.hero__content { padding-block: 64px; }
.hero__content > * { max-width: 560px; }
.hero__content > .hero__title { max-width: 680px; }
.hero__title { font-size: clamp(2.3rem, 5.2vw, 3.75rem); letter-spacing: -.025em; margin-bottom: 20px; }
.hero__title span { color: var(--celeste-300); }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #e2ecff; margin-bottom: 30px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero__badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-weight: 500; color: #dbe7fb; }
.hero__badges li { display: flex; align-items: center; gap: 8px; }
.hero__badges svg { width: 20px; height: 20px; color: var(--celeste-300); }
.hero__social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); }
.hero__social > span { font: 700 .78rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: #a9bbe3; margin-right: 4px; }
.social { display: inline-flex; align-items: center; gap: 8px; padding: .55em .95em; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.3); color: #fff; font-weight: 600; font-size: .95rem; text-decoration: none; transition: background-color .15s, border-color .15s; }
.social:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.social svg { width: 18px; height: 18px; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 .8rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--azul); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 20px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--celeste-300); }


/* ---------- Secciones ---------- */
.section { padding-block: clamp(64px, 9vw, 110px); }
.section--soft { background: var(--celeste-50); }
.section--navy {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
  color: #dfe9ff;
}
.section--navy h2, .section--navy h3 { color: #fff; }
.section__head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head h2 { margin-bottom: 14px; }
.section__lead { font-size: 1.15rem; color: var(--ink-soft); margin: 0; }
.section--navy .section__lead { color: #c4d4f5; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.section__head--row > div { max-width: 620px; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service:hover { box-shadow: var(--shadow); border-color: var(--celeste-100); }
.service__icon { width: 56px; height: 56px; border-radius: var(--radius); display: grid; place-items: center; background: var(--celeste-100); color: var(--navy); margin-bottom: 20px; }
.service__icon svg { width: 34px; height: 34px; }
.service h3 { margin-bottom: 8px; }
.service p { color: var(--ink-soft); }
.service ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-weight: 500; font-size: .98rem; }
.service li { position: relative; padding-left: 20px; }
.service li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--azul); }
.service--alt { background: var(--navy); border: 0; color: #dfe9ff; }
.service--alt h3 { color: #fff; }
.service--alt p { color: #c4d4f5; }
.service--alt .service__icon { background: rgba(255,255,255,.1); color: var(--celeste-300); }
.link-arrow { font-weight: 700; color: var(--celeste-300); text-decoration: none; }
.link-arrow span { display: inline-block; transition: transform .15s; }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Pasos ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.step__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--celeste-300); color: var(--celeste-300); font: 700 1.15rem/1 var(--font-display); margin-bottom: 18px; }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: #c4d4f5; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 52px; right: -20px; width: 20px; height: 2px; background: rgba(255,255,255,.2); }

/* ---------- Tienda ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { font: 600 .95rem/1 var(--font-body); padding: .75em 1.15em; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: all .15s; }
.filter:hover { border-color: var(--navy); }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.product {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: transform .2s, box-shadow .2s;
  animation: fadeUp .4s ease both;
}
.product:hover { box-shadow: var(--shadow); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
.product__media { position: relative; aspect-ratio: 4 / 3; background: var(--celeste-50); display: grid; place-items: center; overflow: hidden; }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__media svg { width: 58%; height: auto; }
.product__tag { position: absolute; top: 12px; left: 12px; font: 700 .72rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; background: var(--navy); color: #fff; }
.product__tag--repuestos { background: var(--azul); }
.product__tag--accesorios { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.product__badge { position: absolute; top: 12px; right: 12px; font: 700 .72rem/1 var(--font-body); padding: 6px 10px; border-radius: 6px; background: #fff; color: var(--azul); box-shadow: var(--shadow-sm); }
.product__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.product__body h3 { font-size: 1.08rem; margin-bottom: 6px; }
.product__desc { color: var(--ink-soft); font-size: .96rem; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product__meta { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.product__meta li { font-size: .8rem; font-weight: 600; padding: 4px 9px; border-radius: 6px; background: var(--celeste-50); color: var(--navy); }
.product__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product__price { font: 700 1.3rem/1 var(--font-display); color: var(--navy); }
.product__price small { display: block; font: 500 .75rem/1.2 var(--font-body); color: var(--ink-soft); margin-bottom: 3px; }
.product__price--consultar { font: 700 1rem/1 var(--font-body); color: var(--azul); }
.product .btn { padding: .7em 1em; font-size: .92rem; }
.product .btn.is-added { background: var(--celeste-100); color: var(--navy); }

button.product__media { width: 100%; border: 0; padding: 0; cursor: zoom-in; font: inherit; }
.product__title { all: unset; cursor: pointer; }
.product__title:hover { color: var(--azul); }
.product__title:focus-visible { outline: 3px solid var(--celeste); outline-offset: 2px; }
.product__photos { position: absolute; right: 12px; bottom: 12px; font: 600 .75rem/1 var(--font-body); padding: 6px 9px; border-radius: 999px; background: rgba(8, 21, 72, .75); color: #fff; }
.product__badge--reserved { background: var(--navy); color: #fff; }
.product.is-reserved .product__media img { filter: saturate(.7); }
.btn--wa { background: #25d366; color: #fff; }
.btn--wa:hover { background: #1ebe5a; }

/* ---------- Ficha de producto ---------- */
.ficha { padding: 0; border: 0; border-radius: 16px; width: min(980px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: hidden; color: var(--ink); box-shadow: 0 40px 80px -20px rgba(0,0,0,.5); }
.ficha::backdrop { background: rgba(8, 21, 72, .6); backdrop-filter: blur(3px); }
.ficha[open] { animation: fadeUp .25s ease; }
.ficha__inner { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; max-height: calc(100vh - 32px); }
.ficha__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); }
.ficha__gallery { background: var(--celeste-50); display: flex; flex-direction: column; min-height: 0; }
.ficha__foto { position: relative; flex: 1; min-height: 320px; display: grid; place-items: center; background: #fff; }
.ficha__foto img { width: 100%; height: 100%; max-height: 70vh; object-fit: contain; }
.ficha__ilus { width: 55%; padding: 40px 0; }
.ficha__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--navy); font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); }
.ficha__nav--prev { left: 12px; }
.ficha__nav--next { right: 12px; }
.ficha__count { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(8, 21, 72, .75); color: #fff; font-size: .8rem; font-weight: 600; }
.ficha__thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.ficha__thumbs:empty { display: none; }
.ficha__thumbs button { flex: 0 0 64px; height: 64px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: #fff; opacity: .7; }
.ficha__thumbs button.is-active { border-color: var(--navy); opacity: 1; }
.ficha__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ficha__info { padding: 36px 32px 28px; overflow-y: auto; display: flex; flex-direction: column; }
.ficha__info h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 12px; padding-right: 36px; }
.ficha__estado { display: inline-block; align-self: flex-start; margin-bottom: 12px; padding: 5px 12px; border-radius: 6px; background: var(--navy); color: #fff; font-weight: 700; font-size: .85rem; }
.ficha__precio { font: 700 1.7rem/1 var(--font-display); color: var(--navy); margin-bottom: 18px; }
.ficha__desc { color: var(--ink-soft); white-space: pre-line; }
.ficha__acciones { margin-top: auto; padding-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ficha__acciones .btn { padding: .9em 1em; }
.ficha__acciones .btn.is-added { background: var(--celeste-100); color: var(--navy); }

.products__empty { grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--ink-soft); }

.store-note { margin: 36px 0 0; text-align: center; color: var(--ink-soft); }
.store-note a { font-weight: 700; }

/* ---------- Sobre mí ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.about__media { position: relative; display: grid; place-items: center; }
.about__circle { position: absolute; width: 88%; aspect-ratio: 1; border-radius: 50%; background: var(--celeste-50); }
.about__media img { position: relative; width: 100%; max-width: 520px; filter: drop-shadow(0 24px 30px rgba(13, 33, 112, .22)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.about__text h2 { margin-bottom: 18px; }
.about__text p { color: var(--ink-soft); font-size: 1.1rem; }
.about__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; font-weight: 600; }
.about__list li { display: flex; align-items: center; gap: 10px; }
.about__list svg { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--celeste-100); color: var(--azul); flex-shrink: 0; }

/* ---------- Contacto ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact__info h2 { margin-bottom: 14px; }
.contact__list { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 18px; }
.contact__list li { display: flex; align-items: center; gap: 14px; }
.contact__list small { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: #9fb4e3; }
.contact__list a { color: #fff; font-weight: 600; text-decoration: none; }
.contact__list a:hover { color: var(--celeste-300); }
.contact__ico { width: 46px; height: 46px; border-radius: var(--radius); display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--celeste-300); flex-shrink: 0; }
.contact__ico svg { width: 22px; height: 22px; }

.form { background: #fff; color: var(--ink); border-radius: 16px; padding: clamp(22px, 4vw, 36px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.form__row { display: grid; gap: 6px; margin-bottom: 16px; }
.form__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form label { font-weight: 700; font-size: .92rem; color: var(--navy); }
.form input, .form select, .form textarea {
  width: 100%; font: 500 1rem/1.4 var(--font-body); color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fbfdff;
  transition: border-color .15s, box-shadow .15s;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(21, 87, 214, .14); }
.form [aria-invalid="true"] { border-color: #d93636; }
.form__error { color: #c62828; font-weight: 600; font-size: .92rem; margin: -4px 0 14px; }

/* ---------- Pie ---------- */
.footer { background: var(--navy-900); color: #a9bbe3; border-top: 1px solid rgba(255,255,255,.08); }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding-block: 40px 24px; }
.footer__logo { width: 56px; height: 56px; }
.footer strong { color: #fff; font-weight: 700; }
.footer__inner p { margin: 4px 0 0; font-size: .95rem; }
.footer__nav { display: flex; gap: 18px; }
.footer__nav a { color: #dfe9ff; text-decoration: none; font-weight: 600; }
.footer__nav a:hover { color: var(--celeste-300); }
.footer__copy { padding: 18px 0 28px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; margin-bottom: 0; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .35); transition: transform .2s; }
.wa-float:hover { transform: scale(1.05); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- Lista de consulta (drawer) ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(8, 21, 72, .45); backdrop-filter: blur(2px); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(420px, 100%);
  background: #fff; display: flex; flex-direction: column; box-shadow: -20px 0 50px -20px rgba(0,0,0,.4);
  transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.4rem; }
.drawer__close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--celeste-50); color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.drawer__body { flex: 1; overflow-y: auto; padding: 12px 22px; }
.drawer__empty { text-align: center; color: var(--ink-soft); padding: 48px 8px; }
.drawer__empty svg { width: 64px; height: 64px; margin: 0 auto 12px; color: var(--celeste); }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item__thumb { width: 56px; height: 56px; border-radius: 12px; background: var(--celeste-100); display: grid; place-items: center; overflow: hidden; }
.cart-item__thumb svg { width: 70%; }
.cart-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h3 { font: 700 .98rem/1.25 var(--font-body); color: var(--ink); margin-bottom: 4px; }
.cart-item__price { font-size: .9rem; color: var(--ink-soft); }
.qty { display: flex; align-items: center; gap: 4px; }
.qty button { width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font-weight: 700; cursor: pointer; }
.qty button:hover { border-color: var(--navy); }
.qty span { min-width: 22px; text-align: center; font-weight: 700; }
.drawer__foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); background: var(--celeste-50); }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.drawer__total strong { font: 700 1.4rem/1 var(--font-display); color: var(--navy); }
.drawer__hint { font-size: .85rem; color: var(--ink-soft); margin-bottom: 14px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; background: var(--navy); color: #fff; font-weight: 600; padding: 12px 20px; border-radius: var(--radius-sm); box-shadow: var(--shadow); transition: transform .3s ease, visibility .3s; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services, .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
}

@media (max-width: 920px) {
  .menu-btn { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .22s ease;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 1.1rem; }
  .nav__cta { margin: 8px 0 0; padding: 1em; }
  .header__actions { margin-left: auto; }

  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 440px; margin-inline: auto; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  :root { --header-h: 66px; }
  body { font-size: 1rem; }
  .topbar__text { display: none; }
  .topbar__inner { justify-content: center; }
  .brand img { width: 136px; }
  .brand__tag { font-size: .58rem; letter-spacing: .26em; }

  .hero { min-height: auto; flex-direction: column; align-items: stretch; background: var(--navy-900); }
  .hero__bg { position: relative; inset: auto; aspect-ratio: 1100 / 520; }
  .hero__bg img { object-position: 78% center; }
  .hero::before { inset: auto 0 0 0; height: 100%; background: linear-gradient(180deg, rgba(8,21,72,0) 0, rgba(8,21,72,0) 22%, var(--navy-900) 46%); }
  .hero__content { padding-block: 8px 48px; }
  .hero__ctas .btn { flex: 1 1 100%; }

  .services, .steps { grid-template-columns: 1fr; }
  .form__cols { grid-template-columns: 1fr; }
  .section__head--row { align-items: flex-start; }
  .filters { overflow-x: auto; flex-wrap: nowrap; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .filter { white-space: nowrap; }
  .product__media { aspect-ratio: 16 / 10; }
  .product__media svg { width: 40%; }

  .ficha { width: 100%; max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .ficha__inner { grid-template-columns: 1fr; max-height: 100vh; height: 100%; overflow-y: auto; }
  .ficha__foto { min-height: 0; aspect-ratio: 4 / 3; flex: none; overflow: hidden; }
  .ficha__foto img { position: absolute; inset: 0; max-height: none; }
  .ficha__info { padding: 22px 16px 24px; overflow: visible; }
  .ficha__acciones { grid-template-columns: 1fr; position: sticky; bottom: 0; background: #fff; padding-bottom: 8px; }

  .footer__inner { grid-template-columns: auto 1fr; }
  .footer__nav { grid-column: 1 / -1; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
