/* ============ GOMATE · ESTILOS ============
   Identidad Gomate: rojo carmín + carbón + blanco.
   Mismos tokens de marca que la app de Gestión de Cajas.
   ================================================ */
/* Fuentes guardadas dentro de la web (assets/fonts): no dependen de Google */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/poppins-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Marca */
  --brand: #be1e3c;
  --brand-dark: #9c1530;
  --brand-soft: #fbecef;
  --brand-line: #ebc4cd;
  --brand-on-dark: #f2546b;
  --charcoal: #18191b;
  --charcoal-2: #111214;
  --charcoal-raised: #26272b;
  --charcoal-line: #35373c;
  --on-charcoal: #f5f5f6;
  --on-charcoal-muted: #a9acb2;

  /* Neutros */
  --ink: #1e1f22;
  --muted: #6c6f75;
  --line: #e8e8ea;
  --soft: #f6f6f7;
  --bg: #ffffff;
  --wa: #1f9d55;
  --wa-dark: #188346;
  --ok: #26704f;
  --ok-soft: #eaf5ee;

  --radius: 14px;
  --max: 1200px;
  --shadow: 0 16px 40px -18px rgba(24, 25, 27, .22);
  --font-head: "Poppins", "Inter", system-ui, sans-serif;

  /* Dibujo de banda de rodadura (motivo de marca) */
  --tread-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='26'%3E%3Cpath d='M0 0l22 13L44 0M0 13l22 13 22-13' fill='none' stroke='%23ffffff' stroke-opacity='.045' stroke-width='4'/%3E%3C/svg%3E");
  --tread-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='26'%3E%3Cpath d='M0 0l22 13L44 0M0 13l22 13 22-13' fill='none' stroke='%2318191b' stroke-opacity='.022' stroke-width='4'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.lock { overflow: hidden; }
h1, h2, h3, h4, h5, .wordmark, .stats strong { font-family: var(--font-head); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
picture { display: contents; } /* el <picture> no altera el diseño: manda la <img> de adentro */
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: background .2s, border-color .2s, transform .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: var(--wa-dark); }
.btn-light { background: #fff; color: var(--charcoal); }
.btn-light:hover { background: var(--soft); }
.btn-block { width: 100%; }
.btn-text { background: none; border: 0; color: var(--muted); font-size: 14px; padding: 8px; }
.btn-text:hover { color: var(--brand); text-decoration: underline; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--ink);
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--charcoal);
}
.badge.zero { display: none; }

/* ---------- Encabezado (carbón) ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(24, 25, 27, .96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--charcoal-line); color: var(--on-charcoal);
}
.header::after { /* filo rojo de marca */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--brand) 0 22%, transparent 22%);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; line-height: 1.1; }
.logo-mark { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--charcoal-line); }
.wordmark { font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: #fff; }
.wordmark b { color: var(--brand-on-dark); font-weight: 800; }
.wordmark small {
  display: block; font-family: "Inter", sans-serif; font-size: 10px; font-weight: 600;
  color: var(--brand-on-dark); letter-spacing: .06em; text-transform: uppercase; margin-top: 3px;
}
.nav-links { display: flex; gap: 30px; font-size: 15px; color: var(--on-charcoal-muted); font-weight: 500; }
.nav-links a { position: relative; }
.nav-links a:not(.btn):hover { color: #fff; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--brand);
  transition: right .2s;
}
.nav-links a:not(.btn):hover::after { right: 0; }
.nav-cta-mobile { display: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { padding: 10px 18px; font-size: 14px; }
.header .icon-btn { background: var(--charcoal-raised); border-color: var(--charcoal-line); color: #fff; }
.header .icon-btn:hover { border-color: var(--on-charcoal-muted); }
.menu-btn { display: none; }

/* ---------- Portada (carbón + rodadura + brillo rojo) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-charcoal); padding: 72px 0 0;
  isolation: isolate; /* la mezcla del logo no afecta a lo que flota encima (chat) */
  background:
    radial-gradient(700px 420px at 82% 38%, rgba(190, 30, 60, .30), transparent 70%),
    var(--tread-light),
    var(--charcoal);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-grid > * { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: #fff; background: rgba(190, 30, 60, .18); border: 1px solid rgba(242, 84, 107, .35);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-on-dark); }
.hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; color: #fff; }
.hero h1 span { color: var(--brand-on-dark); }
.lead { font-size: 18px; color: var(--on-charcoal-muted); margin: 22px 0 28px; max-width: 580px; }
.lead-sm { font-size: 17px; margin: 16px 0 12px; }
.search {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 6px 6px 6px 18px; max-width: 580px; color: var(--ink);
}
.hero .search { box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); border-color: transparent; }
.search svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 15px; min-width: 0; background: transparent; padding: 0; }
.search .btn { padding: 11px 22px; }
.search.small { padding: 9px 16px; border-radius: 10px; }
.search:focus-within { border-color: var(--ink); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: var(--charcoal-line); }
.hero .btn-ghost:hover { border-color: #fff; }

.hero-panel { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-logo { width: 100%; max-width: 470px; height: auto; mix-blend-mode: lighten; }
.hero-lines { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hero-lines span {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500;
  padding: 7px 12px; border-radius: 999px; background: var(--charcoal-raised); border: 1px solid var(--charcoal-line);
}
.hero-lines i { width: 16px; height: 16px; color: var(--brand-on-dark); display: inline-grid; }
.hero-lines svg { width: 16px; height: 16px; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 56px; padding: 30px 0 40px; border-top: 1px solid var(--charcoal-line);
}
.stats strong { display: block; font-size: 30px; letter-spacing: -.02em; color: #fff; }
.stats div:first-child strong { color: var(--brand-on-dark); }
.stats span { font-size: 14px; color: var(--on-charcoal-muted); }

/* ---------- Secciones ---------- */
.section { padding: 88px 0; }
.section.soft { background: var(--soft) var(--tread-dark); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .1em;
}
.label::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--brand); }
h2 { font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -.025em; line-height: 1.15; margin: 10px 0 12px; font-weight: 700; }
.section-head p { color: var(--muted); font-size: 17px; }
.link-more { font-weight: 600; font-size: 15px; color: var(--brand); }
button.link-more { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; justify-self: start; }
.link-more:hover { color: var(--brand-dark); text-decoration: underline; }

/* ---------- Categorías ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat {
  position: relative; overflow: hidden; text-align: left; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; transition: all .2s;
}
.cat::before { /* barra roja que crece */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand);
  transform: scaleY(0); transform-origin: bottom; transition: transform .25s;
}
.cat:hover { border-color: var(--brand-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat:hover::before { transform: scaleY(1); }
.cat-ico {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px;
  background: var(--charcoal); color: #fff; transition: background .2s;
}
.cat:hover .cat-ico { background: var(--brand); }
.cat-ico svg { width: 26px; height: 26px; }
.cat b { font-size: 17px; font-family: var(--font-head); font-weight: 600; }
.cat span { color: var(--muted); font-size: 14px; }
.cat em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--brand); margin-top: 8px; }

/* ---------- Productos ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product:hover {
  transform: translateY(-4px);
  border-color: var(--brand-line);
  box-shadow: 0 22px 44px -20px rgba(24, 25, 27, .32);
}
.product-media {
  position: relative; aspect-ratio: 1 / 1; display: grid; overflow: hidden; place-items: center; cursor: pointer;
  background: #f1f1f3 var(--tread-dark); color: var(--charcoal); border: 0; width: 100%;
  transition: color .2s;
}
.product:hover .product-media { color: var(--brand); }
.product-media svg { width: 64px; height: 64px; stroke-width: 1.3; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product:hover .product-media img { transform: scale(1.04); } /* acercamiento suave de la foto */
.product:hover .product-media svg { transform: scale(1.06); }
.product-media svg { transition: transform .3s ease; }
@media (hover: none) { /* en móviles (sin mouse) no se aplica el efecto */
  .product:hover { transform: none; box-shadow: none; border-color: var(--line); }
  .product:hover .product-media img, .product:hover .product-media svg { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .product, .product-media img, .product-media svg { transition: none; }
  .product:hover { transform: none; }
  .product:hover .product-media img, .product:hover .product-media svg { transform: none; }
}
.tag {
  position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 6px; background: var(--charcoal); color: #fff;
}
.tag.oferta { background: var(--brand); }
.tag.nuevo { background: var(--ok); }
.tag.agotado { background: #8a8d93; left: auto; right: 12px; }
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
.product h3 { font-size: 16px; line-height: 1.35; letter-spacing: -.01em; font-weight: 600; }
.product h3 button { background: none; border: 0; text-align: left; padding: 0; color: inherit; font: inherit; }
.product h3 button:hover { color: var(--brand); }
.product p { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { font-weight: 700; font-size: 17px; margin-top: auto; padding-top: 8px; font-family: var(--font-head); }
.price s { color: var(--muted); font-weight: 500; font-size: 14px; margin-left: 6px; }
.price.ask { font-size: 14px; font-weight: 600; color: var(--muted); font-family: "Inter", sans-serif; }
.product-actions { display: flex; gap: 8px; margin-top: 10px; }
.product-actions .btn { flex: 1; padding: 10px 12px; font-size: 14px; background: var(--charcoal); }
.product-actions .btn:hover { background: var(--brand); }
.product-actions .icon-btn { flex-shrink: 0; color: var(--wa); }
.product-actions .icon-btn:hover { border-color: var(--wa); }
.product.out { opacity: .7; }

/* Barra de filtros */
.toolbar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 14px; font-weight: 500; color: var(--ink);
}
.filter:hover { border-color: var(--ink); }
.filter.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.filter small { opacity: .65; margin-left: 5px; }
.toolbar-right { display: flex; gap: 10px; }
select, input, textarea {
  font: inherit; font-size: 15px; color: var(--ink); padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.results { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.empty { text-align: center; padding: 56px 16px; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty a { color: var(--wa-dark); font-weight: 600; }

/* ---------- Servicios ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; border-top: 3px solid var(--brand); }
.feature h3 { font-size: 17px; margin: 18px 0 6px; font-weight: 600; }
.feature p { color: var(--muted); font-size: 15px; }
.feature-ico {
  width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; flex-shrink: 0;
}
.feature-ico svg { width: 22px; height: 22px; }
.feature-ico.wa { background: #e3f4ea; color: var(--wa-dark); }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.value h4 { font-size: 16px; margin-bottom: 4px; font-weight: 600; }
.value p { color: var(--muted); font-size: 14px; }
.check { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.check svg { width: 15px; height: 15px; stroke-width: 3; }
.check.big { width: 60px; height: 60px; margin: 0 auto 16px; background: var(--ok-soft); color: var(--ok); }
.check.big svg { width: 26px; height: 26px; }

/* ---------- Agendar ---------- */
.booking { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.booking > *, .about > * { min-width: 0; }
.steps { list-style: none; counter-reset: s; margin-top: 28px; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: center; color: var(--muted); }
.steps li::before {
  content: counter(s); width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 15px; flex-shrink: 0; font-family: var(--font-head);
}
.steps b { color: var(--ink); }
.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); border-top: 4px solid var(--brand); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--charcoal); box-shadow: 0 0 0 3px rgba(24,25,27,.1); }
textarea { resize: vertical; min-height: 90px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; cursor: pointer; transition: all .15s; user-select: none; background: #fff;
}
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); }
.modality { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.modality .chip span { width: 100%; text-align: center; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 12px; }
.error-msg { color: var(--brand); font-size: 13px; display: none; margin: -8px 0 12px; font-weight: 500; }
.error-msg.show { display: block; }
.success { text-align: center; padding: 28px 8px; }
.success h3 { font-size: 22px; margin-bottom: 8px; }
.success p { margin-bottom: 20px; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card {
  display: flex; flex-direction: row; align-items: flex-start; gap: 16px; padding: 22px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s; min-width: 0;
}
.contact-card > span:last-child { min-width: 0; }
a.contact-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.contact-card small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 2px; }
.contact-card b { display: block; font-weight: 600; font-size: 16px; overflow-wrap: anywhere; line-height: 1.4; }
.contact-card em { display: block; font-style: normal; font-size: 13px; font-weight: 600; color: var(--brand); margin-top: 6px; }
.contact-card em.note { color: var(--muted); font-weight: 500; }
.map { margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- CTA (rojo de marca) ---------- */
.cta { background: var(--tread-light), linear-gradient(120deg, var(--brand), var(--brand-dark)); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin: 0 0 6px; color: #fff; }
.cta p { color: rgba(255, 255, 255, .85); }
.cta .hero-actions { margin: 0; }

/* ---------- Pie ---------- */
.footer { background: var(--charcoal-2); color: var(--on-charcoal-muted); padding: 64px 0 0; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.foot-text { margin: 16px 0; max-width: 300px; }
.footer h5 { color: #fff; font-size: 14px; margin-bottom: 14px; font-weight: 600; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.foot-lbl { color: #fff; font-weight: 600; }
.footer a:hover { color: #fff; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--charcoal-line); display: grid; place-items: center; }
.socials a:hover { border-color: var(--brand); color: #fff; background: var(--brand); }
.socials svg { width: 18px; height: 18px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--charcoal-raised); margin-top: 48px; padding: 22px 96px 22px 24px; color: #6c6f75; font-size: 13px; }

/* ---------- Asistente Gomatin ---------- */
.bot-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 45; width: 64px; height: 64px; padding: 0;
  border-radius: 50%; border: 3px solid var(--brand); background: #fff; overflow: hidden;
  box-shadow: 0 12px 30px -8px rgba(24, 25, 27, .55); transition: transform .2s;
}
.bot-launcher img { width: 100%; height: 100%; object-fit: cover; }
.bot-launcher:hover { transform: scale(1.06) rotate(-4deg); }
.bot-open .bot-launcher { transform: scale(.9); }
.bot-hello {
  position: fixed; right: 22px; bottom: 98px; z-index: 45; cursor: pointer;
  background: var(--charcoal); color: #fff; font-weight: 700; font-family: var(--font-head);
  padding: 9px 16px; border-radius: 12px; border: 2px solid var(--brand);
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .5); animation: botHola .5s ease both;
}
.bot-hello::after { /* piquito hacia la burbuja */
  content: ""; position: absolute; right: 24px; bottom: -8px; width: 12px; height: 12px;
  background: var(--charcoal); border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
}
@keyframes botHola { from { opacity: 0; transform: translateY(8px) scale(.9); } }

.bot {
  position: fixed; right: 22px; bottom: 98px; z-index: 46; width: 370px; height: min(560px, calc(100vh - 130px));
  background: #fff; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .45); border: 1px solid var(--line);
  animation: botAbrir .22s ease both;
}
.bot[hidden] { display: none !important; }
@keyframes botAbrir { from { opacity: 0; transform: translateY(14px); } }
.bot-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px;
  background: var(--tread-light), var(--charcoal); color: #fff; border-bottom: 3px solid var(--brand);
}
.bot-head img { width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); flex-shrink: 0; }
.bot-head div { flex: 1; min-width: 0; line-height: 1.25; }
.bot-head b { font-family: var(--font-head); font-size: 16px; }
.bot-head small { display: block; color: var(--on-charcoal-muted); font-size: 12px; }
.bot-head .icon-btn { background: var(--charcoal-raised); border-color: var(--charcoal-line); color: #fff; width: 36px; height: 36px; }

.bot-body { flex: 1; overflow-y: auto; padding: 16px 14px 8px; background: var(--soft) var(--tread-dark); display: flex; flex-direction: column; gap: 10px; }
.bot-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; }
.bot-msg img { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1px solid var(--line); flex-shrink: 0; }
.bot-bubble {
  background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px;
  padding: 10px 12px; font-size: 14px; line-height: 1.5; min-width: 0;
}
.bot-bubble p + p { margin-top: 6px; }
.bot-bubble b { font-weight: 700; }
.bot-msg.user { align-self: flex-end; }
.bot-msg.user .bot-bubble { background: var(--charcoal); color: #fff; border-color: var(--charcoal); border-radius: 14px 14px 4px 14px; }
.bot-msg.typing .bot-bubble { display: flex; gap: 4px; padding: 12px 14px; }
.bot-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: #b9bbc0; animation: botPunto 1s infinite; }
.bot-msg.typing span:nth-child(2) { animation-delay: .15s; }
.bot-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes botPunto { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.bot-link { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--brand); font-size: 14px; }
.bot-link:hover { text-decoration: underline; }
.bot-ask { margin-top: 8px; padding: 9px 14px; font-size: 14px; }
.bot-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.bot-list { list-style: none; margin: 6px 0 2px; display: grid; gap: 4px; }
.bot-list li { display: flex; gap: 8px; font-size: 13px; }
.bot-list li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--brand); margin-top: 7px; flex-shrink: 0; }
.bot-product small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bot-products { display: grid; gap: 6px; margin-top: 8px; }
.bot-product {
  display: flex; gap: 10px; align-items: center; text-align: left; width: 100%;
  background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 6px; font-size: 13px; font-weight: 600; color: var(--ink);
}
.bot-product:hover { border-color: var(--brand); }
.bot-product small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.bot-thumb { width: 42px; height: 42px; border-radius: 8px; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; background: #f1f1f3; color: var(--brand); }
.bot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bot-thumb svg { width: 22px; height: 22px; }

.bot-quick { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px 4px; border-top: 1px solid var(--line); scrollbar-width: thin; }
.bot-chip {
  flex-shrink: 0; white-space: nowrap; background: #fff; border: 1px solid var(--brand-line); color: var(--ink);
  border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 500;
}
.bot-chip:hover { border-color: var(--brand); background: var(--brand-soft); }
.bot-form { display: flex; gap: 8px; padding: 8px 12px; }
.bot-form input { flex: 1; min-width: 0; padding: 10px 12px; font-size: 15px; }
.bot-form .btn { padding: 0 14px; }
.bot-form .btn svg { width: 18px; height: 18px; }
.bot-wa {
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 12px 12px;
  font-size: 13px; font-weight: 600; color: var(--wa-dark);
}
.bot-wa svg { width: 16px; height: 16px; }
.bot-wa:hover { color: var(--wa); text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .bot, .bot-hello { animation: none; }
  .bot-msg.typing span { animation: none; }
}

/* ---------- Modal y panel ---------- */
.overlay { position: fixed; inset: 0; background: rgba(17, 18, 20, .6); z-index: 50; backdrop-filter: blur(2px); }
.modal {
  position: fixed; z-index: 60; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(880px, calc(100% - 32px)); max-height: calc(100vh - 48px); overflow: auto;
  background: #fff; border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.45);
}
.modal .close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; }
.modal-body .product-media { aspect-ratio: auto; min-height: 340px; cursor: default; color: var(--brand); }
.modal-body .product-media svg { width: 110px; height: 110px; }
.modal-body .product-media img { position: absolute; inset: 0; object-fit: contain; background: #f1f1f3; } /* en la ficha se ve la foto completa */
.modal-info { padding: 36px 32px 32px; display: flex; flex-direction: column; gap: 10px; }
.modal-info h3 { font-size: 24px; letter-spacing: -.02em; line-height: 1.2; padding-right: 30px; }
.modal-info .price { margin: 0; padding: 0; font-size: 20px; }
.specs { list-style: none; border-top: 1px solid var(--line); margin: 6px 0; }
.specs li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; display: flex; gap: 10px; }
.specs li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--brand); margin-top: 9px; flex-shrink: 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; }
.qty button { width: 36px; height: 36px; border: 0; background: none; font-size: 18px; color: var(--ink); }
.qty button:hover { color: var(--brand); }
.qty span { min-width: 28px; text-align: center; font-weight: 600; }
.modal-actions { display: grid; gap: 10px; margin-top: 8px; }
.ask-as { font-size: 13px; color: var(--muted); text-align: center; margin-top: -2px; }
.ask-as b { color: var(--ink); font-weight: 600; }
.ask-as .btn-text { padding: 0 2px; font-size: 13px; font-weight: 600; color: var(--brand); }
.modal-actions .row { display: flex; gap: 10px; align-items: center; }
.modal-actions .row .btn { flex: 1; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(420px, 100%);
  background: #fff; display: flex; flex-direction: column; box-shadow: -20px 0 60px -20px rgba(0,0,0,.35);
  animation: slide .25s ease;
}
@keyframes slide { from { transform: translateX(100%); } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; background: var(--charcoal); color: #fff; }
.drawer-head { gap: 12px; }
.drawer-head h3 { font-size: 18px; flex: 1; }
.drawer-head .icon-btn { background: var(--charcoal-raised); border-color: var(--charcoal-line); color: #fff; flex-shrink: 0; }
.drawer-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 22px; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; text-align: center; }
.drawer-foot .btn svg { width: 18px; height: 18px; }

/* Tus datos (cliente) */
.client-card {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; text-align: left;
  background: var(--soft); border: 1px solid var(--line); border-left: 3px solid var(--brand);
  border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--muted);
}
.client-card > div { min-width: 0; }
.client-card small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.client-card b { display: block; color: var(--ink); font-size: 15px; margin: 2px 0; }
.client-card span { display: block; overflow-wrap: anywhere; }
.client-card .btn-text { padding: 0; font-weight: 600; color: var(--brand); flex-shrink: 0; }
.client-form { padding-top: 18px; }
.client-form > .muted { margin-bottom: 16px; }
.client-form .field { margin-bottom: 14px; }
.client-form textarea { min-height: 64px; }
.opt { color: var(--muted); font-weight: 400; }
.modality.two { grid-template-columns: 1fr 1fr; }
.field.invalid input, .field.invalid textarea { border-color: var(--brand); background: var(--brand-soft); }
.field-error { color: var(--brand); font-size: 13px; font-weight: 500; line-height: 1.35; }
.field-error:empty { display: none; }
.field-hint {
  font-size: 13px; line-height: 1.45; color: var(--ink); margin-top: 4px;
  background: var(--brand-soft); border-left: 3px solid var(--brand); border-radius: 6px; padding: 8px 10px;
}
.field-hint:empty { display: none; }
.field-hint b { font-weight: 600; }

/* Teléfono: [prefijo ▾] [número] */
.phone { display: flex; gap: 8px; }
.phone input { flex: 1; min-width: 0; }
.phone-cc { position: relative; flex-shrink: 0; }
.phone-cc-view {
  display: flex; align-items: center; gap: 6px; height: 100%; padding: 0 10px 0 10px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--soft);
  font-weight: 600; font-size: 15px; white-space: nowrap; pointer-events: none; transition: border-color .15s;
}
.phone-cc-view b {
  font-size: 10px; letter-spacing: .04em; background: var(--charcoal); color: #fff;
  padding: 2px 5px; border-radius: 4px; min-width: 24px; text-align: center;
}
.phone-cc-view svg { width: 14px; height: 14px; color: var(--muted); }
.field .phone-cc select {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0;
  font-size: 16px; /* evita el zoom automático en iPhone */
}
.phone-cc:hover .phone-cc-view { border-color: var(--ink); }
.phone-cc:focus-within .phone-cc-view { border-color: var(--charcoal); box-shadow: 0 0 0 3px rgba(24,25,27,.1); }
.remember { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); cursor: pointer; margin: 4px 0 14px; }
.remember input { width: 18px; height: 18px; accent-color: var(--brand); padding: 0; }
#clientError { margin: 0 0 8px; }
.cart-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-thumb { width: 56px; height: 56px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: #f1f1f3; color: var(--brand); overflow: hidden; }
.cart-thumb svg { width: 26px; height: 26px; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { flex: 1; min-width: 0; }
.cart-info b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.cart-info .qty { margin-top: 8px; }
.cart-info .qty button { width: 30px; height: 30px; font-size: 16px; }
.cart-empty { text-align: center; padding: 36px 10px; color: var(--muted); display: grid; justify-items: center; gap: 6px; }
.cart-empty .btn { margin-top: 12px; }

/* Gomatin en los estados vacíos (lista vacía, búsqueda sin resultados, sin ofertas) */
.gomatin-empty {
  width: 130px; height: auto; margin: 0 auto 10px;
  filter: drop-shadow(0 10px 12px rgba(24, 25, 27, .15));
  animation: gomatinSalto 2.6s ease-in-out infinite;
}
.empty .gomatin-empty { width: 150px; }
.empty-title { font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--ink); }
@keyframes gomatinSalto { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .gomatin-empty { animation: none; } }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 70;
  background: var(--charcoal); color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 14px;
  border-left: 4px solid var(--brand); opacity: 0; pointer-events: none; transition: all .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.has-action.show { pointer-events: auto; }
@media (max-width: 640px) { .toast { bottom: 84px; } } /* encima del botón flotante de WhatsApp */
.toast { display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); width: max-content; }
.toast-link {
  background: none; border: 0; padding: 0; color: var(--brand-on-dark); font: inherit; font-weight: 700;
  white-space: nowrap; cursor: pointer;
}
.toast-link:hover { color: #fff; text-decoration: underline; }

/* Ficha: enlace discreto para dudas por WhatsApp */
.ask-link { font-size: 14px; color: var(--muted); text-align: center; margin-top: 4px; }
.ask-link .btn-text {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 0; font-size: 14px; font-weight: 600; color: var(--wa-dark);
}
.ask-link .btn-text svg { width: 16px; height: 16px; }
.ask-link .btn-text:hover { color: var(--wa); }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* ============ VARIAS PÁGINAS ============ */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.nav-links a.active { color: #fff; }
.nav-links a.active:not(.btn)::after { right: 0; }
.nav-pill {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px;
  border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 2px;
}

/* Cabecera de página interior */
.page-hero {
  color: var(--on-charcoal); padding: 56px 0 52px;
  background:
    radial-gradient(600px 300px at 88% 20%, rgba(190, 30, 60, .28), transparent 70%),
    var(--tread-light),
    var(--charcoal);
}
.page-hero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; color: #fff; margin: 14px 0 12px; }
.page-hero p { color: var(--on-charcoal-muted); font-size: 17px; max-width: 640px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--on-charcoal-muted); }
.crumbs a:hover { color: #fff; }
.crumbs span { color: var(--brand-on-dark); }
.crumbs #crumbCat { display: contents; color: inherit; }
.section.tight { padding: 56px 0; }
.section.tight + .section.tight { padding-top: 0; }
.section.tight.soft { padding-top: 56px; }

/* Ofertas: promociones */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.promo {
  position: relative; overflow: hidden; border-radius: 18px; padding: 30px; color: #fff;
  display: flex; flex-direction: column; gap: 10px; min-height: 260px;
  background: var(--tread-light), linear-gradient(135deg, var(--charcoal-raised), var(--charcoal));
  border: 1px solid var(--charcoal-line);
}
.promo:nth-child(even) { background: var(--tread-light), linear-gradient(135deg, var(--brand), var(--brand-dark)); border-color: transparent; }
.promo-badge {
  align-self: flex-start; font-family: var(--font-head); font-weight: 800; font-size: 15px;
  background: var(--brand); color: #fff; padding: 6px 14px; border-radius: 8px;
}
.promo:nth-child(even) .promo-badge { background: #fff; color: var(--brand); }
.promo-ico { position: absolute; right: -14px; top: 18px; width: 150px; height: 150px; color: #fff; opacity: .1; }
.promo-ico svg { width: 100%; height: 100%; stroke-width: 1.2; }
.promo h3 { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; margin-top: 8px; max-width: 80%; }
.promo p { color: rgba(255, 255, 255, .8); max-width: 85%; }
.promo-foot { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.promo-date { font-size: 13px; color: rgba(255, 255, 255, .7); }
.promo .btn-light { padding: 10px 18px; font-size: 14px; color: var(--wa-dark); }

/* Servicios: lista detallada */
.services { display: grid; gap: 20px; }
.service {
  display: grid; grid-template-columns: 70px 1.2fr 1fr; gap: 32px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px;
  transition: border-color .2s, box-shadow .2s;
}
.service:hover { border-color: var(--brand-line); box-shadow: var(--shadow); }
.service > * { min-width: 0; }
.service-num { font-family: var(--font-head); font-weight: 800; font-size: 40px; line-height: 1; color: var(--brand); letter-spacing: -.04em; }
.service-main h3 { font-size: 22px; margin: 16px 0 8px; letter-spacing: -.02em; }
.service-main p { color: var(--muted); }
.service-side { display: grid; gap: 18px; padding-left: 32px; border-left: 1px solid var(--line); }
.service-list { list-style: none; display: grid; gap: 12px; }
.service-list li { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.service-list .check { width: 24px; height: 24px; }
.service-list .check svg { width: 12px; height: 12px; }

/* Servicios: proceso */
.process { list-style: none; counter-reset: p; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process li {
  counter-increment: p; position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px 22px; display: flex; flex-direction: column; gap: 6px;
}
.process li::before {
  content: counter(p, decimal-leading-zero); font-family: var(--font-head); font-weight: 800; font-size: 14px;
  color: #fff; background: var(--charcoal); width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 10px;
}
.process li:last-child::before { background: var(--brand); }
.process b { font-family: var(--font-head); font-size: 16px; font-weight: 600; }
.process span { color: var(--muted); font-size: 14px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .process { grid-template-columns: repeat(2, 1fr); }
  .service { grid-template-columns: 56px 1fr; }
  .service-side { grid-column: 2; padding-left: 0; border-left: 0; padding-top: 18px; border-top: 1px solid var(--line); }
  .product-grid, .cat-grid, .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .about, .booking { grid-template-columns: 1fr; gap: 40px; }
  .hero-panel { order: -1; }
  .hero-logo { max-width: 340px; }
  .product-grid, .cat-grid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .modal-body { grid-template-columns: 1fr; }
  .modal-body .product-media { min-height: 300px; }

  .menu-btn { display: grid; }
  .nav-cta { display: none; }
  .header .container { position: relative; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--charcoal);
    flex-direction: column; gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--charcoal-line);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,.5); font-size: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--charcoal-line); color: #fff; }
  .nav-links a.active { color: var(--brand-on-dark); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .nav-cta-mobile { display: flex; margin-top: 14px; border: 0; padding: 13px; }
}
@media (max-width: 640px) {
  .page-hero { padding: 36px 0 34px; }
  .section.tight { padding: 40px 0; }
  .section.tight.soft { padding-top: 40px; }
  .promo-grid { grid-template-columns: 1fr; }
  .promo { padding: 24px; min-height: 0; }
  .promo h3 { font-size: 20px; }
  .service { grid-template-columns: 1fr; padding: 22px; gap: 14px; }
  .service-side { grid-column: auto; }
  .service { position: relative; }
  .service-num { position: absolute; top: 22px; right: 22px; font-size: 28px; }
  .process { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero { padding-top: 36px; }
  .hero-logo { max-width: 260px; }
  .hero-lines { display: none; }
  .wordmark { font-size: 18px; }
  .wordmark small { display: none; }
  .logo-mark { width: 38px; height: 38px; }
  .search { padding-left: 14px; }
  .search .btn { padding: 10px 16px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-body { padding: 12px; }
  .product h3 { font-size: 14px; }
  .product p { display: none; }
  .product-actions .btn { font-size: 13px; padding: 9px 8px; }
  .product-actions .icon-btn { width: 38px; height: 38px; }
  .product-media svg { width: 44px; height: 44px; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat { padding: 16px; }
  .cat span { display: none; }
  .grid-4, .values, .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { flex-direction: row; align-items: center; }
  .toolbar-right { width: 100%; flex-wrap: wrap; }
  .toolbar-right .search { flex: 1 1 100%; min-width: 0; }
  .toolbar-right select { width: 100%; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .filter { white-space: nowrap; }
  .form { padding: 22px 16px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .modal-info { padding: 24px 20px; }
  .bot-launcher { width: 58px; height: 58px; right: 16px; bottom: 16px; }
  .bot-hello { right: 16px; bottom: 86px; }
  .bot { /* en el móvil, panel inferior a lo ancho */
    left: 8px; right: 8px; bottom: 84px; width: auto; height: min(560px, calc(100vh - 110px)); height: min(560px, calc(100dvh - 110px));
  }
  .bot-form input { font-size: 16px; } /* evita el zoom automático en iPhone */
}

/* ============ DESCARGAS ============ */
.downloads { display: grid; gap: 20px; }
.download {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 32px;
  transition: border-color .2s, box-shadow .2s;
}
.download:hover { border-color: var(--brand-line); box-shadow: var(--shadow); }
.download > * { min-width: 0; }
.download-ico {
  position: relative; width: 64px; height: 72px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.download-ico svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.download-ico b {
  position: absolute; bottom: -8px; right: -8px; background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 3px 7px; border-radius: 6px;
}
.download-para { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.download-main h3 { font-size: 21px; margin: 4px 0 6px; letter-spacing: -.02em; }
.download-main p { color: var(--muted); max-width: 60ch; }
.download-meta { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }
.download-side { display: grid; gap: 8px; justify-items: end; text-align: right; }
.download-soon { font-size: 13px; color: var(--muted); }
.downloads-send { margin-top: 28px; text-align: center; color: var(--muted); }
.downloads-send a { color: var(--brand); font-weight: 600; }
@media (max-width: 640px) {
  .download { grid-template-columns: auto 1fr; gap: 18px; padding: 22px; align-items: start; }
  .download-ico { width: 52px; height: 58px; }
  .download-ico svg { width: 26px; height: 26px; }
  .download-side { grid-column: 1 / -1; justify-items: stretch; text-align: center; }
  .download-side .btn { width: 100%; }
}
/* Con 6 pestañas el menú se aprieta en pantallas medianas */
@media (min-width: 901px) and (max-width: 1180px) {
  .nav-links { gap: 20px; font-size: 14.5px; }
  .nav-actions .nav-cta { padding: 10px 14px; }
}
