/* ============================================================
   Tienda Recuton — sistema de diseño (2026)
   Sin frameworks: tokens + componentes. Marca: rojo Recuton.
   ============================================================ */

:root {
    /* Marca */
    --rojo: #e2001a;
    --rojo-700: #b80016;
    --rojo-600: #cc0019;
    --rojo-50: #fff1f2;
    --azul: #0a4fb4;
    --amarillo: #ffc600;

    /* Neutros */
    --tinta: #16181d;
    --gris-700: #3a414b;
    --gris-600: #5b6470;
    --gris-500: #79828f;
    --gris-400: #9aa3af;
    --gris-300: #cbd1d9;
    --gris-200: #e6e8ec;
    --gris-100: #f1f3f5;
    --gris-50: #f7f8fa;
    --blanco: #fff;

    --borde: #e6e8ec;
    --r-sm: 8px;
    --r: 12px;
    --r-lg: 18px;
    --sombra-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
    --sombra: 0 4px 12px rgba(16, 24, 40, .08);
    --sombra-lg: 0 14px 40px rgba(16, 24, 40, .14);

    --ancho: 1240px;
    --cabecera-alto: 116px;

    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--tinta);
    background: var(--gris-50);
    line-height: 1.5;
    font-size: 15px;
}

a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--tinta); font-weight: 700; }
img { max-width: 100%; display: block; }

.contenedor { max-width: var(--ancho); margin: 0 auto; padding: 0 20px; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font: inherit; font-weight: 600; cursor: pointer;
    padding: .62rem 1.1rem; border-radius: var(--r-sm);
    border: 1px solid transparent; transition: all .15s ease; text-decoration: none;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primario { background: var(--rojo); color: #fff; }
.btn-primario:hover { background: var(--rojo-700); color: #fff; }
.btn-secundario { background: var(--blanco); color: var(--tinta); border-color: var(--gris-300); }
.btn-secundario:hover { border-color: var(--gris-400); background: var(--gris-50); }
.btn-fantasma { background: transparent; color: var(--gris-700); }
.btn-fantasma:hover { background: var(--gris-100); }
.btn-bloque { width: 100%; }
.btn-sm { padding: .42rem .7rem; font-size: .85rem; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--blanco); box-shadow: var(--sombra-sm); }

.barra-utilidad { background: var(--tinta); color: #cfd4db; font-size: .8rem; }
.barra-utilidad .contenedor { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.barra-utilidad a { color: #cfd4db; }
.barra-utilidad a:hover { color: #fff; text-decoration: none; }
.barra-utilidad .util-links { display: flex; gap: 1.25rem; align-items: center; }
.barra-utilidad .util-tag { color: var(--amarillo); font-weight: 600; }

.cabecera { display: flex; align-items: center; gap: 1.5rem; padding: 16px 0; }
.cabecera .logo img { height: 38px; width: auto; }

.buscador { flex: 1; max-width: 640px; position: relative; }
.buscador form { display: flex; }
.buscador input {
    flex: 1; font: inherit; font-size: .95rem; padding: .72rem 1rem;
    border: 2px solid var(--gris-200); border-right: none;
    border-radius: var(--r-sm) 0 0 var(--r-sm); outline: none;
}
.buscador input:focus { border-color: var(--rojo); }
.buscador button {
    background: var(--rojo); color: #fff; border: none; padding: 0 1.2rem;
    border-radius: 0 var(--r-sm) var(--r-sm) 0; cursor: pointer; font-size: 1.1rem;
}
.buscador button:hover { background: var(--rojo-700); }

.acciones { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.accion {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: .4rem .7rem; border-radius: var(--r-sm); color: var(--gris-700);
    font-size: .72rem; font-weight: 600; position: relative;
}
.accion:hover { background: var(--gris-100); text-decoration: none; color: var(--tinta); }
.accion .ico { font-size: 1.35rem; line-height: 1; }
.accion .contador {
    position: absolute; top: 2px; right: 6px; background: var(--rojo); color: #fff;
    font-size: .68rem; min-width: 18px; height: 18px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ---------- Nav principal + menú de Departamentos (2 paneles) ---------- */
.nav-principal { background: #fff; border-bottom: 1px solid var(--borde); position: relative; }
.nav-row { display: flex; align-items: stretch; height: 54px; }

.depts { position: relative; display: flex; align-items: stretch; }
.depts-trigger {
    display: inline-flex; align-items: center; gap: .65rem; font: inherit;
    background: var(--rojo); color: #fff; border: none; cursor: pointer;
    font-weight: 700; font-size: .92rem; padding: 0 1.5rem; white-space: nowrap;
}
.depts-trigger:hover, .depts:hover .depts-trigger, .depts.abierto .depts-trigger { background: var(--rojo-700); }
.depts-burger { display: inline-flex; flex-direction: column; gap: 3px; }
.depts-burger span { width: 17px; height: 2px; background: #fff; border-radius: 2px; }
.depts-caret { font-size: 1rem; line-height: 0; }

.depts-panel {
    position: absolute; top: 100%; left: 0;
    width: 960px; max-width: calc(100vw - 40px); height: 470px;
    background: #fff; border: 1px solid var(--borde); border-top: 3px solid var(--rojo);
    border-radius: 0 0 14px 14px; box-shadow: var(--sombra-lg);
    display: none; z-index: 70; overflow: hidden;
}
.depts:hover .depts-panel, .depts.abierto .depts-panel { display: block; }

.depts-gamas { width: 304px; height: 100%; overflow-y: auto; list-style: none; margin: 0;
    padding: 8px 0; border-right: 1px solid var(--borde); background: #fff; }
.dg-link { display: flex; align-items: center; gap: .7rem; padding: .56rem 1.1rem;
    color: var(--gris-700); font-size: .88rem; font-weight: 500; }
.dg-link:hover { text-decoration: none; }
.dg:hover .dg-link { background: var(--rojo-50); color: var(--rojo-700); }
.dg-ico { font-size: 1.05rem; width: 1.4rem; text-align: center; flex-shrink: 0; }
.dg-nom { flex: 1; }
.dg-arr { color: var(--gris-300); font-size: 1.15rem; }
.dg:hover .dg-arr { color: var(--rojo); }

.dg-fams, .depts-bienvenida { position: absolute; left: 304px; top: 0; right: 0; bottom: 0;
    padding: 24px 30px; overflow-y: auto; background: #fff; }
.dg-fams { display: none; z-index: 2; }
.dg:hover .dg-fams { display: block; }
.depts-bienvenida { z-index: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center; color: var(--gris-500); }
.depts-bienvenida .db-ico { font-size: 3.2rem; margin-bottom: 14px; opacity: .85; }
.depts-bienvenida h4 { margin: 0 0 6px; color: var(--gris-700); font-size: 1.05rem; }
.depts-bienvenida p { max-width: 36ch; font-size: .9rem; margin: 0; }

.dg-fams-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
    margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--gris-100); }
.dg-fams-head > span { font-size: 1.12rem; font-weight: 700; color: var(--tinta); }
.dg-fams-head a { font-size: .82rem; font-weight: 600; color: var(--rojo); white-space: nowrap; }
.dg-fams-grid { list-style: none; margin: 0; padding: 0; display: grid;
    grid-template-columns: repeat(3, 1fr); gap: 1px 16px; }
.dg-fams-grid a { display: flex; justify-content: space-between; gap: .5rem; padding: .4rem .55rem;
    border-radius: 7px; color: var(--gris-600); font-size: .85rem; }
.dg-fams-grid a:hover { background: var(--rojo-50); color: var(--rojo-700); text-decoration: none; }
.dg-fams-grid a .n { color: var(--gris-300); font-size: .74rem; font-variant-numeric: tabular-nums; }

.nav-links { display: flex; align-items: center; list-style: none; margin: 0 0 0 .4rem; padding: 0; }
.nav-links a { display: flex; align-items: center; height: 54px; padding: 0 1rem;
    color: var(--gris-700); font-weight: 600; font-size: .88rem; }
.nav-links a:hover { color: var(--rojo); text-decoration: none; }
.nav-tel { display: flex; align-items: center; gap: .6rem; margin-left: auto; padding-right: 4px; color: var(--gris-700); }
.nav-tel:hover { text-decoration: none; }
.nav-tel > span:first-child { font-size: 1.35rem; }
.nav-tel small { display: block; font-size: .66rem; color: var(--gris-400); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.nav-tel strong { font-size: .82rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .82rem; color: var(--gris-500); padding: 14px 0; }
.breadcrumb a { color: var(--gris-600); }
.breadcrumb .sep { color: var(--gris-300); }

/* ---------- Layout de catálogo ---------- */
.layout-catalogo { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; padding-bottom: 48px; }
.barra-lateral { position: sticky; top: calc(var(--cabecera-alto) + 12px); }
.panel { background: #fff; border: 1px solid var(--borde); border-radius: var(--r); box-shadow: var(--sombra-sm); }
.panel-cab { padding: .85rem 1rem; border-bottom: 1px solid var(--borde); font-weight: 700; font-size: .92rem; }
.lista-familias { list-style: none; margin: 0; padding: .4rem; max-height: 70vh; overflow: auto; }
.lista-familias a {
    display: flex; justify-content: space-between; gap: .6rem; padding: .5rem .7rem;
    border-radius: var(--r-sm); color: var(--gris-700); font-size: .86rem;
}
.lista-familias a:hover { background: var(--gris-100); text-decoration: none; }
.lista-familias a.activa { background: var(--rojo-50); color: var(--rojo-700); font-weight: 600; }
.lista-familias a .n { color: var(--gris-400); font-size: .76rem; }

/* ---------- Cabecera de listado ---------- */
.listado-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; margin-bottom: 18px; }
.listado-cab h1 { margin: 0; font-size: 1.5rem; }
.listado-cab .meta { color: var(--gris-500); font-size: .88rem; }
.orden select { font: inherit; padding: .5rem .7rem; border: 1px solid var(--gris-300); border-radius: var(--r-sm); background: #fff; }

/* ---------- Rejilla de productos ---------- */
.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.tarjeta {
    background: #fff; border: 1px solid var(--borde); border-radius: var(--r);
    overflow: hidden; display: flex; flex-direction: column; transition: all .15s ease;
}
.tarjeta:hover { box-shadow: var(--sombra); border-color: var(--gris-300); transform: translateY(-2px); }
.tarjeta .foto { aspect-ratio: 1; background: #fff; padding: 14px; display: flex; align-items: center; justify-content: center; }
.tarjeta .foto img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.tarjeta .cuerpo { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tarjeta .codigo { font-size: .72rem; color: var(--gris-400); font-weight: 600; letter-spacing: .02em; }
.tarjeta .nombre { font-size: .86rem; color: var(--tinta); font-weight: 500; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.5em; }
.tarjeta .nombre a { color: inherit; }
.tarjeta .nombre a:hover { color: var(--rojo); text-decoration: none; }
.tarjeta .pie { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
.precio { font-size: 1.15rem; font-weight: 800; color: var(--tinta); font-variant-numeric: tabular-nums; }
.precio small { font-size: .68rem; font-weight: 600; color: var(--gris-400); display: block; }
.precio.nd { font-size: .9rem; font-weight: 700; color: var(--gris-400); }

/* ---------- Paginación ---------- */
.paginacion { display: flex; gap: 6px; justify-content: center; align-items: center; margin: 32px 0 8px; flex-wrap: wrap; }
.paginacion a, .paginacion span {
    min-width: 40px; height: 40px; padding: 0 .6rem; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--gris-200); border-radius: var(--r-sm); background: #fff; color: var(--gris-700);
    font-weight: 600; font-size: .9rem;
}
.paginacion a:hover { border-color: var(--rojo); color: var(--rojo); text-decoration: none; }
.paginacion .actual { background: var(--rojo); color: #fff; border-color: var(--rojo); }
.paginacion .inerte { opacity: .4; pointer-events: none; }

/* ---------- Ficha de producto ---------- */
.ficha { display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: 40px; padding: 8px 0 48px; align-items: start; }
.ficha .galeria { background: #fff; border: 1px solid var(--borde); border-radius: var(--r-lg); padding: 28px; position: sticky; top: calc(var(--cabecera-alto) + 12px); }
.ficha .galeria img { width: 100%; height: auto; max-height: 460px; object-fit: contain; mix-blend-mode: multiply; }
.ficha .codigo { color: var(--gris-500); font-size: .85rem; font-weight: 600; }
.ficha h1 { font-size: 1.7rem; margin: .3rem 0 1rem; }
.caja-compra { background: #fff; border: 1px solid var(--borde); border-radius: var(--r); padding: 20px; margin: 20px 0; }
.caja-compra .precio-grande { font-size: 2rem; font-weight: 800; }
.caja-compra .iva-nota { color: var(--gris-500); font-size: .8rem; }
.fila-compra { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
.stepper { display: inline-flex; border: 1px solid var(--gris-300); border-radius: var(--r-sm); overflow: hidden; }
.stepper button { width: 38px; height: 44px; border: none; background: var(--gris-50); font-size: 1.2rem; cursor: pointer; color: var(--gris-700); }
.stepper button:hover { background: var(--gris-200); }
.stepper input { width: 56px; height: 44px; border: none; border-left: 1px solid var(--gris-200); border-right: 1px solid var(--gris-200); text-align: center; font: inherit; font-weight: 700; }
.bloque-info { background: #fff; border: 1px solid var(--borde); border-radius: var(--r); margin-bottom: 18px; overflow: hidden; }
.bloque-info h3 { margin: 0; padding: .9rem 1.1rem; border-bottom: 1px solid var(--borde); font-size: 1rem; background: var(--gris-50); }
.bloque-info .contenido { padding: 1.1rem; font-size: .9rem; color: var(--gris-700); overflow-x: auto; }
.bloque-info table { width: 100%; border-collapse: collapse; }
.bloque-info td, .bloque-info th { padding: .5rem .7rem; border-bottom: 1px solid var(--gris-100); text-align: left; font-size: .86rem; }

/* ---------- Galería de la ficha ---------- */
.galeria-main { display: flex; align-items: center; justify-content: center; min-height: 320px; }
.galeria-thumbs { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.thumb { width: 64px; height: 64px; border: 1px solid var(--borde); border-radius: 8px; padding: 4px; background: #fff; cursor: pointer; }
.thumb:hover { border-color: var(--gris-400); }
.thumb.activa { border-color: var(--rojo); }
.thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ficha-cab { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ficha-meta { display: flex; gap: 20px; color: var(--gris-500); font-size: .82rem; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--gris-100); }
.ficha-meta strong { color: var(--gris-700); }
.caract { white-space: pre-wrap; font-family: inherit; font-size: .86rem; color: var(--gris-700); margin: 0; line-height: 1.6; }

/* ---------- Chips / etiquetas ---------- */
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .65rem; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--gris-100); color: var(--gris-600); }
.chip-marca { background: var(--rojo-50); color: var(--rojo-700); text-transform: uppercase; letter-spacing: .02em; }
.chip-stock-ok { background: #e7f7ec; color: #1a7f44; }
.chip-stock-no { background: #fdecec; color: #c0341d; }

/* ---------- Portada ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center;
    background: radial-gradient(1200px 400px at 85% -20%, rgba(226,0,26,.35), transparent 60%), linear-gradient(125deg, #181c24 0%, #262d3a 100%);
    color: #fff; border-radius: var(--r-lg); padding: 44px 48px; margin: 24px 0 28px; position: relative; overflow: hidden; }
.hero-eyebrow { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--amarillo); background: rgba(255,198,0,.12); padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem; }
.hero h1 { color: #fff; font-size: 2.4rem; line-height: 1.1; max-width: 16ch; }
.hero h1 em { color: var(--amarillo); font-style: normal; }
.hero p { color: #c8cdd6; font-size: 1.04rem; max-width: 46ch; margin: .8rem 0 1.4rem; }
.hero-buscar { display: flex; gap: 8px; max-width: 460px; }
.hero-buscar input { flex: 1; font: inherit; font-size: .95rem; padding: .8rem 1.1rem; border: none; border-radius: var(--r-sm); outline: 2px solid transparent; }
.hero-buscar input:focus { outline-color: var(--amarillo); }
.hero-buscar button { padding: .8rem 1.4rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.hero-tags span { font-size: .8rem; color: #d7dce4; background: rgba(255,255,255,.08); padding: .35rem .75rem; border-radius: 999px; }
.hero-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; position: relative; z-index: 1; }
.hero-tile { display: flex; align-items: center; gap: .7rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--r); padding: .85rem 1rem; color: #fff; backdrop-filter: blur(4px); transition: all .15s ease; }
.hero-tile:hover { background: rgba(255,255,255,.16); text-decoration: none; transform: translateY(-2px); }
.hero-tile .ht-ico { font-size: 1.4rem; }
.hero-tile .ht-nom { font-size: .84rem; font-weight: 600; line-height: 1.2; }

.trust-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 8px; }
.trust { display: flex; align-items: center; gap: .8rem; background: #fff; border: 1px solid var(--borde); border-radius: var(--r); padding: 14px 16px; }
.trust > span { font-size: 1.6rem; }
.trust strong { display: block; font-size: .9rem; }
.trust small { color: var(--gris-500); font-size: .78rem; }

.seccion { margin: 38px 0; }
.seccion-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.seccion-cab h2 { font-size: 1.45rem; margin: 0; display: flex; align-items: center; gap: .7rem; }
.seccion-cab h2 .acento { width: 5px; height: 1.4em; background: var(--rojo); border-radius: 3px; display: inline-block; }
.seccion-cab a { font-size: .88rem; font-weight: 600; }
.rejilla-gamas { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.carta-gama { background: #fff; border: 1px solid var(--borde); border-radius: var(--r); padding: 20px; transition: all .15s ease; display: block; }
.carta-gama:hover { box-shadow: var(--sombra); transform: translateY(-2px); text-decoration: none; border-color: var(--rojo); }
.carta-gama .icono { width: 46px; height: 46px; border-radius: var(--r-sm); background: var(--rojo-50); color: var(--rojo); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 12px; }
.carta-gama h3 { font-size: 1rem; margin: 0 0 4px; color: var(--tinta); }
.carta-gama p { margin: 0; color: var(--gris-500); font-size: .82rem; }

/* ---------- Vacío ---------- */
.vacio { text-align: center; padding: 64px 20px; color: var(--gris-500); }
.vacio .ico { font-size: 3rem; margin-bottom: 12px; }

/* ---------- Pie ---------- */
.site-footer { background: var(--tinta); color: #aab2bd; margin-top: 48px; padding: 48px 0 24px; font-size: .88rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.site-footer a { color: #aab2bd; }
.site-footer a:hover { color: #fff; }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer-base { border-top: 1px solid #2c333e; margin-top: 32px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #79828f; font-size: .82rem; }

/* ---------- Formularios ---------- */
.campo-label { display: block; font-size: .82rem; font-weight: 600; margin: 0 0 6px; color: var(--gris-700); }
.campo { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--gris-300); border-radius: 8px; font: inherit; margin-bottom: 4px; }
.campo:focus { outline: 2px solid var(--rojo); outline-offset: -1px; border-color: var(--rojo); }
.campo-error { display: block; color: var(--rojo-700); font-size: .78rem; min-height: 1.1em; margin-bottom: 8px; }
.aviso { padding: .8rem 1rem; border-radius: 8px; font-size: .88rem; margin-bottom: 16px; }
.aviso-error { background: #fdecec; color: #b3271b; border: 1px solid #f6c8c4; }
.aviso-ok { background: #e7f7ec; color: #166b3a; border: 1px solid #bfe8cd; }

/* ---------- Páginas legales ---------- */
.legal { max-width: 880px; }
.legal h1 { font-size: 1.6rem; margin: 6px 0 18px; }
.legal h2 { font-size: 1.08rem; margin: 26px 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--rojo-50); }
.legal p, .legal li { color: var(--gris-700); font-size: .92rem; line-height: 1.75; text-align: justify; }
.legal ul { padding-left: 1.3rem; }

/* ---------- Consentimiento de cookies ---------- */
.ck-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
    background: #fff; border: 1px solid var(--borde); border-radius: var(--r);
    box-shadow: var(--sombra-lg); padding: 16px 20px;
    display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
    max-width: 980px; margin: 0 auto;
}
.ck-banner[hidden], .ck-modal-fondo[hidden] { display: none; }
.ck-banner-texto { flex: 1; min-width: 260px; }
.ck-banner-texto strong { display: block; margin-bottom: 4px; }
.ck-banner-texto p { margin: 0; font-size: .84rem; color: var(--gris-600); line-height: 1.5; }
.ck-banner-botones { display: flex; gap: 8px; flex-wrap: wrap; }
.ck-modal-fondo {
    position: fixed; inset: 0; z-index: 95; background: rgba(16, 20, 28, .55);
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.ck-modal { background: #fff; border-radius: var(--r-lg); box-shadow: var(--sombra-lg); width: 620px; max-width: 100%; max-height: 86vh; display: flex; flex-direction: column; }
.ck-modal-cab { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--borde); }
.ck-modal-cab h3 { margin: 0; font-size: 1.1rem; }
.ck-cerrar { border: none; background: transparent; font-size: 1.1rem; cursor: pointer; color: var(--gris-500); padding: 4px 8px; border-radius: 6px; }
.ck-cerrar:hover { background: var(--gris-100); color: var(--tinta); }
.ck-modal-cuerpo { padding: 18px 22px; overflow-y: auto; }
.ck-categoria { margin-bottom: 18px; }
.ck-cat-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ck-cat-titulo { font-weight: 700; font-size: .95rem; }
.ck-categoria p { margin: 0; font-size: .84rem; color: var(--gris-600); line-height: 1.55; text-align: justify; }
.ck-modal-pie { display: flex; gap: 8px; align-items: center; padding: 14px 22px; border-top: 1px solid var(--borde); flex-wrap: wrap; }
.ck-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.ck-switch input { opacity: 0; width: 0; height: 0; }
.ck-slider { position: absolute; cursor: pointer; inset: 0; background: var(--gris-300); border-radius: 26px; transition: .2s; }
.ck-slider::before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.ck-switch input:checked + .ck-slider { background: #2eaa5e; }
.ck-switch input:checked + .ck-slider::before { transform: translateX(20px); }
.ck-switch input:disabled + .ck-slider { opacity: .6; cursor: not-allowed; }

/* ---------- Panel de cliente ---------- */
.panel-nav { display: flex; gap: 4px; border-bottom: 2px solid var(--gris-200); margin: 6px 0 4px; flex-wrap: wrap; }
.panel-nav a { padding: .6rem 1rem; font-weight: 600; font-size: .9rem; color: var(--gris-600);
    border-bottom: 3px solid transparent; margin-bottom: -2px; }
.panel-nav a:hover { color: var(--rojo); text-decoration: none; }
.panel-nav a.activa { color: var(--rojo); border-bottom-color: var(--rojo); }

.tabla-docs { width: 100%; border-collapse: collapse; font-size: .89rem; }
.tabla-docs th { text-align: left; padding: .75rem .9rem; background: var(--gris-50);
    border-bottom: 1px solid var(--borde); font-size: .76rem; text-transform: uppercase;
    letter-spacing: .04em; color: var(--gris-500); white-space: nowrap; }
.tabla-docs td { padding: .65rem .9rem; border-bottom: 1px solid var(--gris-100); vertical-align: middle; }
.tabla-docs tbody tr:hover { background: var(--gris-50); }
.tabla-docs .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

@media print {
    .site-header, .site-footer, .panel-nav, .breadcrumb, .no-imprimir, .ck-banner, .ck-modal-fondo { display: none !important; }
    body { background: #fff; }
    .panel { border: none; box-shadow: none; }
}

/* ---------- Utilidades ---------- */
.solo-movil { display: none; }
.menu-toggle { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .depts-panel { width: 720px; }
    .dg-fams-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
    .layout-catalogo { grid-template-columns: 1fr; }
    .barra-lateral { position: static; }
    .ficha { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; gap: 24px; }
    .hero-tiles { grid-template-columns: repeat(4, 1fr); }
    .layout-contacto { grid-template-columns: 1fr !important; }
    .layout-carrito { grid-template-columns: 1fr !important; }
}
@media (max-width: 760px) {
    :root { --cabecera-alto: 116px; }
    .cabecera { flex-wrap: wrap; gap: .75rem; padding: 12px 0; }
    .buscador { order: 3; flex-basis: 100%; max-width: none; }
    .nav-row { height: auto; flex-wrap: wrap; }
    /* En columna: el panel cae DEBAJO del botón (en fila quedaba empujado fuera de pantalla) */
    .depts { width: 100%; position: static; flex-direction: column; align-items: stretch; }
    .depts-trigger { width: 100%; height: 50px; justify-content: flex-start; }
    /* Panel a pantalla parcial CON scroll (antes quedaba cortado sin poder bajar) */
    .depts-panel { position: static; width: 100%; max-width: none; height: auto; max-height: 70vh;
        overflow-y: auto; -webkit-overflow-scrolling: touch;
        box-shadow: none; border: none; border-top: 1px solid var(--borde); border-radius: 0; }
    .depts-gamas { width: 100%; height: auto; border-right: none; overflow: visible; }
    .depts-bienvenida { display: none !important; }
    /* Acordeón táctil: tocar una gama despliega sus familias debajo */
    .dg-fams { display: none; position: static; padding: 4px 10px 10px 26px; background: var(--gris-50); }
    .dg.expandida .dg-fams { display: block; }
    .dg.expandida > .dg-link { background: var(--rojo-50); color: var(--rojo-700); }
    .dg.expandida > .dg-link .dg-arr { transform: rotate(90deg); color: var(--rojo); }
    .dg-arr { transition: transform .15s ease; }
    .dg-fams-head { margin-bottom: 6px; padding-bottom: 8px; }
    .dg-fams-head > span { font-size: .9rem; }
    .dg-fams-grid { grid-template-columns: 1fr; }
    .nav-links, .nav-tel { display: none; }
    .footer-cols { grid-template-columns: 1fr; }
    .hero { padding: 32px 24px; }
    .hero h1 { font-size: 1.7rem; }
    .hero-tiles { grid-template-columns: repeat(2, 1fr); }
    .trust-bar { grid-template-columns: 1fr 1fr; }
}
