/* Tiendas GXS — mismos colores y tipografía que la tienda actual */
@font-face { font-family: "Mulish"; src: url("fuentes/mulish.50220d0057de.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
:root {
  --rojo: #B6251D; --rojo2: #F2442C; --oscuro: #252531; --negro: #000;
  --g1: #F9F9F9; --g2: #ECECEC; --g3: #E5E5E5; --g4: #C4C4C4; --gris-texto: #6b6b6b;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/20px "Mulish", "Helvetica Neue", Arial, sans-serif; color: var(--negro); background: #fff; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--rojo); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
button, input, select { font: inherit; }
svg { width: 1em; height: 1em; fill: currentColor; }
.ancho { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.estrecho { max-width: 560px; }
.bloque { margin-top: 48px; margin-bottom: 48px; }

/* Barra negra de arriba */
.barra-sup { background: #000; color: #fff; font-size: 13px; }
.barra-sup .ancho { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.sup-menu { display: flex; align-items: center; gap: 22px; }
.sup-menu a:hover, .sup-menu button:hover { color: var(--g4); }
.sup-menu .red svg { width: 16px; height: 16px; }
.en-linea { display: inline; margin: 0; }
.en-linea button { background: none; border: 0; color: inherit; padding: 0; cursor: pointer; }
.desplegable { position: relative; }
.desplegable .flecha { display: inline-block; width: 0; height: 0; margin-left: 4px; vertical-align: middle; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; }
.desplegable-lista { display: none; position: absolute; top: 100%; left: -14px; background: #000; min-width: 170px; padding: 8px 0; z-index: 30; }
.desplegable:hover .desplegable-lista, .desplegable:focus-within .desplegable-lista { display: block; }
.desplegable-lista a { display: block; padding: 7px 14px; }

/* Cabecera */
.cab .ancho { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 18px; padding-bottom: 18px; }
.tel { display: flex; align-items: center; gap: 12px; }
.tel-icono { width: 44px; height: 44px; border-radius: 50%; background: var(--rojo); color: #fff; display: grid; place-items: center; font-size: 22px; }
.tel small { display: block; color: var(--gris-texto); font-size: 13px; }
.tel b { font-size: 18px; font-weight: 800; }
.logo img { height: 92px; width: auto; object-fit: contain; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cab-der { display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.carro { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.carro-total { text-align: right; }
.carro-total small { display: block; font-size: 12px; line-height: 14px; font-weight: 400; color: var(--gris-texto); white-space: nowrap; }
.carro-icono { position: relative; font-size: 26px; display: block; line-height: 0; }
.carro-icono i { position: absolute; top: -8px; right: -10px; background: var(--rojo); color: #fff; font: 700 11px/18px "Mulish", sans-serif; min-width: 18px; height: 18px; border-radius: 9px; text-align: center; }
.deseos { font-size: 26px; line-height: 0; color: var(--rojo); }

/* Menú rojo */
.menu { background: linear-gradient(90deg, var(--rojo) 0%, #7a1712 100%); color: #fff; position: sticky; top: 0; z-index: 20; }
.menu .ancho { display: flex; align-items: center; justify-content: space-between; min-height: 52px; gap: 12px; }
.menu-lista { display: flex; flex-wrap: wrap; }
.menu-lista a { padding: 16px 15px; font-weight: 700; font-size: 15px; letter-spacing: .2px; }
.menu-lista a:hover, .menu-lista a.activo { color: #fff; background: rgba(0, 0, 0, .22); }
.menu-buscar { display: flex; background: rgba(255, 255, 255, .14); border-radius: 20px; padding: 0 4px 0 14px; }
.menu-buscar input { background: none; border: 0; outline: 0; color: #fff; width: 170px; height: 34px; }
.menu-buscar input::placeholder { color: rgba(255, 255, 255, .75); }
.menu-buscar button { background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer; display: grid; place-items: center; padding: 0 8px; }
.hamburguesa { display: none; background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; }
/* Desplegables del menú: en el ordenador al pasar el ratón; en el móvil, con el «+» */
.desplega { position: relative; display: flex; }
.desplega > a::after { content: "▾"; margin-left: 5px; font-size: 11px; opacity: .8; }
.desplega .abre { display: none; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; width: 52px; }
.desplega .sub { display: none; position: absolute; top: 100%; left: 0; z-index: 30; background: #fff; min-width: 230px; padding: 8px 0; border-top: 3px solid var(--rojo); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.desplega .sub.cols2 { columns: 2; width: 460px; }
.desplega .sub.cols3 { columns: 3; width: 660px; }
.desplega:nth-last-child(-n+2) .sub { left: auto; right: 0; }  /* las de la derecha se abren hacia dentro */
.desplega:hover .sub, .desplega:focus-within .sub { display: block; }
.menu-lista .sub a { display: block; padding: 7px 18px; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--oscuro); break-inside: avoid; }
.menu-lista .sub a:hover, .menu-lista .sub a.activo { color: var(--rojo); background: var(--g1); }

/* Carrusel de la portada */
.carrusel { position: relative; overflow: hidden; background: var(--g1); transition: height .4s ease; }
.carrusel-pista { display: flex; align-items: flex-start; transition: transform .6s ease; }
.slide { flex: 0 0 100%; }
.slide img { width: 100%; }
.carrusel-flecha { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .35); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.carrusel-flecha:hover { background: var(--rojo); }
.carrusel-flecha.izq { left: 14px; } .carrusel-flecha.der { right: 14px; }
.carrusel-puntos { position: absolute; bottom: 6px; left: 0; right: 0; display: flex; justify-content: center; gap: 2px; }
/* El botón es más grande que el punto que se ve: con el dedo no se acierta a uno de 10 px */
.carrusel-puntos button { width: 24px; height: 24px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.carrusel-puntos button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .6); }
.carrusel-puntos button.activo::before { background: var(--rojo); }

.titular { color: var(--rojo); font-size: 30px; font-weight: 800; text-align: center; margin-bottom: 30px; }
.ver-mas { text-align: center; margin-top: 30px; }
.teselas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tesela { position: relative; aspect-ratio: 16 / 10; background-size: cover; background-position: center; display: flex; align-items: flex-end; overflow: hidden; border-radius: 4px; }
.tesela::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .65) 100%); transition: background .3s; }
.tesela:hover::before { background: rgba(182, 37, 29, .55); }
.tesela span { position: relative; color: #fff; font-size: 22px; font-weight: 800; padding: 18px 22px; }

.banda { background-size: cover; background-position: center; padding: 70px 16px; display: flex; justify-content: center; }
.banda-caja { background: rgba(255, 255, 255, .92); padding: 34px 46px; text-align: center; max-width: 520px; }
.banda-caja h2 { color: var(--rojo); font-size: 28px; font-weight: 800; text-transform: uppercase; }
.banda-caja p { color: var(--gris-texto); margin: 10px 0 20px; }

.boton { display: inline-block; background: var(--rojo); color: #fff; border: 0; padding: 12px 28px; font-weight: 700; border-radius: 3px; cursor: pointer; text-transform: uppercase; letter-spacing: .4px; }
.boton:hover { background: var(--oscuro); color: #fff; }
.boton.pequeno { padding: 8px 16px; font-size: 12px; }

.marcas-tira { display: flex; gap: 34px; overflow-x: auto; padding: 6px 2px 14px; scroll-snap-type: x proximity; }
.marcas-tira a { flex: 0 0 150px; height: 90px; display: grid; place-items: center; scroll-snap-align: start; }
.marcas-tira img { max-height: 80px; width: auto; filter: grayscale(1); opacity: .75; transition: .25s; }
.marcas-tira a:hover img { filter: none; opacity: 1; }

/* Tarjetas de producto */
.rejilla { display: grid; gap: 26px 22px; }
.rejilla.tres { grid-template-columns: repeat(3, 1fr); }
.rejilla.cuatro { grid-template-columns: repeat(4, 1fr); }
.tarjeta { position: relative; text-align: center; display: flex; flex-direction: column; }
.tarjeta-foto { position: relative; display: block; background: #fff; border: 1px solid var(--g2); overflow: hidden; }
.tarjeta-foto img { width: 100%; aspect-ratio: 1; object-fit: contain; transition: transform .35s; }
.tarjeta:hover .tarjeta-foto img { transform: scale(1.05); }
.tarjeta.agotado .tarjeta-foto img { opacity: .55; }
.cinta { position: absolute; top: 10px; left: 10px; background: var(--oscuro); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 9px; text-transform: uppercase; }
.cinta.oferta { background: var(--rojo2); }
.corazon { position: absolute; top: 8px; right: 8px; z-index: 1; line-height: 0; }
.corazon button, a.corazon { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--gris-texto); cursor: pointer; }
.corazon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.corazon button:hover, a.corazon:hover, .corazon.puesto button { color: var(--rojo); }
.corazon.puesto svg { fill: currentColor; }
.tarjeta-titulo { margin-top: 12px; color: #54595f; font-weight: 600; text-transform: uppercase; font-size: 13px; line-height: 18px; }
.tarjeta-precio { margin-top: 6px; color: var(--rojo); font-weight: 700; font-size: 15px; }
.tarjeta-precio small, .ficha-precio small { font-weight: 600; font-size: .8em; }
.tarjeta-precio del, .ficha-precio del { color: #777; font-weight: 400; font-size: .85em; margin-right: 2px; }
.tarjeta-precio a { color: var(--rojo); font-size: 14px; }
.tarjeta-precio a:hover { text-decoration: underline; }
.aviso { display: block; color: var(--rojo); font-weight: 700; }

/* Listado */
.migas { color: var(--gris-texto); font-size: 13px; padding: 18px 0; }
.migas span { color: var(--negro); }
.con-lateral { display: grid; grid-template-columns: 270px 1fr; gap: 34px; margin-bottom: 60px; }
.caja { background: var(--g1); padding: 18px; margin-bottom: 18px; }
.caja h4 { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.caja select, .caja input[type=search], .rango input { width: 100%; height: 38px; border: 1px solid var(--g3); background: #fff; padding: 0 10px; }
.campo-buscar { display: flex; }
.campo-buscar button { width: 42px; border: 0; background: var(--rojo); color: #fff; font-size: 18px; cursor: pointer; display: grid; place-items: center; }
.rango { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.subcats { list-style: none; padding: 0; margin: 12px 0 0; }
.subcats li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--g3); }
.subcats i { color: var(--gris-texto); font-style: normal; font-size: 12px; }
.marcas-rejilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.marcas-rejilla a { background: #fff; aspect-ratio: 1; display: grid; place-items: center; padding: 6px; border: 1px solid var(--g2); }
.marcas-rejilla img { max-height: 100%; width: auto; }
.resultado-cab { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.resultado-cab h1 { font-size: 26px; font-weight: 800; }
.resultado-orden { display: flex; align-items: center; gap: 14px; color: var(--gris-texto); }
.resultado-orden select { height: 36px; border: 1px solid var(--g3); padding: 0 8px; background: #fff; }
.cat-desc { color: var(--gris-texto); margin-bottom: 22px; }
.paginas { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.paginas a, .paginas span { min-width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--g3); font-weight: 700; padding: 0 6px; }
.paginas .activa { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.paginas .hueco { border: 0; }
.vacio { text-align: center; color: var(--gris-texto); padding: 50px 0; font-size: 16px; }

/* Ficha */
.ficha { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; margin-bottom: 40px; }
.ficha-foto { display: block; border: 1px solid var(--g2); overflow: hidden; cursor: zoom-in; }
.ficha-foto img { width: 100%; aspect-ratio: 1; object-fit: contain; transition: transform .1s; }
.ficha-minis { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.ficha-minis button { width: 76px; height: 76px; border: 1px solid var(--g2); background: #fff; padding: 2px; cursor: pointer; }
.ficha-minis button.activa { border-color: var(--rojo); }
.ficha-minis img { width: 100%; height: 100%; object-fit: contain; }
.ficha-datos h1 { font-size: 26px; font-weight: 800; }
.ficha-precio { margin: 16px 0; color: var(--rojo); font-size: 26px; }
.ficha-precio a, .ficha-precio .aviso { font-size: 17px; font-weight: 700; color: var(--rojo); }
.ficha-precio a:hover { text-decoration: underline; }
.con-stock { color: #2e7d32; font-weight: 700; } .sin-stock { color: var(--rojo); font-weight: 700; }
.nota { color: var(--gris-texto); font-size: 13px; }
.comprar { display: flex; gap: 12px; margin: 18px 0; }
.cantidad { display: flex; border: 1px solid var(--g3); }
.cantidad button { width: 36px; border: 0; background: var(--g1); cursor: pointer; font-size: 18px; }
.cantidad input { width: 54px; border: 0; text-align: center; -moz-appearance: textfield; }
.cantidad input::-webkit-outer-spin-button, .cantidad input::-webkit-inner-spin-button { appearance: none; }
.a-deseos { display: inline-flex; align-items: center; gap: 8px; color: var(--gris-texto); margin: 6px 0 18px; }
button.a-deseos { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.a-deseos:hover, .a-deseos.puesto { color: var(--rojo); }
.deseo { display: flex; flex-direction: column; }
.deseo form { margin-top: auto; padding-top: 8px; text-align: center; }
.deseo .quitar { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--gris-texto); text-decoration: underline; cursor: pointer; }
.deseo .quitar:hover { color: var(--rojo); }
.ficha-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; border-top: 1px solid var(--g3); padding-top: 16px; margin: 0; }
.ficha-meta dt { font-weight: 700; } .ficha-meta dd { margin: 0; color: var(--gris-texto); }
.ficha-meta a { text-decoration: underline; }
.pestana { display: inline-block; font-size: 16px; font-weight: 800; padding: 12px 22px; border-top: 3px solid var(--rojo); background: var(--g1); }
.ficha-desc { margin-bottom: 50px; }
.ficha-desc .texto { border-top: 1px solid var(--g3); padding-top: 22px; }
.estrellas { color: #e8a200; letter-spacing: 2px; font-size: 17px; white-space: nowrap; }
.ficha-nota { display: inline-block; margin-top: 6px; font-size: 14px; color: var(--gris-texto); }
.ficha-nota:hover { text-decoration: underline; }
.valoraciones { margin-bottom: 50px; scroll-margin-top: 90px; }
.valoraciones ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--g3); }
.valoraciones li { padding: 18px 0; border-bottom: 1px solid var(--g3); font-size: 15px; line-height: 1.6; }
.valoraciones p { margin: 4px 0 0; }
.valoraciones .quien { color: var(--gris-texto); font-size: 14px; }
.valoraciones .quien b { color: inherit; }
.valoraciones .verificada { color: #2e7d32; font-weight: 700; }
.texto { font-size: 15px; line-height: 1.65; overflow-wrap: break-word; }  /* una dirección larga no ensancha la página en el móvil */
.texto h2, .texto h3, .texto h4 { margin: 1.2em 0 .5em; }
.texto h2 { font-size: 20px; } .texto h3 { font-size: 17px; }
.texto img { display: inline-block; }
.texto a { color: var(--rojo); text-decoration: underline; }
.texto iframe { display: block; width: 100%; max-width: 720px; height: auto; aspect-ratio: 16 / 9; border: 0; margin: 14px 0; background: #111; }
.texto iframe[height="560"] { max-width: 315px; aspect-ratio: 9 / 16; }  /* los vídeos grabados de pie */
.texto table { border-collapse: collapse; } .texto td, .texto th { border: 1px solid var(--g3); padding: 6px 10px; }

/* Marcas y cuenta */
.marcas-todas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.marcas-todas a { border: 1px solid var(--g2); padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 10px; min-height: 150px; text-align: center; }
.marcas-todas img { max-height: 80px; width: auto; margin: auto; }
.marcas-todas b { margin: auto; font-size: 17px; }
.marcas-todas span { color: var(--gris-texto); font-size: 12px; text-transform: uppercase; }
.caja-cuenta { background: var(--g1); padding: 28px; display: grid; gap: 14px; }
.caja-cuenta label { display: grid; gap: 6px; font-weight: 700; }
.caja-cuenta input:not([type=hidden]) { height: 42px; border: 1px solid var(--g3); padding: 0 12px; background: #fff; }
.caja-cuenta .boton { justify-self: start; }
.error { color: var(--rojo); font-weight: 700; margin: 0; }

/* Pie */
.pie { background: var(--oscuro); color: #c9c9d1; margin-top: 60px; }
.pie-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-top: 50px; padding-bottom: 40px; }
.pie h2 { color: #fff; text-transform: uppercase; font-size: 15px; font-weight: 800; margin-bottom: 16px; }
.pie-cols a { display: block; padding: 4px 0; }
.pie-cols a:hover { color: #fff; }
.pie-marca img { max-width: 190px; margin-bottom: 12px; }
.pie-marca p { margin: 4px 0; }
.pie-fin { border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }
.pie-fin .ancho { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.pie-fin img { max-height: 30px; width: auto; }

@media (max-width: 1000px) {
  .rejilla.cuatro { grid-template-columns: repeat(3, 1fr); }
  .marcas-todas { grid-template-columns: repeat(3, 1fr); }
  .con-lateral { grid-template-columns: 220px 1fr; gap: 22px; }
}
@media (max-width: 760px) {
  .envio { display: none; }
  .barra-sup .ancho { justify-content: center; }
  .sup-menu { gap: 14px; flex-wrap: wrap; justify-content: center; padding: 6px 0; }
  .cab .ancho { grid-template-columns: auto 1fr auto; gap: 10px; }
  .tel span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .logo { justify-self: center; } .logo img { height: 60px; }
  .hamburguesa { display: block; }
  .menu-lista { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #7a1712; flex-direction: column; }
  .menu-lista.abierto { display: flex; max-height: calc(100vh - 52px); overflow-y: auto; }
  .desplega { flex-wrap: wrap; }
  .desplega > a { flex: 1; }
  .desplega > a::after { content: none; }
  .desplega .abre { display: block; }
  .desplega .sub, .desplega:hover .sub, .desplega:focus-within .sub { display: none; position: static; width: 100%; columns: 1; min-width: 0; padding: 0 0 6px; border: 0; box-shadow: none; background: rgba(0, 0, 0, .2); }
  .desplega.abierta .sub { display: block; }
  .menu-lista .sub a { color: #fff; padding: 10px 15px 10px 30px; }
  .menu-lista .sub a:hover, .menu-lista .sub a.activo { color: #fff; background: rgba(0, 0, 0, .22); }
  .menu-buscar input { width: 130px; }
  .teselas, .rejilla.tres, .rejilla.cuatro, .marcas-todas { grid-template-columns: repeat(2, 1fr); }
  .con-lateral, .ficha { grid-template-columns: 1fr; }
  .lateral { order: 2; }
  .pie-cols { grid-template-columns: repeat(2, 1fr); }
  .titular { font-size: 24px; }
}

/* Avisos */
.avisos { margin-top: 18px; }
.aviso-caja { background: var(--g1); border-left: 4px solid var(--oscuro); padding: 12px 16px; margin: 0 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aviso-caja.success { border-color: #3c8a3f; }
.envio-ahora { display: block; margin-top: 2px; font-size: 13px; color: var(--gris-texto); }
.aviso-caja.error { border-color: var(--rojo); color: var(--rojo); font-weight: 700; }

/* Desplegables de la ficha */
.comprar { flex-direction: column; }
.comprar-fila { display: flex; gap: 12px; }
.obligatorio { color: var(--rojo); }

/* Carrito */
.centro { text-align: center; }
.carrito { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; align-items: start; }
.tabla-carrito { width: 100%; border-collapse: collapse; }
.tabla-carrito th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; padding: 10px 8px; border-bottom: 2px solid var(--g3); }
.tabla-carrito td { padding: 12px 8px; border-bottom: 1px solid var(--g3); vertical-align: middle; }
.tabla-carrito .c-foto img { width: 64px; height: 64px; object-fit: contain; display: block; }
.tabla-carrito .c-nombre a { font-weight: 700; color: var(--oscuro); }
.tabla-carrito .c-precio, .tabla-carrito .c-importe { white-space: nowrap; }
.tabla-carrito .c-importe { font-weight: 700; }
.tabla-carrito .c-quitar button { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--rojo); cursor: pointer; }
.tabla-carrito .bloqueada { background: #fff6f5; }
.eleccion { margin: 3px 0 0; font-size: 12px; color: var(--gris-texto); }
.carrito-botones { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 0; }
.boton.gris { background: var(--oscuro); }
.boton.ancho-entero { display: block; text-align: center; }
.carrito-totales { background: var(--g1); padding: 22px; }
.carrito-totales h2 { margin: 0 0 14px; font-size: 18px; }
.carrito-totales dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; margin: 0 0 18px; }
.carrito-totales dd { margin: 0; text-align: right; }
.pista-envio { margin: -6px 0 16px; padding: 8px 10px; background: #fff; border-left: 3px solid #3c8a3f; font-size: 13px; }
.carrito-totales .total { font-size: 18px; font-weight: 800; border-top: 2px solid var(--g3); padding-top: 10px; }

@media (max-width: 1000px) {
  .carrito { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .tabla-carrito thead { display: none; }
  .tabla-carrito tr { display: grid; grid-template-columns: 30px 70px 1fr; border-bottom: 1px solid var(--g3); padding: 10px 0; }
  .tabla-carrito td { border: 0; padding: 4px 6px; }
  .tabla-carrito .c-precio, .tabla-carrito .c-cantidad, .tabla-carrito .c-importe { grid-column: 2 / -1; display: flex; justify-content: space-between; align-items: center; }
  .tabla-carrito td[data-t]::before { content: attr(data-t); font-size: 12px; text-transform: uppercase; color: var(--gris-texto); }
}

/* Mi cuenta, pedidos y finalizar compra */
.cuenta { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.cuenta.sin-menu { grid-template-columns: minmax(0, 860px); justify-content: center; }
.menu-cuenta { display: grid; border: 1px solid var(--g3); }
.menu-cuenta a, .menu-cuenta button { display: block; width: 100%; text-align: left; padding: 13px 16px; border: 0; border-bottom: 1px solid var(--g3); background: #fff; font: inherit; font-weight: 700; color: var(--oscuro); cursor: pointer; }
.menu-cuenta form:last-child button { border-bottom: 0; }
.menu-cuenta a.activo, .menu-cuenta a:hover, .menu-cuenta button:hover { background: var(--g1); color: var(--rojo); }
.cuenta-cuerpo { display: grid; gap: 18px; }
.cuenta-cuerpo > * { margin: 0; }
.cuenta-cuerpo p a { text-decoration: underline; }
.subtitulo { font-size: 20px; margin: 0 0 14px; }
.tabla-pedidos, .tabla-pedido { width: 100%; border-collapse: collapse; }
.tabla-pedidos th, .tabla-pedido thead th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; padding: 10px 8px; border-bottom: 2px solid var(--g3); }
.tabla-pedidos td, .tabla-pedido td, .tabla-pedido tfoot th { padding: 11px 8px; border-bottom: 1px solid var(--g3); text-align: left; vertical-align: top; }
.tabla-pedidos a, .tabla-pedido a { font-weight: 700; color: var(--oscuro); }
.tabla-pedidos .boton { color: #fff; }
.tabla-pedido td:last-child, .tabla-pedido thead th:last-child { text-align: right; white-space: nowrap; }
.tabla-pedido .total th, .tabla-pedido .total td { font-size: 17px; font-weight: 800; }
.tabla-pedido .nota td { white-space: normal; text-align: left; overflow-wrap: anywhere; }
.tabla-pedido.compacta { margin-bottom: 16px; font-size: 14px; }
.pedido-resumen { list-style: none; display: flex; flex-wrap: wrap; gap: 0; padding: 0; border: 1px solid var(--g3); }
.pedido-resumen li { flex: 1 1 140px; padding: 12px 16px; font-size: 12px; text-transform: uppercase; color: var(--gris-texto); border-right: 1px solid var(--g3); }
.pedido-resumen b { display: block; font-size: 15px; text-transform: none; color: var(--oscuro); margin-top: 3px; }
.gracias { font-size: 17px; font-weight: 700; color: #2f7a32; }
.banco { background: var(--g1); border-left: 4px solid var(--rojo); padding: 16px 20px; }
.banco h3 { margin: 0 0 6px; } .banco p { margin: 0; }
.banco.envio-gls { margin-bottom: 18px; } .banco.envio-gls p + p { margin-top: 8px; }
.banco.por-pagar { margin-bottom: 18px; } .banco.por-pagar p + p { margin-top: 12px; } .banco.por-pagar .boton { text-decoration: none; }
.banco.justificante { margin: 18px 0; } .banco.justificante p + form, .justificantes + p { margin-top: 10px; }
.justificantes { margin: 0; padding-left: 18px; color: #2f7a32; font-weight: 600; }
.subir-justificante { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.subir-justificante input[type=file] { max-width: 100%; }
.caja-pago { max-width: 560px; margin: 0 auto; background: var(--g1); padding: 28px; text-align: center; }
.pago-pruebas { font-size: 13px; font-weight: 700; color: var(--rojo); }
.dos-direcciones { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dos-direcciones address { font-style: normal; line-height: 1.6; border: 1px solid var(--g3); padding: 16px 18px; }
.dos-direcciones h3 { margin: 0 0 8px; font-size: 16px; display: flex; justify-content: space-between; gap: 10px; }
.dos-direcciones h3 a { font-size: 13px; text-decoration: underline; color: var(--rojo); }
.libreta-titulo { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 26px; }
.libreta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.libreta address { font-style: normal; line-height: 1.6; border: 1px solid var(--g3); padding: 16px 18px; position: relative; }
.libreta address.habitual { border-color: var(--rojo); }
.libreta .sello { position: absolute; top: 10px; right: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--rojo); }
.libreta-botones { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 13px; }
.libreta-botones a { color: var(--rojo); text-decoration: underline; }
.libreta-vacia { color: var(--gris-texto); }
.libreta-lista { margin-bottom: 14px; }
.libreta-lista select { width: 100%; }
.formulario .campos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 16px; }
.campo { display: grid; gap: 5px; font-size: 13px; font-weight: 700; align-content: start; }
.campo i { font-weight: 400; color: var(--gris-texto); }
.campo input, .campo select, .campo textarea { height: 42px; border: 1px solid var(--g3); padding: 0 12px; background: #fff; font: inherit; font-weight: 400; width: 100%; }
.campo textarea { height: auto; padding: 10px 12px; resize: vertical; }
.campo input:disabled { background: var(--g1); color: var(--gris-texto); }
.campo.con-error input, .campo.con-error select { border-color: var(--rojo); }
.campo em.error { font-style: normal; font-size: 12px; }
.campo-empresa, .campo-direccion, .campo-direccion2, .campo-nota, .campo-pais { grid-column: 1 / -1; }
.casilla { display: flex; gap: 8px; align-items: center; font-weight: 700; margin: 6px 0 16px; cursor: pointer; }
.finalizar { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; }
.pagos { border-top: 2px solid var(--g3); padding-top: 14px; margin-bottom: 16px; display: grid; gap: 10px; }
.pago-texto { display: block; margin: 8px 0 0; padding: 12px 14px; background: #fff; font-size: 13px; line-height: 1.5; }

@media (max-width: 1000px) {
  .finalizar { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cuenta { grid-template-columns: 1fr; gap: 22px; }
  .dos-direcciones, .libreta, .formulario .campos { grid-template-columns: 1fr; }
  .tabla-pedidos thead { display: none; }
  .tabla-pedidos tr { display: grid; border-bottom: 1px solid var(--g3); padding: 8px 0; }
  .tabla-pedidos td { border: 0; padding: 3px 6px; display: flex; justify-content: space-between; }
  .tabla-pedidos td[data-t]::before { content: attr(data-t); font-size: 12px; text-transform: uppercase; color: var(--gris-texto); }
}

/* Alta de cliente */
.alta { display: grid; grid-template-columns: 1fr 1.15fr; gap: 36px; align-items: start; }
.alta-texto p { line-height: 1.6; }
.caja-alta { background: var(--g1); padding: 28px; }
.caja-alta .campo-nombre, .caja-alta .campo-documento { grid-column: 1 / -1; }
.campo input[type=file] { height: auto; padding: 9px 12px; }
.caja-alta .casilla { align-items: flex-start; }
.caja-alta .casilla span { font-weight: 400; }
.caja-alta > p:last-child { margin-bottom: 0; }
.trampa { position: absolute; left: -9999px; height: 0; overflow: hidden; }
@media (max-width: 860px) { .alta { grid-template-columns: 1fr; gap: 20px; } .caja-alta { padding: 18px; } }

/* Páginas de texto */
.pagina { max-width: 880px; }
.pagina-texto p { margin: 0 0 1em; } .pagina-texto ul, .pagina-texto ol { margin: 0 0 1em; padding-left: 22px; }
.pagina .vacio { background: var(--g1); padding: 26px; text-align: center; }
/* Cupón de descuento en el carrito */
.descuento { color: #2c7a2f; font-weight: 700; }
.cupon { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--g3); font-size: 14px; }
.cupon label { display: block; font-weight: 700; margin-bottom: 6px; }
.cupon div { display: flex; gap: 8px; }
.cupon input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--g4); border-radius: 3px; font: inherit; text-transform: uppercase; }
.cupon input::placeholder { text-transform: none; }
.cupon p { margin: 0 0 4px; }
button.enlace { background: none; border: 0; padding: 0; font: inherit; color: var(--rojo); text-decoration: underline; cursor: pointer; }

/* Blog en la portada: el último artículo en grande y los cuatro anteriores al lado */
.blog-portada { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.blog-tesela { position: relative; aspect-ratio: 1; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--oscuro); color: #fff; }
.blog-tesela.grande { grid-column: span 2; grid-row: span 2; }
.blog-tesela img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-tesela:hover img { transform: scale(1.04); }
.blog-tesela::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .15) 35%, rgba(0, 0, 0, .7)); }
.blog-etiqueta { position: absolute; z-index: 1; top: 20px; left: 20px; background: var(--rojo); padding: 5px 12px; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.blog-tesela-pie { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.blog-tesela-pie time { font-size: 12px; }
.blog-tesela-pie strong { font-size: 18px; line-height: 1.2; }
.blog-tesela.grande strong { font-size: 28px; }
@media (max-width: 1100px) { .blog-tesela-pie strong { font-size: 15px; } .blog-tesela.grande strong { font-size: 22px; } }
@media (max-width: 800px) {
  .blog-portada { grid-template-columns: 1fr; }
  .blog-tesela.grande { grid-column: auto; grid-row: auto; }
  .blog-tesela-pie strong, .blog-tesela.grande strong { font-size: 20px; }
}

/* Blog */
.blog-lista { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; }
.blog-tarjeta { display: flex; flex-direction: column; border: 1px solid var(--g2); background: #fff; }
.blog-foto { display: block; aspect-ratio: 16 / 10; background: var(--g1); overflow: hidden; }
.blog-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.blog-tarjeta:hover .blog-foto img { transform: scale(1.04); }
.blog-datos { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-datos time, .entrada-fecha { color: var(--gris-texto); font-size: 13px; }
.blog-datos h2, .blog-datos h3 { font-size: 18px; font-weight: 800; line-height: 1.3; }
.blog-datos p { margin: 0; color: #444; font-size: 15px; line-height: 1.5; }
.blog-mas { margin-top: auto; padding-top: 6px; color: var(--rojo); font-weight: 700; }
.entrada .migas { margin-bottom: 14px; }
.entrada-fecha { margin: 10px 0 20px; }
.entrada-foto { width: 100%; margin-bottom: 26px; border-radius: 4px; }
.entrada .pagina-texto { font-size: 16px; line-height: 1.7; }
.entrada .pagina-texto img { margin: 18px auto; }
.entrada .pagina-texto a { color: var(--rojo); text-decoration: underline; }
@media (max-width: 900px) { .blog-lista { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .blog-lista { grid-template-columns: 1fr; } }

/* Botón de WhatsApp, como en la tienda de siempre: abajo a la izquierda, en todas las páginas. */
.whatsapp { position: fixed; left: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .28); }
.whatsapp svg { width: 30px; height: 30px; fill: #fff; }
.whatsapp:hover { background: #1fbe5a; }
@media print { .whatsapp { display: none; } }

/* Contacto: el texto a un lado y el formulario al otro. */
.pagina.con-formulario { max-width: 1180px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 36px; align-items: start; }
.pagina.con-formulario > .titular, .pagina.con-formulario > .aviso { grid-column: 1 / -1; }
.contacto-form .campo-localizacion, .contacto-form .campo-mensaje { grid-column: 1 / -1; }
@media (max-width: 860px) { .pagina.con-formulario { grid-template-columns: 1fr; gap: 20px; } }

/* Aviso emergente de la oficina */
.emergente { width: 480px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); padding: 28px 28px 24px; border: 0; border-top: 5px solid var(--rojo); border-radius: 6px; box-shadow: 0 18px 60px rgba(0, 0, 0, .35); color: #222; text-align: center; }
.emergente::backdrop { background: rgba(20, 20, 30, .55); }
.emergente h2 { margin: 0 0 14px; font-size: 22px; font-weight: 800; color: var(--rojo); text-transform: uppercase; overflow-wrap: anywhere; }
.emergente-texto { font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.emergente-texto p { margin: 0 0 12px; }
.emergente form { margin-top: 18px; }

/* Aviso de cookies: abajo a la derecha, como el de siempre (el botón de WhatsApp va a la izquierda) */
.cookies { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 420px; max-width: calc(100vw - 36px); max-height: calc(100vh - 36px); overflow: auto; background: #fff; color: #222; border: 1px solid #e3e3e3; border-radius: 12px; box-shadow: 0 6px 30px rgba(0, 0, 0, .22); padding: 20px 22px 16px; font-size: 13px; line-height: 1.5; }
.cookies[hidden], .cookies [hidden] { display: none; }
.cookies h2 { font-size: 16px; font-weight: 800; margin: 0 0 10px; text-align: center; }
.cookies p { margin: 0 0 12px; }
.cookies-opciones > div { background: #f4f5f7; border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.cookies-opciones span { color: #2e7d32; font-weight: 700; font-size: 12px; }
.cookies-opciones input { width: 18px; height: 18px; accent-color: var(--rojo); }
.cookies-opciones p { grid-column: 1 / -1; margin: 0; font-size: 12px; color: #555; }
.cookies-botones { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.cookies-botones button { flex: 1 1 110px; padding: 10px 8px; border: 1px solid #dadce0; border-radius: 6px; background: #f4f5f7; color: #222; font: 700 13px "Mulish", sans-serif; cursor: pointer; }
.cookies-botones button:hover { background: #e7e9ec; }
.cookies-botones .si { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.cookies-botones .si:hover { background: var(--oscuro); border-color: var(--oscuro); }
.cookies-enlaces { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-size: 12px; }
.cookies-enlaces a { text-decoration: underline; }
@media (max-width: 520px) { .cookies { right: 0; bottom: 0; width: 100%; max-width: 100%; border-radius: 12px 12px 0 0; border-width: 1px 0 0; } }
@media print { .cookies { display: none; } }

/* Tabla de tonos de la ficha y «Lo de siempre» */
.en-fila { display: inline; }
#lista { scroll-margin-top: 70px; }  /* en el móvil el atajo lleva a la lista, no al menú de la cuenta */
.repetir, .atajo { display: flex; align-items: center; gap: 12px 14px; flex-wrap: wrap; }
.cuenta-cuerpo p.atajo a.boton { text-decoration: none; }
.aviso-caja.warning { border-color: #c98a00; }
.aviso-caja span a { text-decoration: underline; }
.comprar.tonos { display: block; }
.tonos-titulo { margin: 0 0 10px; font-size: 14px; }
.filtro { display: block; width: 100%; padding: 9px 10px; border: 1px solid var(--g3); font: inherit; margin: 0 0 12px; }
.filtro[hidden], .tono[hidden], .hab[hidden] { display: none; }
.tonos-grupo { font-size: 13px; text-transform: uppercase; letter-spacing: .4px; margin: 0 0 8px; }
.tonos-rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 6px 10px; }
.tono { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 46px; padding: 4px 4px 4px 10px; border: 1px solid var(--g3); background: #fff; }
.tono.puesto { border-color: var(--rojo); background: #fff6f5; }
.tono-nombre { display: grid; justify-items: start; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.ultima { border: 0; background: none; padding: 2px 0; font: inherit; font-size: 11px; font-weight: 400; color: var(--gris-texto); text-decoration: underline dotted; cursor: pointer; white-space: nowrap; }
.ultima:hover { color: var(--rojo); }
.cantidad.mini { flex: none; background: #fff; }
.cantidad.mini button { width: 32px; height: 36px; }
.cantidad.mini input { width: 40px; }
.tonos-resto { margin-top: 14px; }
.tonos-resto summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
.barra-anadir { position: sticky; bottom: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 10px 12px; background: #fff; border: 1px solid var(--g3); box-shadow: 0 -4px 12px rgba(0, 0, 0, .08); font-size: 14px; }
.barra-anadir .boton { flex: none; }
.hab { display: grid; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--g3); }
.hab-cabeza { display: flex; align-items: center; gap: 12px; }
.hab-foto img { width: 56px; height: 56px; object-fit: contain; display: block; }
.hab-nombre { display: grid; gap: 2px; }
.hab-nombre a { font-weight: 700; color: var(--oscuro); }
.hab-nombre small { font-size: 13px; color: var(--gris-texto); }
.hab.simple { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.hab.simple .tonos-rejilla { display: block; }
.hab.simple .tono { border: 0; padding: 0; background: none; gap: 12px; }
.tono.lote { grid-column: 1 / -1; }
.tono.lote .tono-nombre { font-weight: 400; font-size: 13px; }
/* La ficha sin desplegables: repartos de una promoción y botones para lo demás */
.comprar.elegir { display: block; }
.comprar.elegir .comprar-fila { margin-top: 16px; }
.reparto { margin: 0 0 20px; scroll-margin-top: 70px; }
.lleva { float: right; font-weight: 700; color: var(--gris-texto); }
.reparto.completo .lleva { color: #2e7d32; }
.reparto.falta .lleva { color: var(--rojo); }
.reparto.falta .tonos-titulo { outline: 2px solid var(--rojo); outline-offset: 4px; }
.pildoras { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.pildoras legend { padding: 0; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.pildoras div { display: flex; flex-wrap: wrap; gap: 6px; max-height: 250px; overflow-y: auto; }
.pildoras label { position: relative; cursor: pointer; }
.pildoras input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pildoras span { display: flex; align-items: center; min-height: 42px; padding: 6px 12px; border: 1px solid var(--g3); background: #fff; font-size: 14px; line-height: 1.2; }
.pildoras input:checked + span { border-color: var(--rojo); background: #fff6f5; font-weight: 700; }
.pildoras input:focus-visible + span { outline: 2px solid var(--oscuro); outline-offset: 1px; }
.pildoras { scroll-margin-top: 70px; }
.pildoras.falta legend { color: var(--rojo); outline: 2px solid var(--rojo); outline-offset: 4px; }
.comprar.listo .barra-anadir span { color: #2e7d32; font-weight: 700; }
@media (max-width: 760px) {
  .hab.simple { grid-template-columns: 1fr; }
  .hab.simple .tono { justify-content: flex-end; }
  .barra-anadir .boton { padding: 12px 16px; }
  /* El botón de WhatsApp sube para no tapar lo que se lleva marcado. */
  body:has(.barra-anadir) .whatsapp { bottom: 84px; }
}

/* La oficina haciendo un pedido por un cliente: franja siempre a la vista, y el menú se queda debajo */
.para-cliente { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: center; gap: 14px; height: 40px; margin: 0; padding: 0 14px; background: #FFE9A8; color: #3A2C00; font-size: 14px; }
.para-cliente > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.para-cliente button { flex: none; background: #fff; color: inherit; border: 1px solid #C9A93A; border-radius: 6px; padding: 4px 12px; font: inherit; cursor: pointer; }
.pidiendo .menu { top: 40px; }
@media (max-width: 800px) { .para-cliente .largo { display: none; } }

/* La tienda como app: franja de la portada y la ventana de la primera visita desde el móvil */
.app-franja { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 14px; background: var(--g1); border-left: 4px solid var(--rojo); }
.app-franja img { width: 40px; height: 40px; border-radius: 9px; flex: none; }
.app-franja p { flex: 1; min-width: 0; margin: 0; line-height: 1.3; }
.app-franja .nota { display: block; color: var(--gris-texto); font-size: 13px; }
.app-franja .boton { flex: none; }
.app-pasos { margin: 0 0 6px; padding-left: 22px; text-align: left; }
.app-pasos li { margin-bottom: 8px; }
.app-pasos svg { width: 20px; height: 20px; vertical-align: -4px; color: #0a7aff; }
.app-botones { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
