/* ==========================================================================
   Tostao · Sitio — barra superior, cabecera, menús, cajón móvil y pie
   Diseño aprobado el 21-nov-2026 (prototipo v35). Colores de marca:
   granate #5B1117 · marrón oscuro #3F150E · crema #F6EDCF · amarillo original #FFFF00
   ========================================================================== */

@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/montserrat-400.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/montserrat-500.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/montserrat-600.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/montserrat-700.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/montserrat-800.woff2") format("woff2"); }

:root {
	--ts-ancho: 1520px; /* ancho máximo del contenido incluido el margen lateral (contenido útil = ancho − 80 px): cabecera, pie y todas las páginas */
	--ts-lado: max(40px, calc((100% - var(--ts-ancho)) / 2 + 40px)); /* margen lateral hasta el borde del contenido (sirve en padding y margin) */
	--ts-granate: #5B1117;
	--ts-granate-osc: #3F150E;
	--ts-crema: #F6EDCF;
	--ts-crema-claro: #FBF6E4;
	--ts-linea: #EADFBF;
	--ts-gris: #F2F0EB;
	--ts-suave: #76595D;
	--ts-amarillo: #FFFF00;
	--ts-fuente: Montserrat, "Helvetica Neue", Arial, sans-serif;
	/* Cabecera fija: alto de la franja granate, barra negra de WordPress (solo con sesión iniciada; en móvil estrecho no es fija) y hueco que
	   queda ocupado arriba. --ts-cab-off vale 0 donde la cabecera NO se fija (tienda, formaciones y la portada deslizante, que ya tiene la suya). */
	--ts-cab-h: 78px;
	--ts-adm: var(--wp-admin--admin-bar--height, 0px);
	--ts-cab-off: var(--ts-cab-h);
	--ts-sticky-top: calc(var(--ts-adm) + var(--ts-cab-off)); /* dónde se pegan arriba las barras y columnas fijas de cada página */
}
@media (max-width: 960px) { :root { --ts-cab-h: 62px; } }
@media (max-width: 600px) { :root { --ts-adm: 0px; } }
:root.tostao-previo, :root.tostao-salto, :root.tostao-tactil { --ts-cab-off: 0px; }
:root:has(.ts-t-filtros.ts-t-fija), :root:has(.ts-fija) { --ts-cab-off: 0px; } /* en una regla aparte: un navegador sin :has() no debe tirar la de arriba */

/* ---- base y reinicio local (el kit de Elementor y el tema estilan botones y enlaces: aquí mandan estas reglas) ---- */
.ts-w { font-family: var(--ts-fuente); box-sizing: border-box; -webkit-font-smoothing: antialiased; }
.ts-w *, .ts-w *::before, .ts-w *::after { box-sizing: border-box; }
.ts-w button { appearance: none; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; border-radius: 0; text-transform: none; letter-spacing: normal; box-shadow: none; cursor: pointer; line-height: inherit; }
.ts-w a { text-decoration: none; transition: none; }
.ts-w :is(h4, h5, p, ul) { margin: 0; padding: 0; }
.ts-w .ts-mv { display: none; }
.ts-w ul { list-style: none; }
.ts-w svg { display: block; }
.ts-w :focus-visible { outline: 3px solid var(--ts-amarillo); outline-offset: 2px; }
.ts-w .ts-mega :focus-visible, .ts-w .ts-cajon :focus-visible { outline-color: var(--ts-granate); }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); height: 1px; overflow: hidden; position: absolute !important; width: 1px; word-wrap: normal !important; }

/* ---- barra superior (avisos que rotan) ---- */
.ts-w .ts-barra { position: relative; background: var(--ts-granate-osc); color: var(--ts-crema); font-size: 13px; font-weight: 600; letter-spacing: .2px; text-align: center; padding: 9px 44px; }
.ts-w .ts-rot { display: grid; }
/* Cambio de aviso en dos tiempos: el que sale se apaga en .25 s y el que entra empieza a encenderse a los .25 s; así nunca se ven los dos textos uno encima de otro (antes, fundido cruzado de .5 s en la misma celda). */
.ts-w .ts-msg { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s .25s; line-height: 1.5; }
.ts-w .ts-msg.on { opacity: 1; visibility: visible; transition: opacity .25s ease .25s; }
.ts-w .ts-msg > svg { display: inline-block; width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; margin-right: 9px; }
.ts-w .ts-msg b { font-weight: 800; color: var(--ts-amarillo); }
.ts-w .ts-barra a.ts-enlace { color: var(--ts-amarillo); text-decoration: underline; text-underline-offset: 3px; margin-left: 8px; font-weight: 700; }
.ts-w .ts-barra .ts-pill-a { display: inline-flex; align-items: center; gap: 8px; margin-left: 12px; padding: 3px 13px; border-radius: 999px; border: 1.5px solid var(--ts-amarillo); color: var(--ts-amarillo); background: transparent; font: 700 12.5px/1.45 var(--ts-fuente); text-decoration: none; cursor: pointer; vertical-align: middle; }
.ts-w .ts-barra .ts-pill-a.ts-cupon { border-style: dashed; letter-spacing: .05em; }
.ts-w .ts-barra .ts-pill-a:hover { background: rgba(255, 255, 255, .12); }
.ts-w .ts-barra .ts-pill-a svg { width: 15px; height: 15px; margin: 0; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ts-w .ts-barra-pausa { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(246, 237, 207, .6) !important; color: var(--ts-crema); font-size: 8px; letter-spacing: -1px; line-height: 1; display: grid; place-items: center; }
.ts-w .ts-barra-pausa[aria-pressed="true"] { background: rgba(255, 255, 255, .18) !important; }

/* ---- cabecera ---- */
/* Cabecera fija: al bajar, la franja granate se queda arriba y la barra de avisos se va (top negativo = alto de la barra, medido en tostao.js).
   NO se fija en la tienda ni en Formaciones (ahí ocupan ese sitio las categorías) ni en la portada deslizante (que ya la fija ella). */
html:not(.tostao-previo):not(.tostao-salto):not(.tostao-tactil) body > header.elementor-location-header {
	position: sticky; top: calc(var(--ts-adm) - var(--ts-barra-h, 0px)); z-index: 1000;
}
html:not(.tostao-previo):not(.tostao-salto):not(.tostao-tactil):has(.ts-t-filtros.ts-t-fija) body > header.elementor-location-header,
html:not(.tostao-previo):not(.tostao-salto):not(.tostao-tactil):has(.ts-fija) body > header.elementor-location-header { position: static; top: auto; }
/* Con el cajón del móvil abierto, la cabecera pasa por encima de todo (el cajón cubre la pantalla entera y vive dentro de ella). */
html:not(.tostao-previo):not(.tostao-salto):not(.tostao-tactil) body > header.elementor-location-header:has(.ts-cajon:not([hidden])) { z-index: 100000; }
html:not(.tostao-previo):not(.tostao-salto):not(.tostao-tactil):not(:has(.ts-t-filtros.ts-t-fija)):not(:has(.ts-fija)) { scroll-padding-top: calc(var(--ts-sticky-top) + 16px); } /* los enlaces con # no quedan tapados por la cabecera */
.ts-w .ts-cab { position: relative; z-index: 1000; display: flex; align-items: center; gap: 22px; height: 78px; padding: 0 max(40px, calc((100% - var(--ts-ancho)) / 2 + 40px)); background: var(--ts-granate); color: var(--ts-crema); box-shadow: 0 2px 0 var(--ts-amarillo); }
.ts-w .ts-logo { color: var(--ts-amarillo); display: block; flex: none; }
.ts-w .ts-logo svg { height: 26px; width: auto; }
.ts-w .ts-nav { display: flex; gap: 4px; margin-left: 12px; flex: 1; }
.ts-w .ts-nav .ts-item > a, .ts-w .ts-nav .ts-item > button { color: var(--ts-crema); background: transparent; border: 1.5px solid transparent; padding: 9px 15px; font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 7px; border-radius: 999px; transition: background .15s, color .15s; }
.ts-w .ts-nav .ts-item:hover > button, .ts-w .ts-nav .ts-item:focus-within > button, .ts-w .ts-nav .ts-item.abierto > button, .ts-w .ts-nav .ts-item > a:hover { background: rgba(255, 255, 255, .13); color: #fff; }
.ts-w .ts-nav .ts-item.ts-actual > a, .ts-w .ts-nav .ts-item.ts-actual > button { color: var(--ts-amarillo); }
.ts-w .ts-chev { display: inline-block; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.ts-w .ts-item.abierto .ts-chev { transform: rotate(-135deg) translateY(-1px); }
.ts-w .ts-acciones { display: flex; align-items: center; gap: 10px; }
.ts-w .ts-btn-nav { display: inline-flex; align-items: center; gap: 7px; padding: 9px 17px; border-radius: 999px; border: 0; background: var(--ts-amarillo); color: var(--ts-granate); font: 700 12.5px/1 var(--ts-fuente); letter-spacing: .08em; text-transform: uppercase; transition: background .15s, color .15s; }
.ts-w .ts-btn-nav:hover, .ts-w .ts-btn-item.abierto > .ts-btn-nav, .ts-w .ts-btn-nav.ts-actual, .ts-w .ts-btn-item.ts-actual > .ts-btn-nav { background: #fff; color: var(--ts-granate); }
.ts-w .ts-item.ts-btn-item { display: block; }
.ts-w .ts-ico { position: relative; width: 44px; height: 44px; display: grid !important; place-items: center; border-radius: 50%; border: 0; background: none; color: var(--ts-crema); }
.ts-w .ts-buscador :focus-visible { outline: 3px solid var(--ts-granate); outline-offset: 2px; }
.ts-w .ts-ico:hover { background: rgba(255, 255, 255, .14); color: var(--ts-crema); /* el kit de Elementor pinta «a:hover» de granate y el icono desaparecía sobre la cabecera granate */ }
.ts-w .ts-ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ts-w .ts-bolsa .ts-cesta-n { position: absolute; top: 2px; right: 0; background: var(--ts-amarillo); color: var(--ts-granate); font: 800 10px/1 var(--ts-fuente); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; display: grid; place-items: center; font-style: normal; }
.ts-w .ts-bolsa .ts-cesta-n[hidden] { display: none; }
.ts-w .ts-burger { display: none !important; width: 44px; height: 44px; border-radius: 50%; color: var(--ts-crema); place-items: center; }
.ts-w .ts-burger svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }

/* buscador desplegable */
.ts-w .ts-buscador { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--ts-linea); box-shadow: 0 26px 40px rgba(94, 33, 41, .14); padding: 18px 28px; z-index: 5; }
.ts-w .ts-buscador[hidden] { display: none; }
.ts-w .ts-buscador form { display: flex; gap: 12px; max-width: 720px; margin: 0 auto; }
.ts-w .ts-buscador input[type="search"] { flex: 1; min-width: 0; border: 1.5px solid var(--ts-granate); border-radius: 999px; padding: 12px 20px; font: 500 15px var(--ts-fuente); color: var(--ts-granate); background: #fff; appearance: none; }

/* botones de acción */
.ts-w .ts-pill { display: inline-block; background: var(--ts-amarillo); color: var(--ts-granate); font: 700 13.5px/1.2 var(--ts-fuente); letter-spacing: .01em; padding: 11px 22px; border-radius: 999px; border: 0; transition: background .15s, color .15s; text-align: center; }
.ts-w .ts-pill:hover { background: #fff; color: var(--ts-granate); }
.ts-w .ts-buscador .ts-pill, .ts-w .ts-cajon .ts-pill { background: var(--ts-granate); color: var(--ts-amarillo); }
.ts-w .ts-buscador .ts-pill:hover, .ts-w .ts-cajon .ts-pill:hover { background: var(--ts-granate-osc); color: var(--ts-amarillo); }

/* ---- menús desplegables ---- */
.ts-w .ts-mega { color: var(--ts-granate); display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--ts-linea); box-shadow: 0 26px 40px rgba(94, 33, 41, .14); padding: 26px 28px 30px; z-index: 5; }
.ts-w .ts-mega.on { display: block; }
.ts-w .ts-mega .ts-cuerpo { display: grid; grid-template-columns: 250px minmax(0, 1fr) 330px; gap: 30px; align-items: start; max-width: calc(var(--ts-ancho) - 80px); margin: 0 auto; }
.ts-w .ts-riel { display: flex; flex-direction: column; gap: 8px; }
.ts-w .ts-riel a { background: #fff; color: var(--ts-granate); padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--ts-linea); }
.ts-w .ts-riel a:hover { background: var(--ts-crema-claro); border-color: var(--ts-granate); }
.ts-w .ts-riel a.ts-principal { background: var(--ts-granate); color: var(--ts-amarillo); border-color: transparent; font-weight: 700; }
.ts-w .ts-riel a small { font-weight: 600; color: var(--ts-suave); font-size: 12px; }
.ts-w .ts-riel a.ts-principal small { color: inherit; opacity: .85; }
.ts-w .ts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 18px; }
.ts-w .ts-grid.ts-dos { grid-template-columns: repeat(2, 1fr); }
.ts-w .ts-tile { display: flex; gap: 14px; padding: 8px; border-radius: 16px; align-items: center; color: var(--ts-granate); }
.ts-w .ts-tile:hover { background: var(--ts-crema-claro); }
.ts-w .ts-tile .ts-f { width: 84px; height: 84px; border-radius: 12px; background: var(--ts-gris); flex: none; overflow: hidden; display: grid; place-items: center; }
.ts-w .ts-tile .ts-f img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ts-w .ts-tile .ts-f.ts-pend svg { width: 44px; height: 44px; stroke: var(--ts-granate); fill: none; stroke-width: 1.4; opacity: .35; }
.ts-w .ts-tile h4 { margin: 0 0 3px; font-size: 14.5px; line-height: 1.25; font-weight: 700; color: var(--ts-granate); }
.ts-w .ts-tile p { margin: 0 0 5px; font-size: 12.5px; line-height: 1.35; color: var(--ts-suave); }
.ts-w .ts-tile .ts-pr { font-weight: 800; font-size: 13.5px; }
.ts-w .ts-sca { display: inline-block; background: var(--ts-granate); color: var(--ts-amarillo); font-size: 10.5px; font-weight: 800; letter-spacing: 1px; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.ts-w .ts-promos { display: grid; gap: 14px; }
.ts-w .ts-promo { position: relative; border-radius: 18px; overflow: hidden; min-height: 150px; display: flex; align-items: flex-end; padding: 16px; color: #fff; background: var(--ts-granate) center / cover no-repeat; }
.ts-w .ts-promo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(43, 13, 17, .84), rgba(43, 13, 17, .08) 72%); }
.ts-w .ts-promo.ts-sin-foto::before { background: linear-gradient(135deg, var(--ts-granate), var(--ts-granate-osc)); }
.ts-w .ts-promo > div { position: relative; }
.ts-w .ts-promo small { display: inline-block; background: var(--ts-crema); color: var(--ts-granate); padding: 4px 10px; border-radius: 999px; font-weight: 800; letter-spacing: 1.2px; font-size: 10.5px; text-transform: uppercase; }
.ts-w .ts-promo h5 { margin: 7px 0 4px; font-size: 19px; line-height: 1.15; color: #fff; }
.ts-w .ts-promo p { margin: 0; font-size: 13px; opacity: .95; color: #fff; }
.ts-w .ts-mega-pie { margin: 18px auto 0; padding-top: 14px; border-top: 1px solid var(--ts-linea); display: flex; justify-content: center; max-width: calc(var(--ts-ancho) - 80px); }
.ts-w .ts-mega-pie.ts-mega-pie-botones { gap: 12px; flex-wrap: wrap; align-items: center; }
.ts-w .ts-mega-pie .ts-pie-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 22px; border-radius: 999px; background: var(--ts-amarillo); color: var(--ts-granate); font: 700 13.5px/1.2 var(--ts-fuente); text-decoration: none; transition: background .15s, color .15s; }
.ts-w .ts-mega-pie .ts-pie-btn:hover { background: var(--ts-granate); color: var(--ts-amarillo); }
.ts-w .ts-mega-pie .ts-pie-btn-lin { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ts-granate); }
.ts-w .ts-mega-pie .ts-pie-btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ts-w .ts-mega-pie a { font-weight: 800; font-size: 13.5px; text-decoration: underline; text-underline-offset: 4px; color: var(--ts-granate); }
.ts-w .ts-velo { position: fixed; inset: 0; background: rgba(43, 13, 17, .28); z-index: 900; }
.ts-w .ts-velo[hidden] { display: none; }

/* ---- cajón del móvil ---- */
.ts-w .ts-cajon { position: fixed; inset: 0; z-index: 100000; background: #fff; display: flex; flex-direction: column; color: var(--ts-granate); }
.ts-w .ts-cajon[hidden] { display: none; }
.ts-w .ts-cajon-top { display: flex; align-items: center; justify-content: space-between; padding: 0 14px; height: 62px; background: var(--ts-granate); flex: none; }
.ts-w .ts-cajon-top .ts-logo svg { height: 20px; }
.ts-w .ts-cierra { width: 42px; height: 42px; background: rgba(255, 255, 255, .14) !important; border-radius: 50%; color: var(--ts-crema); display: grid; place-items: center; }
.ts-w .ts-cierra svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.ts-w .ts-lista-m { padding: 8px 14px; overflow: auto; flex: 1; }
.ts-w .ts-acord { border-bottom: 1px solid var(--ts-linea); }
.ts-w .ts-acord > button { width: 100%; padding: 17px 4px; font-weight: 800; font-size: 17px; display: flex; justify-content: space-between; align-items: center; text-align: left; color: var(--ts-granate); }
.ts-w .ts-acord .ts-cont { display: none; padding: 0 0 14px; }
.ts-w .ts-acord.on .ts-cont { display: block; }
.ts-w .ts-acord.on .ts-chev { transform: rotate(-135deg); }
.ts-w .ts-acord .ts-cont a { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; font-weight: 600; font-size: 15px; color: var(--ts-granate); }
.ts-w .ts-acord .ts-cont a:hover { background: var(--ts-crema-claro); }
.ts-w .ts-acord .ts-cont img, .ts-w .ts-acord .ts-mini { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--ts-gris); flex: none; }
.ts-w .ts-acord .ts-rapido { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 4px 10px; }
.ts-w .ts-acord .ts-rapido a { background: #fff; border: 1px solid var(--ts-linea); padding: 8px 14px; border-radius: 999px; font-size: 13.5px; }
.ts-w .ts-simple a { display: block; padding: 17px 4px; font-weight: 800; font-size: 17px; border-bottom: 1px solid var(--ts-linea); color: var(--ts-granate); }
.ts-w .ts-cajon-pie { padding: 14px; border-top: 1px solid var(--ts-linea); display: grid; gap: 10px; flex: none; }
.ts-w .ts-cajon-pie .ts-pill { padding: 15px; font-size: 15px; }
.ts-w .ts-cajon-pie small { text-align: center; color: var(--ts-suave); font-size: 12.5px; }
.ts-w .ts-cajon-pie small a { color: var(--ts-granate); font-weight: 700; text-decoration: underline; }
body.ts-cajon-abierto { overflow: hidden; }

/* ---- pie: un solo bloque granate ---- */
.ts-w .ts-pie { background: var(--ts-granate); color: var(--ts-crema); padding: 48px max(40px, calc((100% - var(--ts-ancho)) / 2 + 40px)) 30px; display: grid; grid-template-columns: minmax(0, 1.55fr) repeat(var(--ts-n, 5), minmax(0, 1fr)); gap: 30px 26px; align-items: start; }
.ts-w .ts-pie .ts-izq { display: flex; flex-direction: column; align-items: flex-start; }
.ts-w .ts-pie .ts-logo-pie { color: var(--ts-amarillo); display: block; margin: 0 0 18px; }
.ts-w .ts-pie .ts-logo-pie svg { height: 40px; width: auto; }
.ts-w .ts-pie .ts-intro { margin: 0 0 18px; font-size: 21px; line-height: 1.28; font-weight: 600; color: #fff; letter-spacing: -.2px; }
.ts-w .ts-pie .ts-pill { box-shadow: none; }
.ts-w .ts-pie .ts-contacto { margin: 24px 0 0; font-size: 13.5px; line-height: 1.75; }
.ts-w .ts-pie .ts-contacto a { color: var(--ts-crema); text-decoration: underline; text-underline-offset: 3px; }
.ts-w .ts-redes { display: flex; gap: 12px; margin-top: 20px; }
.ts-w .ts-redes a { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(247, 237, 207, .5); display: grid; place-items: center; color: var(--ts-crema); }
.ts-w .ts-redes a:hover { background: rgba(255, 255, 255, .14); border-color: var(--ts-crema); }
.ts-w .ts-redes svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ts-w .ts-pie summary { list-style: none; cursor: default; pointer-events: none; }
.ts-w .ts-pie summary::-webkit-details-marker { display: none; }
.ts-w .ts-pie h5 { margin: 6px 0 15px; font-size: 12.5px; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; color: var(--ts-amarillo); }
.ts-w .ts-pie ul { display: grid; gap: 10px; }
.ts-w .ts-pie li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ts-w .ts-pie li a, .ts-w .ts-pie li .ts-btn-texto { font-size: 14px; line-height: 1.35; color: var(--ts-crema); opacity: .86; text-align: left; }
.ts-w .ts-pie li a:hover, .ts-w .ts-pie li .ts-btn-texto:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.ts-w .ts-base { grid-column: 1 / -1; margin-top: 14px; padding-top: 18px; border-top: 1px solid rgba(246, 237, 207, .16); display: flex; justify-content: space-between; align-items: baseline; gap: 6px 28px; flex-wrap: wrap; font-size: 12px; line-height: 1.6; color: rgba(246, 237, 207, .72); }
.ts-w .ts-base .ts-titular { max-width: 780px; }
.ts-w .ts-base .ts-senda { white-space: nowrap; font-size: 11.5px; }

/* ---- tableta ---- */
@media (max-width: 1100px) {
	.ts-w .ts-mega .ts-cuerpo { grid-template-columns: 220px minmax(0, 1fr); }
	.ts-w .ts-promos { display: none; }
}
@media (max-width: 960px) {
	.ts-w .ts-cab { height: 62px; padding: 0 20px; gap: 10px; }
	.ts-w .ts-logo svg { height: 22px; }
	.ts-w .ts-nav, .ts-w .ts-acciones > .ts-btn-nav, .ts-w .ts-acciones > .ts-btn-item { display: none; }
	.ts-w .ts-acciones { margin-left: auto; gap: 0; }
	.ts-w .ts-burger { display: grid !important; }
	.ts-w .ts-mega { display: none !important; }
	.ts-w .ts-barra { font-size: 12.5px; }
	.ts-w .ts-pc { display: none; }
	.ts-w .ts-mv { display: inline; }
	.ts-w .ts-pie { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; padding: 36px 24px 26px; }
	.ts-w .ts-pie .ts-izq { grid-column: 1 / -1; }
}

/* ---- móvil ---- */
@media (max-width: 600px) {
	.ts-w .ts-cab .ts-logo svg { height: 20px; }
	.ts-w .ts-barra { padding: 8px 40px 8px 12px; font-size: 12px; }
	.ts-w .ts-pie { grid-template-columns: minmax(0, 1fr) !important; padding: 28px 18px 18px; gap: 0; }
	.ts-w .ts-pie .ts-izq { margin-bottom: 10px; }
	.ts-w .ts-pie .ts-intro { font-size: 17px; }
	.ts-w .ts-pie details.ts-col { border-bottom: 1px solid rgba(255, 255, 255, .18); }
	.ts-w .ts-pie summary { cursor: pointer; pointer-events: auto; display: flex; align-items: center; justify-content: space-between; }
	.ts-w .ts-pie summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--ts-amarillo); border-bottom: 2px solid var(--ts-amarillo); transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
	.ts-w .ts-pie details.ts-col[open] > summary::after { transform: rotate(-135deg); }
	.ts-w .ts-pie details.ts-col > summary h5 { margin: 0; padding: 15px 0; }
	.ts-w .ts-pie details.ts-col ul { padding: 0 0 14px; }
	.ts-w .ts-base { display: block; padding-bottom: 6px; }
	.ts-w .ts-base .ts-senda { margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
	.ts-w .ts-msg, .ts-w .ts-chev, .ts-w .ts-cab * { transition: none !important; }
	.ts-w .ts-barra-pausa { display: none; }
}

/* En móvil el tema (Hello) pone 10 px de relleno a cada lado de <main>: en las páginas hechas con piezas de Tostao se quita para que las franjas y los fondos lleguen al borde de la pantalla. Cada pieza lleva su propio margen interior. */
@media (max-width: 600px) {
	main.site-main:has(> .page-content > .ts-w) { padding-left: 0; padding-right: 0; }
}

/* Portada de secciones deslizantes (modo escritorio del plugin tostao-secciones): la última pantalla y el pie comparten ventana,
   así que el pie se compacta (logotipo, contacto y enlaces legales en una fila) para que quepan. Fuera de ese modo el pie es el completo. */
html.tostao-previo .ts-w .ts-pie, html.tostao-salto .ts-w .ts-pie { grid-template-columns: minmax(0, 1fr) auto; padding: 16px max(40px, calc((100% - var(--ts-ancho)) / 2 + 40px)) 10px; gap: 4px 28px; align-items: center; }
html.tostao-previo .ts-w .ts-pie .ts-izq, html.tostao-salto .ts-w .ts-pie .ts-izq { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 26px; }
html.tostao-previo .ts-w .ts-pie .ts-logo-pie, html.tostao-salto .ts-w .ts-pie .ts-logo-pie { margin: 0; }
html.tostao-previo .ts-w .ts-pie .ts-logo-pie svg, html.tostao-salto .ts-w .ts-pie .ts-logo-pie svg { height: 30px; }
html.tostao-previo .ts-w .ts-pie .ts-intro, html.tostao-salto .ts-w .ts-pie .ts-intro,
html.tostao-previo .ts-w .ts-pie .ts-pill, html.tostao-salto .ts-w .ts-pie .ts-pill { display: none; }
html.tostao-previo .ts-w .ts-pie .ts-contacto, html.tostao-salto .ts-w .ts-pie .ts-contacto { margin: 0; font-size: 13px; line-height: 1.5; }
html.tostao-previo .ts-w .ts-pie > nav:not(:last-of-type), html.tostao-salto .ts-w .ts-pie > nav:not(:last-of-type) { display: none; }
html.tostao-previo .ts-w .ts-pie > nav:last-of-type summary, html.tostao-salto .ts-w .ts-pie > nav:last-of-type summary { display: none; }
html.tostao-previo .ts-w .ts-pie > nav:last-of-type ul, html.tostao-salto .ts-w .ts-pie > nav:last-of-type ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
html.tostao-previo .ts-w .ts-pie .ts-base, html.tostao-salto .ts-w .ts-pie .ts-base { margin-top: 2px; padding-top: 8px; }

/* ==========================================================================
   Logotipo: sin cambio de color al pasar el ratón + animación propia
   El kit de Elementor teñía el enlace con el color del fondo y el logotipo «se ocultaba».
   Ahora crece un poco y sus letras saltan en ola (T-O-S-T-A-O), una vez por pasada.
   ========================================================================== */
.ts-w a.ts-logo, .ts-w a.ts-logo:focus, .ts-w a.ts-logo:visited,
.ts-w a.ts-logo-pie, .ts-w a.ts-logo-pie:focus, .ts-w a.ts-logo-pie:visited { color: var(--ts-amarillo) !important; text-decoration: none; background: none; transition: color .25s ease; }
/* Al pasar el ratón (o enfocarlo con el teclado) el logotipo pasa a blanco */
.ts-w a.ts-logo:hover, .ts-w a.ts-logo:focus-visible, .ts-w a.ts-logo:active,
.ts-w a.ts-logo-pie:hover, .ts-w a.ts-logo-pie:focus-visible, .ts-w a.ts-logo-pie:active { color: #fff !important; }
.ts-w .ts-logo svg, .ts-w .ts-logo-pie svg { overflow: visible; transform-origin: 0 50%; transition: transform .28s cubic-bezier(.3, .7, .4, 1); }
.ts-w .ts-logo svg g > *, .ts-w .ts-logo-pie svg g > * { transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes ts-letra-salta {
	0%   { transform: translateY(0) scale(1, 1); }
	24%  { transform: translateY(-25%) scale(.94, 1.1); }
	48%  { transform: translateY(0) scale(1.07, .91); }
	68%  { transform: translateY(-6%) scale(.99, 1.03); }
	100% { transform: translateY(0) scale(1, 1); }
}
@media (hover: hover) {
	.ts-w a.ts-logo:hover svg, .ts-w a.ts-logo-pie:hover svg { transform: scale(1.05); }
}
.ts-w a.ts-logo:focus-visible svg, .ts-w a.ts-logo-pie:focus-visible svg { transform: scale(1.05); }
.ts-w a.ts-logo:hover svg g > *, .ts-w a.ts-logo:focus-visible svg g > *,
.ts-w a.ts-logo-pie:hover svg g > *, .ts-w a.ts-logo-pie:focus-visible svg g > * { animation: ts-letra-salta .66s cubic-bezier(.3, .7, .4, 1) var(--d, 0s) both; }
/* orden de las letras según los elementos del dibujo: 3 = T, 1 = O, 6 = S, 4 = T, 5 = A, 2 = O */
.ts-w .ts-logo svg g > :nth-child(3), .ts-w .ts-logo-pie svg g > :nth-child(3) { --d: 0s; }
.ts-w .ts-logo svg g > :nth-child(1), .ts-w .ts-logo-pie svg g > :nth-child(1) { --d: .07s; }
.ts-w .ts-logo svg g > :nth-child(6), .ts-w .ts-logo-pie svg g > :nth-child(6) { --d: .14s; }
.ts-w .ts-logo svg g > :nth-child(4), .ts-w .ts-logo-pie svg g > :nth-child(4) { --d: .21s; }
.ts-w .ts-logo svg g > :nth-child(5), .ts-w .ts-logo-pie svg g > :nth-child(5) { --d: .28s; }
.ts-w .ts-logo svg g > :nth-child(2), .ts-w .ts-logo-pie svg g > :nth-child(2) { --d: .35s; }
@media (prefers-reduced-motion: reduce) {
	.ts-w .ts-logo svg, .ts-w .ts-logo-pie svg { transition: none; transform: none !important; }
	.ts-w a.ts-logo:hover svg g > *, .ts-w a.ts-logo:focus-visible svg g > *, .ts-w a.ts-logo-pie:hover svg g > *, .ts-w a.ts-logo-pie:focus-visible svg g > * { animation: none; }
}
/* ---- Portada deslizante (plugin tostao-secciones): mismo margen lateral que la cabecera y el resto de páginas (solo escritorio) ---- */
@media (min-width: 1025px) {
	.e-con.e-parent.tostao-pantalla { padding-left: var(--ts-lado) !important; padding-right: var(--ts-lado) !important; }
	.e-con.e-parent.tostao-pantalla:has(> .elementor-widget-slides) { padding-left: 0 !important; padding-right: 0 !important; }
	.e-con.e-parent.tostao-pantalla:has(> .elementor-widget-slides) > .e-con.e-child { padding-left: var(--ts-lado) !important; padding-right: var(--ts-lado) !important; }
}

/* ---- Formaciones: la plantilla por defecto del tema limita el contenido a 800/1140 px; aquí va a ancho completo, alineada con la cabecera ---- */
html body .site-main:has(.ts-form) { width: 100%; max-width: none; margin: 0; padding: 0; overflow-x: clip; }

/* ==========================================================================
   Cafeteras en el menú (módulo «cafeteras»; solo existe con la página «Nuestras cafeteras» publicada)
   Elemento de texto junto a «Barista Room» (los botones amarillos son Formaciones y Tienda), con una raya amarilla propia bajo el texto.
   ========================================================================== */
.ts-w .ts-nav { --ts-nav-px: 15px; }
.ts-w .ts-nav .ts-item-caf > a { position: relative; }
.ts-w .ts-nav .ts-item-caf > a::after { content: ""; position: absolute; left: var(--ts-nav-px); right: var(--ts-nav-px); bottom: 4px; height: 2px; border-radius: 2px; background: var(--ts-amarillo); transition: left .15s, right .15s; }
.ts-w .ts-nav .ts-item-caf > a:hover::after { left: calc(var(--ts-nav-px) - 5px); right: calc(var(--ts-nav-px) - 5px); }
/* Con el elemento nuevo el menú lleva uno más: entre 961 y 1279 px los espacios se estrechan de forma proporcionada (más ancho = espacios de siempre)
   para que todo quepa en una sola línea, sin empujar los iconos. Desde 1280 px el menú es el de siempre. */
@media (min-width: 961px) and (max-width: 1279px) {
	.ts-w .ts-cab.ts-cab-caf { gap: clamp(10px, calc(10px + (100vw - 961px) * .0376), 22px); }
	.ts-w .ts-cab.ts-cab-caf .ts-logo svg { height: clamp(22px, calc(22px + (100vw - 961px) * .0125), 26px); }
	.ts-w .ts-cab.ts-cab-caf .ts-nav { --ts-nav-px: clamp(9px, calc(9px + (100vw - 961px) * .0188), 15px); margin-left: clamp(0px, calc((100vw - 961px) * .0376), 12px); gap: clamp(0px, calc((100vw - 961px) * .0125), 4px); }
	.ts-w .ts-cab.ts-cab-caf .ts-nav .ts-item > a, .ts-w .ts-cab.ts-cab-caf .ts-nav .ts-item > button { padding-inline: var(--ts-nav-px); font-size: clamp(12px, calc(12px + (100vw - 961px) * .00157), 12.5px); letter-spacing: clamp(.03em, calc(.03em + (100vw - 961px) * .00196), .08em); white-space: nowrap; }
	.ts-w .ts-cab.ts-cab-caf .ts-acciones { gap: clamp(4px, calc(4px + (100vw - 961px) * .0188), 10px); }
	.ts-w .ts-cab.ts-cab-caf .ts-btn-nav { padding-inline: clamp(12px, calc(12px + (100vw - 961px) * .0157), 17px); font-size: clamp(12px, calc(12px + (100vw - 961px) * .00157), 12.5px); letter-spacing: clamp(.03em, calc(.03em + (100vw - 961px) * .00196), .08em); white-space: nowrap; }
}
/* Cajón del móvil: entrada «Cafeteras» destacada justo bajo «Barista Room». */
.ts-w .ts-simple.ts-simple-caf { margin: 10px 0 6px; }
.ts-w .ts-simple.ts-simple-caf a { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 16px; border: 0; border-radius: 16px; background: var(--ts-crema); color: var(--ts-granate); font-weight: 800; font-size: 17px; }
.ts-w .ts-simple.ts-simple-caf a:hover { background: var(--ts-crema-claro); box-shadow: inset 0 0 0 1.5px var(--ts-granate); }
.ts-w .ts-simple.ts-simple-caf a[aria-current="page"] { background: var(--ts-granate); color: var(--ts-amarillo); box-shadow: none; }
.ts-w .ts-simple.ts-simple-caf span { flex: 1; }
.ts-w .ts-simple.ts-simple-caf .ts-cf-ic { width: 30px; height: 30px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ts-w .ts-simple.ts-simple-caf a > svg:last-child { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .ts-w .ts-nav .ts-item-caf > a::after { transition: none; } }
