/* Zona Tech v3 */
:root {
    --bg: #f2f3f5;
    --surface: #ffffff;
    --surface-2: #f4f5f7;
    --ink: #15171b;
    --muted: #646b76;
    --line: #e3e5e9;
    --dark: #16181c;
    --dark-2: #24272d;
    --green: #7ac132;
    --green-ink: #476f14;
    --green-soft: #eef7e2;
    --gold: #f3ffb3;
    --notice-bg: #f8ffe4;
    --notice-ink: #4b5200;
    --wrap: 1180px;
    --gutter: 16px;
    --radius: 14px;
    --shadow: 0 10px 24px rgba(15, 20, 30, .08);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f1114;
        --surface: #181b20;
        --surface-2: #20242a;
        --ink: #eceef1;
        --muted: #9aa1ab;
        --line: #2a2e35;
        --green-ink: #a3dd63;
        --green-soft: #1f2a14;
        --notice-bg: #242a12;
        --notice-ink: #e5f3a8;
        --shadow: 0 10px 24px rgba(0, 0, 0, .4);
        color-scheme: dark;
    }
}

/* ---------- Tipografia ----------
   Cocomat Pro es de licencia paga (Zetafonts): no se puede bajar sola. Si los
   archivos estan en fonts/, el sitio la usa; si no, cae en Poppins, que es la
   mas parecida y es libre. Para activarla, copiar en public_html/fonts/:
     CocomatPro-Light.woff2  CocomatPro-Regular.woff2
     CocomatPro-SemiBold.woff2  CocomatPro-Bold.woff2
   (si solo tenes .otf o .ttf, convertilos a .woff2 antes: pesan la mitad).
   El bloque de abajo esta comentado a proposito: mientras los archivos no
   existan, el navegador los pediria igual y se comeria cuatro 404 en cada
   visita. Al copiarlos, se descomenta y listo. */
/* >>> Al copiar los archivos, borrar esta linea y la de abajo para activarlos.
@font-face { font-family: "Cocomat Pro"; src: url("fonts/CocomatPro-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Cocomat Pro"; src: url("fonts/CocomatPro-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cocomat Pro"; src: url("fonts/CocomatPro-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cocomat Pro"; src: url("fonts/CocomatPro-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
<<< hasta aca */

:root { --font: "Cocomat Pro", "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, select, input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.header { background: var(--dark); position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 14px rgba(0,0,0,.3); }
.header::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(60% 120% at 18% 120%, rgba(122, 193, 50, .16), transparent 60%), radial-gradient(45% 100% at 78% -10%, rgba(243, 255, 179, .10), transparent 60%); }
.header-inner, .category-wrap { position: relative; z-index: 1; }
.header-inner { max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 16px; }
/* El estado del local llega con los datos de la Sheet. Sin la altura reservada,
   al aparecer empuja 19px toda la pagina: es el grueso del layout shift. */
.brandbar { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; flex: 0 0 auto; }
/* Solo donde el estado existe: las paginas legales no lo tienen y no deben reservar. */
.brandbar:has(.open-status) { min-height: 71px; }
.logo-link { display: block; line-height: 0; }
.logo { height: 52px; width: auto; }
.open-status { font-size: .72rem; font-weight: 600; color: #ffb4b4; white-space: nowrap; }
.open-status::before { content: "●"; margin-right: 4px; }
.open-status.is-open { color: var(--green); }

/* Redes y contacto al lado del logo. */
.header-social { display: flex; gap: 8px; flex: 0 0 auto; }
.social-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #3a3d44; color: #cfd3d9; transition: color .15s, border-color .15s, background .15s; }
.social-icon:hover { color: var(--gold); border-color: var(--gold); background: rgba(255, 255, 255, .06); }
.social-icon:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.search-wrapper { position: relative; flex: 1; max-width: 640px; margin-left: auto; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #7b818b; pointer-events: none; }
#search-box { width: 100%; height: 46px; padding: 0 44px; border-radius: 999px; border: 2px solid transparent; font-size: 16px; background: #fff; color: #15171b; outline: none; -webkit-appearance: none; appearance: none; }
#search-box::-webkit-search-cancel-button { display: none; }
#search-box:focus { border-color: var(--green); }
.clear-button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; font-size: 24px; color: #7b818b; cursor: pointer; }
.clear-button:hover { background: #eef0f2; }

.category-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: flex-start; }
.chip.home-chip { border-radius: 6px; margin: 2px 0 12px; position: relative; z-index: 2; box-shadow: 8px 0 10px -6px rgba(0, 0, 0, .6); }
.bar-scroll { position: relative; flex: 1; min-width: 0; }
/* Los chips de info tambien los pone el JS: el alto de un chip queda reservado. */
.category-bar { min-height: 52px; display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px 8px; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; user-select: none; }
.category-bar.dragging { cursor: grabbing; }
.category-bar.dragging .chip { pointer-events: none; }
.bar-arrow { display: none; position: absolute; top: 0; bottom: 10px; width: 56px; border: 0; color: #fff; font-size: 28px; cursor: pointer; z-index: 1; }
.bar-arrow.prev { left: 0; background: linear-gradient(90deg, var(--dark) 45%, transparent); text-align: left; padding-left: 10px; }
.bar-arrow.next { right: 0; background: linear-gradient(270deg, var(--dark) 45%, transparent); text-align: right; padding-right: 10px; }
@media (hover: hover) and (pointer: fine) {
    .category-wrap.can-prev .prev, .category-wrap.can-next .next { display: block; }
}
.category-bar::-webkit-scrollbar { display: none; }
/* Vidrio: el chip deja pasar el fondo desenfocado, con un filo de luz arriba
   y una sombra corta abajo. El header tiene un resplandor tenue detras para
   que el desenfoque tenga algo que mezclar. */
.chip { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 999px; background: rgba(255, 255, 255, .07); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 2px 6px rgba(0, 0, 0, .28); color: #e9ebee; font-size: 14px; cursor: pointer; white-space: nowrap; transition: border-color .18s, background .18s, box-shadow .18s; }
/* El brillo de la mitad de arriba, que es lo que lo hace leer como vidrio. */
.chip::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .02) 48%, rgba(0, 0, 0, .06)); pointer-events: none; }
.chip:hover { border-color: rgba(122, 193, 50, .55); background: rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 4px 12px rgba(0, 0, 0, .34); }
/* Sin backdrop-filter (navegadores viejos) vuelve al chip solido de antes. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .chip { background: var(--dark-2); border-color: #353941; }
}
.chip[aria-pressed="true"] { background: var(--green); border-color: rgba(255, 255, 255, .35); color: #04210d; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 10px rgba(122, 193, 50, .35); }

/* ---------- Contenido ---------- */
.container { max-width: var(--wrap); margin: 0 auto; padding: 16px var(--gutter); }
/* El dolar y la fecha los pone el JS: una linea de pill reservada. */
.meta { min-height: 31px; display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.pill-dark { background: var(--dark); border-color: var(--dark); color: var(--gold); }
.notice { margin: 26px 0 0; background: var(--notice-bg); border-radius: 10px; padding: 10px 14px; font-size: 13px; color: var(--notice-ink); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 6px; }
/* Sin banda, el h1 queda sobre el h2 de la primera cinta: necesita aire propio. */
.toolbar:not(.view-hero) { margin-bottom: 24px; }
.view-title { font-size: 1.9rem; margin: 0; line-height: 1.2; display: flex; align-items: center; gap: 10px; }
.view-img, .view-kicker, .view-sub { display: none; }
.view-text { min-width: 0; }
/* Banda de titulo de las vistas (categoria, marca, busqueda, paginas legales).
   Oscura como el header, filete dorado como el pie, y la imagen de la categoria
   fundida a la derecha como en las cards del inicio. */
.view-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 112px; padding: 18px 20px; border-radius: 16px; border-left: 4px solid var(--gold); background: var(--dark); color: #fff; box-shadow: var(--shadow); }
.toolbar.view-hero { margin-bottom: 14px; overflow: visible; z-index: 10; }
.toolbar.view-hero .view-img { border-radius: 0 16px 16px 0; }
.view-hero .view-img { position: absolute; z-index: -1; top: 0; right: 0; display: block; width: 58%; height: 100%; object-fit: cover; object-position: center 40%; -webkit-mask-image: linear-gradient(to right, transparent, #000 75%); mask-image: linear-gradient(to right, transparent, #000 75%); }
.view-hero .view-kicker, .view-hero .view-sub { display: block; }
.view-hero .view-kicker { margin: 0 0 4px; color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.view-hero .view-title { font-size: 1.9rem; overflow-wrap: anywhere; text-shadow: 0 1px 4px rgba(0, 0, 0, .55); }
.view-hero .view-sub { margin: 4px 0 0; color: #cfd3d9; font-size: .88rem; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.view-hero .sort-btn { background: rgba(22, 24, 28, .82); border-color: #4a4e56; color: #fff; }
.view-hero .sort-ico, .view-hero .sort-caret { color: #b9bec6; }
.view-hero .sort-menu { border-color: #363a42; background: #1b1e23; }
.view-hero .sort-option { color: #e9ebee; }
.view-hero .sort-option:hover, .view-hero .sort-option:focus-visible { background: #272b32; }
.view-hero .sort-option[aria-selected="true"] { background: rgba(207, 169, 79, .18); }
.brand-media.view-logo { flex: 0 0 auto; width: 66px; border: 1px solid var(--line); border-radius: 8px; }
.view-logo .brand-wordmark { display: none; }
.dialog-body .brands { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 0; }
/* Orden: boton y lista propios (el popup nativo del select no se disena). */
.sort { position: relative; flex: 0 0 auto; }
.sort-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: .9rem; font-weight: 600; cursor: pointer; box-shadow: 0 1px 2px rgba(15, 20, 30, .06); transition: border-color .15s, box-shadow .15s, background .15s; }
.sort-btn:hover { border-color: #cfa94f; box-shadow: 0 1px 2px rgba(15, 20, 30, .06), 0 0 0 3px rgba(207, 169, 79, .18); }
.sort-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.sort-btn[aria-expanded="true"] { border-color: #cfa94f; box-shadow: 0 0 0 3px rgba(207, 169, 79, .22); }
.sort-ico { flex: 0 0 auto; width: 16px; height: 16px; color: var(--muted); }
.sort-value { white-space: nowrap; }
.sort-caret { flex: 0 0 auto; width: 16px; height: 16px; color: var(--muted); transition: transform .2s; }
.sort-btn[aria-expanded="true"] .sort-caret { transform: rotate(180deg); }

.sort-menu { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; min-width: 100%; width: max-content; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 1px 2px rgba(15, 20, 30, .10), 0 18px 40px rgba(15, 20, 30, .18); animation: sort-in .16s cubic-bezier(.2, .7, .3, 1); }
.sort-menu[hidden] { display: none; }
@keyframes sort-in { from { opacity: 0; transform: translateY(-6px) scale(.985); } }
.sort-option { display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 10px; border-radius: 10px; color: var(--ink); font-size: .9rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .13s, color .13s; }
/* El tilde ocupa su lugar siempre, asi el texto no salta al elegir. */
.sort-option::before { content: "✓"; flex: 0 0 auto; width: 14px; font-size: .85rem; color: #cfa94f; opacity: 0; }
.sort-option[aria-selected="true"]::before { opacity: 1; }
.sort-option:hover, .sort-option:focus-visible { outline: none; background: var(--surface-2); }
.sort-option[aria-selected="true"] { background: rgba(207, 169, 79, .14); }
.sort-option:focus-visible { box-shadow: inset 0 0 0 2px rgba(207, 169, 79, .55); }
@media (prefers-reduced-motion: reduce) { .sort-menu { animation: none; } .sort-caret { transition: none; } }
.status { margin-top: 14px; padding: 40px 20px; border: 1px dashed var(--line); border-radius: 16px; background: var(--surface); color: var(--muted); text-align: center; }
.status:empty { display: none; }

.category { margin-top: 22px; }
/* Marcas de una categoría: mosaico de logos y, con una marca elegida, tira compacta */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 10px; }
.brand { display: flex; flex-direction: column; min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.brand:hover:not(:disabled) { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-3px); }
.brand:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.brand:disabled { cursor: default; }
.brand[aria-pressed="true"] { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
/* Fondo blanco fijo: los logos suelen ser oscuros y deben verse también en modo oscuro. */
.brand-media { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; background: #fff; overflow: hidden; }
.brand-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand > .brand-media { flex: 1 1 auto; }
.brand-name { padding: 0 8px 10px; color: #15171b; font-size: .82rem; font-weight: 700; letter-spacing: .04em; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.dialog-body .brand-name { padding: 0 6px 8px; font-size: .72rem; }
.brand-wordmark { padding: 8px; color: #15171b; font-size: 1.05rem; font-weight: 800; letter-spacing: .04em; text-align: center; overflow-wrap: anywhere; }
.brands.compact { display: flex; flex-wrap: wrap; gap: 8px; }
.brands.compact + .grid { margin-top: 14px; }
.brands.compact .brand { flex: 0 0 auto; width: 84px; border-radius: 10px; }
.brands.compact .brand:hover:not(:disabled) { transform: none; }
.brands.compact .brand-wordmark { padding: 4px; font-size: .68rem; }
.brands.compact .brand-name { padding: 0 4px 5px; font-size: .68rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.section-title { margin: 0; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
/* Rotulo de la seccion: pill a la izquierda, filete al medio y la cuenta al final. */
.section-head { align-items: center; }
.section-pill { display: inline-block; padding: 5px 13px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.section-line { flex: 1; height: 1px; min-width: 12px; background: var(--line); }

/* Productos por categoría: el título queda fijo mientras se recorre la categoría y el siguiente lo reemplaza. */
#catalog > .category { margin-top: 30px; }
.category > .section-head { position: sticky; top: var(--header-h, 0); z-index: 4; padding: 8px 2px 9px; background: var(--bg); box-shadow: 0 6px 10px -6px rgba(15, 20, 30, .18); }
.category > .section-head .section-pill { background: var(--surface); }
.section-count { flex: 0 0 auto; font-size: .76rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Visor de fotos ---------- */
.photo-dialog { width: min(820px, calc(100% - 24px)); padding: 0; border: 0; border-radius: 18px; background: transparent; overflow: visible; }
.photo-dialog::backdrop { background: rgba(8, 10, 14, .82); }
.photo-stage { position: relative; display: flex; align-items: center; justify-content: center; border-radius: 18px; background: var(--surface); box-shadow: 0 20px 60px rgba(0, 0, 0, .45); overflow: hidden; }
.photo-big { display: block; width: 100%; max-height: min(78vh, 760px); object-fit: contain; background: var(--surface); }
.photo-nav, .photo-close { position: absolute; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; background: rgba(16, 18, 22, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.photo-nav { top: 50%; width: 44px; height: 44px; margin-top: -22px; font-size: 28px; line-height: 1; }
.photo-nav.prev { left: 10px; }
.photo-nav.next { right: 10px; }
.photo-close { top: 10px; right: 10px; width: 36px; height: 36px; font-size: 22px; line-height: 1; }
.photo-nav:hover, .photo-close:hover { background: rgba(16, 18, 22, .85); border-color: #cfa94f; }
.photo-nav:active, .photo-close:active { transform: scale(.94); }
.photo-nav:focus-visible, .photo-close:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.photo-nav[hidden] { display: none; }
.photo-caption { margin: 10px 0 0; color: #e7e9ec; font-size: .82rem; text-align: center; }
.photo-caption:empty { display: none; }
@media (max-width: 520px) { .photo-nav { width: 38px; height: 38px; margin-top: -19px; font-size: 24px; } }

/* Lo que coincide con la busqueda, marcado en el nombre. */
mark.hit { background: var(--green-soft); color: inherit; padding: 0 2px; border-radius: 3px; box-shadow: inset 0 -2px 0 rgba(122, 193, 50, .35); }

/* ---------- Tarjetas ---------- */
/* Fotos del producto: la primera grande y hasta dos mas apiladas al lado, con
   4px de aire entre ellas. Las tres quedan cuadradas porque la grande toma dos
   tercios del ancho y dos filas. Con una o dos fotos la grilla se acomoda sola. */
.shots { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 4px; margin: -4px -4px 4px; aspect-ratio: 3 / 2; min-height: 0; }
.shots[data-count="1"] { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.shots[data-count="2"] { grid-template-rows: minmax(0, 1fr); }
.shots .shot { position: relative; min-width: 0; min-height: 0; overflow: hidden; padding: 0; border: 0; border-radius: 8px; background: #fff; cursor: pointer; }
.shots .shot:first-child { cursor: zoom-in; }
.shots .shot:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
/* La chica avisa que se puede cambiar de lugar. */
.shots .shot:not(:first-child):hover img { transform: scale(1.06); }
.shots .shot:first-child { grid-row: span 2; }
.shots[data-count="2"] .shot:first-child, .shots[data-count="1"] .shot:first-child { grid-row: auto; }
.shots img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .45s cubic-bezier(.2, .7, .3, 1); }
.card:hover .shots .shot:first-child img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .shots img { transition: none; } .card:hover .shots .shot:first-child img { transform: none; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-head { display: flex; align-items: flex-start; gap: 10px; }
.card-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.card-kicker { font-size: .7rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.card-name { margin: 0; font-size: .95rem; font-weight: 600; line-height: 1.3; }
.consult { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--line); transition: background .15s, transform .15s; }
.consult:hover { background: var(--green-soft); transform: scale(1.08); }
.card-usd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.usd { background: var(--dark); color: var(--green); font-size: .82rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.cupo { font-size: .72rem; font-weight: 600; color: var(--green-ink); }
.cupo-res { color: var(--muted); }

.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.price { border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.price.cash { background: var(--green-soft); }
.price.inst { background: var(--surface-2); }
.price-label { font-size: .68rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); line-height: 1.25; }
.price.cash .price-label { color: var(--muted); }
.price-value { font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.price.cash .price-value { color: var(--green-ink); }


.card .price { border-radius: 0; }
.card .plans { border-radius: 0; }
.card .usd { border-radius: 0; }
/* Las marcas que hacen de filtro adentro de una categoria. Las del inicio
   viven en .board y no se tocan. */
.brands .brand, .brands.compact .brand { border-radius: 0; }
/* Menos aire entre cards: la grilla se lee como un bloque. */
.grid { gap: 6px; }

/* Cuotas por banco */
.card { position: relative; }
.card.plans-open { z-index: 5; }
.price.has-plans { font: inherit; text-align: left; border: 1px solid transparent; cursor: pointer; color: inherit; }
.price.has-plans:hover, .card.plans-open .price.has-plans { border-color: var(--green); }
.plans-hint { font-size: .68rem; font-weight: 600; color: var(--green-ink); margin-top: 2px; }
.card.plans-open .plans-hint { visibility: hidden; }
.plans { display: none; position: absolute; left: -1px; right: -1px; top: calc(100% - 8px); z-index: 6;
    background: var(--surface); border: 1px solid var(--green); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0,0,0,.18);
    padding: 12px 14px; flex-direction: column; gap: 2px; }
.plans::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* puente para el hover */
.card.plans-open .plans { display: flex; }
@media (max-width: 700px), (hover: none) {
    .plans { position: static; box-shadow: none; }
    .plans::before { display: none; }
}
.plans-title { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.plan { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; }
.plan + .plan { border-top: 1px solid var(--line); }
.plan-left { display: flex; flex-direction: column; min-width: 0; }
.plan-name { font-size: .86rem; font-weight: 600; }
.plan-extra { font-size: .7rem; color: var(--muted); }
.plan.has-off .plan-extra { color: #8a6d00; }
.plan-right { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.plan-n { font-size: .8rem; color: var(--muted); }
.plan-cuota { font-size: 1rem; font-variant-numeric: tabular-nums; }
.plans-note { font-size: .66rem; color: var(--muted); margin-top: 6px; line-height: 1.3; }
@media (prefers-color-scheme: dark) { .plan.has-off .plan-extra { color: var(--gold); } }

.tile.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; box-shadow: none; }
.skeleton { min-height: 96px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Información ---------- */
/* Botones de información en la barra del header */
.chip.info-chip { border-left: 3px solid var(--gold); border-radius: 6px; color: #edf3d6; }
.chip.info-chip:hover { border-color: rgba(243, 255, 179, .5); border-left-color: var(--gold); }
/* Categorias y Marcas viven en la misma barra que los chips de info:
   misma caja y mismo filete, en verde porque llevan a navegar y no a
   leer un dato de la tienda. */
.chip.cats-chip { border-left: 3px solid var(--green); border-radius: 6px; color: #e2f0da; }
.chip.cats-chip:hover { border-color: rgba(122, 193, 50, .55); border-left-color: var(--green); }
.chip.cats-chip .chip-ico { font-size: 15px; }
.info-chip-icon { font-size: 15px; }

.info-dialog { width: min(640px, calc(100% - 32px)); max-height: min(80vh, 640px); padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--bg); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.info-dialog[open] { display: flex; flex-direction: column; }
.info-dialog::backdrop { background: rgba(10, 12, 15, .6); }
/* Cabecera oscura con filete dorado: el mismo par que el pie de la pagina. */
.dialog-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 2px solid var(--gold); background: var(--dark); color: #fff; }
.dialog-head h2 { margin: 0; font-size: 1.05rem; }
.dialog-close { width: 36px; height: 36px; border: 1px solid #3a3d44; border-radius: 50%; background: transparent; color: #cfd3d9; font-size: 22px; line-height: 1; cursor: pointer; flex: 0 0 auto; transition: color .15s, border-color .15s, background .15s; }
.dialog-close:hover { color: var(--gold); border-color: var(--gold); background: rgba(255, 255, 255, .06); }
.dialog-close:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.dialog-body { padding: 4px 16px 16px; overflow-y: auto; }
/* Lista de categorías (ventana) */
.cat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.cat-item { display: flex; flex-direction: column; min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.cat-item:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-item:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.cat-item[aria-current="true"] { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.cat-thumb { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); font-size: 2rem; }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s cubic-bezier(.2, .7, .3, 1); }
.cat-item:hover .cat-thumb img { transform: scale(1.04); }
.cat-name { padding: 7px 6px 9px; color: var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .04em; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .cat-item:hover { transform: none; } .cat-item:hover .cat-thumb img { transform: none; } }

.info-img { display: block; width: 100%; height: auto; border-radius: 12px; }
.dialog-body { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.info-p { margin: 0; white-space: pre-line; font-size: .94rem; color: var(--ink); }
.info-sub { margin: 4px 0 -4px; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.info-note { flex: 0 0 auto; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; background: var(--surface); }
.info-note-title { margin: 0 0 3px; font-size: .92rem; line-height: 1.3; }
.info-note-text { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.location-map { display: grid; gap: 10px; }
.location-links { display: flex; flex-wrap: wrap; gap: 8px; }
.location-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: .9rem; font-weight: 600; }
.location-links a:first-child { background: var(--dark); color: var(--gold); }
.location-map iframe { display: block; width: 100%; height: 240px; border: 1px solid var(--line); }

.kv { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.kv-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 14px; font-size: .93rem; }
.kv-row + .kv-row { border-top: 1px solid var(--line); }
.kv-key { color: var(--muted); }
.kv-val { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.kv-row.is-today { background: var(--green-soft); }
.kv-row.is-today .kv-key { color: var(--green-ink); font-weight: 700; }
.kv-row.is-today .kv-key::after { content: " · hoy"; font-weight: 600; }

.highlight { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--dark); color: #e9ebee; font-size: .88rem; line-height: 1.35; }
.highlight-big { font-size: 1.6rem; line-height: 1; color: var(--green); white-space: nowrap; }

.promos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.promo { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.promo.has-img { overflow: hidden; }
.promo.has-img::before {
    content: "";
    flex: none;
    aspect-ratio: 3 / 2;
    margin: -12px -14px 6px;
    background: var(--promo-img) center / contain no-repeat;
}
.promo-name { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.promo-big { font-size: 1.05rem; }
.promo-big strong { font-size: 1.5rem; margin-right: 2px; }
.promo-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.tag-green { background: var(--green-soft); border-color: transparent; color: var(--green-ink); }
.tag-gold { background: var(--gold); border-color: transparent; color: #3b4500; }
.promo-tags .tag { padding: 4px 8px; border-radius: 0; font-size: .75rem; font-weight: 700; background: var(--surface-2); color: var(--ink); }
.promo-tags .tag-green { background: var(--green); color: var(--dark); }
.promo-tags .tag-gold { background: var(--gold); color: var(--dark); }

/* ---------- Carrusel de banners (inicio) ---------- */
/* Las imágenes se sirven desde img/banners/. Medida recomendada: 1200x480 (2.5:1),
   la misma proporción en celular y escritorio, así lo que diseñás es lo que se ve. */
/* Los banners llegan con los datos. Vacio reserva su hueco con el fondo gris,
   igual que los skeletons del catalogo; si no hay, el JS lo esconde y colapsa. */
.banners:empty { aspect-ratio: 2.5 / 1; }
.banners { position: relative; margin-bottom: 14px; border-radius: 16px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.banner-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.banner-track::-webkit-scrollbar { display: none; }
.banner-img { flex: 0 0 100%; width: 100%; aspect-ratio: 2.5 / 1; object-fit: cover; display: block; scroll-snap-align: start; }
/* Banner que lleva a algun lado: el <a> toma el lugar de la imagen en la tira. */
.banner-link { flex: 0 0 100%; display: block; scroll-snap-align: start; }
.banner-link .banner-img { flex: none; scroll-snap-align: none; }
.banner-link:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(12, 14, 18, .5); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; opacity: .6; transition: opacity .2s, background .2s; }
.banner-arrow.prev { left: 10px; }
.banner-arrow.next { right: 10px; }
.banner-arrow:hover { opacity: 1; background: rgba(12, 14, 18, .8); }
.banner-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.banner-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 1px 3px rgba(0, 0, 0, .5); cursor: pointer; transition: width .2s, background .2s; }
.banner-dot.is-on { width: 22px; border-radius: 999px; background: var(--green); }

/* Cinta de promos del inicio: mas ancha y mas baja que el carrusel de arriba. */
.promo-strip { margin: 18px 0 6px; }
.promo-strip .banner-img { aspect-ratio: 6 / 1; }
/* Con version de celular la diapositiva es un <picture>, que ocupa el lugar que
   tenia la imagen dentro del riel. */
.banner-pic { flex: 0 0 100%; display: block; scroll-snap-align: start; }
.banner-pic .banner-img, .banner-link .banner-pic { flex: none; scroll-snap-align: none; }
.promo-strip .banner-arrow { width: 32px; height: 32px; font-size: 20px; }
.promo-strip .banner-dots { bottom: 7px; }
.promo-strip .banner-dot { width: 7px; height: 7px; }
.promo-strip .banner-dot.is-on { width: 18px; }
@media (max-width: 760px) { .promo-strip .banner-img { aspect-ratio: 3 / 1; } }

/* ---------- Categorías (inicio) ---------- */
/* Cintas del inicio */
.ribbon { position: relative; }
.ribbon-title { font-size: 1.5rem; line-height: 1.2; margin: 14px 0 6px; }
.ribbon-track { --gap: 12px; display: flex; gap: var(--gap); overflow-x: auto; padding: 6px 2px 14px; scrollbar-width: none; overscroll-behavior-x: contain; }
.ribbon-track::-webkit-scrollbar { display: none; }
/* Entran 3 por fila; categorías y marcas tienen el mismo tamaño. */
.ribbon-track > * { flex: 0 0 calc((100% - 2 * var(--gap)) / 3); }
.ribbon-track .tile, .ribbon-track .brand { aspect-ratio: 1; }
.ribbon-track .brand-media { position: relative; aspect-ratio: auto; min-height: 0; }
.ribbon-track .brand-media img { position: absolute; inset: 0; }
.ribbon-arrow { display: none; }

/* Tableros del inicio: una card bien grande y el resto al costado, en dos filas
   que se corren. Categorias va espejado (grande a la derecha) y marcas normal. */
.board { --board-gap: 12px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--board-gap); margin-bottom: 14px; }
.board-mirror { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
/* Cuadrada, tanto si es una categoria como si es una marca (.tile trae su
   propia proporcion y hay que pisarla). */
.board-hero, .board-hero.tile { aspect-ratio: 1; }
.board-rest-wrap { min-width: 0; }
/* La tira va absoluta para que el alto lo mande la card grande y las dos
   columnas terminen parejas. */
.board-rest { position: absolute; inset: 0; display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, minmax(0, 1fr)); grid-auto-columns: calc((100% - 2 * var(--board-gap)) / 3); gap: var(--board-gap); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; scroll-snap-type: x proximity; }
.board-rest::-webkit-scrollbar { display: none; }
.board-rest > * { scroll-snap-align: start; }
/* Las cards del costado se adaptan al hueco que deja la grande, no al reves. */
.board-rest > .tile { aspect-ratio: auto; }
.board-hero.tile .tile-name { font-size: 1.3rem; }
.board-hero.tile { --tile-pad-x: 18px; }
.board-hero.tile .tile-body { padding: 16px var(--tile-pad-x) 17px; }
/* Igual que en las cintas: el logo llena la card sin imponer su proporcion. */
.board-hero .brand-media, .board-rest .brand-media { position: relative; aspect-ratio: auto; min-height: 0; }
.board-hero .brand-media img, .board-rest .brand-media img { position: absolute; inset: 0; padding: 10px; }
.board-hero .brand-name { padding: 0 12px 14px; font-size: 1rem; }
.board-hero .brand-wordmark { padding: 14px; font-size: 1.8rem; }
@media (hover: hover) and (pointer: fine) {
    .ribbon.can-prev .ribbon-arrow.prev, .ribbon.can-next .ribbon-arrow.next { display: grid; opacity: .85; }
}
/* Botonera de información del inicio (entre categorías y marcas) */

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 10px; }
/* La imagen ocupa toda la card (recomendado 800x600) y el nombre va encima, sobre un degradado. */
.tile { position: relative; isolation: isolate; --tile-pad-x: 14px; display: block; aspect-ratio: 4 / 3.3; padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: linear-gradient(135deg, var(--surface-2), var(--line)); color: #fff; text-align: left; cursor: pointer; box-shadow: 0 1px 2px rgba(15, 20, 30, .10), 0 8px 20px rgba(15, 20, 30, .08); transition: transform .25s cubic-bezier(.2, .7, .3, 1), box-shadow .25s; }
/* Anillo superpuesto: marca hover y foco sin mover la card. */
.tile::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(15, 20, 30, .08); transition: box-shadow .2s; }
.tile:focus-visible { outline: none; }
.tile:focus-visible::after { box-shadow: inset 0 0 0 2px var(--green), 0 0 0 3px rgba(122, 193, 50, .35); }
.tile:active { transform: scale(.985); }
.tile-media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s cubic-bezier(.2, .7, .3, 1); }
/* Degradado inferior para que el nombre se lea sobre cualquier imagen. */
/* Mas suave que antes: el nombre va en pildora y ya no depende del degradado
   para leerse, asi que se ve mas foto. */
.tile-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 10, 14, .55), rgba(8, 10, 14, .15) 40%, rgba(8, 10, 14, 0) 65%); }
/* Sin imagen queda el emoji sobre el fondo suave; el nombre necesita su propio degradado
   o el texto blanco cae a 1.6:1 contra el fondo claro de .tile. */
.tile:not(:has(.tile-media)) .tile-body { background: linear-gradient(to top, rgba(8, 10, 14, .9), rgba(8, 10, 14, .55) 70%, rgba(8, 10, 14, 0)); }
/* Sin imagen queda el emoji sobre el fondo suave. */
.tiles.compact { display: flex; flex-wrap: wrap; gap: 8px; }
.tiles.compact + .grid { margin-top: 14px; }
.tiles.compact .tile { flex: 0 0 auto; width: 112px; border-radius: 10px; }
.tiles.compact .tile:hover { transform: none; }
.tiles.compact .tile:hover .tile-name { flex-grow: 0; }
.tiles.compact .tile-body { padding: 6px 8px 7px; }
.tiles.compact .tile-name { padding: 3px 9px; font-size: .72rem; border-radius: 8px; }
.tiles.compact .tile-body::after { display: none; }
.tile:disabled { cursor: default; }
.tile[aria-pressed="true"]::after { box-shadow: inset 0 0 0 3px var(--green); }
.tile-icon { font-size: 3rem; line-height: 1; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.tile-body { position: absolute; z-index: 2; inset: auto 0 0 0; display: flex; align-items: center; gap: 8px; padding: 12px var(--tile-pad-x) 13px; }
.tile-name { position: relative; flex: 0 1 auto; min-width: 0; padding: 7px 14px; border-radius: 12px; background: rgba(12, 14, 18, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .18); font-weight: 700; font-size: 1.02rem; line-height: 1.25; transition: background .22s, color .22s, border-color .22s, box-shadow .22s, flex-grow .38s cubic-bezier(.2, .7, .3, 1); }
/* Flecha que aparece al pasar el mouse. */
.tile-body::after { content: "›"; flex: 0 0 auto; margin-left: auto; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .18); font-size: 1.15rem; font-weight: 700; line-height: 1; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s, background .2s, color .2s; }
@media (hover: hover) and (pointer: fine) {
    .tile:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(15, 20, 30, .10), 0 16px 32px rgba(15, 20, 30, .16); }
    .tile:hover::after { box-shadow: inset 0 0 0 2px var(--gold); }
    .tile:hover .tile-media img { transform: scale(1.07); }
    /* La pill se estira hasta el filo interior de la card; la flecha le cede
       el lugar. flex-grow interpola, asi que el estiron es suave. */
    .tile:hover .tile-name, .tile:focus-visible .tile-name { flex-grow: 1; }
    .tile:hover .tile-body::after { opacity: 0; transform: translateX(6px); }
    /* El lima de la marca sobre la foto: degradado, filo de luz arriba y
       resplandor. La parada mas oscura (#d7ee7c) da 8.3:1 con la tinta. */
    .tile:hover .tile-name { background: linear-gradient(160deg, #fbffe2 0%, var(--gold) 45%, #d7ee7c 100%); border-color: rgba(255, 255, 255, .55); color: #2f3a00; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), 0 0 0 1px rgba(197, 224, 108, .4), 0 6px 18px rgba(120, 150, 20, .32); }
}
@media (prefers-reduced-motion: reduce) { .tile-name { transition: background .22s, color .22s, border-color .22s, box-shadow .22s; } }
@media (prefers-color-scheme: dark) { .tile::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); } }

/* ---------- Galería de Instagram (inicio) ---------- */
/* Fotos elegidas a mano desde img/instagram/. Cuadradas, como en el perfil. */
.ig { margin-top: 30px; }
.ig-all { font-size: .85rem; font-weight: 600; color: var(--green-ink); text-decoration: none; white-space: nowrap; }
.ig-all:hover { text-decoration: underline; }
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ig-item { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.ig-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s, filter .2s; }
.ig-item::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(15, 20, 30, .08); }
.ig-item:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .ig-item:hover img { transform: scale(1.06); filter: brightness(.82); } }
@media (prefers-color-scheme: dark) { .ig-item::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); } }

/* ---------- Páginas legales ---------- */
.chip[aria-current="page"] { background: var(--green); border-color: var(--green); color: #04210d; font-weight: 600; }
a.chip { text-decoration: none; }
.legal-nav { max-width: 1180px; margin: 0 auto; display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 12px; scrollbar-width: none; }
.legal-nav::-webkit-scrollbar { display: none; }
.legal-nav .chip.home-chip { margin: 0; }
.legal { --legal-header: 128px; display: grid; grid-template-columns: 270px minmax(0, 1fr); align-items: start; gap: 16px; margin-top: 16px; }
.legal-toc { position: sticky; top: calc(var(--legal-header) + 12px); max-height: calc(100vh - var(--legal-header) - 28px); overflow-y: auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.legal-toc summary { color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.legal-toc ol { margin: 8px 0 0; padding: 0; list-style: none; }
.legal-toc a { display: block; padding: 6px 8px; border-radius: 8px; color: var(--ink); font-size: .84rem; line-height: 1.3; text-decoration: none; transition: background .15s, color .15s; }
.legal-toc a:hover { background: var(--green-soft); color: var(--green-ink); }
.legal-doc { min-width: 0; padding: 24px 28px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.legal-doc h2 { scroll-margin-top: calc(var(--legal-header) + 14px); margin: 30px 0 10px; padding: 9px 14px; border-left: 4px solid var(--green); border-radius: 0 8px 8px 0; background: var(--surface-2); font-size: 1.05rem; line-height: 1.3; }
.legal-doc p, .legal-doc li { color: var(--ink); font-size: .96rem; line-height: 1.7; }
.legal-doc p { margin: 10px 0; }
.legal-doc > p:first-child { margin-top: 0; }
.legal-doc ul { margin: 8px 0 14px; padding-left: 1.3em; }
.legal-doc li::marker { color: var(--green-ink); }
.legal-doc a:not(.back-link) { color: var(--green-ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.legal-doc a:not(.back-link):hover { text-decoration: underline; }
.legal-note { margin: 16px 0; padding: 12px 16px; border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; background: var(--notice-bg); color: var(--notice-ink); font-size: .93rem; line-height: 1.6; }
.legal-doc .legal-note a { color: inherit; text-decoration: underline; }
.back-link { display: inline-flex; margin-top: 22px; padding: 10px 18px; border-radius: 999px; background: var(--dark); color: var(--gold); font-size: .9rem; font-weight: 600; text-decoration: none; transition: background .15s; }
.back-link:hover { background: var(--dark-2); }
@media (prefers-color-scheme: dark) { .back-link { background: var(--surface-2); } .back-link:hover { background: var(--line); } }
@media (max-width: 900px) {
    .legal { grid-template-columns: minmax(0, 1fr); }
    .legal-toc { position: static; max-height: none; }
}

/* ---------- Flotantes ---------- */
.whatsapp-button { position: fixed; bottom: 18px; right: 18px; width: 56px; height: 56px; overflow: hidden; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.3); z-index: 30; }
#scroll-top { position: fixed; bottom: 86px; right: 24px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--dark); color: #fff; font-size: 20px; cursor: pointer; z-index: 30; box-shadow: 0 4px 10px rgba(0,0,0,.25); }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #fff; padding: 48px var(--gutter); margin-top: 3em; text-align: center; border-top: 2px solid var(--gold); }
/* Mismos bordes que el resto de la pagina; texto a la izquierda, que centrado a 1180px no se lee. */
.footer-content { max-width: var(--wrap); margin: 0 auto; text-align: left; }
.footer-info, .footer-disclaimer { max-width: 70ch; }
.footer-brand { color: var(--gold); font-size: 1.6rem; margin: 0 0 10px; text-transform: uppercase; letter-spacing: 1px; }
.footer-legal { margin: 0 0 24px; color: #f0f0f0; }
.footer-info p { margin: 10px 0; font-size: .95rem; color: #ccc; }
.footer-info a { color: var(--gold); }
.footer-info a:hover { color: #fff; }
/* El pie es oscuro en ambos temas, así que las redes van con un solo estilo. */
.footer-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.social { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid #3a3d44; color: #e9ebee; text-decoration: none; font-size: .9rem; font-weight: 600; transition: border-color .15s, background .15s, color .15s; }
.social:hover { border-color: var(--gold); color: var(--gold); background: rgba(255, 255, 255, .05); }
.footer-links { margin: 28px 0; }
.footer-links a { color: var(--gold); text-decoration: none; font-weight: bold; font-size: .9rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-links .separator { color: #8c939d; margin: 0 12px; }
.footer-disclaimer { font-size: .8rem; color: #999; margin-top: 36px; border-top: 1px solid #555; padding-top: 20px; }
.footer-disclaimer span { display: block; margin-top: 8px; font-style: italic; color: #888; }

/* ---------- Móvil ---------- */
@media (max-width: 700px) {
    .header-inner { flex-wrap: wrap; gap: 8px; padding-bottom: 8px; }
    /* En fila el estado va al lado del logo, no hace falta reservar alto. */
    .brandbar { flex-direction: row; gap: 12px; }
    .brandbar:has(.open-status) { min-height: 0; }
    .header-social { margin-left: auto; }
    .social-icon { width: 34px; height: 34px; }
    .logo { height: 42px; }
    .search-wrapper { flex: 1 0 100%; margin: 0; }
    #search-box { height: 44px; }
    .grid { grid-template-columns: 1fr; }
    .banner-arrow { display: none; }
    .ig-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
    .brands { grid-template-columns: 1fr 1fr; gap: 10px; }
    .chip.home-chip { padding: 7px 9px; font-size: 13px; }
    .home-chip .chip-ico { display: none; }
    .view-logo { width: 54px; }
    .ribbon-title { font-size: 1.25rem; }
    .ribbon-track { --gap: 8px; margin-inline: -16px; padding-inline: 16px; }
    .ribbon-track .tile, .ribbon-track .brand { aspect-ratio: 3 / 4; }
    /* En el celular el tablero entero es una sola cinta: la grande tambien se
       mueve. Con display:contents las cards quedan sueltas dentro de .board,
       asi que hay un unico carril que se desliza con el dedo. */
    .board, .board-mirror {
        --board-gap: 8px;
        display: grid;
        grid-auto-flow: column;
        grid-template-columns: none;
        grid-template-rows: repeat(2, minmax(0, 1fr));
        /* Tres columnas en pantalla: la grande se lleva dos y queda a la vista
           una columna de chicas. */
        grid-auto-columns: calc((100% - 2 * var(--board-gap)) / 3);
        gap: var(--board-gap);
        overflow-x: auto;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        margin-inline: -16px;
        padding-inline: 16px;
    }
    .board::-webkit-scrollbar { display: none; }
    .board-rest-wrap, .board-rest { display: contents; }
    .board > *, .board-rest > * { scroll-snap-align: start; }
    /* La grande: ancho doble y las dos filas. Siempre primera, aunque el
       tablero sea el espejado (de costado no hay espejo que valga). */
    .board-hero, .board-hero.tile { aspect-ratio: auto; grid-row: span 2; grid-column: span 2; }
    .board-mirror .board-hero { order: -1; }
    .board-hero .brand-wordmark { padding: 10px; font-size: 1.5rem; }
    .board-hero.tile .tile-name { font-size: 1.1rem; }
    /* Las chicas vuelven a tener proporcion propia: son las que le dan alto a
       las dos filas, y de ahi sale el alto de la grande. Cuadradas, asi la
       grande queda cuadrada tambien. */
    .board-rest > .tile, .board-rest > .brand { aspect-ratio: 1; }
    .board-rest > .tile .tile-body { padding: 7px 9px 9px; }
    .board-rest > .tile .tile-name { font-size: .88rem; line-height: 1.15; }
    .board-rest .brand-name { padding: 0 4px 6px; font-size: .68rem; }
    .board-rest .brand-wordmark { padding: 4px; font-size: .82rem; }
    /* Las flechas no van: aca se desliza con el dedo, y sueltas romperian la grilla. */
    .ribbon-arrow { display: none !important; }
    .tiles.compact { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px; scrollbar-width: none; }
    .tiles.compact::-webkit-scrollbar { display: none; }
    .brands.compact { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px; scrollbar-width: none; }
    .brands.compact::-webkit-scrollbar { display: none; }
    .tile { aspect-ratio: 4 / 3.6; border-radius: 14px; }
    .tile-body { padding: 10px 11px 11px; }
    .tile-name { font-size: .9rem; }
    .tile-body::after { display: none; }
    .tile-icon { font-size: 2.2rem; }
    .info-dialog { width: 100%; max-width: none; max-height: 85vh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
    .view-title { font-size: 1.45rem; }
    .view-hero { min-height: 96px; padding: 14px 16px; }
    .view-hero .view-img { width: 70%; }
    .view-hero .view-title { font-size: 1.45rem; }
    /* El orden va abajo, a todo el ancho: al lado le quitaba lugar al titulo. */
    .toolbar.view-hero { flex-wrap: wrap; }
    .view-hero .view-text { flex: 1 1 100%; }
    .view-hero .sort, .view-hero .sort-btn { width: 100%; }
    .view-hero .sort-btn { justify-content: center; }
    .sort-menu { left: 0; right: 0; }
    .legal { --legal-header: 162px; }
    .legal-doc { padding: 16px 16px 22px; }
    .legal-doc h2 { margin-top: 24px; font-size: 1rem; }
    .footer-links a { display: block; margin: 14px 0; }
    .footer-links .separator { display: none; }
}
@media (max-width: 420px) {
    .brandbar:has(.open-status) { flex-direction: column; gap: 2px; }
    .header-social { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* --- Prueba: cards de producto sin esquinas redondeadas --- */
/* Solo la card del producto y lo que vive adentro. El inicio (tiles de
   categorias, marcas, banners y la cinta) queda como esta. */
.card { border-radius: 0; }
.card .shots .shot { border-radius: 0; border: 1px solid var(--line); }
/* La grande no lleva filete: manda sola y el borde solo la encajonaba. */
.card .shots .shot:first-child { border: 0; }
/* El filete se enciende con el resto de la card al pasar el mouse. */
.card:hover .shots .shot { border-color: #dcdfe4; }
.card .shots { gap: 5px; }

/* La banda de la vista y lo que vive en ella: con los filtros y las cards a
   escuadra, el radio de 16 quedaba suelto. La foto del fondo acompana. */
.toolbar.view-hero { border-radius: 0; }
.toolbar.view-hero .view-img { border-radius: 0; }
.sort-btn, .sort-menu { border-radius: 0; }
.sort-option { border-radius: 0; }
/* Las pills de la cabecera de precios, que van arriba de todo. */
.pill { border-radius: 0; }
/* La banda de la vista llevaba el filete lima en el borde izquierdo: una
   columna de color donde todo lo demas arranca parejo. Pasa a filete inferior,
   el mismo recurso que la cabecera de los dialogos y el pie. */
.toolbar.view-hero { border-left: 0; border-bottom: 3px solid var(--gold); }

/* Inicio: el redondeo baja de 16 y 14 a 10. No se va, solo afloja, para que
   acompane a las cards a escuadra sin cambiarle el caracter a la portada. */
.board .tile, .board .brand, .board-hero.tile { border-radius: 10px; }
.banners, .promo-strip { border-radius: 10px; }
.ribbon-track .tile, .ribbon-track .brand { border-radius: 10px; }
.tile-name { border-radius: 8px; }
.tiles.compact .tile-name { border-radius: 6px; }

/* Las ventanas de Categorias y Marcas, con sus tiles. */
.info-dialog { border-radius: 0; }
.cat-item, .dialog-body .brand { border-radius: 0; }
.info-note { border-radius: 0; }
