/* ==========================================================================
   Caminoval · web pública
   CSS a mano, sin compilación: se edita y se sube tal cual.
   Colores de marca tomados del logotipo.
   ========================================================================== */

:root {
    --anil: #270597;
    --anil-oscuro: #170260;
    --anil-noche: #0e0138;
    --ambar: #f5b21a;
    --ambar-oscuro: #d99400;
    --tinta: #1c1b29;
    --texto: #3f3d52;
    --suave: #6b6980;
    --linea: #e3e2ec;
    --fondo: #f5f5fa;
    --blanco: #fff;
    --ok: #0f7a4a;
    --error: #b42318;
    --radio: 8px;
    --sombra: 0 1px 2px rgba(23, 2, 96, .06), 0 8px 24px rgba(23, 2, 96, .08);
    --titulos: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    --cuerpo: 'Roboto', 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--cuerpo);
    font-size: 16px;
    line-height: 1.6;
    color: var(--texto);
    background: var(--blanco);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--anil); text-underline-offset: 3px; }
a:hover { color: var(--anil-oscuro); }

h1, h2, h3, h4 { font-family: var(--titulos); color: var(--tinta); line-height: 1.2; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--ambar); outline-offset: 2px; border-radius: 3px; }

.ancho { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.ancho--texto { width: min(820px, 100% - 2.5rem); }
.centro { text-align: center; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.saltar { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ambar); color: var(--tinta); padding: .6rem 1rem; font-weight: 700; }
.saltar:focus { left: 0; }

/* ---------- Botones ---------- */
.boton {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .7rem 1.25rem; border: 2px solid var(--anil); border-radius: var(--radio);
    background: var(--anil); color: #fff; font: 700 .95rem/1.2 var(--titulos);
    text-decoration: none; text-align: center; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.boton:hover { background: var(--anil-oscuro); border-color: var(--anil-oscuro); color: #fff; }
.boton:active { transform: translateY(1px); }
.boton--ambar { background: var(--ambar); border-color: var(--ambar); color: var(--anil-noche); }
.boton--ambar:hover { background: var(--ambar-oscuro); border-color: var(--ambar-oscuro); color: var(--anil-noche); }
.boton--borde { background: transparent; color: var(--anil); }
.boton--borde:hover { background: var(--anil); color: #fff; }
.boton--claro { background: #fff; border-color: #fff; color: var(--anil); }
.boton--claro:hover { background: var(--fondo); border-color: var(--fondo); color: var(--anil-oscuro); }
.boton--grande { padding: .95rem 1.7rem; font-size: 1.02rem; }
.boton--mini { padding: .4rem .8rem; font-size: .82rem; }
.boton--bloque { display: flex; width: 100%; }

/* ---------- Franja superior ---------- */
.franja { background: var(--anil-noche); color: #d9d6f2; font-size: .85rem; }
.franja__in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; flex-wrap: wrap; padding-block: .35rem; }
.franja__datos { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.franja a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.franja a:hover { color: var(--ambar); }
.franja svg { width: 15px; height: 15px; fill: var(--ambar); flex: none; }

/* ---------- Cabecera ---------- */
.cabecera { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--linea); }
.cabecera__in { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }
.marca { flex: none; display: block; font: 800 1.5rem var(--titulos); color: var(--anil); text-decoration: none; }
.marca img { height: 62px; width: auto; }

.menu { margin-left: auto; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu > ul { display: flex; align-items: center; gap: .2rem; }
.menu a, .menu button {
    display: flex; align-items: center; gap: .3rem; padding: .6rem .8rem; border: 0; background: none; border-radius: 6px;
    font: 300 .93rem var(--titulos); color: var(--tinta); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.menu a:hover, .menu button:hover, .menu a.activo { color: var(--anil); background: var(--fondo); }
.menu button svg { width: 15px; height: 15px; transition: transform .15s; }
.menu .menu__tienda { background: var(--anil); color: #fff; padding-inline: 1.1rem; margin-left: .4rem; }
.menu .menu__tienda:hover, .menu .menu__tienda.activo { background: var(--anil-oscuro); color: #fff; }

.con-sub { position: relative; }
.sub {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 5; min-width: 300px; padding: .5rem !important;
    background: #fff; border: 1px solid var(--linea); border-top: 3px solid var(--ambar); border-radius: 0 0 var(--radio) var(--radio);
    box-shadow: var(--sombra); display: none;
}
.sub a { font-weight: 500; font-family: var(--cuerpo); white-space: normal; }
.con-sub:hover .sub, .con-sub:focus-within .sub, .con-sub.abierto .sub { display: block; }
.con-sub::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }   /* puente para no perder el hover */
.con-sub.abierto button svg { transform: rotate(180deg); }

.cesta { position: relative; flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: var(--anil); }
.cesta:hover { background: var(--fondo); }
.cesta svg { width: 26px; height: 26px; fill: currentColor; }
.cesta__n { position: absolute; top: 0; right: -2px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px; background: var(--ambar); color: var(--anil-noche); font: 700 .72rem/21px var(--titulos); text-align: center; }

.hamburguesa { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; padding: 11px; }
.hamburguesa span { display: block; height: 3px; margin: 4px 0; background: var(--anil); border-radius: 2px; transition: transform .2s, opacity .2s; }
.hamburguesa[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburguesa[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburguesa[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
    .hamburguesa { display: block; }
    .cabecera__in { gap: .5rem; min-height: 66px; }
    .marca img { height: 50px; }
    .menu {
        position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: #fff; border-bottom: 1px solid var(--linea);
        box-shadow: var(--sombra); max-height: calc(100vh - 66px); overflow-y: auto; display: none;
    }
    .menu.abierto { display: block; }
    .menu > ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1rem; }
    .menu a, .menu button { width: 100%; padding: .85rem .5rem; justify-content: space-between; white-space: normal; }
    .menu .menu__tienda { margin: .6rem 0 0; justify-content: center; }
    .sub { position: static; display: none; box-shadow: none; border: 0; border-left: 3px solid var(--ambar); border-radius: 0; margin-left: .5rem !important; min-width: 0; }
    .con-sub:hover .sub, .con-sub:focus-within .sub { display: none; }
    .con-sub.abierto .sub { display: block; }
    .franja__horario { display: none; }
}

/* ---------- Avisos ---------- */
.aviso { font-size: .95rem; }
.aviso__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; flex-wrap: wrap; }
.aviso--ok { background: #e7f6ee; color: #0b5c38; }
.aviso--error { background: #fdecea; color: var(--error); }

.nota { padding: 1rem 1.2rem; border-radius: var(--radio); margin-bottom: 1.5rem; border-left: 4px solid; }
.nota--ok { background: #e7f6ee; border-color: var(--ok); color: #0b5c38; }
.nota--error { background: #fdecea; border-color: var(--error); color: #8a1c12; }

/* ---------- Portada ---------- */
.hero {
    position: relative; color: #fff; background: var(--anil-noche) center / cover no-repeat;
    isolation: isolate;
}
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(14, 1, 56, .92) 0%, rgba(39, 5, 151, .72) 55%, rgba(14, 1, 56, .35) 100%); }
.hero__in { padding-block: clamp(4rem, 10vw, 8rem); max-width: 1200px; }
.hero__marca { font: 500 .95rem var(--titulos); letter-spacing: .28em; text-transform: uppercase; color: var(--ambar); margin-bottom: 1rem; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.9rem); max-width: 16ch; margin-bottom: .5em; }
.hero__sub { font-weight: 300; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); max-width: 56ch; color: #e6e3fb; margin-bottom: 2rem; }

.seccion { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.seccion--gris { background: var(--fondo); }
.seccion--tienda, .seccion--ficha { padding-top: 2rem; }
.seccion__cab { text-align: center; max-width: 720px; margin: 0 auto 2.2rem; }
.seccion__cab h2::after { content: ''; display: block; width: 56px; height: 4px; margin: .7rem auto 0; background: var(--ambar); border-radius: 2px; }
.seccion__cab p { color: var(--suave); font-size: 1.05rem; margin: 0; }

.familias { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.familia { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: var(--radio); overflow: hidden; background: var(--anil-oscuro); color: #fff; text-decoration: none; }
.familia img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.familia::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 1, 56, .96) 0%, rgba(14, 1, 56, .82) 38%, rgba(14, 1, 56, .2) 78%, rgba(14, 1, 56, 0) 100%); transition: background .2s; }
.familia__txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1rem 1.1rem; }
.familia b { display: block; font: 700 1.08rem/1.25 var(--titulos); border-left: 4px solid var(--ambar); padding-left: .65rem; }
.familia small { display: block; margin-top: .35rem; font-size: .82rem; color: #d9d6f2; line-height: 1.35; }
.familia:hover { color: #fff; }
.familia:hover img { transform: scale(1.06); }

.dos { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.dos--arriba { align-items: start; }
.dos__foto { margin: 0; }
.dos__foto img { width: 100%; border-radius: var(--radio); box-shadow: var(--sombra); }
@media (max-width: 860px) { .dos { grid-template-columns: 1fr; } }

.llamada { background: var(--anil); color: #fff; }
.llamada__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(2rem, 5vw, 3.2rem); flex-wrap: wrap; }
.llamada h2 { color: #fff; margin-bottom: .2em; }
.llamada p { margin: 0; color: #e0dcfa; font-size: 1.08rem; }

/* ---------- Banda de título ---------- */
.titular { background: var(--anil-noche); color: #fff; padding-block: clamp(1.6rem, 4vw, 2.6rem); border-bottom: 4px solid var(--ambar); }
.titular h1 { color: #fff; margin: 0; }
.titular--mini { padding-block: .8rem; border-bottom-width: 3px; }
.titular__entradilla { margin: .5rem 0 0; color: #d9d6f2; }
.migas { font-size: .85rem; color: #b9b4e3; margin-bottom: .5rem; }
.titular--mini .migas { margin: 0; }
.migas a { color: #d9d6f2; text-decoration: none; }
.migas a:hover { color: var(--ambar); }

/* ---------- Texto de páginas ---------- */
.prosa { font-size: 1.03rem; overflow-wrap: anywhere; }
.prosa > :last-child { margin-bottom: 0; }
.prosa h2 { margin-top: 1.6em; }
.prosa h3, .prosa h4 { margin-top: 1.4em; }
.prosa > h2:first-child, .prosa > h3:first-child, .prosa > h4:first-child { margin-top: 0; }
.prosa h4 { font-size: 1.1rem; font-weight: 600; color: var(--texto); line-height: 1.5; }
.prosa ul, .prosa ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prosa li { margin-bottom: .3em; }
.prosa li::marker { color: var(--ambar-oscuro); }
.prosa img { border-radius: var(--radio); }
.prosa__portada { width: 100%; margin-bottom: 1.6rem; max-height: 420px; object-fit: cover; }
.prosa table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; font-size: .95rem; }
.prosa th, .prosa td { padding: .6rem .8rem; border: 1px solid var(--linea); text-align: left; vertical-align: top; }
.prosa th { background: var(--fondo); font-weight: 600; }
.prosa blockquote { margin: 0 0 1.2em; padding: .6rem 1.2rem; border-left: 4px solid var(--ambar); background: var(--fondo); }
.prosa--centro { text-align: center; max-width: 820px; }

/* Familias: las listas de referencias, en columnas */
.prosa--familia ul { columns: 2 220px; column-gap: 2rem; list-style: none; padding: 0; }
.prosa--familia li { break-inside: avoid; padding-left: 1.2rem; position: relative; }
.prosa--familia li::before { content: ''; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; background: var(--ambar); border-radius: 1px; }
.prosa--familia ul + p, .prosa--familia p + ul { margin-top: 0; }
.prosa--familia p:has(+ ul) { font: 700 1rem var(--titulos); color: var(--anil); margin: 1.2em 0 .4em; }

.marcas { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .8rem; margin: 1rem 0 1.5rem; }
.marcas img { width: 100%; height: 72px; object-fit: contain; padding: .6rem; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); }

.con-lateral { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .con-lateral { grid-template-columns: 1fr; } }
.lateral { display: grid; gap: 1.2rem; position: sticky; top: 100px; }
@media (max-width: 900px) { .lateral { position: static; } }

.caja { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.4rem; margin-bottom: 1.5rem; }
.lateral .caja { margin: 0; }
.caja h2 { font-size: 1.15rem; margin-bottom: .8rem; }
.caja--marca { background: var(--anil); border-color: var(--anil); color: #e6e3fb; }
.caja--marca h2 { color: #fff; }
.caja--marca .boton { margin-top: .6rem; }
.caja--datos { background: var(--fondo); border: 0; border-top: 4px solid var(--ambar); margin: 0; }

.lista-enlaces { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.lista-enlaces a { display: block; padding: .45rem .6rem; border-radius: 6px; text-decoration: none; color: var(--texto); }
.lista-enlaces a:hover { background: var(--fondo); color: var(--anil); }
.lista-enlaces a.activo { background: var(--fondo); color: var(--anil); font-weight: 700; box-shadow: inset 3px 0 0 var(--ambar); }
.lista-enlaces--cols { columns: 4 200px; column-gap: 1.5rem; }
.lista-enlaces--cols li { break-inside: avoid; }

.datos { margin: 0; }
.datos dt { font: 700 .78rem var(--titulos); letter-spacing: .08em; text-transform: uppercase; color: var(--suave); margin-top: 1rem; }
.datos dd { margin: .15rem 0 0; }

.mapa iframe { display: block; width: 100%; height: clamp(300px, 45vw, 460px); border: 0; }

.mapa-sitio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.mapa-sitio__ancho { grid-column: 1 / -1; }
.mapa-sitio h2 { font-size: 1.2rem; }
@media (max-width: 700px) { .mapa-sitio { grid-template-columns: 1fr; } }

/* ---------- Formularios ---------- */
.form label { display: block; font-weight: 500; font-size: .93rem; color: var(--tinta); margin-bottom: 1rem; }
.form input:not([type=checkbox]):not([type=radio]), .form textarea, .form select,
.buscador input, .barra select, .cats__filtro, .cantidad input, .linea__uds input {
    display: block; width: 100%; margin-top: .3rem; padding: .7rem .85rem; border: 1px solid #c9c7d8; border-radius: 6px;
    background: #fff; font: 400 1rem var(--cuerpo); color: var(--tinta);
}
.form input:focus, .form textarea:focus, .buscador input:focus, .barra select:focus, .cats__filtro:focus { border-color: var(--anil); outline: 2px solid rgba(39, 5, 151, .2); outline-offset: 0; }
.form [aria-invalid="true"] { border-color: var(--error) !important; }
.form__error { display: block; color: var(--error); font-size: .85rem; font-weight: 400; margin-top: .25rem; }
.form__fila { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.form__fila--3 { grid-template-columns: 140px repeat(2, minmax(0, 1fr)); }
@media (max-width: 620px) { .form__fila, .form__fila--3 { grid-template-columns: 1fr; } }
.form__check { display: flex !important; gap: .6rem; align-items: flex-start; font-weight: 400 !important; }
.form__check input { margin-top: .3rem; width: 18px; height: 18px; flex: none; accent-color: var(--anil); }
.form__trampa { position: absolute; left: -9999px; }
.form fieldset { border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.2rem 1.3rem .4rem; margin: 0 0 1.4rem; min-width: 0; }
.form legend { font: 700 1.05rem var(--titulos); color: var(--tinta); padding: 0 .5rem; }
.form fieldset > textarea { margin-bottom: 1rem; }

.opcion { display: flex !important; align-items: flex-start; gap: .8rem; padding: .85rem 1rem; border: 1px solid var(--linea); border-radius: 6px; cursor: pointer; }
.opcion:has(input:checked) { border-color: var(--anil); background: #f3f1fd; }
.opcion input { margin-top: .25rem; width: 18px; height: 18px; flex: none; accent-color: var(--anil); }
.opcion > span { flex: 1; font-weight: 400; }
.opcion__desc { display: block; color: var(--suave); }

/* ---------- Tienda ---------- */
.tienda { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 900px) { .tienda { grid-template-columns: 1fr; gap: 1.2rem; } }

.buscador { display: flex; margin-bottom: 1rem; }
.buscador input { margin: 0; border-radius: 6px 0 0 6px; border-right: 0; min-width: 0; }
.buscador button { flex: none; width: 50px; border: 0; border-radius: 0 6px 6px 0; background: var(--anil); cursor: pointer; display: grid; place-items: center; }
.buscador button:hover { background: var(--anil-oscuro); }
.buscador svg { width: 22px; height: 22px; fill: #fff; }

.cats { border: 1px solid var(--linea); border-radius: var(--radio); background: #fff; }
.cats summary { padding: .9rem 1rem; font: 700 1rem var(--titulos); color: var(--tinta); cursor: pointer; }
.cats summary small { color: var(--suave); font-weight: 500; }
.cats__filtro { width: calc(100% - 2rem) !important; margin: 0 1rem .6rem !important; padding: .5rem .7rem !important; font-size: .9rem !important; }
.cats__lista { list-style: none; margin: 0; padding: 0 .5rem .6rem; max-height: 62vh; overflow-y: auto; font-size: .92rem; }
.cats__lista ul { list-style: none; padding: 0 0 0 .9rem; margin: 0; display: none; border-left: 2px solid var(--linea); margin-left: .6rem; }
.cats__lista ul.abierta { display: block; }
.cats__lista a { display: flex; justify-content: space-between; gap: .5rem; padding: .32rem .5rem; border-radius: 5px; color: var(--texto); text-decoration: none; line-height: 1.35; }
.cats__lista a:hover { background: var(--fondo); color: var(--anil); }
.cats__lista a.activo { background: var(--anil); color: #fff; font-weight: 500; }
.cats__lista small { color: var(--suave); flex: none; }
.cats__lista a.activo small { color: #cfc9f5; }
.cats__lista a.madre { font-weight: 600; color: var(--tinta); }
.cats__lista a.madre.activo { color: #fff; }
.cats__lista ul ul { margin-left: .3rem; }

.subcats { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.subcats a { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border: 1px solid var(--linea); border-radius: 999px; background: #fff; color: var(--tinta); font-size: .9rem; font-weight: 500; text-decoration: none; }
.subcats a:hover { border-color: var(--anil); color: var(--anil); }
.subcats small { color: var(--suave); font-weight: 400; }
@media (max-width: 900px) { .cats__lista { max-height: 46vh; } }

.barra { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--linea); }
.barra p { margin: 0; color: var(--suave); }
.barra b { color: var(--tinta); }
.barra label { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--suave); white-space: nowrap; }
.barra select { margin: 0; width: auto; padding: .5rem .7rem; font-size: .92rem; }
.tienda__desc { margin-bottom: 1.5rem; }

.rejilla { display: grid; gap: 1.1rem; }
.rejilla--3 { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.rejilla--4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-bottom: 2rem; }

.prod { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.prod:hover { box-shadow: var(--sombra); border-color: #c9c4ee; }
.prod__foto { position: relative; display: block; aspect-ratio: 1; background: #fff; padding: 1rem; border-bottom: 1px solid var(--linea); }
.prod__foto img { width: 100%; height: 100%; object-fit: contain; }
.prod__sinfoto { display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px; background: var(--fondo); color: var(--suave); font-size: .85rem; border-radius: 6px; }
.prod__oferta { position: absolute; top: .7rem; left: .7rem; background: var(--ambar); color: var(--anil-noche); font: 700 .72rem var(--titulos); text-transform: uppercase; letter-spacing: .06em; padding: .25rem .55rem; border-radius: 4px; }
.prod__cuerpo { display: flex; flex-direction: column; flex: 1; padding: .9rem 1rem 1rem; }
.prod__ref { font-size: .74rem; color: var(--suave); margin: 0 0 .3rem; overflow-wrap: anywhere; }
.prod__nombre { font: 600 .93rem/1.35 var(--cuerpo); margin: 0 0 .7rem; flex: 1; }
.prod__nombre a { color: var(--tinta); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.prod__nombre a:hover { color: var(--anil); }
.prod__precio { margin: 0 0 .8rem; display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; }
.prod__precio b { font: 800 1.25rem var(--titulos); color: var(--anil); }
.prod__precio s { color: var(--suave); font-size: .9rem; }
.prod__precio small { color: var(--suave); font-size: .75rem; }
.prod__agotado { display: block; text-align: center; padding: .7rem; background: var(--fondo); border-radius: var(--radio); color: var(--suave); font-weight: 500; font-size: .9rem; }
.prod .boton { padding: .6rem .8rem; font-size: .88rem; }

.paginas { display: flex; justify-content: center; flex-wrap: wrap; gap: .35rem; margin-top: 2.2rem; }
.paginas__n { min-width: 42px; height: 42px; padding: 0 .6rem; display: grid; place-items: center; border: 1px solid var(--linea); border-radius: 6px; background: #fff; color: var(--tinta); font-weight: 500; text-decoration: none; }
a.paginas__n:hover { border-color: var(--anil); color: var(--anil); }
.paginas__n--aqui { background: var(--anil); border-color: var(--anil); color: #fff; }
.paginas__n--off { color: #b5b3c4; border-color: transparent; background: none; }

.vacio { text-align: center; padding: 3rem 1.5rem; background: var(--fondo); border-radius: var(--radio); }
.vacio p { max-width: 520px; margin-inline: auto; }

/* ---------- Ficha de producto ---------- */
.ficha { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 820px) { .ficha { grid-template-columns: 1fr; } }
.ficha__principal { border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.5rem; background: #fff; aspect-ratio: 1; display: grid; place-items: center; }
.ficha__principal img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.ficha__minis { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.ficha__minis button { width: 72px; height: 72px; padding: 4px; border: 1px solid var(--linea); border-radius: 6px; background: #fff; cursor: pointer; }
.ficha__minis img { width: 100%; height: 100%; object-fit: contain; }
.ficha__datos h1 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem); font-weight: 700; margin-bottom: .5rem; }
.ficha__ref { color: var(--suave); font-size: .9rem; overflow-wrap: anywhere; }
.ficha__precio { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin: 1.2rem 0; padding: 1rem 0; border-block: 1px solid var(--linea); }
.ficha__precio b { font: 800 2.2rem/1 var(--titulos); color: var(--anil); }
.ficha__precio s { color: var(--suave); font-size: 1.1rem; }
.ficha__precio small { color: var(--suave); }
.ficha__stock { font-weight: 500; display: flex; align-items: center; gap: .5rem; }
.ficha__stock::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.ficha__stock--si { color: var(--ok); }
.ficha__stock--no { color: var(--error); }
.comprar { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.comprar .boton { flex: 1; min-width: 200px; }
.cantidad { display: flex; border: 1px solid #c9c7d8; border-radius: var(--radio); overflow: hidden; background: #fff; }
.cantidad button { width: 44px; border: 0; background: var(--fondo); font-size: 1.3rem; color: var(--tinta); cursor: pointer; }
.cantidad button:hover { background: var(--linea); }
.cantidad input { width: 72px; margin: 0; border: 0; border-radius: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.cantidad input::-webkit-outer-spin-button, .cantidad input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ficha__ventajas { list-style: none; padding: 1rem 1.2rem; margin: 0 0 1.2rem; background: var(--fondo); border-radius: var(--radio); font-size: .93rem; }
.ficha__ventajas li { padding-left: 1.5rem; position: relative; margin-bottom: .3rem; }
.ficha__ventajas li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.ficha__cats { font-size: .9rem; color: var(--suave); }
.ficha__mas { margin-top: 3rem; display: grid; gap: 2rem; }
.ficha__mas > .prosa { max-width: 900px; }
.ficha__mas h2 { font-size: 1.3rem; padding-bottom: .5rem; border-bottom: 3px solid var(--ambar); display: inline-block; }

/* ---------- Carrito y compra ---------- */
.compra { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; }
@media (max-width: 920px) { .compra { grid-template-columns: 1fr; } }
.linea { display: grid; grid-template-columns: 76px minmax(0, 1fr) 84px 96px 36px; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--linea); }
.linea__foto { width: 76px; height: 76px; border: 1px solid var(--linea); border-radius: 6px; padding: 4px; background: #fff; }
.linea__foto img { width: 100%; height: 100%; object-fit: contain; }
.linea__txt a { display: block; font-weight: 500; color: var(--tinta); text-decoration: none; line-height: 1.35; }
.linea__txt a:hover { color: var(--anil); }
.linea__txt small { display: block; color: var(--suave); font-size: .8rem; overflow-wrap: anywhere; }
.linea__uds input { margin: 0; padding: .5rem; text-align: center; }
.linea__total { text-align: right; color: var(--tinta); white-space: nowrap; }
.linea__quitar { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; font-size: 1.5rem; line-height: 1; color: var(--suave); cursor: pointer; }
.linea__quitar:hover { background: #fdecea; color: var(--error); }
@media (max-width: 620px) {
    .linea { grid-template-columns: 60px minmax(0, 1fr) 36px; grid-template-areas: 'foto txt quitar' 'foto uds total'; gap: .5rem .8rem; }
    .linea__foto { grid-area: foto; width: 60px; height: 60px; align-self: start; }
    .linea__txt { grid-area: txt; }
    .linea__uds { grid-area: uds; width: 84px; }
    .linea__total { grid-area: total; grid-column: 2 / -1; }
    .linea > form:last-child { grid-area: quitar; }
}

.resumen { position: sticky; top: 100px; background: var(--fondo); border: 0; border-top: 4px solid var(--ambar); }
@media (max-width: 920px) { .resumen { position: static; } }
.resumen dl { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; margin: 0 0 .6rem; }
.resumen dt small { color: var(--suave); }
.resumen dd { margin: 0; text-align: right; font-weight: 500; color: var(--tinta); }
.resumen__total { font: 800 1.25rem var(--titulos) !important; color: var(--tinta); padding-top: .7rem; border-top: 1px solid #d5d3e2; }
.resumen__nota { font-size: .85rem; color: var(--suave); }
.resumen__lineas { list-style: none; padding: 0 0 .8rem; margin: 0 0 .8rem; border-bottom: 1px solid #d5d3e2; font-size: .9rem; }
.resumen__lineas li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.resumen__lineas b { white-space: nowrap; color: var(--tinta); }
.resumen .form__check { margin: 1rem 0; }

/* ---------- Blog ---------- */
.etiquetas { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.etiquetas a { padding: .35rem .9rem; border: 1px solid var(--linea); border-radius: 999px; text-decoration: none; font-size: .9rem; color: var(--texto); }
.etiquetas a.activo, .etiquetas a:hover { background: var(--anil); border-color: var(--anil); color: #fff; }
.entrada { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; display: flex; flex-direction: column; }
.entrada img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.entrada__cuerpo { padding: 1.2rem; }
.entrada__fecha { font-size: .8rem; color: var(--suave); margin-bottom: .4rem; }
.entrada h2 { font-size: 1.15rem; }
.entrada h2 a { color: var(--tinta); text-decoration: none; }
.entrada h2 a:hover { color: var(--anil); }

/* ---------- Pie ---------- */
.pie { background: var(--anil-noche); color: #c9c5ea; font-size: .93rem; }
.pie a { color: #e6e3fb; text-decoration: none; }
.pie a:hover { color: var(--ambar); text-decoration: underline; }
.pie__cols { display: grid; grid-template-columns: 1.1fr 1.6fr 1fr; gap: 2.5rem; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
@media (max-width: 860px) { .pie__cols { grid-template-columns: 1fr; gap: 1.8rem; } }
.pie p { margin-bottom: .45rem; }
.pie__titulo { font: 700 1.02rem var(--titulos); color: #fff; margin-bottom: 1rem !important; padding-bottom: .6rem; border-bottom: 2px solid var(--ambar); display: inline-block; }
.pie__lista { list-style: none; padding: 0; margin: 0; }
.pie__lista li { margin-bottom: .45rem; }
.pie__lista--2 { columns: 2 180px; column-gap: 1.5rem; }
.pie__lista--2 li { break-inside: avoid; }
.pie__redes { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; gap: 1rem; flex-wrap: wrap; }
.pie__kit { background: #fff; padding-block: 1rem; }
.pie__kit img { max-height: 70px; width: auto; margin-inline: auto; }
.pie__base { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1rem; font-size: .84rem; color: #9d98c9; }

/* ---------- Cookies ---------- */
.cookies { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60; max-width: 560px; margin-inline: auto; padding: 1.1rem 1.3rem; background: #fff; border: 1px solid var(--linea); border-top: 4px solid var(--ambar); border-radius: var(--radio); box-shadow: 0 10px 40px rgba(14, 1, 56, .25); font-size: .92rem; }
.cookies[hidden] { display: none; }
.cookies__botones { display: flex; gap: .6rem; justify-content: flex-end; }
.cookies .boton--claro { border-color: var(--linea); }

/* ---------- Mantenimiento ---------- */
.mantenimiento { min-height: 100vh; display: grid; place-items: center; background: var(--fondo); text-align: center; padding: 2rem; }
.mantenimiento main { max-width: 520px; background: #fff; padding: 3rem 2rem; border-radius: var(--radio); border-top: 5px solid var(--ambar); box-shadow: var(--sombra); }
.mantenimiento img { margin: 0 auto 1.5rem; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
    .franja, .cabecera, .pie, .cookies, .aviso, .tienda__lateral { display: none !important; }
}

/* ==========================================================================
   Familias de la tienda: tira con fotos y panel desplegable
   ========================================================================== */

/* Pegada bajo la cabecera, cuyo alto mide web.js */
.mega { position: sticky; top: var(--cabecera-alto, 79px); z-index: 30; pointer-events: none; }
.mega__franja { pointer-events: auto; background: linear-gradient(90deg, var(--anil-oscuro), var(--anil) 50%, var(--anil-oscuro)); box-shadow: inset 0 -3px 0 var(--ambar), 0 6px 18px rgba(14, 1, 56, .18); }
.mega__in { position: relative; }
.mega__barra { list-style: none; margin: 0; padding: 0; display: flex; }
.mega__item { flex: 1 1 0; min-width: 0; }

.mega__familia { display: flex; flex-direction: column; align-items: center; gap: .4rem; height: 100%; padding: .75rem .3rem .85rem; color: #fff; text-decoration: none; text-align: center; position: relative; transition: background .18s, padding .22s, gap .22s; }
.mega__familia:hover { color: #fff; }
.mega__familia::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 0; height: 0; border: 9px solid transparent; border-bottom-color: #fff; transform: translate(-50%, 4px); opacity: 0; transition: opacity .18s, transform .18s; }

.mega__foto { width: 52px; height: 52px; flex: none; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); transition: box-shadow .18s, transform .18s, width .22s, height .22s; }
.mega__foto img { width: 100%; height: 100%; object-fit: cover; }
.mega__foto--producto img { object-fit: contain; padding: 5px; }
.mega__nombre { font: 300 .78rem/1.25 var(--titulos); letter-spacing: .015em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-height: 2.6em; transition: max-height .22s, opacity .18s; }



.mega__item:hover .mega__familia, .mega__item:focus-within .mega__familia, .mega__familia[aria-current] { background: rgba(255, 255, 255, .1); }
.mega__item:hover .mega__foto, .mega__item:focus-within .mega__foto, .mega__familia[aria-current] .mega__foto { box-shadow: 0 0 0 3px var(--ambar); transform: scale(1.06); }
.mega__familia[aria-current] .mega__nombre { color: var(--ambar); }

/* Panel */
.mega__panel { position: absolute; left: 0; right: 0; top: 100%; display: grid; grid-template-columns: 300px 1fr; gap: 1.8rem; padding: 1.4rem; background: #fff; border-radius: 0 0 14px 14px; box-shadow: 0 24px 48px rgba(14, 1, 56, .22), 0 2px 6px rgba(14, 1, 56, .08); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility 0s .2s; }

.mega__portada { position: relative; display: block; min-height: 270px; border-radius: 10px; overflow: hidden; background: var(--anil-noche); color: #fff; text-decoration: none; }
.mega__portada img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mega__portada--producto { background: #fff; box-shadow: inset 0 0 0 1px var(--linea); }
.mega__portada--producto img { object-fit: contain; padding: 1rem 1rem 6.5rem; }
.mega__portada::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 1, 56, 0) 35%, rgba(14, 1, 56, .55) 62%, rgba(14, 1, 56, .94)); }
.mega__portada:hover img { transform: scale(1.06); }
.mega__portada:hover { color: #fff; }
.mega__portada-txt { position: absolute; z-index: 1; left: 1.1rem; right: 1.1rem; bottom: 1rem; display: grid; gap: .15rem; }
.mega__portada-txt b { font: 600 1.25rem/1.2 var(--titulos); }
.mega__portada-txt small { color: #d9d6f2; font-size: .85rem; }
.mega__cta { justify-self: start; display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem; padding: .45rem .9rem; border-radius: 999px; background: var(--ambar); color: var(--tinta); font: 600 .82rem var(--titulos); transition: gap .18s, background .18s; }
.mega__cta svg { width: 15px; height: 15px; }
.mega__portada:hover .mega__cta { gap: .7rem; background: #fff; }

.mega__subs { min-width: 0; align-self: start; }
.mega__titulo { margin: 0 0 .8rem; padding-bottom: .6rem; border-bottom: 1px solid var(--linea); font: 600 .78rem var(--titulos); letter-spacing: .1em; text-transform: uppercase; color: var(--suave); }
.mega__subs ul { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 1.4rem; }
.mega__subs li { break-inside: avoid; }
.mega__subs li a { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; padding: .34rem .55rem; border-radius: 6px; color: var(--texto); font-size: .9rem; font-weight: 300; line-height: 1.3; text-decoration: none; transition: background .12s, color .12s, padding .12s; }
.mega__subs li a:hover { background: var(--fondo); color: var(--anil); padding-left: .85rem; }
.mega__subs small { flex: none; color: var(--suave); font-size: .74rem; }
.mega__mas { display: inline-block; margin-top: .8rem; padding-left: .55rem; font: 600 .85rem var(--titulos); text-decoration: none; }

/* Solo se despliega donde hay ratón y sitio; en táctil, tocar lleva a la familia */
@media (hover: hover) and (min-width: 901px) {
    .mega__item:hover .mega__panel, .mega__item:focus-within .mega__panel { opacity: 1; visibility: visible; transform: none; transition: opacity .2s .08s, transform .2s .08s, visibility 0s .08s; }
    .mega__item:hover .mega__familia::after, .mega__item:focus-within .mega__familia::after { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 1100px) {
    .mega__panel { grid-template-columns: 240px 1fr; }
    .mega__subs ul { columns: 2; }
}

@media (max-width: 900px) {
    .mega__in { width: 100%; }
    .mega__barra { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-inline: .6rem; -webkit-overflow-scrolling: touch; }
    .mega__barra::-webkit-scrollbar { display: none; }
    .mega__item { flex: 0 0 92px; scroll-snap-align: start; }
    .mega__panel { display: none; }
}

@media print { .mega { display: none; } }
/* ==========================================================================
   Portada: pase de fotos detrás del titular
   ========================================================================== */

.hero__fotos { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__foto { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 1.2s ease; }
.hero__foto.activa { opacity: 1; }
.hero--pase .hero__foto.activa { animation: hero-acerca 9s ease-out both; }
@keyframes hero-acerca { from { transform: scale(1); } to { transform: scale(1.08); } }

/* En el pase las fotos tienen que verse: velo más ligero, fuerte solo bajo el texto */
.hero--pase::before { background: linear-gradient(100deg, rgba(14, 1, 56, .9) 0%, rgba(39, 5, 151, .62) 42%, rgba(14, 1, 56, .12) 78%, rgba(14, 1, 56, .05) 100%), linear-gradient(0deg, rgba(14, 1, 56, .55), rgba(14, 1, 56, 0) 30%); }
.hero--pase .hero__in { padding-block: clamp(3rem, 6.5vw, 5rem) clamp(5.5rem, 9vw, 7rem); }
.hero__mandos { position: absolute; left: 0; right: 0; bottom: 1.4rem; display: flex; align-items: center; justify-content: center; gap: 1rem; }
.hero__flecha { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; background: rgba(14, 1, 56, .35); color: #fff; cursor: pointer; backdrop-filter: blur(4px); transition: background .18s, border-color .18s, color .18s; }
.hero__flecha:hover { background: var(--ambar); border-color: var(--ambar); color: var(--tinta); }
.hero__flecha svg { width: 20px; height: 20px; }
.hero__puntos { display: flex; align-items: center; gap: .5rem; }
.hero__puntos button { width: 11px; height: 11px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .5); cursor: pointer; transition: width .3s, background .3s; }
.hero__puntos button:hover { background: #fff; }
.hero__puntos button[aria-current] { width: 34px; background: var(--ambar); }
/* ==========================================================================
   Letra fina en toda la web
   Lo que iba en normal y los titulares pasan a ligero (300), el mínimo de la web. Para volver atrás o afinar, basta con tocar estos tres pesos.
   ========================================================================== */

:root {
    --peso-texto: 300;      /* texto corrido y submenús: antes 400; en 100 costaba leerlo */
    --peso-titulos: 300;    /* h1 y h2: antes 800 y 700. Nada en la web baja de 300 */
    --peso-subtitulos: 300; /* h3 y h4, más pequeños: antes 700 */
    --suave: #4b4962;       /* el gris de los textos secundarios, más oscuro: en fino el anterior no se leía */
}

/* Tan fina, la letra necesita el color más oscuro para leerse */
body { font-weight: var(--peso-texto); color: var(--tinta); }
h1, h2 { font-weight: var(--peso-titulos); }
h3, h4, h5, h6 { font-weight: var(--peso-subtitulos); }
input, select, textarea, button { font-weight: inherit; }
.sub a { font-weight: 300; }
.mega__subs li a { font-weight: var(--peso-texto); }
.hero__sub { font-weight: var(--peso-texto); }

/* ==========================================================================
   Menú del móvil a pantalla completa
   ========================================================================== */

@media (max-width: 1020px) {
    .menu {
        position: fixed; inset: 0; top: 0; z-index: 1; display: block; max-height: none; overflow-y: auto;
        padding: 5.5rem 0 2rem; border: 0; box-shadow: none;
        background: linear-gradient(160deg, var(--anil-noche) 0%, var(--anil-oscuro) 55%, var(--anil) 100%);
        opacity: 0; visibility: hidden; transform: translateY(-12px);
        transition: opacity .25s, transform .25s, visibility 0s .25s;
    }
    .menu.abierto { display: block; opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s; }
    .menu > ul { padding: 0 1.6rem; gap: 0; }
    .menu > ul > li { border-bottom: 1px solid rgba(255, 255, 255, .14); }
    .menu a, .menu button { padding: 1.15rem .2rem; color: #fff; font: 300 1.45rem var(--titulos); border-radius: 0; }
    .menu a:hover, .menu button:hover, .menu a.activo { background: none; color: var(--ambar); }
    .menu button svg { width: 22px; height: 22px; }
    .menu > ul > li:last-child { border: 0; }
    .menu .menu__tienda { margin: 1.6rem 0 0; padding: 1rem; border-radius: var(--radio); background: var(--ambar); color: var(--tinta); font-weight: 600; font-size: 1.1rem; }
    .menu .menu__tienda:hover, .menu .menu__tienda.activo { background: #fff; color: var(--tinta); }
    .sub { background: none; border-left: 2px solid var(--ambar); margin: 0 0 1rem .3rem !important; padding: 0 0 0 1rem !important; }
    .sub a { padding: .6rem 0; font: 300 1.05rem var(--cuerpo); color: #e6e3fb; }

    /* El botón sigue a la vista sobre el menú, convertido en aspa */
    .hamburguesa { position: relative; z-index: 2; }
    .hamburguesa[aria-expanded="true"] span { background: #fff; }
    .cesta { position: relative; z-index: 0; }

    /* Con el menú abierto, la página de debajo no se mueve */
    html.menu-abierto { overflow: hidden; }
}
/* ==========================================================================
   Desplegable de «Servicios»: panel con la foto de cada servicio (escritorio)
   ========================================================================== */

.sub__foto { display: none; }

@media (min-width: 1021px) {
    /* El panel ocupa el ancho de la cabecera, no el del botón */
    .cabecera__in { position: relative; }
    .con-sub--mega { position: static; }

    /* El elemento del menú llega hasta el borde de la cabecera: así el ratón no pierde el panel al bajar */
    .menu { align-self: stretch; display: flex; }
    .menu > ul { align-items: stretch; }
    .menu > ul > li { display: flex; align-items: center; }
    /* Puente: con el panel abierto, la franja baja de la cabecera cuenta como «dentro», para poder ir en diagonal hacia cualquier tarjeta */
    .con-sub--mega::after { display: none; left: 0; right: 0; top: auto; bottom: 0; height: 22px; }
    .con-sub--mega:hover::after { display: block; }

    .sub--mega {
        left: 0; right: 0; top: 100%; min-width: 0; padding: 1.4rem !important;
        grid-template-columns: repeat(6, 1fr); gap: 1.3rem 1.1rem;
        border: 0; border-top: 3px solid var(--ambar); border-radius: 0 0 14px 14px;
        box-shadow: 0 24px 48px rgba(14, 1, 56, .22), 0 2px 6px rgba(14, 1, 56, .08);
    }
    .con-sub--mega:hover .sub--mega, .con-sub--mega:focus-within .sub--mega, .con-sub--mega.abierto .sub--mega { display: grid; }

    .sub--mega a { display: block; padding: 0; border-radius: 0; background: none; text-align: center; }
    .sub--mega a:hover { background: none; }
    .sub__foto { display: block; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: var(--fondo); box-shadow: 0 0 0 0 var(--ambar); transition: box-shadow .18s; }
    .sub__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
    .sub__nombre { display: block; margin-top: .6rem; font: 300 .86rem/1.3 var(--titulos); color: var(--tinta); transition: color .15s; }
    .sub--mega a:hover .sub__foto, .sub--mega a:focus-visible .sub__foto { box-shadow: 0 0 0 3px var(--ambar); }
    .sub--mega a:hover .sub__foto img { transform: scale(1.07); }
    .sub--mega a:hover .sub__nombre { color: var(--anil); }
}
/* ==========================================================================
   Carrito lateral (se abre desde la derecha al añadir o al pulsar la cesta)
   ========================================================================== */

.cl-fondo { position: fixed; inset: 0; z-index: 80; background: rgba(14, 1, 56, .5); opacity: 0; transition: opacity .25s; }
.cl-fondo.abierto { opacity: 1; }
.carrito-lateral {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 81; width: min(440px, 100vw);
    background: #fff; box-shadow: -18px 0 40px rgba(14, 1, 56, .22);
    transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.carrito-lateral.abierto { transform: none; }
html.carrito-abierto { overflow: hidden; }

.cl { display: flex; flex-direction: column; height: 100%; }
.cl.cargando { opacity: .55; pointer-events: none; transition: opacity .15s; }

.cl__cab { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--linea); }
.cl__titulo { margin: 0; font: 500 1.15rem var(--titulos); color: var(--anil-noche); }
.cl__titulo small { margin-left: .5rem; font: 300 .82rem var(--cuerpo); color: var(--suave); }
.cl__cerrar { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: var(--radio); background: none; color: var(--tinta); cursor: pointer; transition: background .15s, color .15s; }
.cl__cerrar:hover { background: var(--fondo); color: var(--anil); }
.cl__cerrar svg { width: 22px; height: 22px; }

.cl__envio { padding: .75rem 1.3rem .9rem; background: var(--anil); color: #fff; text-align: center; }
.cl__envio p { margin: 0; font: 300 .85rem var(--cuerpo); }
.cl__envio b { color: var(--ambar); font-weight: 600; }
.cl__barra { display: block; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.cl__barra span { display: block; height: 100%; border-radius: inherit; background: var(--ambar); transition: width .4s; }

.cl__cuerpo { flex: 1; overflow-y: auto; padding: .4rem 1.3rem 1rem; }
.cl__lineas { list-style: none; margin: 0; padding: 0; }
.cl__linea { display: grid; grid-template-columns: 76px 1fr auto; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--linea); }
.cl__foto { display: block; width: 76px; height: 76px; border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; background: #fff; }
.cl__foto img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.cl__datos { min-width: 0; display: grid; align-content: start; gap: .25rem; }
.cl__nombre { font: 600 .86rem/1.3 var(--titulos); color: var(--anil-noche); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cl__nombre:hover { color: var(--anil); }
.cl__ref { font-size: .75rem; color: var(--suave); }
.cl__cantidad { display: inline-flex; align-items: center; justify-self: start; margin-top: .35rem; border: 1px solid var(--linea); border-radius: var(--radio); }
.cl__cantidad button { width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--tinta); font: 300 1.1rem var(--titulos); cursor: pointer; border-radius: var(--radio); }
.cl__cantidad button:hover { background: var(--fondo); }
.cl__cantidad input { width: 2.6rem; border: 0; background: none; text-align: center; font: 500 .92rem var(--titulos); color: var(--tinta); -moz-appearance: textfield; }
.cl__cantidad input::-webkit-outer-spin-button, .cl__cantidad input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cl__derecha { display: grid; justify-items: end; align-content: space-between; gap: .5rem; }
.cl__precio { font: 600 .95rem var(--titulos); color: var(--anil-noche); white-space: nowrap; }
.cl__quitar { padding: 0; border: 0; background: none; color: var(--suave); font: 300 .8rem var(--cuerpo); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cl__quitar:hover { color: var(--error); }

.cl__mas { padding-top: 1.1rem; }
.cl__mas h3 { margin: 0 0 .7rem; font: 300 .78rem var(--titulos); letter-spacing: .12em; text-transform: uppercase; color: var(--suave); }
.cl__mas ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.cl__mas li { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: .8rem; }
.cl__mas-foto { width: 56px; height: 56px; border-radius: 6px; overflow: hidden; background: var(--fondo); }
.cl__mas-foto img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.cl__mas-nombre { display: grid; gap: .1rem; font: 500 .8rem/1.3 var(--titulos); color: var(--anil-noche); text-decoration: none; }
.cl__mas-nombre small { font: 300 .8rem var(--cuerpo); color: var(--texto); }
.cl__mas-anadir { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .7rem; border: 1px solid var(--anil); border-radius: var(--radio); background: #fff; color: var(--anil); font: 500 .76rem var(--titulos); cursor: pointer; transition: background .15s, color .15s; }
.cl__mas-anadir:hover { background: var(--anil); color: #fff; }
.cl__mas-anadir svg { width: 15px; height: 15px; fill: currentColor; }

.cl__pie { padding: 1rem 1.3rem 1.2rem; border-top: 1px solid var(--linea); background: #fbfbfd; }
.cl__subtotal { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 .8rem; font: 500 1.1rem var(--titulos); color: var(--anil-noche); }
.cl__subtotal b { font-weight: 600; }
.cl__cp label { display: block; margin-bottom: .3rem; font: 300 .75rem var(--titulos); letter-spacing: .1em; text-transform: uppercase; color: var(--suave); }
.cl__cp div { display: flex; gap: .5rem; }
.cl__cp input { flex: 1; min-width: 0; padding: .55rem .8rem; border: 1px solid var(--linea); border-radius: var(--radio); font: 300 .92rem var(--cuerpo); }
.cl__cp .boton { padding: .5rem 1rem; font-size: .85rem; }
.cl__cp-res { margin: .4rem 0 0; font-size: .82rem; min-height: 0; }
.cl__cp-res.ok { color: var(--ok); }
.cl__cp-res.no { color: var(--error); }
.cl__nota { margin: .6rem 0 .8rem; font-size: .76rem; color: var(--suave); }
.cl__finalizar { padding-block: .85rem; font-size: 1rem; }
.cl__enlaces { display: flex; justify-content: center; gap: 1.4rem; margin-top: .8rem; }
.cl__enlaces a, .cl__seguir { padding: 0; border: 0; background: none; color: var(--anil); font: 400 .85rem var(--cuerpo); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.cl__vacio { flex: 1; display: grid; place-content: center; justify-items: center; gap: .8rem; padding: 2rem; text-align: center; color: var(--suave); }
.cl__vacio svg { width: 56px; height: 56px; fill: var(--linea); }
.cl__vacio p { margin: 0; }

.cl__aviso { margin: 0; padding: .6rem 1.3rem; background: #fdecea; color: var(--error); font-size: .85rem; }