/* ==========================================================================
   Gauchito · sitio público
   Mundo visual (2026-10-06): fabricante de máquinas herramienta, en claro.
   Blanco y gris acero, tinta casi negra, azul del logo como única voz de color.
   Tipografía: Source Sans 3 variable (desde 2026-10-08): texto en 500, rótulos y
   botones en 600, títulos y cifras en 700 (2026-11-25).
   Letra más grande (pedido del dueño, 2026-11-27: «Hacé más grande la letra»): todos
   los tamaños de letra de esta hoja se multiplicaron una vez, sólo los tamaños (no los
   espacios): hasta 1.25rem ×1,10; desde 2.5rem ×1,05 (los títulos grandes ya lo eran);
   en el medio, de 1,10 a 1,05 en línea recta. En un clamp() manda el máximo. El texto
   pasó de 17 a 18,7 px. Lo que se tuvo que acomodar para que todo siga entrando está
   marcado «(letra +10 %)». Ver DESIGN.md › Typography.
   ========================================================================== */
:root {
    --ink-900: #14181f;
    --ink-800: #1f2530;
    --ink-700: #2d3542;
    --ink-600: #414a5b;   /* 8,9:1 sobre blanco; era #475062 (pedido del dueño, 2026-11-25: letra «más rellenita para que se vea bien») */
    --ink-500: #545e70;   /* 6,5:1 sobre blanco; era #5f6879 (5,6:1), mismo pedido */
    --ink-400: #6c7587;   /* 4,6:1: los contadores «(14)» de filtros y menú no llegaban (era #98a1b2, 2,6:1) */
    --ink-300: #c6ccd6;
    --steel-100: #f3f5f8;
    --steel-200: #e3e7ee;
    --steel-300: #d2d8e2;
    --paper: #ffffff;
    --blue: #2d5ea3;
    --blue-deep: #234b85;
    --blue-soft: #e8eff9;
    --blue-line: #c3d3ec;
    --navy: #111a2c;
    --navy-line: #27354f;
    --green: #1b7f4a;
    --green-soft: #e4f4ea;
    --red: #b42318;
    --red-soft: #fde8e6;
    --wa: #25d366;
    --accent: var(--blue);
    --yellow: #f7c400;          /* histórico; ya no se usa en la interfaz */
    --amarillo-oferta: #ffe600; /* sólo ofertas (pedido del dueño, 2026-11-24, «detalles en amarillo tipo ML») */
    --display: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
    --body: "Source Sans 3", "Helvetica Neue", Arial, system-ui, sans-serif;
    --wide: 100%;   /* Source Sans 3 no tiene ancho variable (Archivo sí: era 112%) */
    --r: 4px;
    --wrap: 1280px;
    --gutter: clamp(1rem, 3vw, 2.5rem);
    --hdr-h: 72px;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --shadow-1: 0 1px 2px rgba(20, 24, 31, .05), 0 10px 28px -18px rgba(20, 24, 31, .28);
    --shadow-2: 0 2px 4px rgba(20, 24, 31, .06), 0 24px 48px -22px rgba(20, 24, 31, .35);
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 56px); scroll-padding-bottom: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
    margin: 0; font-family: var(--body); font-size: 18.7px; line-height: 1.55;   /* era 17 px (Source Sans 3 dibuja más chico que Archivo); +10 % el 2026-11-27, pedido del dueño: «Hacé más grande la letra» */ color: var(--ink-900);
    font-weight: 500;   /* pedido del dueño, 2026-11-25: «la letra que sea un poco más rellenita para que se vea bien» (era 400; los títulos siguen en 700) */ background: var(--paper);
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-variant-numeric: tabular-nums; caret-color: var(--blue);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; font-stretch: var(--wide); line-height: 1.08; letter-spacing: -.012em; margin: 0 0 .5em; text-wrap: balance; color: var(--ink-900); }
h1 { font-size: clamp(2.31rem, 4.31vw, 3.68rem); }
h2 { font-size: clamp(1.7rem, 2.86vw, 2.39rem); }
h3 { font-size: 1.38rem; font-stretch: 106%; }
h4 { font-size: 1.1rem; font-stretch: 100%; }
::selection { background: var(--blue-soft); color: var(--ink-900); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: .5rem 1rem; z-index: 200; font-weight: 600; border-radius: var(--r); }
.skip:focus { left: 8px; }
.wrap, .container { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.label { font-family: var(--body); font-size: .81rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); }
.lead { font-size: 1.23rem; line-height: 1.55; color: var(--ink-600); max-width: 60ch; }
.muted { color: var(--ink-500); }
.link-arrow { font-weight: 600; color: var(--blue); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em; text-decoration-color: var(--blue-line); white-space: nowrap; }
.link-arrow:hover { color: var(--blue-deep); text-decoration-color: currentColor; }
.on-dark .link-arrow { color: #fff; text-decoration-color: rgba(255,255,255,.5); }
.on-dark .link-arrow:hover { text-decoration-color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Botones ------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: 0 1.25rem;
    border-radius: var(--r); border: 1.5px solid transparent; font: 600 1.05rem/1 var(--body); letter-spacing: .005em; cursor: pointer;
    white-space: nowrap; transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-accent:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-dark { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.btn-dark:hover { background: var(--ink-700); border-color: var(--ink-700); }
.btn-outline { background: transparent; color: var(--ink-900); border-color: var(--ink-300); }
.btn-outline:hover { border-color: var(--ink-900); background: var(--steel-100); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-sm { min-height: 36px; padding: 0 .9rem; font-size: .94rem; }
.btn-lg { min-height: 54px; padding: 0 1.75rem; font-size: 1.16rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---- Etiquetas de disponibilidad ----------------------------------------- */
.tag { display: inline-flex; align-items: center; gap: .35rem; height: 24px; padding: 0 .6rem; border-radius: 3px; font: 700 .77rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.tag-stock { background: var(--green); color: #fff; }
.tag-importacion { background: var(--blue-soft); color: var(--blue-deep); border: 1px solid var(--blue-line); }
.tag-consultar { background: var(--steel-200); color: var(--ink-600); }
/* Máquinas usadas (estado 0 en el panel): etiqueta neutra con borde, nunca un color nuevo. */
.tag-usada { background: var(--paper); color: var(--ink-700); border: 1px solid var(--ink-300); }
.pc-media .tag + .tag-usada { top: calc(.75rem + 30px); }
.avail .tag + .tag-usada { margin-left: .4rem; }
.on-dark .tag-importacion { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.on-dark .tag-consultar { background: rgba(255,255,255,.14); color: #fff; }

/* ---- Cifras de especificación -------------------------------------------- */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0; margin: 0; }
.figures > div { padding: .75rem 1rem .75rem 0; border-right: 1px solid var(--steel-200); margin-right: 1rem; min-width: 0; }
.figures > div:last-child { border-right: 0; margin-right: 0; }
.figures dd { margin: 0; font-family: var(--display); font-weight: 700; font-stretch: 106%; font-size: 1.69rem; line-height: 1; color: var(--ink-900); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.figures dd small { font-family: var(--body); font-weight: 600; font-stretch: 100%; font-size: .88rem; margin-left: .2rem; color: var(--ink-500); letter-spacing: 0; }
.figures dd.text { font-size: 1.12rem; line-height: 1.2; font-stretch: 100%; font-weight: 700; padding-top: .2rem; }
.figures-lg dd.text { font-size: 1.23rem; }
/* Cifras largas (split_figure 'largo'): más chicas; y si igual no entran, bajan de renglón en vez de pisar la de al lado. */
.figures dd { overflow-wrap: break-word; }
.figures dd small { overflow-wrap: normal; }   /* (letra +10 %) la unidad nunca se parte por la mitad («1000 m / m / 1500 mm» en la ficha): si no entra, baja entera */
.figures dd.largo { font-size: 1.21rem; }
.figures-lg dd.largo { font-size: 1.38rem; }
.figures dt { margin-top: .35rem; font-size: .86rem; font-weight: 500; color: var(--ink-500); line-height: 1.25; }
.on-dark .figures > div { border-color: rgba(255,255,255,.2); }
.on-dark .figures dd { color: #fff; }
.on-dark .figures dd small, .on-dark .figures dt { color: rgba(255,255,255,.7); }
.figures-lg dd { font-size: 2.14rem; }

/* ---- Header -------------------------------------------------------------- */
.hdr { position: sticky; top: 0; z-index: 100; background: var(--paper); color: var(--ink-900); border-bottom: 1px solid var(--steel-200); }
.hdr-util { background: var(--steel-100); font-size: .88rem; color: var(--ink-600); border-bottom: 1px solid var(--steel-200); }
.hdr-util .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 32px; gap: 1rem; }
.hdr-util a { color: var(--ink-600); display: inline-flex; align-items: center; gap: .35rem; }
.hdr-util a:hover { color: var(--blue); }
.hdr-util a svg { width: 13px; height: 13px; }
.hdr-util-links { display: flex; gap: 1.25rem; flex: none; white-space: nowrap; }
.hdr-util-fact { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* una sola línea: si no entra, se corta con «…» */
.hdr-util a.hdr-util-pronto { color: var(--blue); font-weight: 700; }   /* «Próximamente San Isidro» (2026-12-04) */
.hdr-row { display: flex; align-items: center; gap: 1.1rem; min-height: var(--hdr-h); }
@media (min-width: 1025px) and (max-width: 1279px) { .hdr-row { gap: .7rem; } }   /* (letra +10 %) de 1025 a 1279 el encabezado ya iba justo: el logo y el buscador cedían */
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink-900); margin-right: .5rem; }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--display); font-size: 1.58rem; font-weight: 800; letter-spacing: .02em; }
.brand-text small { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-500); margin-top: .2rem; }
/* El logo real está diseñado para fondo blanco: en el header va sin placa; en el pie (azul marino) lleva placa blanca. */
.brand-logo { display: inline-flex; align-items: center; margin-right: .5rem; }
.brand-logo img { display: block; height: 50px; width: auto; }
.ftr .brand-logo { background: #fff; border-radius: 6px; padding: 7px 12px; margin-bottom: 1.1rem; }
.ftr .brand-logo img { height: 48px; }
.nav { align-self: stretch; }
.nav-list { display: flex; align-items: stretch; list-style: none; margin: 0; padding: 0; height: 100%; }
.nav-link {
    display: inline-flex; align-items: center; gap: .35rem; height: 100%; padding: 0 .7rem; background: none; border: 0; color: var(--ink-700);   /* era .85rem: con la letra +10 % el menú no entraba con «Mi carrito» y el WhatsApp (el chevron se achicaba a 5 px) */
    font: 600 1.05rem/1 var(--body); cursor: pointer; position: relative; white-space: nowrap;
}
.nav-link svg { width: 12px; height: 12px; transition: transform .2s; }
.nav-link::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: -1px; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.nav-link:hover, .nav-link.active, .nav-link[aria-expanded="true"] { color: var(--ink-900); }
.nav-link:hover::after, .nav-link.active::after, .nav-link[aria-expanded="true"]::after { transform: scaleX(1); }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.hdr-search { display: flex; margin-left: auto; background: var(--steel-100); border: 1px solid var(--steel-300); border-radius: var(--r); height: 42px; width: 250px; transition: border-color .15s, box-shadow .15s; }
.hdr-search input[type="search"] { flex: 1; min-width: 0; min-height: 0; background: none; border: 0; border-radius: 0; color: var(--ink-900); padding: 0 .7rem; font: 500 .99rem var(--body); }   /* padding era .85rem: con la letra +10 % «Buscar máquina o código» se cortaba en «códig» */
.hdr-search input::placeholder { color: var(--ink-500); }
.hdr-search input[type="search"]:focus { outline: none; box-shadow: none; }
.hdr-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); background: #fff; }
.hdr-search button { background: none; border: 0; color: var(--ink-600); width: 40px; display: grid; place-items: center; cursor: pointer; }
.hdr-search button svg { width: 18px; height: 18px; }
.hdr-wa { min-height: 42px; }
.hdr-burger, .hdr-search-toggle { display: none; background: none; border: 0; color: var(--ink-900); width: 44px; height: 44px; place-items: center; cursor: pointer; border-radius: var(--r); }
.hdr-burger:hover, .hdr-search-toggle:hover { background: var(--steel-100); }
.hdr-burger svg, .hdr-search-toggle svg { width: 24px; height: 24px; }

/* Mega menú */
.has-mega { position: static; }
.mega {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); color: var(--ink-900); border-top: 1px solid var(--steel-200); border-bottom: 1px solid var(--steel-200);
    box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
}
.has-mega.open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega-grid { display: grid; grid-template-columns: 290px 1fr 260px; min-height: 380px; }
/* El menú nunca es más alto que la pantalla: cada columna se desplaza sola. La lista de
   categorías (19 renglones) no entra en una notebook y antes quedaba cortada abajo.
   --mega-top lo mide public.js al abrir (el borde inferior del header). */
.mega-cats, .mega-preview, .mega-side {
    max-height: calc(100vh - var(--mega-top, 112px)); max-height: calc(100dvh - var(--mega-top, 112px));
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--steel-300) transparent;
}
.mega-cats { list-style: none; margin: 0; padding: 1rem 0; border-right: 1px solid var(--steel-200); }
.mega-cats a, .mega-cats button { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .34rem .75rem; margin-right: .75rem; border-radius: var(--r); color: var(--ink-700); font-weight: 600; font-size: 1.01rem; line-height: 1.3; }   /* agrupadas (2026-11-25): 18 renglones, entran en 1366×768 */
/* el renglón de un grupo (Tornos, Fresadoras…) es un botón: muestra sus categorías al lado */
.mega-cats button { width: calc(100% - .75rem); border: 0; background: none; font-family: var(--body); text-align: left; cursor: pointer; }
.mega-cats a span, .mega-cats button span { font-size: .83rem; color: var(--ink-500); }
.mega-cats li.active a, .mega-cats a:hover, .mega-cats li.active button, .mega-cats button:hover { color: var(--blue-deep); background: var(--blue-soft); }
.mega-cats .mega-cats-all { margin-top: .75rem; padding-top: 1rem; border-top: 1px solid var(--steel-200); }
.mega-cats .mega-cats-all a { color: var(--blue); }
.mega-preview { padding: 1.25rem 1.75rem 1.5rem; }
.mega-panel[hidden] { display: none; }
.mega-panel h4 { font-size: 1.32rem; font-stretch: 106%; margin: 0 0 1rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.mega-panel h4 a { font: 600 .9rem var(--body); font-stretch: 100%; color: var(--blue); }
/* Subcategorías (Tornos manuales / CNC, Rectificadoras de cilindros...): en el menú y arriba del listado */
.mega-subs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: -.4rem 0 1rem; padding: 0; }
.mega-subs a { display: inline-flex; align-items: baseline; gap: .35rem; padding: .3rem .75rem; border: 1px solid var(--steel-300); border-radius: 999px; font: 600 .9rem var(--body); color: var(--ink-700); }
.mega-subs a span { color: var(--ink-400); font-weight: 500; }
.mega-subs a:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.subcats { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.subcats a { display: inline-flex; align-items: baseline; gap: .35rem; padding: .45rem .95rem; border: 1px solid var(--steel-300); border-radius: 999px; background: #fff; font: 600 .97rem var(--body); color: var(--ink-700); }
.subcats a span { color: var(--ink-400); font-weight: 500; }
.subcats a:hover { border-color: var(--blue); color: var(--blue); }
.subcats a.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.subcats a.active span { color: rgba(255, 255, 255, .8); }
@media (max-width: 640px) {
    /* en el celular, una sola fila que se desliza de costado */
    .subcats { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1rem; padding: 0 1rem .3rem; scrollbar-width: none; }
    .subcats::-webkit-scrollbar { display: none; }
    .subcats a { flex: none; white-space: nowrap; }
}
/* Máquinas en tarjetas con la foto grande en placa blanca, como las del catálogo: tres por fila. */
.mega-products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.1rem; }
.mega-products a { display: flex; flex-direction: column; height: 100%; padding: .5rem .5rem .65rem; border-radius: var(--r); border: 1px solid transparent; color: var(--ink-900); }
.mega-products a:hover { background: var(--steel-100); border-color: var(--steel-200); }
.mega-products .thumb { display: block; aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--steel-200); border-radius: 2px; overflow: hidden; margin-bottom: .6rem; }
.mega-products .thumb img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 7%; transition: transform .3s var(--ease); }
.mega-products a:hover .thumb img { transform: scale(1.03); }
.mega-products strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 1.01rem; line-height: 1.25; }
.mega-products small { display: block; font-size: .83rem; color: var(--ink-500); margin-top: .25rem; }
.mega-products small.av-stock { color: var(--green); font-weight: 600; }
.mega-products small.av-importacion { color: var(--blue-deep); }
/* Dos filas de tres; la tercera fila sólo si la pantalla tiene alto para verla entera,
   y en pantallas bajas la foto se aplana un poco para que las dos filas entren sin desplazar. */
.mega-products li:nth-child(n+7) { display: none; }
@media (min-height: 955px) { .mega-products li:nth-child(n+7) { display: block; } }
@media (max-height: 700px) { .mega-products .thumb { aspect-ratio: 16 / 10; } }
.mega-side { padding: 1.25rem 0 1.25rem 1.75rem; border-left: 1px solid var(--steel-200); display: flex; flex-direction: column; gap: .75rem; }
.mega-side a.mega-side-card { display: block; padding: 1rem; background: var(--steel-100); border: 1px solid var(--steel-200); border-radius: var(--r); }
.mega-side a.mega-side-card:hover { border-color: var(--blue); background: var(--blue-soft); }
.mega-side strong { display: block; font-family: var(--display); font-stretch: 104%; font-size: 1.16rem; }
.mega-side small { color: var(--ink-500); font-size: .88rem; }
.mega-side .mega-side-cta { margin-top: auto; }
.mega-side .mega-side-cta p { font-size: .94rem; color: var(--ink-600); margin-bottom: .6rem; }

/* Drawer móvil */
.drawer { position: fixed; inset: 0; z-index: 150; display: none; }
.drawer.open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(17, 26, 44, .55); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); background: var(--paper); color: var(--ink-900); overflow-y: auto; padding: 1rem 1.25rem 2rem; transform: translateX(100%); transition: transform .25s var(--ease); box-shadow: -20px 0 50px -30px rgba(17, 26, 44, .5); }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.drawer-head .brand-logo img { height: 40px; }
.drawer-close { background: none; border: 0; color: var(--ink-900); width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: var(--r); }
.drawer-close:hover { background: var(--steel-100); }
.drawer-close svg { width: 22px; height: 22px; }
.drawer .hdr-search { width: 100%; margin: 0 0 1rem; }
.drawer-nav { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--steel-200); }
.drawer-nav > li { border-bottom: 1px solid var(--steel-200); }
.drawer-nav a, .drawer-nav summary { display: flex; justify-content: space-between; align-items: center; padding: .9rem 0; font: 600 1.1rem var(--body); color: var(--ink-900); cursor: pointer; list-style: none; }
.drawer-nav summary::-webkit-details-marker { display: none; }
.drawer-nav summary svg, .drawer-nav a svg { width: 16px; height: 16px; color: var(--ink-500); transition: transform .2s; }
.drawer-nav details[open] summary svg { transform: rotate(180deg); }
.drawer-cats { list-style: none; margin: 0 0 .75rem; padding: 0; }
.drawer-cats a { font-weight: 500; color: var(--ink-600); padding: .55rem 0 .55rem 1rem; border-left: 1px solid var(--steel-300); }
.drawer-cats a:hover { color: var(--blue); }
.drawer-cats a span { color: var(--ink-400); font-size: .88rem; }
.drawer-subs { list-style: none; margin: 0 0 .3rem; padding: 0 0 0 1rem; }   /* Tornos manuales / CNC… en el menú del celular */
.drawer-subs a { padding: .4rem 0 .4rem 1rem; font-size: 1.01rem; }
.drawer-grupo { display: block; padding: .55rem 0 .3rem 1rem; border-left: 1px solid var(--steel-300); font-weight: 600; color: var(--ink-900); }   /* Tornos → sus categorías */
.drawer-contact { margin-top: 1.25rem; display: grid; gap: .6rem; font-size: .99rem; color: var(--ink-600); }
.drawer-contact a:not(.btn) { color: var(--ink-900); font-weight: 600; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { background: var(--steel-100); color: var(--ink-900); position: relative; border-bottom: 1px solid var(--steel-200); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(2.75rem, 5.5vw, 5rem) 0 clamp(2.5rem, 5vw, 4.5rem); }
.hero h1 { color: var(--ink-900); margin-bottom: 1.1rem; }
.hero h1 mark { background: none; color: var(--blue); }
.hero .lead { color: var(--ink-600); margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.75rem; }
.hero-facts { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; gap: .4rem 1.5rem; color: var(--ink-600); font-size: 1.01rem; font-weight: 500; }
.hero-facts li { display: flex; align-items: center; gap: .5rem; }
.hero-facts li::before { content: ""; width: 7px; height: 7px; background: var(--blue); border-radius: 50%; }
.hero-machine { position: relative; animation: rise .6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.plate { display: block; background: #fff; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; position: relative; }
.plate img { width: 100%; height: 100%; object-fit: contain; padding: 5%; }
.hero-machine .plate { border: 1px solid var(--steel-200); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; box-shadow: var(--shadow-1); }
.spec-strip { background: #fff; border: 1px solid var(--steel-200); border-radius: 0 0 var(--r) var(--r); padding: 1rem 1.25rem 1.1rem; box-shadow: var(--shadow-1); }
.spec-strip-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; margin-bottom: .5rem; }
.spec-strip .model { font-family: var(--display); font-stretch: 106%; font-size: 1.53rem; font-weight: 700; color: var(--ink-900); line-height: 1.1; }
.spec-strip .meta { font-size: .9rem; color: var(--ink-500); font-weight: 500; }
.spec-strip .figures dd { font-size: 1.48rem; }
.spec-strip-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--steel-200); }
.spec-strip-foot .price { font-family: var(--display); font-stretch: 104%; font-size: 1.38rem; font-weight: 700; }
.spec-strip-foot .price small { font: 500 .83rem var(--body); font-stretch: 100%; color: var(--ink-500); margin-left: .35rem; }
.spec-strip-foot .left { display: flex; align-items: center; gap: .75rem; }
.hero-mini { margin-top: 1rem; display: flex; gap: .5rem; }
.hero-mini a { flex: 1; background: #fff; border: 1px solid var(--steel-200); border-radius: var(--r); padding: .6rem .75rem; color: var(--ink-600); font-size: .88rem; display: flex; justify-content: space-between; align-items: center; transition: border-color .15s, color .15s; }
.hero-mini a strong { color: var(--blue); font-family: var(--display); font-stretch: 106%; font-size: 1.26rem; }
.hero-mini a:hover { border-color: var(--blue); color: var(--ink-900); }

/* ---- Buscador del inicio ------------------------------------------------- */
.hero-search { margin: 0 0 1.25rem; max-width: 640px; }
.hero-search-box { display: flex; align-items: center; gap: .25rem; background: #fff; border-radius: var(--r); padding: 6px 6px 6px 14px; border: 1.5px solid var(--steel-300); box-shadow: var(--shadow-1); transition: border-color .15s, box-shadow .15s; }
.hero-search-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.hero-search-box > svg { width: 22px; height: 22px; color: var(--ink-500); flex: none; }
.hero-search-box input[type="search"] { flex: 1; min-width: 0; min-height: 46px; border: 0; border-radius: 0; background: none; padding: 0 .6rem; font: 500 1.16rem var(--body); color: var(--ink-900); }
.hero-search-box input[type="search"]:focus { outline: none; box-shadow: none; }
.hero-search-box input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hero-search-box .btn { min-height: 44px; }
.hero-search-hints { margin: .6rem 0 0; font-size: .94rem; color: var(--ink-500); }
.hero-search-hints a { color: var(--blue); text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--blue-line); }
.hero-search-hints a:hover { text-decoration-color: currentColor; }

/* Resultados en vivo (compartidos por el inicio, el header y el menú móvil) */
.live-wrap { position: relative; }
.live { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 120; background: #fff; color: var(--ink-900); border: 1px solid var(--steel-200); border-radius: var(--r); box-shadow: var(--shadow-2); max-height: min(70vh, 560px); overflow-y: auto; text-align: left; }
.live[hidden] { display: none; }
.live-right { left: auto; right: 0; width: 480px; }
.live-cats { display: flex; flex-wrap: wrap; gap: .4rem; padding: .75rem .9rem; border-bottom: 1px solid var(--steel-200); background: var(--steel-100); }
.live-cat { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; background: #fff; border: 1px solid var(--steel-300); font: 600 .88rem var(--body); color: var(--ink-900); }
.live-cat span { color: var(--ink-500); font-weight: 500; }
.live-cat:hover, .live-cat[aria-selected="true"] { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-deep); }
.live-list { list-style: none; margin: 0; padding: .35rem 0; }
.live-item { display: grid; grid-template-columns: 56px 1fr auto; gap: .8rem; align-items: center; padding: .55rem .9rem; color: var(--ink-900); }
.live-item:hover, .live-item[aria-selected="true"] { background: var(--blue-soft); }
.live-thumb { width: 56px; height: 44px; border: 1px solid var(--steel-200); border-radius: 2px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.live-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.live-main strong { display: block; font-family: var(--display); font-stretch: 104%; font-size: 1.12rem; line-height: 1.15; }
.live-main strong mark { background: none; color: inherit; box-shadow: inset 0 -.45em 0 var(--blue-line); }
.live-main small { display: block; font-size: .86rem; color: var(--ink-500); margin-top: .15rem; }
.live-price { font-family: var(--display); font-weight: 700; font-size: 1.05rem; text-align: right; white-space: nowrap; }
.live-price small { display: block; font: 600 .68rem var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); }
.live-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem .9rem; border-top: 1px solid var(--steel-200); font: 600 .97rem var(--body); color: var(--blue); }
.live-foot:hover, .live-foot[aria-selected="true"] { background: var(--blue-soft); }
.live-foot span { color: var(--ink-500); font-weight: 500; }
.live-empty, .live-status { padding: 1rem .9rem; font-size: .99rem; color: var(--ink-600); }
.live-empty a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
/* En el menú del celular el panel es el mismo desplegable de arriba (absoluto, debajo del campo, con scroll propio).
   Con «position: static» quedaba de tercer elemento de la fila del campo (flex, 42 px de alto): el campo se achicaba
   a 27 px y los resultados quedaban tapados por el menú (2026-11-27). */

/* ---- Secciones ----------------------------------------------------------- */
.sec { padding: clamp(2.75rem, 6vw, 5rem) 0; }
.sec-alt { background: var(--steel-100); border-top: 1px solid var(--steel-200); border-bottom: 1px solid var(--steel-200); }
.sec-tight { padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 1.75rem; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: .4rem 0 0; color: var(--ink-500); max-width: 60ch; }
.sec-head .link-arrow { margin-bottom: .35rem; }

/* Categorías */
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1px; background: var(--steel-200); border: 1px solid var(--steel-200); border-radius: var(--r); overflow: hidden; }
.cat-tile { display: flex; flex-direction: column; background: #fff; min-height: 220px; transition: background .15s; }
.cat-tile:hover { background: var(--steel-100); }
.cat-img { display: block; height: 140px; padding: 1rem 1.25rem .25rem; }
.cat-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s var(--ease); }
.cat-tile:hover .cat-img img { transform: scale(1.04); }
.cat-body { padding: .75rem 1.25rem 1.25rem; margin-top: auto; }
.cat-body strong { display: block; font-family: var(--display); font-stretch: 106%; font-size: 1.26rem; font-weight: 700; line-height: 1.15; }
.cat-tile:hover .cat-body strong { color: var(--blue); }
.cat-body small { display: block; color: var(--ink-500); font-size: .88rem; margin-top: .25rem; }
.cat-body small b { color: var(--green); font-weight: 600; }
/* Doce en la portada y el resto plegado (2026-11-25): el botón se lee como el «Catálogo completo» del hero. */
.cat-mas summary { display: flex; align-items: center; justify-content: center; gap: .4rem; width: max-content; min-height: 46px; margin: 1rem auto 0; padding: 0 1.25rem; border: 1.5px solid var(--ink-300); border-radius: var(--r); font: 600 1.05rem var(--body); cursor: pointer; list-style: none; }
.cat-mas summary::-webkit-details-marker { display: none; }
.cat-mas summary:hover { border-color: var(--ink-900); background: var(--steel-100); }
.cat-mas summary .icon { width: 14px; height: 14px; transition: transform .2s; }
.cat-mas[open] summary .icon { transform: rotate(180deg); }
.cat-mas .cat-mas-menos, .cat-mas[open] .cat-mas-ver { display: none; }
.cat-mas[open] .cat-mas-menos { display: inline; }
.cat-mas[open] summary { margin-bottom: 1rem; }
@media (max-width: 760px) {
    /* celular: los doce en una tira de dos filas que se desliza (antes eran tres pantallas de mosaicos) */
    /* (dos clases: le ganan a los ajustes de .cat-grid de ≤480, que vienen más abajo) */
    .cat-grid.cat-grid--portada { grid-auto-flow: column; grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-columns: minmax(150px, 42%); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .cat-grid.cat-grid--portada::-webkit-scrollbar { display: none; }
    .cat-grid.cat-grid--portada > li { scroll-snap-align: start; }
    .cat-grid.cat-grid--portada .cat-tile { min-height: 168px; }
    .cat-grid.cat-grid--portada .cat-img { height: 92px; padding: .75rem .9rem .2rem; }
    .cat-grid.cat-grid--portada .cat-body { padding: .5rem .9rem .8rem; }
    .cat-grid.cat-grid--portada .cat-body strong { font-size: 1.1rem; }
}

/* Tarjetas de producto */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.25rem; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 1fr); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .75rem; scrollbar-width: thin; scrollbar-color: var(--ink-300) transparent; }
.rail > * { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--ink-300); border-radius: 3px; }
.pc { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--steel-200); border-radius: var(--r); overflow: hidden; transition: border-color .15s, box-shadow .2s, transform .2s var(--ease); min-width: 0; }
.pc:hover { border-color: var(--steel-300); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.pc-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--steel-200); overflow: hidden; }
.pc-media img { position: absolute; inset: 1.1rem; width: calc(100% - 2.2rem); height: calc(100% - 2.2rem); object-fit: contain; transition: transform .3s var(--ease); }
.pc:hover .pc-media img { transform: scale(1.03); }
.pc-media .tag { position: absolute; top: .75rem; left: .75rem; }
.pc-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.1rem; }
.pc-name { font-size: 1.38rem; margin: 0 0 .15rem; line-height: 1.12; }
.pc-name a { color: var(--ink-900); }
.pc-name a:hover { color: var(--blue); }
.pc-cat { font-size: .88rem; font-weight: 500; color: var(--ink-500); margin-bottom: .75rem; }
.pc-specs { margin: 0 0 1rem; padding: 0; flex: 1; }
.pc-specs > div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-top: 1px solid var(--steel-200); font-size: .94rem; }
.pc-specs > div:last-child { border-bottom: 1px solid var(--steel-200); }
.pc-specs dt { color: var(--ink-500); margin: 0; }
.pc-specs dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; flex-shrink: 0; max-width: 55%; }   /* (letra +10 %) la cifra no cede: «360 mm» partía en «360 / mm» (cede el rótulo; una cifra larga parte pasado el 55 %) */
.pc-desc { flex: 1; font-size: .99rem; color: var(--ink-600); margin: 0 0 1rem; }
.pc-foot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.pc-price { font-family: var(--display); font-stretch: 104%; font-weight: 700; font-size: 1.32rem; line-height: 1; }
.pc-price small { display: block; font: 500 .79rem/1.2 var(--body); font-stretch: 100%; color: var(--ink-500); margin-top: .25rem; }
.pc-badge-3d { position: absolute; right: .75rem; top: .75rem; background: var(--blue); color: #fff; font: 800 .77rem var(--display); padding: .25rem .5rem; border-radius: 3px; letter-spacing: .06em; }
/* Tarjeta con varias fotos: flechas al pasar el mouse, deslizar con el dedo en el celular (public.js). */
.pc-fotos { position: relative; }
.pc-track { position: absolute; inset: 0; display: flex; overflow-x: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.pc-track::-webkit-scrollbar { display: none; }
.pc-media .pc-track img { position: static; flex: 0 0 100%; width: 100%; height: 100%; padding: 1.1rem; box-sizing: border-box; scroll-snap-align: start; }
.pc-nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; margin-top: -17px; padding: 0; border: 1px solid var(--steel-200); border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink-800); cursor: pointer; box-shadow: 0 1px 3px rgba(20, 24, 31, .12); opacity: 0; transition: opacity .15s, background .15s, color .15s, border-color .15s; }
.pc-prev { left: .5rem; }
.pc-next { right: .5rem; }
.pc-nav .icon { width: 18px; height: 18px; }
.pc:hover .pc-nav { opacity: 1; }
.pc-nav:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.pc-dots { position: absolute; left: 0; right: 0; bottom: .55rem; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.pc-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--steel-300); transition: background .15s; }
.pc-dots i.on { background: var(--blue); }
@media (hover: none) { .pc-track { overflow-x: auto; } .pc-nav { display: none; } }
/* Dentro de una tira (portada), deslizar con el dedo corre la tira, no las fotos de esa tarjeta. */
.rail .pc-track { overscroll-behavior-x: auto; }
@media (hover: none) { .rail .pc-track { overflow-x: hidden; } .rail .pc-dots { display: none; } }
/* Etiquetas de la foto, apiladas arriba a la izquierda: oferta, disponibilidad y «Usada». */
.pc-media .pc-tags { position: absolute; top: .75rem; left: .75rem; right: 3.6rem; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
.pc-media .pc-tags .tag { position: static; }
/* El amarillo «tipo ML» marca sólo lo que es oferta: etiquetas, % OFF, cuenta regresiva y detalles de la banda. */
.tag-oferta { background: var(--amarillo-oferta); color: var(--ink-900); box-shadow: 0 1px 2px rgba(20,24,31,.18); }
.tag-oferta .icon { width: 13px; height: 13px; flex: none; margin-left: -.1rem; stroke-width: 2.2; }

/* ---- Ofertas: lo primero de la portada --------------------------------------
   Banda azul Gauchito (la voz de la marca a todo volumen) con las tarjetas blancas encima.
   Tercera banda de color del sitio, aprobada por el dueño («que llame la atención», 2026-11-24). */
.ofertas { background: var(--blue); color: #fff; padding: 1.1rem 0 1.25rem; }   /* compacta (pedido del dueño, 2026-11-25): el hero asoma debajo */
/* Fondo: el azul se hunde hacia el azul profundo abajo a la izquierda (luz desde arriba a la derecha) y,
   encima, el mismo mecanismo de engranajes de la portada en líneas blancas (fondo.js), que gira con el mouse. */
.ofertas { position: relative; overflow: hidden; isolation: isolate;
    background: radial-gradient(120% 150% at 100% 0%, #3a6cb3 0%, var(--blue) 42%, var(--blue-deep) 100%); }
.ofertas > .wrap { position: relative; z-index: 1; }
.ofertas { border-top: 4px solid var(--amarillo-oferta); }
.ofertas-copy h2 mark { background: none; color: var(--amarillo-oferta); }
.ofertas-copy h2 > .icon { color: var(--amarillo-oferta); }
.ofertas .hero-mecanismo {
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.4) 35%, #000 65%);
            mask-image: linear-gradient(90deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.4) 35%, #000 65%);
}
@media (max-width: 760px) {
    .ofertas .hero-mecanismo { -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.2) 0%, #000 60%); mask-image: linear-gradient(180deg, rgba(0,0,0,.2) 0%, #000 60%); }
}
.ofertas-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: .75rem 2rem; margin-bottom: .9rem; }
.ofertas-copy h2 { display: flex; align-items: center; gap: .5rem; margin: 0; color: #fff; font-size: clamp(2rem, 3.15vw, 2.63rem); line-height: 1; letter-spacing: -.015em; }
.ofertas-copy h2 .icon { width: .78em; height: .78em; stroke-width: 2.1; flex: none; }
.ofertas-copy p { margin: .35rem 0 0; color: rgba(255,255,255,.88); font-size: 1.16rem; max-width: 88ch; text-wrap: pretty; }   /* en la PC, un solo renglón */
.ofertas .btn-blanco { background: #fff; color: var(--blue-deep); border-color: #fff; }
.ofertas .btn-blanco:hover { background: var(--blue-soft); border-color: var(--blue-soft); }
.ofertas-head a:focus-visible { outline-color: #fff; outline-offset: 3px; }
.ofertas-rail { scrollbar-color: rgba(255,255,255,.55) transparent; }
.ofertas-rail::-webkit-scrollbar-thumb { background: rgba(255,255,255,.55); }
@media (max-width: 760px) { .ofertas .btn-blanco { width: 100%; justify-content: center; } }

/* Banda compacta (pedido del dueño, 2026-11-25: el título y el buscador de la portada quedaban fuera de la primera
   pantalla): la «Oferta imperdible» apaisada (foto a la izquierda, datos a la derecha) y la tira de tarjetas
   horizontales; en la PC, dos filas al lado de la imperdible, a su misma altura; en celular y tablet, una fila. */
.ofertas-grid { display: grid; gap: .75rem 1rem; }
.ofertas-grid .ofertas-rail { grid-auto-columns: min(320px, 86vw); gap: .75rem; padding-bottom: .4rem; }   /* ancho fijo: en una tira que se desborda, un minmax() queda en su mínimo */
@media (min-width: 1025px) {
    .ofertas-grid { grid-template-columns: minmax(420px, 1fr) minmax(0, 1.5fr); align-items: stretch; }
    .ofertas-rail--2 { grid-template-rows: repeat(2, 1fr); min-height: 100%; }   /* todo el alto de la imperdible: con una sola al lado quedaba una franja arriba y azul vacío abajo (revisión 2026-11-25) */
    .ofertas-grid .ofertas-rail--2:not(.ofertas-rail--llena) { grid-auto-columns: 340px; }   /* la que se corre: «Precio de lista» entra en un renglón */
    /* Hasta 4 ofertas: quietas, llenan el ancho y no se repiten (las copias de la tira que se corre, ocultas);
       con cantidad impar la primera ocupa las dos filas. */
    .ofertas-rail--llena { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-columns: minmax(0, 1fr); }
    .ofertas-rail--llena .oc.oc-copia { display: none; }   /* (.oc.: le gana al display:grid de las tarjetas chicas) */
    .ofertas-grid .ofertas-rail--llena { padding-bottom: 0; }   /* quieta no hay barra: el borde de abajo, parejo con la imperdible */
    .ofertas-rail--impar > :first-child { grid-row: span 2; }
    .ofertas-rail--2 > .oc-alta { grid-row: span 2; }   /* la que se corre, impar: la última ocupa las dos filas (public.js) y la tanda no se repite */
    /* Con la banda arriba, el texto del hero va arriba (no centrado con la máquina): así el título y el buscador
       entran en la primera pantalla de una notebook. */
    .ofertas + .hero .hero-copy { align-self: start; }
    /* (letra +10 %, 2026-11-27) La letra más grande sumaba ~37 px arriba del buscador del hero y lo sacaba de
       1440×900; se recuperan en el aire de la banda y del hero (sólo en la PC: en el celular no hay ese límite). */
    .ofertas { padding: .9rem 0 1rem; }   /* era 1.1rem 0 1.25rem */
    .ofertas-head { margin-bottom: .75rem; }   /* era .9rem; el aire de adentro de las tarjetas, más abajo (después de .oc-body) */
    .ofertas ~ .hero .hero-grid { padding-top: .5rem; }   /* era 1rem */
    .ofertas ~ .hero h1 { margin-bottom: .6rem; }   /* era .9rem */
    .ofertas ~ .hero .lead { margin-bottom: 1rem; }   /* era 1.25rem */
    /* Una sola oferta: el título y el botón a la izquierda, la tarjeta al lado. */
    .ofertas--sola .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: 1.5rem 3rem; align-items: center; }
    .ofertas--sola .ofertas-head { flex-direction: column; align-items: flex-start; margin-bottom: 0; }
    .ofertas--sola .ofertas-grid { display: block; }
    /* Sin vigentes (sólo terminadas, 2026-11-25): no hay imperdible; la tira va en una fila a todo el ancho. */
    .ofertas--fin .ofertas-grid { grid-template-columns: minmax(0, 1fr); }
}

/* La tira que se corre sola (public.js agrega .is-cinta): sin imanes ni barra, llega hasta el borde
   derecho del bloque. Si la tanda entra entera, public.js la deja quieta (.is-quieta) y sin copias. El relleno de 4/6 px deja ver la sombra y el
   levantado de la tarjeta al pasar el mouse (los márgenes negativos lo compensan en la grilla). */
.ofertas-rail.is-cinta { scroll-snap-type: none; scrollbar-width: none; padding: 4px 0 6px; margin: -4px 0 -6px; }
.ofertas-rail.is-cinta::-webkit-scrollbar { display: none; }
.ofertas-rail.is-cinta > * { scroll-snap-align: none; }
.ofertas-rail.is-quieta .oc-copia { display: none; }
.ofertas--sola .oc:not(.oc-grande) { max-width: 600px; }   /* sólo una terminada: en la tablet no se estira a todo el ancho */

/* ---- «¿Qué buscás?»: cuadro de bienvenida (partials/bienvenida.php, public.js) ----------------
   Flota abajo a la derecha, arriba del botón de WhatsApp; no tapa la página. Papel blanco con la
   regla azul arriba, opciones en dos columnas (ícono + título + una línea). */
.bienvenida { position: fixed; right: 1.25rem; bottom: 5.6rem; z-index: 140; width: min(390px, calc(100vw - 2rem)); max-height: calc(100vh - 8rem); overflow-y: auto;
    /* impeccable-disable-next-line border-accent-on-rounded -- las esquinas de arriba son rectas (radio 0 0 r r): la regla azul no se curva */
    background: #fff; color: var(--ink-900); border-radius: 0 0 var(--r) var(--r); border-top: 4px solid var(--blue);   /* esquinas de arriba rectas: la regla azul no se curva */ box-shadow: var(--shadow-2), 0 0 0 1px rgba(20,24,31,.06);
    padding: 1.1rem 1.1rem 1rem; opacity: 0; transform: translateY(14px); transition: opacity .3s var(--ease), transform .35s var(--ease); }
.bienvenida.is-abierta { opacity: 1; transform: none; }
/* Los 10 s antes de cerrarse solo: una línea abajo que se vacía. Si la persona lo toca, desaparece. */
/* impeccable-disable-next-line side-tab -- es la barra de tiempo del cierre automático del cuadro «¿Qué buscás?», no un borde de tarjeta */
.bienvenida::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--blue); opacity: .55; transform-origin: left; transform: scaleX(1); }
.bienvenida.is-abierta::after { animation: bienv-tiempo 10s linear forwards; }
.bienvenida.is-tocada::after { opacity: 0; }
@keyframes bienv-tiempo { to { transform: scaleX(0); } }
.bienvenida-cerrar { position: absolute; top: .55rem; right: .55rem; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-500); cursor: pointer; }
.bienvenida-cerrar:hover { background: var(--steel-100); color: var(--ink-900); }
.bienvenida-cerrar .icon { width: 18px; height: 18px; }
.bienvenida-hola { margin: 0 2.2rem .15rem 0; color: var(--ink-500); font-size: .97rem; }
.bienvenida h2 { margin: 0 0 .75rem; font-size: 1.74rem; line-height: 1.1; }
.bienvenida-buscar { display: flex; border: 1.5px solid var(--steel-300); border-radius: var(--r); height: 42px; margin-bottom: .75rem; }
.bienvenida-buscar:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.bienvenida-buscar input[type="search"] { flex: 1; min-width: 0; min-height: 0; border: 0; border-radius: 0; box-shadow: none; background: none; padding: 0 .75rem; font: 500 1.05rem var(--body); color: var(--ink-900); }
.bienvenida-buscar input[type="search"]:focus { outline: none; box-shadow: none; }
.bienvenida-opciones li:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* la que queda sola, a todo el ancho */
.bienvenida-buscar button { width: 42px; border: 0; background: none; color: var(--ink-600); cursor: pointer; display: grid; place-items: center; }
.bienvenida-buscar .icon { width: 18px; height: 18px; }
.bienvenida-opciones { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.bienvenida-opciones a { display: flex; align-items: flex-start; gap: .55rem; height: 100%; padding: .6rem .65rem; border: 1px solid var(--steel-200); border-radius: var(--r); color: var(--ink-900); transition: border-color .15s, background .15s; }
.bienvenida-opciones a:hover { border-color: var(--blue-line); background: var(--blue-soft); }
.bienvenida-opciones .icon { flex: none; width: 22px; height: 22px; color: var(--blue); margin-top: .05rem; }
.bienvenida-opciones b { display: block; font-size: 1.05rem; line-height: 1.2; }
.bienvenida-opciones small { display: block; margin-top: .1rem; color: var(--ink-500); font-size: .84rem; line-height: 1.25; }
.bienvenida-wa { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 42px; border-radius: var(--r); background: var(--blue); color: #fff; font-weight: 700; font-size: 1.05rem; }
.bienvenida-wa:hover { background: var(--blue-deep); color: #fff; }   /* azul como el botón WhatsApp del encabezado: el verde con letra blanca no se lee */
.bienvenida-wa .icon { width: 18px; height: 18px; }
@media (max-width: 480px) {   /* celular: abajo, de lado a lado, más compacto */
    .bienvenida { right: .75rem; left: .75rem; bottom: .75rem; width: auto; max-height: 72vh; padding: .9rem .9rem .85rem; }
    .bienvenida h2 { font-size: 1.53rem; margin-bottom: .6rem; }
    .bienvenida-opciones small { display: none; }
    .bienvenida-opciones a { align-items: center; padding: .55rem .6rem; }
    /* Que no tape más de un tercio de la pantalla: sin el saludo y con las opciones en una fila que se desliza. */
    .bienvenida-hola { display: none; }
    .bienvenida-opciones { display: flex; overflow-x: auto; scrollbar-width: none; margin-right: -.9rem; padding-right: .9rem; }
    .bienvenida-opciones::-webkit-scrollbar { display: none; }
    .bienvenida-opciones li { flex: none; }
}
/* iPhone agranda la página al tocar un campo con letra de menos de 16 px. */
@media (max-width: 1024px) { .hdr-search input[type="search"], .bienvenida-buscar input[type="search"], .filters .search input[type="search"] { font-size: 17.6px; } }
@media (prefers-reduced-motion: reduce) { .bienvenida { transition: none; transform: none; } }

/* Flechas de la tira (con mouse), como en ML: círculo blanco sobre el borde. */
.ofertas-carril { position: relative; min-width: 0; }
.oc-flecha { position: absolute; top: calc(50% - 22px); z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--blue); cursor: pointer; box-shadow: 0 2px 4px rgba(8,22,48,.18), 0 10px 24px -8px rgba(8,22,48,.45); transition: transform .15s, background .15s; }
.oc-flecha[hidden] { display: none; }
.oc-flecha:hover { background: var(--blue-soft); transform: scale(1.06); }
.oc-flecha:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.oc-flecha .icon { width: 22px; height: 22px; stroke-width: 2.2; }
.oc-flecha--ant { left: -14px; }
.oc-flecha--sig { right: -14px; }
@media (hover: none) { .oc-flecha { display: none; } }

/* Tarjeta de oferta (partials/oferta_card.php): toda la tarjeta lleva a la ficha. */
.oc { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; color: var(--ink-900); border-radius: var(--r); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.oc:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(8,22,48,.14), 0 24px 48px -22px rgba(8,22,48,.6); }
.oc:focus-within { outline: 2px solid #fff; outline-offset: 3px; }
.oc-media { position: relative; aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--steel-200); }
.oc-media img { position: absolute; inset: 1rem; width: calc(100% - 2rem); height: calc(100% - 2rem); object-fit: contain; }
.oc-label { position: absolute; top: .7rem; left: .7rem; display: inline-flex; align-items: center; gap: .35rem; height: 28px; padding: 0 .65rem; border-radius: 3px; background: var(--amarillo-oferta); color: var(--ink-900); box-shadow: 0 1px 2px rgba(20,24,31,.18); font: 700 .88rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; }
.oc-label .icon { width: 14px; height: 14px; stroke-width: 2.2; margin-left: -.1rem; }
.oc-body { display: flex; flex-direction: column; gap: .3rem; padding: .85rem 1rem 1rem; }
.oc-name { margin: 0; font-size: 1.23rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oc-name a { color: inherit; }
.oc-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* toda la tarjeta es el enlace */
.oc-name a:focus-visible { outline: none; }
.oc-precio { display: flex; flex-direction: column; gap: .15rem; margin-top: .25rem; }
.oc-antes { color: var(--ink-500); font-size: 1.08rem; font-variant-numeric: tabular-nums; }
/* «Precio de lista: USD 54.000» con sólo el monto tachado (pedido del dueño). */
.oc-antes s, .pb-antes s, .pc-antes s { text-decoration-thickness: 1px; }   /* hereda ink-500: el gris más claro no llegaba al contraste mínimo */
.oc-grande .oc-antes { font-size: 1.1rem; }
.oc-ahora { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .55rem; font-family: var(--display); font-weight: 700; font-stretch: 104%; font-size: 1.89rem; line-height: 1.05; letter-spacing: -.012em; font-variant-numeric: tabular-nums; }
.oc-ahora.oc-consultar { font-size: 1.58rem; color: var(--blue-deep); }
.oc-off { padding: .3rem .45rem; border-radius: 3px; background: var(--amarillo-oferta); color: var(--ink-900); font: 700 .95rem/1 var(--body); letter-spacing: .02em; font-stretch: 100%; }
.oc-precio small { color: var(--ink-500); font-size: .97rem; }
.oc-flash { align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem; margin: .4rem 0 0; padding: .35rem .6rem; border-radius: 3px; background: #fff8c4; color: #4d3f00; font: 600 .99rem/1.2 var(--body); font-variant-numeric: tabular-nums; }
.oc-flash .icon { width: 15px; height: 15px; stroke-width: 2.2; flex: none; }
.oc-flash b { font-weight: 800; }
.oc-flash.is-pronto { background: var(--amarillo-oferta); color: var(--ink-900); }   /* falta menos de una hora */
.oc-flash.is-fin { background: var(--steel-200); color: var(--ink-600); }
.oc-cta { position: relative; z-index: 2; margin-top: .9rem; width: 100%; justify-content: center; }
/* La «Oferta imperdible»: apaisada en todos los tamaños (foto a la izquierda, datos a la derecha; 2026-11-25). */
.oc-grande { display: grid; grid-template-columns: minmax(0, 41%) minmax(0, 1fr); }   /* era 44 %: con la letra +10 % el «10% OFF» bajaba de renglón y estiraba la banda */
.oc-grande .oc-media { aspect-ratio: auto; min-height: 220px; border-bottom: 0; border-right: 1px solid var(--steel-200); }
.oc-grande .oc-media img { inset: 1rem; width: calc(100% - 2rem); height: calc(100% - 2rem); }
.oc-grande .oc-label { top: .8rem; left: .8rem; height: 30px; font-size: .88rem; padding: 0 .75rem; }
.oc-grande .oc-body { justify-content: center; padding: 1rem 1.15rem 1.1rem; }
.oc-grande .oc-name { font-size: 1.48rem; }
.oc-grande .oc-antes { font-size: 1.1rem; }
.oc-grande .oc-ahora { font-size: clamp(1.85rem, 2.75vw, 2.43rem); }
.oc-grande .oc-off { font-size: 1.05rem; padding: .38rem .55rem; }
.oc-grande .oc-precio small { font-size: 1.01rem; }
.oc-grande .oc-cta { margin-top: .6rem; }
/* Las de la tira, horizontales y compactas: foto chica a la izquierda, nombre y precios a la derecha. */
.oc:not(.oc-grande) { display: grid; grid-template-columns: clamp(104px, 30%, 190px) minmax(0, 1fr); }   /* era 36 %: con la letra +10 % «Torno T-1000 Morbelli Design» partía en dos renglones */
.oc:not(.oc-grande) .oc-media { aspect-ratio: auto; min-height: 120px; border-bottom: 0; border-right: 1px solid var(--steel-200); }
.oc:not(.oc-grande) .oc-media img { inset: .55rem; width: calc(100% - 1.1rem); height: calc(100% - 1.1rem); }
.oc:not(.oc-grande) .oc-label { position: static; align-self: flex-start; max-width: 100%; height: 22px; margin-bottom: .1rem; padding: 0 .45rem; font-size: .75rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.oc:not(.oc-grande) .oc-label .icon { width: 12px; height: 12px; flex: none; }
.oc:not(.oc-grande) .oc-body { justify-content: center; gap: .15rem; padding: .6rem .8rem .7rem; }
.oc:not(.oc-grande) .oc-name { font-size: 1.1rem; }
.oc:not(.oc-grande) .oc-precio { margin-top: .1rem; gap: .05rem; }
.oc:not(.oc-grande) .oc-antes { font-size: .92rem; }
.oc:not(.oc-grande) .oc-ahora { font-size: 1.53rem; gap: .2rem .4rem; }
.oc:not(.oc-grande) .oc-ahora.oc-consultar { font-size: 1.32rem; }
.oc:not(.oc-grande) .oc-off { font-size: .84rem; padding: .22rem .35rem; }
.oc:not(.oc-grande) .oc-precio small { font-size: .88rem; }
.oc:not(.oc-grande) .oc-flash { margin-top: .25rem; padding: .2rem .4rem; font-size: .84rem; gap: .3rem; }
.oc-flash b { white-space: nowrap; }   /* la cuenta no se parte en dos renglones */
@media (min-width: 1025px) {   /* (letra +10 %, 2026-11-27) menos aire adentro de las tarjetas de la banda: el buscador del hero sigue en 1440×900 */
    .oc-grande .oc-body { gap: .2rem; padding: .85rem 1.15rem .9rem; }   /* era .3rem; 1rem 1.15rem 1.1rem */
    .oc:not(.oc-grande) .oc-body { gap: .1rem; padding: .5rem .8rem .55rem; }   /* era .15rem; .6rem .8rem .7rem */
}
@media (max-width: 760px) {   /* celular: la imperdible más compacta, para que la banda no pase de una pantalla */
    .oc:not(.oc-grande) { grid-template-columns: 96px minmax(0, 1fr); }
    .oc-grande .oc-media { min-height: 0; }
    .oc-grande .oc-label { top: .5rem; left: .5rem; height: 24px; padding: 0 .5rem; font-size: .75rem; }
    .oc-grande .oc-body { gap: .2rem; padding: .7rem .8rem .8rem; }
    .oc-grande .oc-name { font-size: 1.21rem; }
    .oc-grande .oc-antes { font-size: .95rem; }
    .oc-grande .oc-ahora { font-size: 1.69rem; }
    .oc-grande .oc-off { font-size: .88rem; padding: .25rem .4rem; }
    .oc-grande .oc-precio small { font-size: .88rem; }
    .oc-grande .oc-flash { font-size: .88rem; padding: .25rem .45rem; }
    .oc-grande .oc-cta { min-height: 42px; padding: 0 .6rem; font-size: .99rem; }
}
/* Ofertas que terminaron (las del último mes): al final de la tira de la banda, en gris y sin precio, con la invitación
   a consultar por WhatsApp si sigue (pedido del dueño, 2026-11-25). En las flash, .oc-sigue está oculto hasta que
   llegan a cero con la página abierta (public.js les pone .oc-terminada: el mismo estado que al recargar). */
.oc-terminada .oc-media img { filter: grayscale(1); opacity: .75; }   /* gris pero a la vista: tiene que invitar a tocarla */
.oc-terminada .oc-label { background: var(--ink-600); color: #fff; box-shadow: none; }
.oc-terminada .oc-name { color: var(--ink-700); }
.oc:not(.oc-terminada) .oc-sigue, .oc-terminada .oc-precio, .oc-terminada .oc-flash, .oc-terminada .oc-body > .oc-cta { display: none; }
.oc-fin { margin: .1rem 0 0; color: var(--ink-500); font-size: .97rem; }
.oc-tarde { margin: .1rem 0 0; color: var(--ink-700); font-size: 1.01rem; line-height: 1.3; text-wrap: pretty; }
.oc-sigue .oc-cta { margin-top: .55rem; }
.oc:not(.oc-grande) .oc-fin, .oc:not(.oc-grande) .oc-tarde { font-size: .88rem; }
.oc:not(.oc-grande) .oc-sigue .oc-cta { width: auto; margin-top: .4rem; }   /* en las chicas, del ancho del texto */
.ofertas-rail--2 .oc-tarde { display: none; }   /* al lado de la imperdible, fecha y botón: con los dos renglones estiraba todas las filas y el buscador quedaba afuera (revisión 2026-11-25) */
@media (prefers-reduced-motion: reduce) { .oc:hover { transform: none; } }

/* Banda azul: fabricamos / importamos / mantenemos */
.band { background: var(--blue-deep); color: #fff; padding: clamp(3rem, 6vw, 5rem) 0; }
.band h2, .band h3 { color: #fff; }
.band-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.band-intro h2 { margin-bottom: .75rem; }
.band-intro p { color: rgba(255,255,255,.78); }
.band-cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.band-cols > div { padding: 0 1.5rem 0 1.5rem; border-left: 1px solid rgba(255,255,255,.22); }
.band-cols > div:first-child { padding-left: 0; border-left: 0; }
.band-cols h3 { font-size: 1.38rem; margin-bottom: .5rem; padding-top: .9rem; border-top: 2px solid rgba(255,255,255,.9); display: inline-block; }
.band-cols p { color: rgba(255,255,255,.78); font-size: 1.05rem; }
.band-cols a { color: #fff; font-weight: 600; font-size: .99rem; text-decoration: underline; text-underline-offset: .22em; text-decoration-color: rgba(255,255,255,.45); }
.band-cols a:hover { text-decoration-color: #fff; }

/* Pasos de importación */
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps li { padding-top: 1rem; border-top: 2px solid var(--blue); }
.steps li strong { display: block; font-family: var(--display); font-stretch: 106%; font-size: 1.23rem; margin-bottom: .25rem; }
.steps li span { color: var(--ink-500); font-size: .99rem; }

/* Clientes */
.clients { text-align: center; }
.clients h2 { font-size: .88rem; font-family: var(--body); font-stretch: 100%; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 1.25rem; }
/* Separados por aire, sin rayas: con rayas cada renglón terminaba en «|» (revisión 2026-11-26). */
.clients-list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.75rem; max-width: 1000px; margin-inline: auto; }
.clients-list li { font-family: var(--display); font-stretch: 104%; font-weight: 700; font-size: 1.16rem; color: var(--ink-600); line-height: 1; }

/* Planta / visita */
.plant-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.plant-grid .btn { margin-right: .5rem; margin-bottom: .5rem; }
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--steel-300); }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--steel-300); }
.facts dt { font-family: var(--display); font-stretch: 104%; font-weight: 700; font-size: 1.16rem; color: var(--ink-900); }
.facts dd { margin: 0; color: var(--ink-600); font-size: 1.05rem; overflow-wrap: anywhere; }   /* (letra +10 %) el mail entero no entraba en 360 px y la portada se corría de costado */
@media (max-width: 480px) { .facts div { grid-template-columns: minmax(0, 1fr); gap: .15rem; } }   /* (letra +10 %) en el celular el rótulo arriba y el dato abajo: con 130 px de rótulo el mail y «4228-2000» se partían */
.facts dd a { color: var(--blue); }
.facts dd a .icon { display: inline-block; width: 16px; height: 16px; vertical-align: -.15em; }   /* el pin de «Cómo llegar» quedaba solo en un renglón */
.on-dark .facts { border-color: rgba(255,255,255,.25); }
.on-dark .facts div { border-color: rgba(255,255,255,.25); }
.on-dark .facts dt { color: #fff; }
.on-dark .facts dd { color: rgba(255,255,255,.78); }

/* Cierre de contacto (antes amarillo; ahora el azul de la marca) */
.cta-yellow { background: var(--blue); color: #fff; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.cta-yellow h2 { color: #fff; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem; align-items: center; }
.cta-grid h2 { margin-bottom: .35rem; }
.cta-grid p { margin: 0; font-size: 1.16rem; color: rgba(255,255,255,.85); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-yellow .btn-dark { background: #fff; color: var(--blue-deep); border-color: #fff; }
.cta-yellow .btn-dark:hover { background: var(--blue-soft); border-color: var(--blue-soft); }
.cta-yellow .btn-outline { color: #fff; border-color: rgba(255,255,255,.65); }
.cta-yellow .btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---- Cabecera de página interna ------------------------------------------ */
.page-head { background: var(--steel-100); color: var(--ink-900); padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2rem); border-bottom: 1px solid var(--steel-200); }
.page-head h1 { color: var(--ink-900); margin: .35rem 0 .5rem; font-size: clamp(2rem, 3.78vw, 2.94rem); }
.page-head .lead { color: var(--ink-600); margin: 0; }
.crumbs { font-size: .88rem; color: var(--ink-500); display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.crumbs a { color: var(--ink-600); }
.crumbs a:hover { color: var(--blue); }
.crumbs svg { width: 12px; height: 12px; opacity: .6; }
.avail-tabs { display: inline-flex; margin-top: 1.5rem; border: 1px solid var(--steel-300); border-radius: var(--r); overflow: hidden; background: #fff; }
.avail-tabs a { padding: .6rem 1rem; font: 600 .94rem var(--body); color: var(--ink-600); border-right: 1px solid var(--steel-300); }
.avail-tabs a:last-child { border-right: 0; }
.avail-tabs a span { color: var(--ink-400); margin-left: .3rem; }
.avail-tabs a.active { background: var(--blue); color: #fff; }
.avail-tabs a.active span { color: rgba(255,255,255,.85); }   /* 5,2:1 sobre el azul (con .75 daba 4,45:1; revisión 2026-11-26) */
.avail-tabs a:not(.active):hover { color: var(--blue-deep); background: var(--blue-soft); }

/* ---- Catálogo ------------------------------------------------------------ */
.catalog { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.filters { position: sticky; top: calc(var(--hdr-h) + 1rem); }
.filters-box summary { display: none; }
.filters h3 { font: 600 .83rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); margin: 1.5rem 0 .6rem; }
.filters h3:first-child { margin-top: 0; }
.filters .search { display: flex; border: 1.5px solid var(--steel-300); border-radius: var(--r); height: 42px; background: #fff; }
.filters .search input[type="search"] { flex: 1; min-width: 0; min-height: 0; border: 0; border-radius: 0; background: none; padding: 0 .75rem; font: 500 .99rem var(--body); }
.filters .search input[type="search"]:focus { outline: none; box-shadow: none; }
.filters .search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.filters .search button { border: 0; background: none; width: 40px; display: grid; place-items: center; cursor: pointer; color: var(--ink-600); }
.filters .search button svg { width: 18px; height: 18px; }
.filter-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--steel-200); }
.filter-list a { display: flex; justify-content: space-between; gap: .75rem; padding: .55rem .5rem; margin: 0 -.5rem; border-bottom: 1px solid var(--steel-200); font-size: 1.01rem; color: var(--ink-600); border-radius: 2px; }
.filter-list a span { color: var(--ink-400); font-size: .9rem; }
.filter-list a:hover { color: var(--blue-deep); }
.filter-list li.active a { color: var(--blue-deep); font-weight: 700; background: var(--blue-soft); }
.filters .clear { display: inline-block; margin-top: 1rem; font-size: .94rem; color: var(--ink-600); text-decoration: underline; text-underline-offset: 3px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--steel-200); }
.results-bar strong { font-family: var(--display); font-stretch: 106%; font-size: 1.43rem; }
.results-bar label { display: flex; align-items: center; gap: .5rem; font-size: .94rem; color: var(--ink-500); }
.results-bar select { height: 38px; }
.results-bar { flex-wrap: wrap; }
.results-bar .search-note { order: 3; flex-basis: 100%; margin: -.4rem 0 0; font-size: .97rem; color: var(--ink-500); }   /* lo que entendió el buscador */
.empty { text-align: center; padding: 4rem 1rem; color: var(--ink-500); border: 1px dashed var(--ink-300); border-radius: var(--r); }
.empty h3 { color: var(--ink-900); }

/* ---- Ficha de producto --------------------------------------------------- */
.pdp-top { padding: 1.25rem 0 clamp(2rem, 4vw, 3.5rem); }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; margin-top: 1.25rem; }
.gallery .plate { border: 1px solid var(--steel-200); aspect-ratio: 4 / 3; }
.gallery .plate img { padding: 4%; }
.thumbs { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.thumbs button { width: 84px; height: 64px; background: #fff; border: 1.5px solid var(--steel-200); border-radius: var(--r); padding: 0; overflow: hidden; cursor: pointer; display: grid; place-items: center; transition: border-color .15s; }
.thumbs button:hover { border-color: var(--ink-400); }
.thumbs button img { width: 100%; height: 100%; max-width: none; object-fit: cover; }   /* la foto llena el cuadrito, recortada al centro */
.thumbs button[aria-current="true"] { border-color: var(--blue); }
/* Flechas y lupa sobre la foto grande (public.js, «Galería de la ficha») */
.gallery .plate img[data-gallery-main] { cursor: zoom-in; transition: transform .18s ease-out; }
.gallery .plate img[data-gallery-main].is-lupa { transform: scale(2.2); }   /* lupa al pasar el mouse (public.js) */
@media (prefers-reduced-motion: reduce) { .gallery .plate img[data-gallery-main] { transition: none; } }
.gal-nav, .gal-zoom { position: absolute; z-index: 2; display: grid; place-items: center; border: 1px solid var(--steel-200); background: rgba(255, 255, 255, .92); color: var(--ink-800); cursor: pointer; box-shadow: 0 1px 3px rgba(20, 24, 31, .12); transition: background .15s, color .15s, border-color .15s; }
.gal-nav { top: 50%; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%; }
.gal-prev { left: .6rem; }
.gal-next { right: .6rem; }
.gal-zoom { top: .6rem; right: .6rem; width: 38px; height: 38px; border-radius: var(--r); }
.gal-nav .icon, .gal-zoom .icon { width: 22px; height: 22px; }
.gal-nav:hover, .gal-zoom:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.gal-nav:focus-visible, .gal-zoom:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.plate.is-3d .gal-zoom { display: none; }
/* Foto grande con zoom: tocar la foto acerca y el zoom sigue al dedo o al mouse */
.lb { position: fixed; inset: 0; z-index: 2000; background: #0e1013; display: flex; flex-direction: column; }
.lb[hidden] { display: none; }
/* filas y columnas de tamaño fijo: si no, el max-height:100% de la foto no tiene contra qué medirse
   y una foto apaisada quedaba más alta que la pantalla, cortada abajo */
.lb-stage { flex: 1; min-height: 0; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; overflow: hidden; padding: 3.5rem 4.2rem 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: var(--r); cursor: zoom-in; transition: transform .2s ease; touch-action: pan-y; }
.lb-stage.is-zoomed img { transform: scale(2.5); cursor: zoom-out; touch-action: none; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(14, 16, 19, .62); color: #fff; cursor: pointer; transition: background .15s; z-index: 2; }
.lb-btn:hover { background: rgba(14, 16, 19, .88); }
.lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-btn .icon { width: 26px; height: 26px; }
.lb-close { top: .7rem; right: .7rem; }
.lb-prev { left: .7rem; top: 50%; margin-top: -23px; }
.lb-next { right: .7rem; top: 50%; margin-top: -23px; }
.lb-foot { margin: 0; padding: .8rem 1rem 1rem; text-align: center; color: rgba(255, 255, 255, .75); font-size: .94rem; }
@media (max-width: 640px) {
    .gal-nav { width: 36px; height: 36px; margin-top: -18px; }
    .lb-stage { padding: 3.5rem .5rem 0; }
    .lb-prev, .lb-next { top: auto; bottom: 3.2rem; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .lb-stage img { transition: none; } }
.pdp-info h1 { font-size: clamp(2rem, 3.57vw, 2.94rem); margin: .35rem 0 .6rem; }
.pdp-info .lead { margin-bottom: 1.25rem; }
.avail > span:last-child { flex: 1 1 12rem; }   /* con dos o tres etiquetas (oferta, stock, usada) el aviso baja a su renglón en el celular */
.avail { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: .85rem 1rem; border: 1px solid var(--steel-200); border-radius: var(--r); font-size: 1.01rem; margin-bottom: 1.25rem; background: var(--steel-100); }
.avail.stock { background: var(--green-soft); border-color: #bfe3cc; }
.avail.importacion { background: var(--blue-soft); border-color: var(--blue-line); }
.pdp-info .figures { border-top: 1px solid var(--steel-200); border-bottom: 1px solid var(--steel-200); margin-bottom: 1.25rem; }
@media (min-width: 481px) {   /* (letra +10 %) era 1rem y 1rem: «1000 mm» vuelve a entrar en un renglón a 1440 (≤480 tiene su grilla de 2) */
    .pdp-info .figures > div { padding-right: .75rem; }
    .pdp-info .figures > div:not(:last-child) { margin-right: .75rem; }
}
.price-block { display: flex; align-items: baseline; gap: .75rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.price-block strong { font-family: var(--display); font-stretch: 106%; font-size: 2.34rem; font-weight: 700; line-height: 1; }
.price-block small { color: var(--ink-500); font-size: .94rem; }
/* En oferta: el precio anterior tachado arriba, el % al lado del precio y la cuenta de la flash debajo. */
.pb-antes { flex-basis: 100%; color: var(--ink-500); font-size: 1.1rem; font-variant-numeric: tabular-nums; margin-bottom: -.35rem; }
.pb-off { align-self: center; font-size: .99rem; }
.pb-flash { flex-basis: 100%; margin-top: 0; }
.pb-termino { flex-basis: 100%; margin: 0; color: var(--ink-700); font-size: 1.05rem; }   /* oferta que terminó en el último mes (2026-11-25) */
.pb-terminada .price-block > :not(.pb-flash), .pb-terminada .pdp-tabs-cta .price, .pb-terminada .pdp-bar small, .pb-terminada .medida-precio { display: none; }   /* la flash llegó a cero con la ficha abierta (public.js) */
/* Medidas con precio propio («Elegí la medida», pedido del dueño 2026-11-26), arriba del precio: radios nativos (flechas
   del teclado) vestidos de botón, con el punto del radio a la vista. De a 3 por fila como mucho en la PC y de a 2 en el
   celular; el nombre largo baja de renglón. Elegida: borde azul y tinte azul. */
.medidas { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.medidas legend { padding: 0; margin-bottom: .5rem; font: 600 .86rem/1.25 var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-600); }
.medidas-op { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(136px, calc((100% - 1rem) / 3)), 1fr)); gap: .5rem; }
.medida { display: flex; align-items: flex-start; gap: .55rem; min-width: 0; min-height: 44px; padding: .65rem .75rem; border: 1.5px solid var(--steel-300); border-radius: var(--r); background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.medida:hover { border-color: var(--ink-400); }
.medida input { flex: none; width: 18px; height: 18px; margin: .1rem 0 0; accent-color: var(--blue); cursor: pointer; }
.medida:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
@supports selector(:has(*)) {
    .medida input:focus-visible { outline: none; }
    .medida:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
}
.medida-txt { display: grid; gap: .15rem; min-width: 0; }
.medida-nombre { font-weight: 700; font-size: 1.08rem; line-height: 1.2; color: var(--ink-900); overflow-wrap: anywhere; }
.medida-dispo { display: flex; align-items: center; gap: .35rem; font-size: .88rem; line-height: 1.25; color: var(--ink-600); }
.medida-dispo::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.medida-importacion::before { background: var(--blue); }
.medida-precio { font-weight: 700; font-size: 1.12rem; line-height: 1.2; color: var(--ink-900); }
.medida-precio.medida-cotizar { font-weight: 600; color: var(--ink-600); }
.pc-antes { display: block; margin-bottom: .2rem; color: var(--ink-500); font: 500 .86rem/1.2 var(--body); font-stretch: 100%; }
.pc-off { font: 700 .77rem/1 var(--body); font-style: normal; font-stretch: 100%; color: var(--ink-900); background: var(--amarillo-oferta); border-radius: 2px; padding: .2rem .3rem; display: inline-block; vertical-align: .15em; margin-left: .2rem; white-space: nowrap; }
.pdp-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.pdp-actions .btn { flex: 1 1 200px; }
.pdp-note { margin-top: 1rem; font-size: .9rem; color: var(--ink-500); }
.pdp-oficial a { color: var(--blue); text-decoration: underline; text-underline-offset: .2em; }
/* Sucursales y visitas con cita previa (ficha, contacto y pie) */
.pdp-visita { margin-top: .75rem; padding: .75rem .9rem; border: 1px solid var(--steel-200); background: var(--steel-100); border-radius: var(--r); font-size: .97rem; color: var(--ink-700); line-height: 1.5; }
.pdp-visita a { color: var(--blue); font-weight: 600; }
.visitas-aviso { margin: 0 0 .9rem; padding: .7rem .85rem; background: var(--steel-100); border: 1px solid var(--steel-200); border-radius: var(--r); font-size: .99rem; line-height: 1.5; }
/* El mapa de cada sucursal (views/partials/sucursales-mapas.php, 2026-12-04): la que todavía no abrió lleva el cartel
   arriba a la derecha (arriba a la izquierda va la tarjeta del lugar que pone Google). */
.suc-mapas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; margin: clamp(2rem, 4vw, 3rem) 0 0; }
.visitas .suc-mapas { gap: 1.1rem; margin: 0 0 1rem; }
.suc-mapa { margin: 0; display: grid; gap: .55rem; align-content: start; }
.suc-mapa-marco { position: relative; aspect-ratio: 3 / 2; border: 1px solid var(--steel-300); border-radius: var(--r); overflow: hidden; background: var(--steel-100); }
.suc-mapa-marco iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.suc-cartel { position: absolute; top: .7rem; right: .7rem; padding: .55rem .95rem; background: var(--blue); color: #fff; border: 2px solid #fff; border-radius: var(--r); font: 700 1rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; box-shadow: var(--shadow-2); pointer-events: none; }
.suc-mapa figcaption { display: grid; gap: .1rem; font-size: 1.01rem; }
.suc-mapa strong { font-size: 1.1rem; color: var(--ink-900); }
.suc-mapa figcaption span { color: var(--ink-600); }
.suc-mapa a { color: var(--blue); white-space: nowrap; }
.suc-mapa a .icon { display: inline-block; width: 16px; height: 16px; vertical-align: -.15em; }
/* El aviso de la sucursal que abre pronto, arriba del texto de la portada y de Empresa (2026-12-04). */
.suc-pronto { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .7rem; margin: 0 0 1.1rem; padding: .75rem .95rem; background: var(--blue-soft); border: 1px solid var(--blue-line); border-radius: var(--r); color: var(--ink-900); font-size: 1.08rem; line-height: 1.45; }
.tag-pronto { background: var(--blue); color: #fff; }
/* El cartel «Atención al público solo con cita previa.» (cita_cartel(), 2026-12-04): oscuro para que se vea bien. */
.cita-cartel { display: flex; align-items: center; gap: .65rem; width: fit-content; max-width: 100%; margin: 0 0 1.1rem; padding: .8rem 1.15rem; background: var(--navy); color: #fff; border-radius: var(--r); box-shadow: var(--shadow-1); font: 700 1.15rem/1.3 var(--body); }
.cita-cartel .icon { flex: none; width: 24px; height: 24px; }
.ftr-suc { display: grid; gap: .1rem; }
.ftr-suc strong { color: #fff; }
.ftr-suc span { color: rgba(255,255,255,.65); font-size: .9em; }
.ftr-cita { color: rgba(255,255,255,.85); font-size: .9em; }
.pdp-tabs { position: sticky; top: var(--hdr-h); z-index: 50; background: #fff; border-top: 1px solid var(--steel-200); border-bottom: 1px solid var(--steel-200); }
.pdp-tabs .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 56px; }
.pdp-tabs-links { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.pdp-tabs-links a { padding: 1rem .9rem; font: 600 .99rem var(--body); color: var(--ink-600); border-bottom: 3px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.pdp-tabs-links a:hover, .pdp-tabs-links a.active { color: var(--ink-900); border-color: var(--blue); }
.pdp-tabs-cta { margin-left: auto; display: flex; align-items: center; gap: 1rem; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s var(--ease); pointer-events: none; }
.pdp-tabs.compact .pdp-tabs-cta { opacity: 1; transform: none; pointer-events: auto; }
.pdp-tabs:not(.compact) .pdp-tabs-cta { visibility: hidden; }   /* invisible = tampoco se tabula */
.pdp-tabs-cta .model { font-family: var(--display); font-stretch: 104%; font-weight: 700; font-size: 1.16rem; }
.pdp-tabs-cta .price { font-weight: 700; }
.pdp-two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.prose { max-width: 68ch; font-size: 1.16rem; line-height: 1.65; color: var(--ink-600); }
.prose p { margin-bottom: 1.1em; }
.prose h2 { color: var(--ink-900); }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: .2em; }
.prose img { max-width: 100%; height: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1.05rem; margin: 1rem 0; }
/* Una tabla más ancha que su lugar (pegada en la descripción, como la del torno 520) se desliza adentro en vez de
   correr toda la página de costado (2026-11-26). El tbody hace de tabla para que las angostas sigan a todo el ancho. */
.prose table { display: block; max-width: 100%; overflow-x: auto; }
.prose table > tbody:only-child { display: table; width: 100%; }
.prose td, .prose th { border: 1px solid var(--steel-200); padding: .5rem .7rem; vertical-align: top; }
.prose iframe { max-width: 100%; }
.side-box { border: 1px solid var(--steel-200); border-radius: var(--r); padding: 1.25rem 1.5rem; background: #fff; }
.side-box h3 { font-size: 1.23rem; margin-bottom: .75rem; }
.side-box .facts div { grid-template-columns: 1fr; gap: .15rem; }
/* Ficha sin descripción ni video: «Qué incluye la compra» va solo, con los tres datos lado a lado. */
@media (min-width: 761px) { .side-box--ancha .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2rem; } }
.side-box .facts dt { font-size: .86rem; font-family: var(--body); font-stretch: 100%; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); }
.specs { width: 100%; border-collapse: collapse; max-width: 860px; background: #fff; border: 1px solid var(--steel-200); }
.specs th, .specs td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--steel-200); font-size: 1.05rem; }
.specs th { width: 42%; color: var(--ink-500); font-weight: 500; }
.specs td { font-weight: 600; font-variant-numeric: tabular-nums; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.spec-notes { margin: 1rem 0 0; padding-left: 1.15rem; color: var(--ink-700); max-width: 70ch; }
.spec-notes li { margin: .3rem 0; }
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 640px; background: #fff; border: 1px solid var(--steel-200); }
.compare th, .compare td { padding: .75rem 1rem; border-bottom: 1px solid var(--steel-200); font-size: 1.01rem; vertical-align: top; }
.compare thead th { border-top: 3px solid transparent; vertical-align: bottom; }
.compare thead th.current { border-top-color: var(--blue); background: var(--blue-soft); }
.compare thead img { height: 80px; width: 100%; object-fit: contain; margin-bottom: .5rem; }
.compare thead strong { display: block; font-family: var(--display); font-stretch: 104%; font-size: 1.21rem; line-height: 1.15; }
.compare thead a { display: inline-block; margin-top: .4rem; font-size: .88rem; color: var(--blue); text-decoration: underline; text-underline-offset: .2em; }
.compare tbody th { text-align: left; color: var(--ink-500); font-weight: 500; width: 220px; }
.compare tbody td { font-weight: 600; font-variant-numeric: tabular-nums; }
.compare tbody td.current { background: #f4f7fc; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.pdp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff; color: var(--ink-900); padding: .6rem var(--gutter); display: none; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--steel-200); box-shadow: 0 -12px 30px -18px rgba(17, 26, 44, .35); }
.pdp-bar strong { font-family: var(--display); font-stretch: 104%; font-size: 1.16rem; display: block; line-height: 1.1; }
.pdp-bar > div { min-width: 0; }
/* Un solo renglón (revisión 2026-11-26): con el nombre de la medida crecía y tapaba el WhatsApp flotante. */
.pdp-bar small { color: var(--ink-500); font-size: .86rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdp-bar[hidden] { display: none; }   /* sin esto, el display:flex del celular le ganaba a hidden: la barra salía de entrada y tapaba el WhatsApp */

/* Visor 3D en la galería de la ficha (model-viewer) */
.plate model-viewer { display: block; width: 100%; height: 100%; background: #fff; --poster-color: #fff; }
.plate.is-3d img { display: none; }
.plate-3d-ia { margin: .45rem 0 0; text-align: center; font-size: .88rem; color: var(--ink-500); }
.plate:not(.is-3d) + .plate-3d-ia { display: none; }
/* la marca de agua de las fotos, también encima del 3D (sale en cualquier captura de pantalla) */
.plate.is-3d::after { content: ""; position: absolute; inset: 0; background: url(../img/marca-agua.png?v=4) center / 60% auto no-repeat; pointer-events: none; }
.plate:not(.is-3d) > model-viewer { display: none; }
/* sin "Guardar imagen" al mantener apretada una foto en el celular, ni arrastrarla */
img { -webkit-touch-callout: none; -webkit-user-drag: none; }
.thumbs button.thumb-3d { display: grid; place-items: center; gap: 2px; background: var(--blue); color: #fff; font: 800 .99rem var(--display); border-color: var(--blue); letter-spacing: .04em; }
.thumbs button.thumb-3d svg { width: 22px; height: 22px; }
.thumbs button.thumb-3d:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.thumbs button.thumb-3d[aria-current="true"] { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---- Videos de la máquina en la galería (2026-11-30) ---- */
/* Pedido del dueño: «que tenga un lugar o más que diga videos». Los botones son los del 3D (.thumb-3d) y public.js pone
   el video en el recuadro grande, sin la foto ni la lupa. El MP4 propio lleva el logo en una esquina, como marca de agua
   (el mismo de las fotos, en blanco con sombra para que se lea sobre el video); YouTube no. */
.gal-video { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #000; }
.gal-video iframe, .gal-video video { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; }
.plate:not(.is-video) > .gal-video { display: none; }
.plate.is-video > img, .plate.is-video .gal-zoom { display: none; }
/* Pulido 2026-11-30: con un video elegido las flechas tapaban el reproductor. Se esconden; para volver a las fotos quedan
   los botones de abajo y las flechas del teclado (public.js, «Galería de la ficha»). */
.plate.is-video .gal-nav { display: none; }
/* El MP4 va en un marco con su misma proporción (public.js la pone al cargar; .is-alto = más angosto que el recuadro),
   así el logo cae en la esquina de la imagen y no sobre las bandas negras (revisión 2026-11-30). */
.gal-video-in { position: relative; width: 100%; max-width: 100%; max-height: 100%; aspect-ratio: 16 / 9; }
.gal-video-in.is-alto { width: auto; height: 100%; }
.gal-video-in::after { content: ""; position: absolute; top: 4%; left: 3%; width: 24%; aspect-ratio: 4; z-index: 1; pointer-events: none;
    background: url(../img/marca-agua.png?v=4) left top / contain no-repeat; filter: brightness(0) invert(1) drop-shadow(0 0 1px #000) drop-shadow(0 1px 3px #000); }

/* ---- Formularios --------------------------------------------------------- */
.form .field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.form .field > span, .form legend { font: 600 .86rem var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-600); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], select, textarea {
    width: 100%; min-height: 46px; padding: .6rem .85rem; border: 1.5px solid var(--steel-300); border-radius: var(--r); background: #fff;
    font: 500 1.05rem var(--body); color: var(--ink-900); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
input::placeholder, textarea::placeholder { color: var(--ink-500); }
select { appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314181f' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.field-error { font-size: .88rem; color: var(--red); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: .9rem; color: var(--ink-500); margin-top: .75rem; }
.form-panel { background: #fff; border: 1px solid var(--steel-200); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow-1); }
.contact-facts h3 { font: 600 .83rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); margin: 1.25rem 0 .25rem; }
.contact-facts h3:first-child { margin-top: 0; }
.contact-facts p { margin: 0 0 .25rem; }
.contact-facts a:not(.btn) { color: var(--blue); }

/* ---- Mensajes flash ------------------------------------------------------ */
.flash-stack { display: grid; gap: .5rem; margin: 1rem auto; }
.flash { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1rem; border-radius: var(--r); font-weight: 500; border: 1px solid transparent; }
.flash-success { background: var(--green-soft); color: var(--green); border-color: #bfe6cc; }
.flash-error { background: var(--red-soft); color: var(--red); border-color: #f5c2bd; }
.flash-warning { background: #fff6dc; color: #7a5d00; border-color: #f1dd7a; }
.flash-close { background: none; border: 0; font-size: 1.43rem; line-height: 1; color: inherit; cursor: pointer; opacity: .6; }
.flash-close:hover { opacity: 1; }

/* ---- Paginación ---------------------------------------------------------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding-top: 1.5rem; font-size: .99rem; color: var(--ink-500); }
.pagination-links { display: flex; gap: .25rem; }
.pagination-links a { min-width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0 .75rem; border: 1px solid var(--steel-200); border-radius: var(--r); color: var(--ink-900); font-weight: 600; }
.pagination-links a:hover { border-color: var(--blue); color: var(--blue); }
.pagination-links a.current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---- Empresa ------------------------------------------------------------- */
.history-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--steel-300); }
.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--steel-300); }
.timeline li strong { font-family: var(--display); font-stretch: 106%; font-size: 1.43rem; color: var(--ink-900); line-height: 1; }
.timeline li span { color: var(--ink-600); }
.timeline li.now strong { color: var(--blue); }

/* ---- Pie ----------------------------------------------------------------- */
/* Dos campos (pedido del dueño, 18/11/2026): a la izquierda, en blanco hasta el borde de la
 * pantalla, la marca y cómo comunicarse; a la derecha, en marino, el mapa del sitio. El blanco
 * es un ::before del bloque de la marca estirado hacia la izquierda, arriba y abajo; el pie lo
 * recorta (overflow) y lo deja detrás del texto (isolation). El corte cae en el borde derecho
 * de la primera columna. La regla azul de arriba separa el blanco del final de la página, que
 * muchas veces también es blanco. */
.ftr { --ftr-gap: 3rem; --ftr-cols: 1.5fr 1fr 1fr 1.3fr; --ftr-aire: clamp(1.5rem, 3vw, 3rem); --ftr-logo: 56px; position: relative; isolation: isolate; overflow: hidden; background: var(--navy); border-top: 3px solid var(--blue); color: rgba(255,255,255,.72); padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem; font-size: 1.01rem; }
.ftr-grid { display: grid; grid-template-columns: var(--ftr-cols); gap: var(--ftr-gap); }
.ftr h4 { font: 600 .83rem var(--body); letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 0 0 1rem; }
.ftr h4.ftr-redes { margin-top: 1.75rem; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ftr li, .ftr p { text-wrap: pretty; }   /* sin palabras sueltas al final («venir.») */
.ftr a { color: rgba(255,255,255,.8); }
.ftr a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
/* La marca, sobre blanco: logo, quiénes somos y, al pie de la columna, cómo comunicarse. */
.ftr-about { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding-right: var(--ftr-aire); }
.ftr-about::before { content: ""; position: absolute; z-index: -1; top: -100vh; bottom: -100vh; left: -100vw; right: 0; background: var(--paper); }
.ftr .ftr-about .brand-logo { background: none; border-radius: 0; padding: 0; margin: 0 0 1.25rem calc(var(--ftr-logo) * -.19); }   /* el PNG trae aire a la izquierda (31 px de 162 de alto): así el engranaje se alinea con el texto */
.ftr .ftr-about .brand-logo img { height: var(--ftr-logo); }
.ftr-about p { margin: 0 0 1.75rem; max-width: 40ch; color: var(--ink-600); }
.ftr .ftr-contacto { margin-top: auto; gap: .6rem; }
.ftr .ftr-contacto a { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink-900); font-weight: 600; }
.ftr .ftr-contacto a:hover { color: var(--blue); }
.ftr .ftr-contacto li:first-child a { font-size: 1.23rem; font-weight: 700; }   /* el teléfono manda */
.ftr-contacto .icon { width: 18px; height: 18px; flex: none; color: var(--blue); }
.ftr .ftr-about :focus-visible { outline-color: var(--blue); }   /* sobre el blanco; el resto del pie lo lleva blanco (Accesibilidad, abajo) */
/* Abajo, las mismas columnas: el © en el blanco y el aviso de precios en el marino. */
.ftr-bottom { display: grid; grid-template-columns: var(--ftr-cols); gap: .5rem var(--ftr-gap); margin-top: 2.5rem; font-size: .88rem; color: rgba(255,255,255,.55); }
.ftr-bottom > span { padding-top: 1.25rem; border-top: 1px solid var(--navy-line); }
.ftr-bottom > span:first-child { margin-right: var(--ftr-aire); color: var(--ink-500); border-top-color: var(--steel-200); }
.ftr-bottom > span:last-child { grid-column: 2 / -1; text-align: right; }
.ftr-derechos { display: block; }
.ftr-bottom a { color: rgba(255,255,255,.7); }
.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 80; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(17, 26, 44, .45); transition: transform .15s var(--ease); }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* ---- Errores ------------------------------------------------------------- */
.error-page { text-align: center; padding: clamp(4rem, 10vw, 7rem) 0; }
.error-code { font-family: var(--display); font-stretch: var(--wide); font-size: clamp(4.2rem, 12.6vw, 8.4rem); font-weight: 800; color: var(--blue); line-height: 1; }
.error-page .btn { margin: .25rem; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 1180px) {
    .hdr-search { width: 200px; }
    .live-right { width: 420px; }
    .mega-grid { grid-template-columns: 290px 1fr; }
    .mega-side { display: none; }
    .brand-logo img { height: 44px; }
}
@media (max-width: 1024px) {
    .nav, .hdr-search, .hdr-wa { display: none; }
    /* …pero el buscador de adentro del menú del celular sí (el dueño, 2026-11-27: «arreglá lo del buscador»; la regla
       de arriba lo escondía junto con el del encabezado y la lupa abría un menú sin buscador). */
    .drawer .hdr-search { display: flex; }
    .hdr-burger, .hdr-search-toggle { display: grid; }
    .hdr-row { gap: .5rem; }
    .hdr-burger { margin-left: auto; }
    .hdr-row .hdr-search-toggle { order: 2; }
    .hdr-row .hdr-burger { order: 3; }
    .hdr-util .hdr-util-fact { display: none; }
    .hdr-util .wrap { justify-content: center; }
    .hero-grid { grid-template-columns: 1fr; }
    .band-grid { grid-template-columns: 1fr; }
    .catalog { grid-template-columns: 1fr; gap: 1.5rem; }
    .filters { position: static; }
    .filters-box summary { display: flex; justify-content: space-between; align-items: center; min-height: 46px; padding: 0 1rem; border: 1.5px solid var(--ink-900); border-radius: var(--r); font: 600 .99rem var(--body); cursor: pointer; list-style: none; }
    .filters-box summary::-webkit-details-marker { display: none; }
    .filters-box summary svg { width: 16px; height: 16px; }
    .filters-box[open] summary { margin-bottom: 1rem; }
    .pdp-grid, .pdp-two, .history-grid, .plant-grid { grid-template-columns: minmax(0, 1fr); }   /* minmax(0…): una tabla ancha no estira la página */
    /* Tablet: el logo ocupa todo el ancho en una franja blanca arriba; las 3 columnas, abajo en azul. */
    .ftr { --ftr-cols: repeat(3, 1fr); --ftr-gap: 2.5rem; }
    .ftr-grid { row-gap: 5rem; }   /* la franja blanca y el marino, cada uno con 2,5rem de aire en el corte */
    .ftr-about { grid-column: 1 / -1; padding-right: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2.5rem; align-items: end; }
    .ftr-about::before { right: -100vw; bottom: -2.5rem; }
    .ftr .ftr-about .brand-logo, .ftr-about p { grid-column: 1; justify-self: start; }
    .ftr-about p { margin-bottom: 0; }
    .ftr .ftr-contacto { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
    .ftr-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--navy-line); }
    .ftr-bottom > span { padding-top: 0; border-top: 0; }
    .ftr-bottom > span:first-child { margin-right: 0; color: rgba(255,255,255,.55); }
    .ftr-bottom > span:last-child { text-align: left; }
    .ftr-derechos { display: inline; }
    .pdp-tabs-cta { display: none; }
    .pdp-bar { display: flex; }
    body.has-pdp-bar { padding-bottom: 72px; }
    body.has-pdp-bar .wa-float { bottom: 84px; }
}
@media (max-width: 760px) {
    :root { --hdr-h: 64px; }
    .hdr-util-links a:first-child { display: none; }
    .brand-logo img { height: 38px; }
    .hero-grid { padding-top: 2.25rem; }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-search-box { padding: 4px 4px 4px 10px; }
    .hero-search-box input { font-size: 1.05rem; padding: 0 .4rem; }
    .hero-search-box .btn { padding: 0 .9rem; }
    .live-item { grid-template-columns: 48px 1fr; }
    .live-item .live-price { grid-column: 2; text-align: left; }
    .live-price small { display: inline; margin-left: .35rem; }
    .sec-head { flex-direction: column; align-items: flex-start; gap: .75rem; }
    .band-cols { grid-template-columns: 1fr; gap: 1.5rem; }
    .band-cols > div { padding: 0; border-left: 0; }
    .steps { grid-template-columns: 1fr 1fr; }
    .cta-grid { grid-template-columns: 1fr; }
    /* Celular: Máquinas y Comprar lado a lado; Sucursales y redes debajo, a todo el ancho. */
    .ftr { --ftr-cols: 1fr 1fr; --ftr-gap: 2rem 1.25rem; --ftr-logo: 46px; }
    .ftr-grid { row-gap: 2rem; }
    .ftr-grid > .ftr-about { margin-bottom: 2rem; }   /* 2rem de blanco bajo el contacto (el ::before) y 2rem de marino (row-gap) arriba de Máquinas */
    .ftr-about { display: flex; align-items: flex-start; }
    .ftr-about::before { bottom: -2rem; }
    .ftr-about p { margin-bottom: 1.25rem; }
    .ftr .ftr-contacto { margin-top: 0; }
    .ftr-grid > div:last-child { grid-column: 1 / -1; }
    .grid-2 { grid-template-columns: 1fr; }
    .figures-lg dd { font-size: 1.74rem; }
    .results-bar { flex-direction: column; align-items: flex-start; }
    .avail-tabs { display: flex; width: 100%; }
    .avail-tabs a { flex: 1; text-align: center; padding-inline: .5rem; }
    .avail-tabs a span { display: none; }
    .clients-list { column-gap: 1.25rem; }
    .clients-list li { font-size: 1.05rem; }
    .spec-strip-foot { flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .steps { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-tile { min-height: 190px; }
    .cat-img { height: 100px; }
    .rail { grid-auto-columns: minmax(260px, 85%); }
}

/* Ajustes de la ronda de inspección (2026-10-06) */
.cat-grid > li { display: flex; }
.cat-tile { flex: 1; width: 100%; }
.spec-strip .figures dd.text { font-size: 1.05rem; }
.pdp-meta { margin: 0 0 1rem; font-size: .99rem; color: var(--ink-500); font-weight: 500; }
.pdp-info h1 { margin-top: 0; }

/* Ronda de cierre (revisor, 2026-10-06): primer pantallazo, hechos del hero, títulos, logo */
:root { --hdr-h: 78px; }
.brand-logo img { height: 56px; }
.hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-rows: auto auto; padding: clamp(2rem, 3.5vw, 3rem) 0 clamp(1.5rem, 3vw, 2.25rem); align-items: start; }
.hero-copy { grid-column: 1; grid-row: 1; align-self: center; }
.hero-machine { grid-column: 2; grid-row: 1 / span 2; }
.hero-grid .hero-facts { grid-column: 1; grid-row: 2; align-self: start; margin-top: -.5rem; }
.hero-actions { margin-bottom: 1.25rem; }
.hero-machine .plate { aspect-ratio: 3 / 2; }
.hero-mini { margin-top: .75rem; }
.pc-name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1180px) { .brand-logo img { height: 48px; } }
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .hero-copy, .hero-machine, .hero-grid .hero-facts { grid-column: 1; grid-row: auto; }
    .hero-grid .hero-facts { margin-top: 1.25rem; }
}
@media (max-width: 760px) {
    :root { --hdr-h: 66px; }
    .brand-logo img { height: 40px; }
    .hero-grid { padding-top: 1.5rem; gap: 1.5rem; }
    .hero h1 { font-size: clamp(2rem, 8.43vw, 2.53rem); margin-bottom: .75rem; }
    .hero .lead { font-size: 1.1rem; margin-bottom: 1.1rem; }
    .hero-search { margin-bottom: .9rem; }
    .hero-search-hints { display: none; }
    .hero-actions { margin-bottom: 0; }
    .hero-actions .btn { flex: 1 1 45%; min-height: 48px; font-size: 1.05rem; padding: 0 1rem; }
}
/* primer pantallazo: menos aire entre el hero y la grilla de categorías */
.hero-grid { padding-top: clamp(1.75rem, 3vw, 2.5rem); padding-bottom: clamp(1.25rem, 2.5vw, 1.75rem); }
.hero + .sec { padding-top: clamp(2rem, 3.5vw, 3rem); }
.hero h1 { font-size: clamp(2.31rem, 4.1vw, 3.47rem); }

/* Segunda vuelta del revisor (2026-10-06): hero compacto, hechos como línea de cierre, extractos acotados */
.hero-grid { grid-template-rows: auto auto; padding-top: clamp(1.5rem, 2.5vw, 2rem); padding-bottom: clamp(1rem, 2vw, 1.25rem); row-gap: 1.25rem; align-items: center; }
.hero-copy { grid-column: 1; grid-row: 1; align-self: center; }
.hero-machine { grid-column: 2; grid-row: 1; }
.hero-grid .hero-facts { grid-column: 1 / -1; grid-row: 2; margin-top: 0; padding-top: .9rem; border-top: 1px solid var(--steel-200); }
.hero h1 { margin-bottom: .9rem; }
.hero .lead { margin-bottom: 1.25rem; }
.hero-search { margin-bottom: 1rem; }
.hero-actions { margin-bottom: 0; }
.hero-machine .plate { aspect-ratio: 16 / 10; }
.spec-strip { padding: .85rem 1.1rem .95rem; }
.spec-strip .figures > div { padding-top: .55rem; padding-bottom: .55rem; }
.spec-strip-foot { margin-top: .55rem; padding-top: .55rem; }
.hero-mini { margin-top: .6rem; }
.hero-mini a { padding: .45rem .7rem; }
.hero + .sec { padding-top: clamp(1.5rem, 2.5vw, 2rem); }
.hero + .sec .sec-head { margin-bottom: 1.25rem; }
.pc-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1024px) {
    .hero-grid { grid-template-rows: auto; row-gap: 1.5rem; }
    .hero-copy, .hero-machine, .hero-grid .hero-facts { grid-column: 1; grid-row: auto; }
    .hero-grid .hero-facts { border-top: 0; padding-top: 0; }
}
/* primer pantallazo (1440×900): la grilla de categorías asoma bajo el hero */
.hero-grid { padding-top: clamp(1.25rem, 2vw, 1.6rem); padding-bottom: .9rem; row-gap: .9rem; }
.hero h1 { font-size: clamp(2.21rem, 3.89vw, 3.31rem); }
.hero-grid .hero-facts { padding-top: .7rem; }
.hero-machine .plate { aspect-ratio: 16 / 9; }
.hero-mini a { padding: .4rem .7rem; }
.hero + .sec { padding-top: 1.25rem; }
.hero + .sec .sec-head { margin-bottom: 1rem; }

/* primer pantallazo: últimos píxeles para que el filete de la grilla entre en 1440×900 */
.hero-grid { padding-bottom: .6rem; row-gap: .6rem; }
.hero-grid .hero-facts { padding-top: .5rem; }
.spec-strip { padding: .75rem 1rem .8rem; }
.hero + .sec { padding-top: 1rem; }
.hero + .sec .sec-head { margin-bottom: .75rem; }

/* Tercera vuelta del revisor (2026-10-06): placa 3:2 sin bandas, altura recuperada en los márgenes; recorte efectivo en tarjetas */
.hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); padding-top: 1rem; padding-bottom: .5rem; row-gap: .5rem; }
.hero-machine .plate { aspect-ratio: 3 / 2; }
.hero-machine .plate img { padding: 3%; }
.spec-strip { padding: .6rem 1rem .65rem; }
.spec-strip-head { margin-bottom: .3rem; }
.spec-strip .figures > div { padding-top: .4rem; padding-bottom: .4rem; }
.spec-strip .figures dd { font-size: 1.38rem; }
.spec-strip-foot { margin-top: .45rem; padding-top: .45rem; }
.hero-mini { margin-top: .5rem; }
.hero-mini a { padding: .35rem .7rem; }
.hero-grid .hero-facts { padding-top: .4rem; }
.pc-desc { flex: 0 0 auto; }
.pc-foot { margin-top: auto; }
.pc-specs { flex: 0 0 auto; }
/* las columnas del hero son sólo de escritorio: por debajo de 1024 vuelve a una columna */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
}

/* ---- Portada: máquinas que rotan solas (CRM > Sitio web > Portada) ----------
   Las tarjetas se apilan en la misma celda (la más alta fija el alto, así no salta
   la página) y se funden una sobre otra. La barrita activa se llena en el tiempo
   elegido y, cuando termina, public.js pasa a la siguiente: pasar el mouse o el
   foco la pausa; con «reducir movimiento» no rota sola. */
.hero-slides { display: grid; }
.hero-slide { grid-area: 1 / 1; display: flex; flex-direction: column; min-width: 0; }
.hero-slide .spec-strip { flex: 1; display: flex; flex-direction: column; }
.hero-slide .spec-strip::before { content: ""; order: 2; flex: 1 0 .45rem; }
.hero-slide .spec-strip-foot { order: 3; margin-top: 0; }
.hero-machine[data-hero-slides] .hero-slide { opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s linear .7s; }
.hero-machine[data-hero-slides] .hero-slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.hero-machine[data-hero-slides] .plate img { transform: scale(1.04); transition: transform var(--hero-every, 6s) linear; }
.hero-machine[data-hero-slides] .hero-slide.is-active .plate img { transform: none; }
.hero-dots { display: flex; gap: .4rem; margin-top: .5rem; }
.hero-dots button { flex: 1; display: flex; align-items: center; height: 16px; padding: 0; background: none; border: 0; cursor: pointer; }
.hero-dots span { position: relative; display: block; width: 100%; height: 3px; border-radius: 2px; background: var(--steel-300); overflow: hidden; transition: background .15s; }
.hero-dots span::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.hero-dots button[aria-current="true"] span::after { transform: scaleX(1); }
.hero-machine.is-playing .hero-dots button[aria-current="true"] span::after { animation: hero-fill var(--hero-every, 6s) linear both; }
.hero-machine.is-paused .hero-dots button[aria-current="true"] span::after { animation-play-state: paused; }
.hero-dots button:hover span { background: var(--ink-300); }
.hero-dots button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
@keyframes hero-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* Sin cifras en las especificaciones, la tarjeta del hero muestra la descripción corta. */
.spec-strip-desc { margin: .35rem 0 0; color: var(--ink-600); font-size: 1.01rem; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; max-width: 60ch; }

/* ---- Aparición al bajar (public.js): sólo existe con JS y sin «reducir movimiento» ---- */
.rv { opacity: 0; transform: translateY(28px); }
.rv.rv-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--rv-d, 0ms); }
/* La grilla de categorías queda dibujada (celdas blancas y líneas) mientras las fichas suben adentro. */
.cat-grid > li { background: #fff; overflow: hidden; }
/* El header fijo mide la franja gris de arriba (32 px + borde) más la fila principal (--hdr-h):
   lo que se pega debajo del header (pestañas de la ficha, filtros del catálogo) y los saltos
   a #secciones tienen que contar las dos; antes las pestañas quedaban tapadas al bajar. */
:root { --hdr-total: calc(var(--hdr-h) + 34px); }
html { scroll-padding-top: calc(var(--hdr-total) + 64px); }
.pdp-tabs { top: var(--hdr-total); }
.filters { top: calc(var(--hdr-total) + 1rem); }
@media (max-width: 1024px) { .filters { top: auto; } }
/* Los filtros quedan fijos al bajar, pero son más altos que la pantalla: las últimas categorías
   quedaban fuera de alcance y la rueda bajaba la página (2026-11-24). Ahora la lista se desplaza
   sola; el relleno es para que no se corte el fondo de la categoría elegida ni el foco del buscador. */
@media (min-width: 1025px) {
    .filters { max-height: calc(100vh - var(--hdr-total) - 2rem); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--ink-300) transparent; padding: .25rem .6rem 1rem; margin: -.25rem -.6rem 0; }
}

/* ---- Accesibilidad (revisión 2026-10-16) -------------------------------------------------
 * El foco tiene que verse: en tiles y tarjetas con overflow:hidden el anillo va por dentro, y
 * sobre fondos azules va en blanco. Los números chicos grises, con contraste suficiente. */
.cat-tile:focus-visible, .pc-media:focus-visible, .avail-tabs a:focus-visible, .plate model-viewer:focus-visible { outline-offset: -4px; }
.avail-tabs a.active:focus-visible, .subcats a.active:focus-visible, .cta-yellow :focus-visible, .band :focus-visible, .ftr :focus-visible { outline-color: #fff; }
.subcats a span, .mega-subs a span, .avail-tabs a span, .filter-list a span, .drawer-cats a span { color: var(--ink-500); }
@media (max-width: 640px) { .subcats { padding-top: 4px; } }

/* ---- «Así se programa» (fichas de tornos CNC): el 3D haciendo la pieza y el programa al lado ---- */
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.demo-vista { margin: 0; }
.demo-plate { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--steel-100); border: 1px solid var(--steel-200); border-radius: var(--r); overflow: hidden; }
.demo-plate model-viewer { position: absolute; inset: 0; width: 100%; height: 100%; --poster-color: transparent; }
.demo-plate.is-listo .demo-cargar { display: none; }
.demo-plate.is-listo::after { content: ""; position: absolute; inset: 0; background: url(../img/marca-agua.png?v=4) center / 60% auto no-repeat; pointer-events: none; }
.demo-aviso { position: absolute; z-index: 1; left: 50%; bottom: 1rem; transform: translateX(-50%); width: max-content; max-width: calc(100% - 2rem); margin: 0; padding: .55rem .95rem; background: var(--navy); color: #fff; border-radius: var(--r); box-shadow: var(--shadow-2); text-align: center; line-height: 1.35; }
/* El programa, como la pantalla de un control: oscuro, código en letra de máquina de escribir.
   contain: size → la columna toma el alto del 3D y la lista se desplaza adentro. */
.demo-prog { contain: size; display: flex; flex-direction: column; min-height: 0; background: var(--navy); color: #e3e9f3; border-radius: var(--r); overflow: hidden; }
.demo-prog-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .65rem 1rem; border-bottom: 1px solid var(--navy-line); font-size: .88rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #a9b6cc; }
.demo-pausa { flex: none; min-height: 32px; padding: .2rem .8rem; border: 1px solid #5d6f8f; border-radius: var(--r); background: transparent; color: #fff; font: 600 .88rem var(--body); letter-spacing: .04em; text-transform: none; cursor: pointer; }
.demo-pausa:hover { background: var(--navy-line); }
.demo-lineas { position: relative; flex: 1; min-height: 0; overflow-y: auto; margin: 0; padding: .35rem 0; list-style: none; counter-reset: linea; scrollbar-color: #3a4a68 transparent; }
.demo-lineas li { counter-increment: linea; }
.demo-lineas button { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .1rem .5rem; width: 100%; padding: .45rem 1rem .45rem .6rem; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.demo-lineas button::before { content: counter(linea); grid-row: span 2; padding-top: .1rem; font-size: .79rem; color: #6f7f9c; text-align: right; font-variant-numeric: tabular-nums; }
.demo-lineas code { font: 600 1.05rem/1.35 ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace; color: #fff; white-space: pre-wrap; }
.demo-lineas span { font-size: .95rem; line-height: 1.4; color: #a9b6cc; }
.demo-lineas button:hover { background: rgba(255, 255, 255, .05); }
.demo-lineas button[aria-current="step"] { background: var(--blue-deep); }
.demo-lineas button[aria-current="step"]::before, .demo-lineas button[aria-current="step"] span { color: #e3e9f3; }
.demo-lineas button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.demo-cursos { margin: 1.5rem 0 0; padding: .9rem 1.2rem; background: var(--blue-soft); border: 1px solid var(--blue-line); border-radius: var(--r); color: var(--ink-700); }
.demo-cursos a { font-weight: 600; }
.demo-cursos a[data-wa] { white-space: nowrap; }   /* sólo el corto «Avisame cuando empiecen →»: la frase larga a 390 px corría la página (revisión 2026-11-30) */
@media (max-width: 900px) {
    .demo-grid { grid-template-columns: minmax(0, 1fr); }
    .demo-prog { contain: none; }
    .demo-lineas { max-height: 21rem; }
}

/* ---- Portada: mecanismo de engranajes detrás de la franja de arriba (lo dibuja assets/js/fondo.js) ----
   Se desvanece hacia la izquierda, donde está el texto: con fuerza en el borde derecho y abajo. */
.hero, .page-head { position: relative; overflow: hidden; }
.hero-grid, .page-head > .wrap { position: relative; z-index: 1; }
.hero-mecanismo {
    position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.18) 40%, #000 72%);
            mask-image: linear-gradient(90deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.18) 40%, #000 72%);
}
@media (max-width: 760px) {
    .page-head .hero-mecanismo { display: none; }   /* en el celular el texto ocupa todo el ancho */
    .hero-mecanismo { -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.15) 55%, #000 100%); mask-image: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.15) 55%, #000 100%); }
}

/* ---- Ajustes chicos de la revisión del 2026-11-25 ------------------------------------------- */
/* Contacto en el celular: WhatsApp arriba del formulario (es lo que más se usa; abajo quedaba lejos). */
.contacto-wa { display: none; }
@media (max-width: 760px) { .contacto-wa { display: flex; width: 100%; } }   /* el gap de .pdp-two lo separa del formulario */
/* «¿Qué buscás?»: el botón de cerrar, de 44 px (se toca con el dedo). */
.bienvenida-cerrar { top: .3rem; right: .3rem; width: 44px; height: 44px; }
/* Ficha en el celular: las cifras en dos por dos, sin la raya colgando de la última. */
@media (max-width: 480px) {
    .pdp-info .figures { grid-template-columns: 1fr 1fr; }
    .pdp-info .figures > div { margin-right: 0; padding-right: .75rem; border-right: 0; }
    .pdp-info .figures > div:nth-child(odd):not(:last-child) { margin-right: .75rem; border-right: 1px solid var(--steel-200); }
    .pdp-info .figures > div:nth-child(n+3) { border-top: 1px solid var(--steel-200); }
}

/* ---- Ficha: «Consultá condiciones», datos sujetos a confirmación y accesorios recomendados (pedido del dueño, 2026-11-25) ---- */
/* «Consultá condiciones» debajo del precio (ficha y tarjetas de oferta): chico pero que se vea. Azul de enlace: 6,5:1 sobre blanco. */
.pb-condiciones { flex-basis: 100%; margin: -.35rem 0 0; }
.pb-condiciones a, .oc-condiciones { display: inline-block; padding: .2rem 0; font-size: .9rem; font-weight: 600; line-height: 1.3; color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.pb-condiciones a:hover, .oc-condiciones:hover { color: var(--blue-deep); }
.pb-condiciones a { font-size: .97rem; }
.oc-condiciones { position: relative; z-index: 2; align-self: flex-start; }   /* encima del enlace que cubre toda la tarjeta */
.oc:not(.oc-grande) .oc-condiciones { padding: .1rem 0; }   /* .82rem = 13 px: no más chico */
/* Debajo de las especificaciones y de la comparativa: aclaración, no aviso (gris, sin ícono). */
.datos-sujetos { margin: .75rem 0 0; font-size: .94rem; color: var(--ink-500); }
/* Accesorios recomendados: en la columna de «Qué incluye la compra» (en el celular, después de la descripción). */
.pdp-lado { display: grid; gap: 1.5rem; min-width: 0; }
.acc h3 { font-size: 1.23rem; margin-bottom: .65rem; }
.acc-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.acc--ancha .acc-lista { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }   /* ficha sin descripción: lado a lado */
.acc-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: .75rem; align-items: center; height: 100%; padding: .45rem .75rem .45rem .45rem; border: 1px solid var(--steel-200); border-radius: var(--r); background: #fff; color: var(--ink-900); transition: border-color .15s; }
.acc-item:hover { border-color: var(--blue); }
.acc-item img { grid-row: span 2; width: 72px; height: 54px; object-fit: contain; }
.acc-nombre { align-self: end; font-weight: 600; font-size: 1.05rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acc-item:hover .acc-nombre { color: var(--blue); }
.acc-item small { align-self: start; font-size: .9rem; font-weight: 600; color: var(--ink-500); }
.acc-item small.acc-stock { color: var(--green); }
.acc-todos { display: inline-block; margin-top: .65rem; font-size: 1.01rem; }

/* ==== Portada: cinta de clientes y cartel de YouTube (pedido del dueño, 2026-11-25) ================================ */
/* Cinta «Nos eligen» entre las ofertas y el hero (views/public/home.php): 64 px en la PC. Los logos van en gris y a
   color con el mouse o el foco; para dejarlos siempre a color alcanza con --cc-filtro: none. La mueve public.js
   (data-auto-rail, la misma de las ofertas: .is-cinta, .is-quieta y las copias .oc-copia). Sin JS o con «reducir
   movimiento» queda quieta y se desliza a mano (con la barra fina). */
.cc { --cc-filtro: grayscale(1); background: var(--paper); border-bottom: 1px solid var(--steel-200); }
.cc-fila { display: flex; align-items: center; gap: 1.25rem; }
.cc-titulo { flex: none; margin: 0; font-size: .81rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-500); }
.cc-caja { flex: 1; min-width: 0; }
.cc-cinta { display: flex; align-items: center; gap: 2.25rem; min-height: 64px; margin: 0; padding: 6px 0; list-style: none; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--ink-300) transparent; }
.cc-cinta.is-cinta { scrollbar-width: none; }
.cc-cinta.is-cinta::-webkit-scrollbar { display: none; }
.cc-cinta.is-quieta .oc-copia { display: none; }
/* Con la cinta en el medio, el texto del hero sigue arriba como con la banda de ofertas sola (.ofertas + .hero). */
@media (min-width: 1025px) { .ofertas + .cc + .hero .hero-copy { align-self: start; } }
.cc-cinta:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }   /* hacia adentro: afuera lo tapan .ofertas y .hero (posicionados) */
.cc-cinta > li { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.cc-cinta img { max-width: none; filter: var(--cc-filtro); transition: filter .2s; }
.cc-cinta > li:hover img, .cc-cinta:focus-visible img { filter: none; }
.cc-logo span { font-size: .77rem; font-weight: 600; line-height: 1; color: var(--ink-500); white-space: nowrap; }
/* Sin logo (SIDERCA, Naciones Unidas…): el nombre con el peso de un logo. */
.cc-texto span { font-size: 1.32rem; font-weight: 800; letter-spacing: -.01em; line-height: 1; color: var(--ink-500); white-space: nowrap; transition: color .2s; }
.cc-texto:hover span, .cc-cinta:focus-visible .cc-texto span { color: var(--ink-900); }
/* Los gobiernos, juntos en un cartel (van sin escudo). */
/* max-width: no más ancho que la cinta (a 360 con «reducir movimiento» quedaba cortado); si no entra, parte el renglón. */
.cc-cinta > .cc-gob { max-width: 100%; align-items: flex-start; gap: 1px; padding: .35rem .8rem; background: var(--steel-100); border: 1px solid var(--steel-300); border-radius: var(--r); line-height: 1.2; }
.cc-gob strong { font-size: .95rem; font-weight: 700; color: var(--ink-900); }
.cc-gob span { font-size: .88rem; color: var(--ink-600); }
@media (max-width: 760px) {
    .cc-fila { gap: .75rem; }
    .cc-titulo { font-size: .68rem; letter-spacing: .08em; }
    .cc-cinta { gap: 1.75rem; }
    /* (letra +10 %) en el celular el rótulo «Nos eligen» y el cartel de los gobiernos quedan con la letra de antes:
       más grande partía «y los gobiernos de las 24 jurisdicciones del país» y la cinta pasaba de 64 a 80 px */
    .cc-gob strong { font-size: .86rem; }
    .cc-gob span { font-size: .8rem; }
}

/* «Nos eligen» de más abajo: la lista en texto, los gobiernos en una línea y el crédito de los logos, chico. */
.clients-gob { max-width: 1000px; margin: 1rem auto 0; font-size: 1.05rem; color: var(--ink-600); text-wrap: balance; }
.clients-gob strong { color: var(--ink-900); }
.clients-creditos { margin-top: 1rem; font-size: .86rem; color: var(--ink-500); }
.clients-creditos summary { cursor: pointer; }
.clients-creditos p { max-width: 760px; margin: .5rem auto 0; text-wrap: pretty; }
.clients-creditos a { text-decoration: underline; text-underline-offset: .15em; }

/* Cartel de YouTube en el hero, debajo de los botones: un enlace, sin el reproductor. Dueño, 2026-11-26: «lo podés
   poner en ese espacio en blanco… darle un poco de color rojo para que se entienda que es YouTube». El rojo es el de
   la marca YouTube y vive sólo acá (excepción, como el verde de WhatsApp y el amarillo de las ofertas; ver DESIGN.md):
   el logo rojo, un borde fino rojo suave alrededor (sin franja gruesa a un costado: es la marca de «hecho con IA»)
   y «Ver el canal» en un rojo más oscuro que da 5:1 sobre blanco. */
:root { --yt-rojo: #ff0000; --yt-rojo-tinta: #c4302b; --yt-rojo-suave: #fff3f2; --yt-rojo-borde: #f1c2bf; }
.yt-cartel { display: flex; align-items: center; gap: 1rem; max-width: 640px; margin-top: 1.5rem; padding: .85rem 1.15rem;   /* el mismo ancho que el buscador */ background: #fff; border: 1px solid var(--yt-rojo-borde); border-radius: var(--r); box-shadow: 0 1px 2px rgba(15, 23, 42, .05); transition: border-color .15s, background-color .15s; }
.yt-cartel:hover { border-color: var(--yt-rojo); background: var(--yt-rojo-suave); }
.yt-cartel .icon-yt { flex: none; width: 44px; height: 44px; color: var(--yt-rojo); }   /* el triángulo es un hueco: se ve blanco */
.yt-texto { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; }
.yt-texto strong { font-size: 1.26rem; font-weight: 700; color: var(--ink-900); }
.yt-texto span { color: var(--ink-600); }
.yt-ir { flex: none; display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--yt-rojo-tinta); }
.yt-ir .icon { width: 18px; height: 18px; }
@media (max-width: 1024px) { .yt-cartel { margin-bottom: 1rem; } }   /* con las columnas apiladas, el mismo aire arriba y abajo: si no, queda a 8 px de la máquina y parece su encabezado */
@media (max-width: 760px) { .yt-cartel { margin-top: 1rem; margin-bottom: .5rem; } }
@media (max-width: 480px) { .yt-cartel { flex-wrap: wrap; } .yt-ir { width: 100%; padding-left: calc(44px + 1rem); } }
/* En el pie, junto a las redes: sin ícono, alineado con las demás (revisión 2026-11-26). */
.ftr-yt { display: inline-flex; flex-wrap: wrap; align-items: center; }
.ftr-yt small { flex-basis: 100%; font-size: .88rem; opacity: .8; }

/* ==========================================================================
   Letra más rellenita (pedido del dueño, 2026-11-25: «la letra que sea un poco
   más rellenita para que se vea bien»). El peso del texto (500) y los grises
   están en :root y en body, arriba; acá sólo lo que el texto más grueso empujó.
   ========================================================================== */
/* Con 500 «Recorrido (X × Y × Z)» y su cifra ya no entraban en la tarjeta de 1440 y partían el «mm». */
.pc-specs > div { gap: .75rem; }
/* «Página 1 de 2 · 32 resultados» y los botones bajaban a dos renglones en el celular de 390 por medio píxel. */
.pagination { column-gap: .5rem; }

/* ==== Arreglos de la revisión de los pedidos del 2026-11-25 (2026-11-26) ======================================== */
/* «Consultá condiciones» en las tarjetas chicas de oferta: el texto mide 20 px y alrededor está el enlace de toda la
   tarjeta. El área de toque sube a 24 px sin mover nada (la tarjeta no crece y la banda tampoco). */
.oc-condiciones::before { content: ""; position: absolute; inset: -2px 0; }
/* Cinta de clientes: en gris sin la opacidad (Aerolíneas, John Deere y Ledesma quedaban lavados, sin un píxel a 3:1;
   ver --cc-filtro arriba). Los dos que son un bloque lleno siguen más suaves, para que no tapen al resto. */
.cc-cinta img[src*="/fiat-industrial."], .cc-cinta img[src*="/aysa."] { --cc-filtro: grayscale(1) opacity(.7); }
/* Accesorios recomendados en tablet: la columna ocupa todo el ancho y una tarjeta de 960 px quedaba vacía. Dos por
   fila (con 240 px salían 3 + 1); en el celular, una. */
@media (max-width: 1024px) { .acc .acc-lista { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); } }
/* Ficha con descripción corta (producto.php, .acc-abajo): los accesorios van debajo, a lo ancho, en vez de al costado,
   donde dejaban un hueco grande debajo de la descripción. La columna se disuelve en la grilla (display: contents). */
.acc-abajo { row-gap: 2rem; }
.acc-abajo > .pdp-lado { display: contents; }
.acc-abajo .acc { grid-column: 1 / -1; }
/* «Créditos de los logos» con el chevron del resto del sitio (no el triángulo del navegador) y 24 px para tocarlo. */
.clients-creditos summary { display: inline-flex; align-items: center; gap: .3rem; min-height: 24px; list-style: none; }
.clients-creditos summary::-webkit-details-marker { display: none; }
.clients-creditos summary .icon { width: 12px; height: 12px; transition: transform .2s; }
.clients-creditos[open] summary .icon { transform: rotate(180deg); }

/* ==========================================================================
   «Mi consulta» (pedido del dueño, 2026-11-26): «que la gente que esté interesada en varias máquinas arme un
   carrito… y después se pueda comunicar desde ese carrito por WhatsApp». Botón en tarjetas y ficha, botón con
   el número en el encabezado, cajón con la lista (el mismo .drawer del menú del celular) y aviso al agregar.
   Todo lo arma y lo muestra public.js: sin JS no se ve nada de esto.
   ========================================================================== */
/* position: relative: el nombre para lectores (.sr-only, absoluto) queda adentro del botón; en la tira de stock de
   la portada se iba al costado de la última tarjeta y la página se ensanchaba a 2100 px en el celular. */
.consulta-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: .45rem; width: 100%; min-height: 44px; padding: 0 1rem; border: 0; background: none; color: var(--blue); font: 600 .99rem/1.2 var(--body); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.consulta-btn[hidden] { display: none; }
.consulta-btn svg { width: 18px; height: 18px; flex: none; }
.consulta-btn .consulta-check, .consulta-btn[aria-pressed="true"] .consulta-mas { display: none; }
.consulta-btn[aria-pressed="true"] .consulta-check { display: block; }
.consulta-btn[aria-pressed="true"] { background: var(--blue-soft); color: var(--blue-deep); }
/* Tarjeta: una franja al pie, de lado a lado, separada por la regla de 1 px. */
.pc-consulta { margin: 1rem -1.1rem -1.1rem; width: auto; border-top: 1px solid var(--steel-200); }
.pc-consulta[aria-pressed="false"]:hover { background: var(--steel-100); }   /* gris: el celeste queda para «agregada» (si no, al tocar no cambiaba) */
.pc-consulta:focus-visible { outline-offset: -4px; }   /* la tarjeta recorta (overflow: hidden) */
/* Ficha: acción secundaria debajo de «Pedir cotización» / WhatsApp, con forma de botón contorno. */
.pdp-consulta { margin-top: .75rem; min-height: 46px; border: 1.5px solid var(--ink-300); border-radius: var(--r); color: var(--ink-900); font-size: 1.05rem; }
.pdp-consulta svg { color: var(--blue); }
.pdp-consulta:hover { border-color: var(--ink-900); background: var(--steel-100); }
.pdp-consulta[aria-pressed="true"] { border-color: var(--blue-line); }
.pdp-consulta[aria-pressed="true"] svg { color: currentColor; }
/* Encabezado: «Mi consulta (3)» al lado del WhatsApp; en el celular, el ícono con el número. */
.hdr-consulta { display: inline-flex; align-items: center; gap: .4rem; min-height: 42px; padding: 0 .9rem; border: 1.5px solid var(--ink-300); border-radius: var(--r); background: #fff; color: var(--ink-900); font: 600 1.05rem/1 var(--body); white-space: nowrap; cursor: pointer; transition: border-color .15s, background .15s; }
.hdr-consulta[hidden] { display: none; }
.hdr-consulta:hover { border-color: var(--ink-900); background: var(--steel-100); }
.hdr-consulta svg { width: 18px; height: 18px; flex: none; color: var(--blue); }
.hdr-consulta-n::before { content: "("; }
.hdr-consulta-n::after { content: ")"; }
/* El encabezado ya iba justo (en 1025–1279 el logo y el buscador se achicaban): con la lista no tiene que crecer.
   Desde 1360 (fila de 1280) «Mi consulta (3)» en texto y el buscador cede 70 px; más angosto, el ícono con «(3)»
   y el WhatsApp de arriba sólo con su logo (el flotante sigue): lo que suma uno lo resta el otro. */
@media (min-width: 1360px) {
    .hdr-consulta svg { display: none; }
    .hdr-row:has(.hdr-consulta:not([hidden])) .hdr-search { width: 180px; }
}
@media (min-width: 1025px) and (max-width: 1359px) {
    .hdr-consulta { padding: 0 .7rem; }
    .hdr-consulta-txt { display: none; }
    .hdr-consulta, .hdr-row:has(.hdr-consulta:not([hidden])) .hdr-wa { flex: none; }
    .hdr-row:has(.hdr-consulta:not([hidden])) .hdr-wa { width: 46px; padding: 0; gap: 0; font-size: 0; }
}
@media (max-width: 1024px) {
    .hdr-consulta { order: 3; position: relative; margin-left: auto; justify-content: center; width: 44px; height: 44px; min-height: 0; padding: 0; border: 0; background: none; }
    .hdr-consulta:hover { background: var(--steel-100); }
    .hdr-consulta svg { width: 24px; height: 24px; color: var(--ink-900); }
    .hdr-consulta-txt { display: none; }
    .hdr-consulta-n { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: var(--r); background: var(--blue); color: #fff; font: 700 .79rem/19px var(--body); text-align: center; }
    .hdr-consulta-n::before, .hdr-consulta-n::after { content: none; }
    .hdr-consulta:not([hidden]) ~ .hdr-burger { margin-left: 0; }
}
/* El cajón: la lista se desplaza y las acciones quedan siempre a la vista abajo. */
.consulta .drawer-panel { display: flex; flex-direction: column; width: min(420px, 92vw); overflow: hidden; padding-bottom: 1rem; }
.consulta .drawer-head { flex: none; margin-bottom: .5rem; }
.consulta .drawer-head h2 { margin: 0; font-size: 1.74rem; }
.consulta-ayuda { flex: none; margin: 0 0 1rem; color: var(--ink-600); font-size: 1.05rem; line-height: 1.45; }
.consulta-lista { flex: 0 1 auto; min-height: 0; overflow-y: auto; list-style: none; margin: 0 0 1rem; padding: 0; border-top: 1px solid var(--steel-200); overscroll-behavior: contain; }
.consulta-lista[hidden], .consulta-acciones[hidden] { display: none; }
/* Con poca altura (celular acostado, zoom alto) la lista se achicaba a 0 px y las acciones quedaban afuera: ahí se
   desplaza el cajón entero. */
@media (max-height: 560px) {
    .consulta .drawer-panel { overflow-y: auto; }
    .consulta .consulta-lista { flex: none; overflow: visible; }
}
.consulta-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--steel-200); }
.consulta-foto { display: block; width: 64px; height: 48px; border: 1px solid var(--steel-200); border-radius: 2px; background: #fff; overflow: hidden; }
.consulta-foto img { width: 100%; height: 100%; padding: 3px; object-fit: contain; }
.consulta-txt { display: grid; gap: .1rem; min-width: 0; }
.consulta-nombre { font-weight: 600; line-height: 1.25; color: var(--ink-900); overflow-wrap: anywhere; }
a.consulta-nombre:hover { color: var(--blue); }
.consulta-txt small { color: var(--ink-600); font-size: .94rem; }
.consulta-sacar { min-height: 44px; padding: 0 .55rem; border: 0; border-radius: var(--r); background: none; color: var(--ink-600); font: 600 .97rem var(--body); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.consulta-sacar:hover { background: var(--steel-100); color: var(--ink-900); }
.consulta-sacar:focus-visible { outline-offset: -2px; }   /* llega al borde de la lista, que recorta (overflow) */
.consulta-vacia { margin: 0 0 1rem; padding: 1rem 0; border-top: 1px solid var(--steel-200); color: var(--ink-600); }
.consulta-vacia a { display: block; margin-top: .5rem; color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.consulta-acciones { flex: none; display: grid; gap: .6rem; }
.consulta-acciones .btn { width: 100%; }
.consulta-vaciar { justify-self: center; min-height: 44px; padding: 0 .75rem; border: 0; background: none; color: var(--ink-600); font: 600 .99rem var(--body); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.consulta-vaciar:hover { color: var(--ink-900); }
.consulta-vaciar[hidden], .consulta-confirmar[hidden] { display: none; }
.consulta-confirmar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; margin: 0; font-weight: 600; }
.consulta-confirmar span { flex-basis: 100%; text-align: center; }
.consulta-confirmar .btn { flex: 1 1 0; }
/* Aviso al agregar: abajo a la izquierda, sin tapar el WhatsApp flotante (56 px a la derecha). */
.consulta-aviso { position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 120; max-width: min(440px, calc(100vw - 2.5rem - 56px - .75rem)); }
.consulta-aviso-caja { display: flex; align-items: center; gap: .75rem; padding: 0 0 0 1rem; background: #fff; color: var(--ink-900); border: 1px solid var(--steel-200); border-radius: var(--r); box-shadow: var(--shadow-2); animation: consulta-aviso .25s var(--ease); }
.consulta-aviso-caja p { margin: .6rem 0; font-size: 1.05rem; line-height: 1.35; }
.consulta-aviso-caja button { flex: none; align-self: stretch; min-height: 44px; padding: 0 .8rem; border: 0; border-left: 1px solid var(--steel-200); border-radius: 0 var(--r) var(--r) 0; background: none; color: var(--blue); font: 700 1.05rem var(--body); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.consulta-aviso-caja button:hover { background: var(--blue-soft); color: var(--blue-deep); }
@keyframes consulta-aviso { from { opacity: 0; transform: translateY(10px); } }
/* Arriba de la barra fija de la ficha, como el WhatsApp flotante (la barra sólo se ve en ≤1024; la clase va en todos). */
@media (max-width: 1024px) { body.has-pdp-bar .consulta-aviso { bottom: 84px; } }
@media (max-width: 480px) { .consulta-aviso { left: .75rem; } }

/* ---- «Editar esta máquina» (pedido del dueño, 2026-11-27) ------------------------------------
   Sólo con la sesión del panel (public.js lo agrega después de preguntarle al panel): un botón contorno chico arriba
   del nombre y un cajón ancho con el editor del panel adentro (panel.producto.php?embed=1, un iframe). */
.pdp-editar { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; margin: .75rem 0 0; color: var(--ink-500); font-size: .88rem; }
.pdp-editar .btn svg { width: 16px; height: 16px; color: var(--blue); }
.editar .drawer-panel { display: flex; flex-direction: column; width: min(820px, 100vw); padding: 0; overflow: hidden; background: var(--steel-100); }
.editar .drawer-head { flex: none; margin: 0; padding: .35rem .5rem .35rem 1.1rem; background: var(--paper); border-bottom: 1px solid var(--steel-200); }
.editar .drawer-head h2 { margin: 0; font-size: 1.3rem; }
.editar-estado { flex: none; margin: 0; padding: .55rem 1.1rem; background: var(--green-soft); color: var(--green); border-bottom: 1px solid var(--steel-200); font-weight: 600; font-size: .94rem; line-height: 1.4; }
.editar-estado:empty { display: none; }
.editar-estado.is-error { background: var(--red-soft); color: var(--red); }
.editar iframe { flex: 1 1 auto; display: block; width: 100%; min-height: 0; border: 0; background: var(--steel-100); }
.editar iframe[hidden] { display: none; }
.editar-sin { margin: 0; padding: 1.25rem 1.1rem; background: var(--paper); line-height: 1.5; }
.editar-sin a { color: var(--blue); font-weight: 600; text-decoration: underline; }

/* ---- Cursos Gauchito (etapa 1, pedido del dueño, 2026-11-27) ----------------------------------
   Catálogo, tarjeta, ficha, reproductor con marca de agua, clase, «Mi panel» y cuentas (ver DESIGN.md › Cursos).
   Las vistas ponen body.cur-pag. Mismo mundo del catálogo: blanco y acero, el azul para la acción, verde sólo para
   «vista» (✓) y el rojo YouTube no entra (el ícono de YouTube va en blanco o en tinta). Objetivos de 44 px en todo
   lo que se toca. */
.cur-pag .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.cur-pag .page-head .crumbs { margin-top: -.6rem; }
.cur-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; }
.cur-head > div:first-child { min-width: 0; flex: 1 1 32rem; }
.cur-head-cuenta { display: flex; flex-wrap: wrap; gap: .6rem; }
.cur-head-cuenta .btn svg, .cur-caja-entrar svg { color: var(--blue); }
.cur-niveles { margin-top: 1.25rem; }
.cur-niveles a { display: inline-flex; align-items: center; min-height: 44px; }
.tag-nivel { background: var(--paper); color: var(--blue-deep); border: 1px solid var(--blue-line); }
.tag-rec { background: var(--steel-200); color: var(--ink-600); }
.tag-muestra { background: var(--blue-soft); color: var(--blue-deep); border: 1px solid var(--blue-line); height: 22px; vertical-align: .1em; }
.cur-vacio { margin: 0; padding: 2rem 1.25rem; border: 1px dashed var(--ink-300); border-radius: var(--r); text-align: center; color: var(--ink-600); }
.cur-vacio .link-arrow { display: inline-flex; align-items: center; min-height: 44px; }

/* Próximamente (sin cursos publicados) */
.cur-pronto { display: flex; gap: 1.5rem; align-items: flex-start; max-width: 880px; padding: clamp(1.25rem, 3vw, 2rem); background: #fff; border: 1px solid var(--steel-200); border-radius: var(--r); box-shadow: var(--shadow-1); }
.cur-pronto h2 { margin-bottom: .4rem; }
.cur-pronto p { color: var(--ink-600); max-width: 60ch; }
.cur-pronto-ico { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--r); background: var(--blue-soft); color: var(--blue); }
.cur-pronto-ico .icon { width: 34px; height: 34px; }
.cur-pronto-acciones { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
@media (max-width: 640px) { .cur-pronto { flex-direction: column; } .cur-pronto-acciones .btn { width: 100%; white-space: normal; } }

/* Tarjeta (.cur-card): portada 16:9 (la miniatura del video por el proxy, o el dibujo de categoría) */
.cur-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 1.25rem; }
.cur-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--steel-200); border-radius: var(--r); overflow: hidden; transition: border-color .15s, box-shadow .2s, transform .2s var(--ease); }
.cur-card:hover { border-color: var(--steel-300); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.cur-card:focus-within { border-color: var(--blue); }
.cur-card-media { position: relative; aspect-ratio: 16 / 9; background: var(--ink-900); border-bottom: 1px solid var(--steel-200); overflow: hidden; }
.cur-card-media img { width: 100%; height: 100%; object-fit: cover; }
.cur-card-media--dibujo { background: var(--steel-100); }
.cur-card-media--dibujo img { object-fit: contain; padding: 1rem 1.5rem; }
.cur-card-yt { position: absolute; right: .6rem; bottom: .6rem; display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .5rem; border-radius: 3px; background: rgba(17, 26, 44, .82); color: #fff; font: 700 .77rem/1 var(--body); letter-spacing: .04em; }
.cur-card-yt .icon { width: 16px; height: 16px; }
.cur-card-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; gap: .45rem; padding: 1rem 1.1rem 1.1rem; }
.cur-card-titulo { margin: 0; font-size: 1.38rem; line-height: 1.15; }
.cur-card-titulo a { color: var(--ink-900); }
.cur-card-titulo a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* toda la tarjeta es el enlace */
.cur-card-titulo a:focus-visible { outline: none; }
.cur-card:hover .cur-card-titulo a { color: var(--blue); }
.cur-card-resumen { margin: 0; color: var(--ink-600); font-size: .99rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cur-card-pie { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .25rem 1rem; width: 100%; margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--steel-200); }
.cur-card-meta { color: var(--ink-500); font-size: .94rem; }
.cur-card-precio { font: 700 1.32rem/1 var(--display); }
.cur-card-rec { color: var(--ink-600); font-size: .94rem; font-weight: 600; }

/* Ficha */
.cur-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .25rem 0 .5rem; }
.cur-tags:empty { display: none; }
.cur-datos { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; list-style: none; margin: 1rem 0 0; padding: 0; color: var(--ink-600); font-weight: 600; }
.cur-datos li { display: inline-flex; align-items: center; gap: .4rem; }
.cur-datos .icon { width: 20px; height: 20px; color: var(--blue); }
.cur-ficha { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); grid-template-areas: "media caja" "info caja"; gap: 2rem clamp(2rem, 4vw, 3.5rem); align-items: start; }
.cur-ficha-media { grid-area: media; min-width: 0; }
.cur-ficha-info { grid-area: info; min-width: 0; }
.cur-caja { grid-area: caja; position: sticky; top: calc(var(--hdr-h) + 1rem); display: flex; flex-direction: column; gap: .85rem; padding: 1.5rem; background: #fff; border: 1px solid var(--steel-200); border-radius: var(--r); box-shadow: var(--shadow-1); }
.cur-caja > * { margin: 0; }
.cur-precio { font: 700 2.2rem/1 var(--display); letter-spacing: -.01em; }
.cur-precio-nota, .cur-caja-nota { color: var(--ink-500); font-size: .97rem; line-height: 1.45; }
.cur-caja-aviso { padding: .85rem 1rem; background: var(--steel-100); border: 1px solid var(--steel-300); border-radius: var(--r); color: var(--ink-700); font-weight: 600; }
.cur-caja-entrar { text-align: center; color: var(--ink-600); }
.cur-caja-entrar a, .cur-cuenta-otra a { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; color: var(--blue); font-weight: 600; text-decoration: underline; text-decoration-color: var(--blue-line); text-underline-offset: .2em; }
.cur-caja-entrar .icon { width: 18px; height: 18px; }
.cur-caja-wa { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; border-top: 1px solid var(--steel-200); padding-top: .85rem; color: var(--ink-700); font-weight: 600; }
.cur-caja-wa:hover { color: var(--blue); }
.cur-caja-wa .icon { width: 18px; height: 18px; }
.cur-caja-form { margin: 0; }
.cur-portada { position: relative; aspect-ratio: 16 / 9; background: var(--ink-900); border-radius: var(--r); overflow: hidden; }
.cur-portada > img { width: 100%; height: 100%; object-fit: cover; }
.cur-portada--dibujo { background: var(--steel-100); border: 1px solid var(--steel-200); }
.cur-portada--dibujo > img { object-fit: contain; padding: 2rem 3rem; }
.cur-portada-aviso { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .9rem 1.1rem; background: rgba(17, 26, 44, .88); color: #fff; }
.cur-portada-aviso p { flex: 1 1 14rem; margin: 0; font-weight: 600; }
.cur-portada-aviso .icon { width: 22px; height: 22px; flex: none; }
.cur-desc { margin-bottom: 2rem; }
.cur-pedido { display: flex; flex-direction: column; gap: .75rem; }
.cur-pedido > * { margin: 0; }
.cur-pedido h2, .cur-pedido h3 { font-size: 1.3rem; line-height: 1.2; }
.cur-pedido h3 a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink-900); }
.cur-pedido h3 a:hover { color: var(--blue); }
.cur-pedido-monto { color: var(--ink-600); }
.cur-pedido .btn { white-space: normal; text-align: center; line-height: 1.2; padding-block: .5rem; }
.cur-datos-pago { padding: .85rem 1rem; background: var(--steel-100); border: 1px solid var(--steel-300); border-radius: var(--r); font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.cur-datos-pago a { color: var(--blue); text-decoration: underline; text-underline-offset: .2em; }
.cur-avance-txt { margin: 0 0 .4rem; color: var(--ink-600); }
.cur-avance-txt strong { color: var(--ink-900); }
.cur-barra { height: 10px; background: var(--steel-200); border-radius: 3px; overflow: hidden; }
.cur-barra > span { display: block; height: 100%; background: var(--blue); border-radius: 3px; }   /* sin transición de ancho: anima el diseño entero (revisión de diseño, 2026-11-30) */

/* Temario: cada fila es el enlace a la clase (las cerradas no enlazan y llevan candado) */
.cur-temario h2 { margin-bottom: .25rem; }
.cur-temario-sub { color: var(--ink-500); margin-bottom: 1rem; }
.cur-clases { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--steel-200); }
.cur-clase { border-bottom: 1px solid var(--steel-200); }
.cur-clase-fila { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; align-items: center; gap: .85rem; min-height: 58px; padding: .55rem .5rem; color: var(--ink-900); }
a.cur-clase-fila:hover { background: var(--steel-100); }
a.cur-clase-fila:hover .cur-clase-t { color: var(--blue); }
.cur-clase-n { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: var(--r); background: var(--steel-100); border: 1px solid var(--steel-200); color: var(--ink-600); font-weight: 700; font-size: .94rem; }
.cur-clase-t { font-weight: 600; line-height: 1.3; }
.cur-clase-info { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink-500); font-size: .94rem; white-space: nowrap; }
.cur-clase-info .icon { width: 20px; height: 20px; }
.cur-clase-play { color: var(--blue); }
.cur-clase-hecha { display: none; color: var(--green); }
.cur-clase-hecha .icon { stroke-width: 2.6; }
.is-hecha .cur-clase-hecha { display: inline-flex; }
.is-hecha .cur-clase-play { display: none; }
.is-hecha .cur-clase-n { background: var(--green-soft); border-color: var(--green-line, #bfe3cc); color: var(--green); }
.is-cerrada .cur-clase-t { color: var(--ink-600); font-weight: 500; }
.is-actual .cur-clase-fila { background: var(--blue-soft); }
.is-actual .cur-clase-n { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Reproductor (.cur-video): el contenedor es lo que va a pantalla completa, así la marca sigue encima */
.cur-video { position: relative; background: var(--ink-900); border-radius: var(--r); overflow: hidden; }
.cur-video-marco { position: relative; aspect-ratio: 16 / 9; container-type: inline-size; background: #000; }
.cur-video-marco video, .cur-video-marco iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.cur-video-marco video { object-fit: contain; }
/* ≈ 0,45: marca-agua.png ya es el logo lavado (el de thumb.php m=1); con 0,35 encima no se veía sobre el video */
.cur-marca { position: absolute; z-index: 2; display: flex; align-items: center; gap: .6rem; max-width: 64%; padding: .3rem .5rem; opacity: .45; pointer-events: none; user-select: none; -webkit-user-select: none;
    color: #fff; font: 700 14px/1.2 var(--body); text-shadow: 0 0 2px #000, 0 1px 3px #000, 0 0 8px rgba(0, 0, 0, .6); transition: opacity .6s; }
.cur-marca img { flex: none; width: 110px; height: auto; filter: brightness(0) invert(1) drop-shadow(0 0 1px #000) drop-shadow(0 1px 3px #000); }   /* el logo en blanco con sombra, como el texto: se lee sobre claro y sobre oscuro */
.cur-marca span { overflow-wrap: anywhere; }
@container (min-width: 1px) { .cur-marca { font-size: clamp(12px, 2cqw, 30px); } .cur-marca img { width: clamp(80px, 16cqw, 260px); } }
/* Reproductor angosto (celular): el logo chico arriba, el nombre y el mail en un renglón cada uno, sin cortar el mail */
@container (max-width: 480px) {
    .cur-marca { flex-direction: column; align-items: flex-start; gap: .2rem; max-width: 92%; padding: .2rem .35rem; }
    .cur-marca img { width: 56px; }
    .cur-marca-sep { display: none; }
    .cur-marca-mail { display: block; overflow-wrap: normal; }
}
.cur-marca.is-moviendo { opacity: 0; }
/* Seis lugares fijos: esquinas, centro arriba y centro; nunca en el 15 % de abajo (la barra de controles) */
.cur-marca[data-pos="0"] { top: 4%; left: 3%; }
.cur-marca[data-pos="1"] { top: 4%; right: 3%; }
.cur-marca[data-pos="2"] { top: 4%; left: 50%; transform: translateX(-50%); }
.cur-marca[data-pos="3"] { top: 46%; left: 50%; transform: translate(-50%, -50%); }
.cur-marca[data-pos="4"] { bottom: 19%; left: 3%; }
.cur-marca[data-pos="5"] { bottom: 19%; right: 3%; }
.cur-video-barra { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; min-height: 52px; padding: .2rem .5rem .2rem 1rem; }
.cur-video-error { flex: 1; margin: 0; color: #fff; font-size: .94rem; }
.cur-pantalla { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 .85rem; border: 1.5px solid rgba(255, 255, 255, .4); border-radius: var(--r); background: transparent; color: #fff; font: 600 .97rem/1 var(--body); cursor: pointer; }
.cur-pantalla:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.cur-pantalla[hidden] { display: none; }
.cur-pantalla .icon { width: 18px; height: 18px; }
.cur-video-barra :focus-visible { outline-color: #fff; }   /* sobre la barra tinta, el anillo azul no llegaba a 3:1 */
.cur-video:fullscreen { display: flex; flex-direction: column; width: 100%; height: 100%; border-radius: 0; }
.cur-video:fullscreen .cur-video-marco { flex: 1 1 auto; min-height: 0; aspect-ratio: auto; }
.cur-video:-webkit-full-screen { display: flex; flex-direction: column; width: 100%; height: 100%; border-radius: 0; }
.cur-video:-webkit-full-screen .cur-video-marco { flex: 1 1 auto; min-height: 0; aspect-ratio: auto; }
.cur-video-yt { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: .85rem 0 0; color: var(--ink-500); font-size: .94rem; }
.cur-video-yt .btn svg { color: var(--ink-900); }

/* Clase */
.cur-clase-head { padding-bottom: 1.25rem; }
.cur-clase-head h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.cur-clase-de { margin: 0; color: var(--ink-500); font-weight: 600; }
.cur-clase-sec { padding-top: clamp(1.5rem, 3vw, 2.25rem); }
.cur-aula { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 2rem clamp(1.5rem, 3vw, 3rem); align-items: start; }
.cur-aula-main { min-width: 0; }
.cur-aula-acciones { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1rem; margin: 1rem 0 1.5rem; }
.cur-avance-form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin: 0; }
.cur-avance-ok { color: var(--green); font-weight: 600; font-size: .97rem; }
.cur-aula-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-left: auto; }
.cur-muestra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; margin: 0 0 1.75rem; padding: 1rem 1.25rem; background: var(--blue-soft); border: 1px solid var(--blue-line); border-radius: var(--r); }
.cur-muestra p { margin: 0; color: var(--ink-700); }
.cur-muestra form { margin: 0; }
.cur-muestra .btn { white-space: normal; text-align: center; line-height: 1.2; }
.cur-aula-lado { position: sticky; top: calc(var(--hdr-h) + 1rem); padding: 1.1rem 1.1rem .5rem; background: #fff; border: 1px solid var(--steel-200); border-radius: var(--r); }
.cur-aula-lado h2 { font-size: 1.26rem; line-height: 1.2; margin: 0 0 .75rem; }
.cur-aula-lado h2 a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink-900); }
.cur-aula-lado h2 a:hover { color: var(--blue); }
.cur-aula-lado .cur-avance { margin-bottom: 1rem; }
.cur-clases--lado .cur-clase-fila { grid-template-columns: 2rem minmax(0, 1fr) auto; gap: .65rem; min-height: 48px; padding: .4rem .35rem; font-size: .97rem; }
.cur-clases--lado .cur-clase-n { width: 2rem; height: 2rem; font-size: .86rem; }
.cur-clases--lado .cur-clase-fila:not(a) { cursor: default; }

/* Mi panel */
.cur-panel { display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); }
.cur-panel-bloque > h2 { margin-bottom: 1rem; }
.cur-mios { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.cur-mio-btn { width: 100%; }
.cur-mio { display: grid; grid-template-columns: 160px minmax(0, 1fr) 9.5rem; align-items: center; gap: 1rem 1.25rem; padding: .85rem; background: #fff; border: 1px solid var(--steel-200); border-radius: var(--r); }
.cur-mio-img { display: block; aspect-ratio: 16 / 9; background: var(--ink-900); border-radius: 2px; overflow: hidden; }
.cur-mio-img img { width: 100%; height: 100%; object-fit: cover; }
.cur-mio-img--dibujo { background: var(--steel-100); }
.cur-mio-img--dibujo img { object-fit: contain; padding: .4rem; }
.cur-mio h3 { margin: 0 0 .15rem; font-size: 1.26rem; }
.cur-mio h3 a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink-900); }
.cur-mio h3 a:hover { color: var(--blue); }
.cur-pedidos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1rem; margin-bottom: 1rem; }
.cur-pedidos .cur-pedido { padding: 1.1rem 1.25rem; background: #fff; border: 1px solid var(--steel-200); border-radius: var(--r); }
.cur-pedidos .cur-pedido .btn { align-self: flex-start; }
.cur-datos-pago-caja { max-width: 760px; padding: 1.1rem 1.25rem; background: #fff; border: 1px solid var(--steel-200); border-radius: var(--r); }
.cur-datos-pago-caja h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.cur-datos-pago-caja .cur-caja-nota { margin: .75rem 0 0; }
.cur-datos-form { max-width: 760px; }
.cur-mail-fijo { display: flex; align-items: center; min-height: 46px; margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.cur-ayuda { display: block; color: var(--ink-500); font-size: .9rem; margin: 0; }
.cur-ayuda a { color: var(--blue); font-weight: 600; text-decoration: underline; text-decoration-color: var(--blue-line); text-underline-offset: .2em; }
.cur-check { display: flex; align-items: flex-start; gap: .65rem; min-height: 44px; padding: .55rem 0; margin-bottom: .5rem; cursor: pointer; line-height: 1.4; }
.cur-check input { flex: none; width: 22px; height: 22px; margin: .05rem 0 0; accent-color: var(--blue); cursor: pointer; }
.cur-check a { color: var(--blue); text-decoration: underline; text-underline-offset: .2em; }
.cur-check + .field-error { margin: -.4rem 0 .75rem 2.1rem; }
/* 2026-12-02 («Sí, agregá la casilla de aceptación ...»): la casilla de las condiciones es el destino del foco del error;
   input:focus le saca el outline y su halo casi no se ve sobre blanco. Con error, contorno rojo aunque no haya :focus-visible. */
.cur-check input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.cur-check input[aria-invalid="true"] { outline: 2px solid var(--red); outline-offset: 2px; }
.cur-panel-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: .25rem 0 0; }
.cur-panel-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-weight: 600; font-size: .97rem; text-decoration: underline; text-decoration-color: var(--blue-line); text-underline-offset: .2em; }
.cur-salir form { margin: 0; }

/* Cuentas: entrar, registro y código */
.cur-cuenta-sec { background: var(--steel-100); border-bottom: 1px solid var(--steel-200); }
.cur-cuenta { max-width: 600px; }
.cur-cuenta .form-panel .crumbs { margin: -.75rem 0 .25rem; }
.cur-cuenta h1 { font-size: clamp(2rem, 3.6vw, 2.6rem); margin: 0 0 .5rem; }
.cur-cuenta-bajada { color: var(--ink-600); margin-bottom: 1.5rem; }
.cur-cuenta .btn-block { white-space: normal; }
.cur-cuenta-otra { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--steel-200); color: var(--ink-600); text-align: center; }
.cur-codigo-otro { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1.25rem; }
.cur-codigo-otro form { margin: 0; }
.cur-codigo { font: 700 2rem/1 var(--display); letter-spacing: .35em; text-align: center; padding-left: 1.2rem; font-variant-numeric: tabular-nums; }
.cur-codigo::placeholder { color: var(--ink-300); }
.cur-legal { max-width: 72ch; }
.cur-legal h2 { font-size: 1.5rem; margin-top: 1.75rem; }
.cur-legal h2:first-child { margin-top: 0; }
.cur-legal-ley { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--steel-200); font-size: .97rem; color: var(--ink-500); }
.cur-legal-ley + .cur-legal-ley { margin-top: .5rem; padding-top: 0; border-top: 0; }

/* Menú: «Cursos» en la fila del encabezado sólo donde entra. Medido de 1025 a 1920 (2026-11-27): la fila ya iba justa y
   con «Cursos» el chevron de «Máquinas» se achicaba a 0 y el logo y el buscador cedían en todo ancho, salvo desde 1360
   SIN «Mi carrito» (la fila es de 1280 px como máximo). Ahí va en la fila; en el resto de la PC, en la barra de arriba
   (.hdr-util-curso). Sin :has(), queda en la barra de arriba. En el celular, en el menú lateral. */
.nav-cursos { display: none; }
@media (min-width: 1360px) {
    .hdr:not(:has(.hdr-consulta:not([hidden]))) .nav-cursos { display: block; }
    .hdr:not(:has(.hdr-consulta:not([hidden]))) .hdr-util-curso { display: none; }
}
@media (max-width: 1024px) { .hdr-util-curso { display: none !important; } }
.hdr-util-curso, .hdr-util-cursos { font-weight: 600; }
.demo-cursos .icon { display: inline-block; width: 20px; height: 20px; margin-right: .2rem; vertical-align: -.25em; color: var(--blue); }
.demo-cursos a { color: var(--blue); }

@media (max-width: 1024px) {
    .cur-ficha { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "caja" "info"; }
    .cur-caja { position: static; }
    .cur-aula { grid-template-columns: minmax(0, 1fr); }
    .cur-aula-lado { position: static; }
}
@media (max-width: 640px) {
    .cur-mio { grid-template-columns: 96px minmax(0, 1fr); }
    .cur-mio-btn { grid-column: 1 / -1; }
    .cur-head-cuenta, .cur-head-cuenta .btn { width: 100%; }
    .cur-head-cuenta .btn { flex: 1 1 auto; }
    .cur-aula-nav { margin-left: 0; width: 100%; }
    .cur-aula-nav .btn { flex: 1 1 auto; }
    .cur-avance-form, .cur-avance-form .btn { width: 100%; }
    .cur-pantalla span { display: none; }
    .cur-pantalla { width: 44px; justify-content: center; padding: 0; order: -1; }   /* a la izquierda: a la derecha lo tapa el WhatsApp flotante */
    .cur-aula-acciones { padding-right: 68px; }   /* «Siguiente» no queda debajo del WhatsApp flotante */
    .cur-portada-aviso { position: static; background: var(--navy); }
    .cur-portada:has(.cur-portada-aviso) { aspect-ratio: auto; }
    .cur-portada:has(.cur-portada-aviso) > img { aspect-ratio: 16 / 9; height: auto; }
    .cur-niveles { display: flex; width: 100%; }
    .cur-niveles a { flex: 1; justify-content: center; padding-inline: .35rem; }
    .cur-clase-fila { grid-template-columns: 2rem minmax(0, 1fr) auto; gap: .6rem; padding-inline: .25rem; }
    .cur-clase-n { width: 2rem; height: 2rem; }
}

/* ---- Cursos: cupones (etapa 2, pedido del dueño, 2026-11-30: «CUPON POR PORCENTAJE HASTA 100 % GRATIS,Y VENCIMIENTO DEL
   CUPON»). Precio tachado como .pb-antes (ink-500, 1 px); la chapita del descuento en azul, NO en el amarillo de las
   ofertas de máquinas (DESIGN.md). Botones y «¿Tenés un cupón?» de 44 px. ---------------------------------------------- */
.cur-precio-antes { margin-right: .3rem; color: var(--ink-500); font-size: .62em; font-weight: 600; text-decoration-thickness: 1px; white-space: nowrap; }
.cur-cupon-gratis { font-size: .72em; color: var(--blue-deep); }
.cur-cupon-pct { display: inline-block; vertical-align: .3em; padding: .3rem .5rem; border-radius: 3px; background: var(--blue-soft); color: var(--blue-deep); font: 700 .95rem/1 var(--body); white-space: nowrap; }
.cur-cupon-caja { display: flex; flex-direction: column; gap: .5rem; }
.cur-cupon-caja > * { margin: 0; }
.cur-cupon-leyenda, .cur-cupon-pedido { margin: 0; color: var(--ink-700); font-size: .97rem; line-height: 1.45; }
.cur-cupon-pedido strong, .cur-cupon-nw { white-space: nowrap; }   /* «$ 15.000» no se parte en el celular */
.cur-cupon-caja .cur-caja-aviso a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: .2em; }
.cur-cupon-quitar button { min-height: 44px; padding: 0; border: 0; background: none; color: var(--blue); font: 600 .97rem var(--body); text-decoration: underline; text-decoration-color: var(--blue-line); text-underline-offset: .2em; cursor: pointer; }
.cur-cupon-quitar button:hover, .cur-cupon summary:hover { color: var(--blue-deep); }
.cur-cupon summary { display: list-item; padding: .65rem 0; color: var(--blue); font-weight: 600; line-height: 1.5; cursor: pointer; }
.cur-cupon-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; margin: .35rem 0 0; }
.cur-cupon-form label { grid-column: 1 / -1; color: var(--ink-700); font-weight: 600; font-size: .94rem; }
.cur-cupon-form input { text-transform: uppercase; letter-spacing: .04em; }
.cur-cupon-form .field-error { grid-column: 1 / -1; order: 1; }   /* el error, debajo del campo y del botón */
.cur-cupon-banner { margin: 0 0 1.5rem; padding: .85rem 1.1rem; background: var(--blue-soft); border: 1px solid var(--blue-line); border-radius: var(--r); color: var(--ink-900); line-height: 1.45; overflow-wrap: anywhere; }
.cur-cupon-banner a { color: var(--blue-deep); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
