/* =========================================================
   GTX MACHINES — style.css
   Orden: 1 fuentes · 2 colores (modo claro y oscuro) · 3 base
          4 cabecera · 5 botones · 6 secciones · 7 catálogo
          8 máquina · 9 formularios · 10 pie y WhatsApp · 11 móvil
   ========================================================= */

/* ---------- 1. FUENTES (guardadas en el proyecto, licencia OFL) ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- 2. COLORES ----------
   Paleta GTX: 011de2 · 0433e2 · 663b0a · 020a41 · 5b88e5 · f6edb1 · f6cb3c · 001890 · 010f63 · c48608
   Modo claro = fondo blanco. El modo oscuro se activa solo si el visitante lo usa en su dispositivo. */
:root {
  --navy: #020a41; --navy-2: #010f63; --blue: #0433e2; --blue-deep: #001890;
  --blue-soft: #5b88e5; --gold: #f6cb3c; --gold-deep: #c48608; --cream: #f6edb1; --brown: #663b0a;

  --bg: #ffffff;
  --surface: color-mix(in srgb, var(--blue-soft) 8%, #fff);
  --surface-2: color-mix(in srgb, var(--blue-soft) 16%, #fff);
  --text: var(--navy);
  --muted: color-mix(in srgb, var(--navy) 74%, #fff);
  --line: color-mix(in srgb, var(--navy) 14%, #fff);
  --primary: var(--blue);
  --primary-hover: var(--blue-deep);
  --on-primary: #ffffff;
  --link: var(--blue);
  --eyebrow: var(--brown);
  --header-bg: #ffffff;
  --card-bg: #ffffff;
  --shadow: 0 10px 28px rgba(2, 10, 65, .10);
  --badge-auto-bg: color-mix(in srgb, var(--blue) 12%, #fff);
  --badge-auto-text: var(--blue-deep);
  --badge-elec-bg: color-mix(in srgb, var(--gold) 38%, #fff);
  --badge-elec-text: var(--brown);
  --badge-basic-bg: var(--surface-2);
  --badge-basic-text: var(--navy);
  --logo-plate: transparent;
  --radius: 10px;
  --max: 1180px;
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--navy);
    --surface: var(--navy-2);
    --surface-2: color-mix(in srgb, var(--blue) 24%, var(--navy));
    --text: #ffffff;
    --muted: color-mix(in srgb, #fff 74%, var(--navy));
    --line: color-mix(in srgb, var(--blue-soft) 28%, var(--navy));
    --primary: var(--blue-soft);
    --primary-hover: color-mix(in srgb, var(--blue-soft) 80%, #fff);
    --on-primary: var(--navy);
    --link: var(--blue-soft);
    --eyebrow: var(--gold);
    --header-bg: var(--navy);
    --card-bg: var(--navy-2);
    --shadow: 0 10px 28px rgba(0, 0, 0, .45);
    --badge-auto-bg: color-mix(in srgb, var(--blue-soft) 26%, var(--navy));
    --badge-auto-text: #ffffff;
    --badge-elec-bg: color-mix(in srgb, var(--gold) 22%, var(--navy));
    --badge-elec-text: var(--gold);
    --badge-basic-bg: var(--surface-2);
    --badge-basic-text: #ffffff;
    --logo-plate: #ffffff;
    color-scheme: dark;
  }
}

/* ---------- 3. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden]:not(.tabpanel) { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3, .h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 300; background: var(--gold); color: var(--navy); padding: 10px 16px; font-weight: 700; }
.skip-link:focus { left: 8px; top: 8px; }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--eyebrow); margin-bottom: .7em; }
.lead { font-size: 1.15rem; max-width: 62ch; color: var(--muted); }
.lead-sm { color: var(--muted); }
.note, .pending { color: var(--muted); }
.pending { font-style: italic; }
.note { border-left: 3px solid var(--gold); padding-left: 12px; margin-top: 1.5em; }

/* ---------- 4. CABECERA ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--header-bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; background: var(--logo-plate); border-radius: 8px; padding: 4px 8px; }
.brand-logo { width: 110px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { font-family: var(--font-head); font-size: .86rem; font-weight: 600; color: var(--text); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--gold); }
.lang { display: flex; align-items: center; gap: 10px; position: relative; }
.lang-list { display: flex; gap: 4px; list-style: none; }
.lang-list a, .lang-current { font-family: var(--font-head); font-size: .75rem; font-weight: 700; padding: 5px 8px; border-radius: 6px; text-decoration: none; }
.lang-list a { color: var(--text); border: 1px solid var(--line); }
.lang-list a:hover { border-color: var(--primary); }
.lang-current { background: var(--navy); color: #fff; }
@media (prefers-color-scheme: dark) { .lang-current { background: var(--gold); color: var(--navy); } }
.lang-other { font: inherit; font-size: .78rem; font-weight: 600; background: none; border: 0; color: var(--link); cursor: pointer; text-decoration: underline; padding: 4px; }
.translate-box { position: absolute; top: calc(100% + 10px); right: 0; width: 260px; background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); z-index: 50; }
.hint { font-size: .82rem; color: var(--muted); margin: 0 0 8px; }
.nav-toggle { display: none; background: none; border: 0; padding: 12px; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 24px; height: 2px; background: var(--text); content: ""; position: relative; transition: transform .2s, background .2s; }
.nav-toggle .bars::before { position: absolute; top: -7px; }
.nav-toggle .bars::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
/* Google Translate: oculta su barra superior para no mover la página */
body { top: 0 !important; }
.skiptranslate iframe.skiptranslate, .goog-te-banner-frame { display: none !important; }

/* ---------- 5. BOTONES ---------- */
.btn { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .9rem; text-align: center; text-decoration: none; cursor: pointer; padding: 13px 24px; border-radius: 8px; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--on-primary); }
.btn-outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--cream); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-small { padding: 9px 16px; font-size: .82rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.nav-cta { padding: 10px 18px; font-size: .84rem; }

/* ---------- 6. SECCIONES ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark .eyebrow { color: var(--gold); }
.section-dark p { color: color-mix(in srgb, #fff 80%, var(--navy)); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--muted); }
.center-link, p.center { text-align: center; margin-top: 32px; }
.page-head { padding: 56px 0 32px; background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head.compact { padding: 18px 0; }

.hero {
  position: relative; color: #fff; padding: 110px 0 100px;
  background-color: var(--navy);
  background-image:
    linear-gradient(100deg, rgba(2, 10, 65, .96) 0%, rgba(2, 10, 65, .78) 55%, rgba(1, 15, 99, .6) 100%),
    var(--hero-image, none),
    linear-gradient(135deg, var(--navy) 0%, var(--blue-deep) 100%);
  background-size: cover; background-position: center;
}
.hero .eyebrow { color: var(--gold); }
.hero h1 { max-width: 18ch; color: #fff; }
.hero .lead { color: color-mix(in srgb, #fff 82%, var(--navy)); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); }

.stats { background: var(--navy-2); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 30px 20px; text-align: center; border-left: 1px solid rgba(255, 255, 255, .12); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.2rem; line-height: 1.1; color: var(--gold); }
.stat span { color: color-mix(in srgb, #fff 80%, var(--navy)); font-size: .92rem; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card-bg); text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.tile-name { font-family: var(--font-head); font-weight: 700; }
.tile-count { font-size: .85rem; color: var(--muted); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.info-card { background: var(--card-bg); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 24px; }
.info-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.process-teaser { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.process-teaser > div { max-width: 640px; }
.cta { background: var(--blue-deep); color: #fff; padding: 64px 0; text-align: center; }
.cta p { color: color-mix(in srgb, #fff 85%, var(--blue-deep)); max-width: 52ch; margin: 0 auto 22px; }
.cta h2 { color: #fff; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 36px; }
.panel-box { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.tagline { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--primary); margin-bottom: .6em; }
.cta-box { margin-top: 40px; padding: 32px; background: var(--surface-2); border-radius: var(--radius); text-align: center; }

.steps { list-style: none; display: grid; gap: 14px; }
.step { display: flex; gap: 18px; align-items: flex-start; background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.step-num { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: var(--font-head); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
@media (prefers-color-scheme: dark) { .step-num { background: var(--gold); color: var(--navy); } }
.step h3 { margin-bottom: .2em; }
.step p { margin: 0; color: var(--muted); }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 600; padding: 18px 36px 18px 0; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--primary); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* ---------- 7. CATÁLOGO ---------- */
.search { margin-bottom: 18px; }
.search input { width: 100%; padding: 14px 16px; font: inherit; color: var(--text); background: var(--card-bg); border: 1px solid var(--line); border-radius: 8px; }
.search input:focus { border-color: var(--primary); }
.results { font-size: .88rem; color: var(--muted); margin: 8px 2px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 26px; }
.chip { font-family: var(--font-head); font-size: .8rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text); background: var(--card-bg); transition: border-color .2s, background .2s; }
.chip:hover { border-color: var(--primary); }
.chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (prefers-color-scheme: dark) { .chip.is-active { background: var(--gold); color: var(--navy); border-color: var(--gold); } }

.tablist { display: none; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 26px; flex-wrap: wrap; }
.js .tablist { display: flex; }
.js .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.panel-title { margin: 28px 0 14px; }
.tab { font-family: var(--font-head); font-weight: 700; font-size: .92rem; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 12px 18px; color: var(--muted); cursor: pointer; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--gold); }
.count { display: inline-block; min-width: 1.6em; padding: 1px 7px; margin-left: 4px; border-radius: 999px; background: var(--surface-2); font-size: .75rem; text-align: center; }
.empty { padding: 36px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.card { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media, .media { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; overflow: hidden; background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 12px, var(--surface-2) 12px, var(--surface-2) 24px); }
.card-media img, .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph { font-size: .8rem; font-weight: 600; color: var(--muted); padding: 10px; text-align: center; text-decoration: none; }
.card-media { text-decoration: none; }
.card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .78rem; margin-bottom: 8px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; color: var(--muted); }
.badge { font-family: var(--font-head); font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; }
.badge-automated { background: var(--badge-auto-bg); color: var(--badge-auto-text); }
.badge-electronic { background: var(--badge-elec-bg); color: var(--badge-elec-text); }
.badge-basic { background: var(--badge-basic-bg); color: var(--badge-basic-text); }
.card-title { font-size: 1.05rem; margin-bottom: .4em; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--primary); }
.card-summary { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.card-actions .btn { flex: 1; white-space: nowrap; }

/* ---------- 8. PÁGINA DE MÁQUINA ---------- */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .86rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumb a { color: var(--link); }
.machine { padding-top: 32px; }
.machine-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; margin-bottom: 48px; }
.main-media { border-radius: var(--radius); border: 1px solid var(--line); }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.thumb { border-radius: 8px; border: 1px solid var(--line); }
.machine-garments { margin: 0 0 1em; color: var(--muted); }
.machine-sections section { margin-bottom: 36px; }
.machine-sections h2 { font-size: 1.4rem; }
.machine-sections h3 { margin-top: 28px; }
.bullets { list-style: disc; padding-left: 22px; color: var(--muted); }
.bullets li { margin-bottom: 6px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 8px 0 12px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 380px; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table thead th { background: var(--surface-2); font-family: var(--font-head); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.spec-table tbody th { width: 38%; font-weight: 600; background: var(--surface); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.table-note { font-size: .84rem; color: var(--muted); }

/* ---------- 9. FORMULARIOS ---------- */
.quote-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
.contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: sticky; top: 90px; }
.contact-list { margin: 18px 0 0; }
.contact-list dt { font-family: var(--font-head); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 14px; }
.contact-list dd { margin: 2px 0 0; word-break: break-word; }
.form fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.form legend { font-family: var(--font-head); font-weight: 700; margin-bottom: 14px; padding: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; font: inherit; color: var(--text); background: var(--card-bg); border: 1px solid color-mix(in srgb, var(--text) 38%, var(--bg)); border-radius: 8px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field [aria-invalid="true"] { border-color: #c4281c; }
@media (prefers-color-scheme: dark) { .field [aria-invalid="true"] { border-color: #ff8a80; } }
.error { color: #b3261e; font-size: .82rem; margin: 4px 0 0; }
@media (prefers-color-scheme: dark) { .error { color: #ff9e95; } }
.form-errors { background: color-mix(in srgb, #c4281c 12%, var(--bg)); border-left: 4px solid #c4281c; padding: 10px 14px; border-radius: 6px; margin-bottom: 18px; font-weight: 600; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.form-success { background: color-mix(in srgb, var(--gold) 20%, var(--bg)); border: 1px solid var(--gold); border-radius: var(--radius); padding: 28px; text-align: center; }

/* ---------- 10. PIE Y BOTÓN DE WHATSAPP ---------- */
.site-footer { background: var(--navy); color: color-mix(in srgb, #fff 80%, var(--navy)); padding-top: 56px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 32px; }
.footer-brand { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: .4em; }
.footer-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--gold); }
.site-footer .muted { color: color-mix(in srgb, #fff 62%, var(--navy)); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 36px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .14); }
.footer-bottom p { margin: 0; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 150; display: inline-flex; align-items: center; gap: 8px; background: #167a3d; color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: .85rem; padding: 13px 18px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); transition: transform .2s, background .2s; }
.wa-float:hover { transform: translateY(-2px); background: #0f6030; }
/* En las páginas de formularios el botón flotante tapa los campos; ahí ya hay botón de WhatsApp */
.page-quote .wa-float, .page-pqrs .wa-float { display: none; }

/* Aparición suave (solo con JavaScript y si el visitante no pidió menos movimiento) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
/* Sin JavaScript se ven las 3 listas una debajo de otra; con JavaScript, una por pestaña */
.tabpanel[hidden] { display: block; }
.js .tabpanel[hidden] { display: none; }

/* ---------- 11. TABLET Y MÓVIL ---------- */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .machine-layout, .quote-layout { grid-template-columns: 1fr; }
  .contact-box { position: static; }
}
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--header-bg); border-bottom: 1px solid var(--line); padding: 8px 20px 22px; max-height: calc(100vh - 68px); overflow-y: auto; }
  .site-nav.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-cta { margin-top: 16px; padding: 14px; }
  .lang { margin-top: 16px; flex-wrap: wrap; }
  .translate-box { position: static; width: 100%; margin-top: 8px; }
  .two-col { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
@media (max-width: 600px) {
  .hero { padding: 72px 0 64px; }
  .hero .actions .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px; }
  .stat:first-child { border-top: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(3, 1fr); }
  .tab { padding: 12px 12px; font-size: .85rem; }
  .btn, .chip, .tab, .faq-item summary { min-height: 44px; }
  .form-actions .btn { width: 100%; }
  .wa-text { display: none; }
  .wa-float { padding: 14px; }
}

/* aviso temporal: máquinas por revisar */
.review-flag { margin: 0 0 8px; }
.btn-review { background: #c4001a; color: #fff; border: 2px solid #c4001a; font-weight: 800; letter-spacing: .08em; cursor: default; }

/* ---------- 12. JEAN INTERACTIVO ("Así se fabrica un jean", inicio) ----------
   Dos paneles en la misma celda: la vista general (jean con puntos) y la vista dividida (pieza | máquina).
   Se pasa de uno a otro con un deslizamiento lateral tipo "tablero". Solo se animan transform y opacity.
   El panel inactivo sale del flujo (position: absolute) para que la altura sea la del panel visible. */
.jean-list { list-style: none; display: grid; gap: 10px; }
.jean-list-view { color: var(--muted); font-size: .9em; }
.js .jean-list { display: none; }
html:not(.js) .jean { display: none; }

.jean { --ease: cubic-bezier(.2, .8, .2, 1); --dur: .6s; position: relative; scroll-margin-top: 88px; }
.jean-viewport { position: relative; display: grid; overflow: hidden; overflow: clip; }
.jean-pane { grid-area: 1 / 1; min-width: 0; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), visibility 0s linear 0s; }
.jean-detail { position: absolute; inset: 0 0 auto 0; transform: translateX(100%); opacity: 0; visibility: hidden; transition-delay: 0s, 0s, var(--dur); }
.jean.is-open .jean-overview { position: absolute; inset: 0 0 auto 0; transform: translateX(-100%); opacity: 0; visibility: hidden; transition-delay: 0s, 0s, var(--dur); }
.jean.is-open .jean-detail { position: relative; transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.jean.no-anim, .jean.no-anim * { transition: none !important; animation: none !important; }

/* Vista general */
.jean-overview { display: grid; justify-items: center; gap: 18px; padding: 4px 0 8px; }
.jean-views { display: flex; gap: 8px; justify-content: center; }
.jean-view-btn { min-height: 44px; padding: 10px 18px; cursor: pointer; }
.jean-view-btn[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (prefers-color-scheme: dark) { .jean-view-btn[aria-pressed="true"] { background: var(--gold); color: var(--navy); border-color: var(--gold); } }
.jean-stage { width: min(100%, 400px); }
.jean-figure { position: relative; margin: 0; aspect-ratio: 400 / 560; }
.jean-figure.is-entering { animation: jean-enter .45s var(--ease); }
@keyframes jean-enter { from { opacity: 0; transform: scale(.97); } }
.jean-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.jean-figure .jean-img { filter: drop-shadow(0 16px 22px rgba(2, 10, 65, .18)); }
.jean-hint { color: var(--muted); font-size: .9rem; text-align: center; max-width: 52ch; margin: 0; }

/* Puntos: área táctil de 44 px; el punto visible es más pequeño */
.jean-hotspot { position: absolute; left: var(--x); top: var(--y); width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; }
.jean-hotspot span { position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 3px solid var(--navy); box-shadow: 0 0 0 3px rgba(255, 255, 255, .9); transition: transform .2s var(--ease); }
.jean-hotspot span::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; animation: jean-pulse 2.6s var(--ease) infinite; }
.jean-hotspot:nth-of-type(2n) span::after { animation-delay: .9s; }
.jean-hotspot:nth-of-type(3n) span::after { animation-delay: 1.7s; }
@keyframes jean-pulse { 0% { transform: scale(.6); opacity: .9; } 75%, 100% { transform: scale(1.7); opacity: 0; } }
.jean-hotspot:hover span, .jean-hotspot:focus-visible span, .jean-hotspot.is-active span { transform: scale(1.3); }
.jean-hotspot:focus-visible { outline: 3px solid var(--primary); outline-offset: 0; }

/* Tooltip: sigue al cursor (position: fixed + transform), nunca se sale de la pantalla */
.jean-tooltip { position: fixed; left: 0; top: 0; z-index: 60; display: grid; gap: 3px; max-width: 270px; padding: 10px 14px; background: var(--navy); color: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; box-shadow: var(--shadow); font-size: .84rem; line-height: 1.35; pointer-events: none; opacity: 0; transition: opacity .15s ease; }
.jean-tooltip.is-visible { opacity: 1; }
.jean-tooltip strong { font-family: var(--font-head); font-size: .92rem; }
.jean-tooltip span { color: #dde4ff; }
.jean-tooltip small { color: var(--gold); font-weight: 600; margin-top: 3px; }

/* Vista dividida: pieza a la izquierda, máquina a la derecha */
.jean-detail-bar { margin-bottom: 18px; }
.jean-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 32px; align-items: start; }
.jean-piece { display: grid; gap: 12px; justify-items: center; }
.jean-piece-box { position: relative; width: min(100%, 360px); aspect-ratio: 400 / 560; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.jean-piece-zoom { position: absolute; inset: 0; transform-origin: var(--x) var(--y); transition: transform .8s var(--ease) .2s; }
.jean.is-open .jean-piece-zoom { transform: translate(var(--tx), var(--ty)) scale(var(--s)); }
.jean-piece-mark { position: absolute; left: var(--mx); top: var(--my); width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; border: 3px solid var(--gold); box-shadow: 0 0 0 4px rgba(2, 10, 65, .35); opacity: 0; transform: scale(.4); transition: opacity .3s ease, transform .4s var(--ease); }
.jean.is-open .jean-piece-mark { opacity: 1; transform: none; transition-delay: .9s; }
.jean-piece-label { font-family: var(--font-head); font-weight: 700; text-align: center; margin: 0; }

.jean-machine { display: grid; gap: 18px; background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.jean-machine-media { aspect-ratio: 16 / 9; border-radius: 8px; border: 1px solid var(--line); }
.jean-machine-media img { object-fit: contain; background: #fff; }
.jean-machine h3 { font-size: 1.35rem; margin-bottom: .4em; }
.jean-machine h3:focus { outline: none; }
.jean-machine-summary { color: var(--muted); }
.jean-machine .actions { margin-top: 16px; }
.jean.is-open .jean-machine-body > * { animation: jean-rise .5s var(--ease) both; }
.jean.is-open .jean-machine-body > :nth-child(1) { animation-delay: .35s; }
.jean.is-open .jean-machine-body > :nth-child(2) { animation-delay: .4s; }
.jean.is-open .jean-machine-body > :nth-child(3) { animation-delay: .45s; }
.jean.is-open .jean-machine-body > :nth-child(4) { animation-delay: .5s; }
.jean.is-open .jean-machine-body > :nth-child(n+5) { animation-delay: .55s; }
@keyframes jean-rise { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 720px) {
  .jean-split { grid-template-columns: 1fr; gap: 20px; }
  .jean-piece-box { width: min(72%, 260px); }
  .jean-stage { width: min(100%, 340px); }
  .jean-machine { padding: 16px; }
  .jean-machine .actions .btn { flex: 1; }
}
/* Menos movimiento: sin deslizamientos ni pulsos (las transiciones ya se anulan arriba, en la sección 10) */
@media (prefers-reduced-motion: reduce) {
  .jean-hotspot span::after, .jean-figure.is-entering, .jean.is-open .jean-machine-body > * { animation: none; }
  .jean-pane { transform: none !important; }
}
