/* ==========================================================================
   Torta & Receta Vitrina · estilos principales
   Paleta: mora, guayaba, arequipe, hojaldre y merengue.
   ========================================================================== */

:root {
	/* Paleta “Borgoña y oro”: estructura en borgoña, ornamentos en oro viejo, lienzo marfil. */
	--tyr-ink: #241418;
	--tyr-mora: #4a1426;          /* borgoña, color principal */
	--tyr-accent: #a8324f;        /* frambuesa vino */
	--tyr-accent-ink: #8c2440;    /* enlaces y textos de acento */
	--tyr-gold: #8f6b26;          /* oro viejo legible para textos */
	--tyr-gold-soft: #c9a75e;     /* oro decorativo: filetes y ornamentos */
	--tyr-gold-light: #d8bd7a;    /* oro claro sobre fondos oscuros */
	--tyr-bg: #fbf7f0;            /* marfil */
	--tyr-surface: #f3eadb;       /* vainilla */
	--tyr-surface-2: #fffdf8;
	--tyr-line: #e7dac4;
	--tyr-muted: #6b5a5e;
	--tyr-tint: #f1e6d2;
	--tyr-ring: rgba(176, 138, 62, .4);
	--tyr-wa: #1d7a4b;
	--tyr-font-display: "Lora", Georgia, "Times New Roman", serif;
	--tyr-font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--tyr-wrap: 1200px;
	--tr-deep: #350d1b;           /* barra superior y pie */
	--tr-on-dark: #f5ebdd;
	--tr-on-dark-muted: #d9c3b0;
	--tr-rosa: #b8964f;           /* segunda franja del toldo: oro viejo */
	--tr-noche: #1d0a12;          /* fondo del héroe */
	--tr-stripe: 28px;
	--tr-shadow: 0 18px 40px -18px rgba(74, 20, 38, .28);
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; background: var(--tyr-bg); color: var(--tyr-ink);
	font: 400 1.0625rem/1.6 var(--tyr-font-body);
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--tyr-accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--tyr-mora); }
h1, h2, h3, h4 { font-family: var(--tyr-font-display); color: var(--tyr-mora); line-height: 1.15; font-weight: 600; }
:focus-visible { outline: 3px solid var(--tyr-accent); outline-offset: 2px; }
::selection { background: var(--tr-rosa); color: var(--tyr-mora); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.tr-wrap { width: min(100% - 2.5rem, var(--tyr-wrap)); margin-inline: auto; }
.tr-skip { position: absolute; left: 1rem; top: -100px; z-index: 100; padding: .75rem 1rem; background: var(--tyr-mora); color: #fff; border-radius: 8px; }
.tr-skip:focus { top: 1rem; color: #fff; }

/* Barra superior -------------------------------------------------------- */
.tr-topbar { background: var(--tyr-mora); color: #e9d8c4; font-size: .84rem; }
.tr-topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.tr-topbar p { margin: 0; display: flex; align-items: center; gap: 1.1rem; }
.tr-topbar__date::first-letter { text-transform: uppercase; }
.tr-topbar a { color: #f5ebdd; text-decoration: none; }
.tr-topbar a:hover { color: #fff; text-decoration: underline; }
.tr-topbar__cta { padding: .2rem .7rem; border-radius: 999px; background: var(--tyr-accent); color: #fff !important; font-weight: 600; }
.tr-topbar__cta:hover { background: var(--tyr-accent-ink); text-decoration: none !important; }
.tr-cart-count { display: inline-grid; place-items: center; min-width: 1.4em; height: 1.4em; margin-left: .2rem; padding: 0 .3em; border-radius: 999px; background: #f5ebdd; color: var(--tyr-mora); font-size: .78rem; font-weight: 700; }

/* Cabecera --------------------------------------------------------------- */
.tr-masthead { background: var(--tyr-bg); position: relative; z-index: 20; }
.home .tr-masthead { background: transparent; }
.home .tr-masthead__row, .home .tr-nav, .home .tr-searchbar { background: var(--tyr-bg); }
.tr-masthead__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 1.4rem 0 1rem; }
.tr-brandbox { margin: 0; line-height: 0; justify-self: center; }
.tr-brandbox__h { margin: 0; font-size: inherit; line-height: 0; }
.tr-brand, .custom-logo-link { display: inline-block; }
.tr-brand img, .custom-logo { width: auto; height: 76px; }
.tr-iconbtn {
	display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 .9rem 0 .7rem;
	border: 1.5px solid var(--tyr-line); border-radius: 999px; background: transparent; color: var(--tyr-mora);
	font: 600 .9rem var(--tyr-font-body); cursor: pointer;
}
.tr-iconbtn:hover { border-color: var(--tyr-mora); }
.tr-menu-toggle { justify-self: start; visibility: hidden; }
.tr-search-toggle { justify-self: end; }
.tr-searchbar { padding: 0 0 1.25rem; }
.tr-searchbar[hidden] { display: none; }

.tr-nav { border-top: 1px solid var(--tyr-line); }
.tr-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 2rem; margin: 0; padding: .85rem 0; list-style: none; }
.tr-menu > li { position: relative; }
.tr-menu a { display: inline-block; padding: .3rem 0; color: var(--tyr-mora); font-weight: 600; font-size: .98rem; text-decoration: none; }
.tr-menu a:hover, .tr-menu .current-menu-item > a, .tr-menu .current-menu-ancestor > a { color: var(--tyr-accent-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.tr-menu .sub-menu {
	position: absolute; left: -1rem; top: 100%; z-index: 30; min-width: 220px; margin: 0; padding: .6rem 0; list-style: none;
	background: var(--tyr-surface-2); border-radius: 14px; box-shadow: 0 12px 30px rgba(62, 31, 51, .14), inset 0 0 0 1px var(--tyr-line);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.tr-menu li:hover > .sub-menu, .tr-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.tr-menu .sub-menu a { display: block; padding: .45rem 1.1rem; font-weight: 500; }

/* Toldo de pastelería: rayas y festón. Es el elemento firma del tema. */
.tr-awning {
	position: relative; height: 34px;
	background: repeating-linear-gradient(90deg, var(--tyr-mora) 0 var(--tr-stripe), var(--tr-rosa) var(--tr-stripe) calc(var(--tr-stripe) * 2)) top / 100% 20px no-repeat;
	transform-origin: top center; animation: tr-awning-drop .8s cubic-bezier(.2, .9, .25, 1.15) .1s both;
}
.tr-awning::after {
	content: ""; position: absolute; left: 0; right: 0; top: 20px; height: 14px;
	background:
		radial-gradient(circle at calc(var(--tr-stripe) / 2) 0, var(--tyr-mora) 13.5px, transparent 14px) 0 0 / calc(var(--tr-stripe) * 2) 14px repeat-x,
		radial-gradient(circle at calc(var(--tr-stripe) * 1.5) 0, var(--tr-rosa) 13.5px, transparent 14px) 0 0 / calc(var(--tr-stripe) * 2) 14px repeat-x;
}
@keyframes tr-awning-drop { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Chips de tipos de negocio */
.tr-chipsbar { padding: 1rem 0 0; }
.tr-chipsbar__row { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .25rem; }
.tr-chipsbar__row::-webkit-scrollbar { display: none; }
.tr-chipsbar .tyr-chip { flex: none; }

/* Contenido general ------------------------------------------------------ */
.tr-content { min-height: 50vh; }
.tr-section { margin-top: 4.5rem; }
.tr-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; padding-bottom: .9rem; margin-bottom: 1.75rem; border-bottom: 2px dotted var(--tyr-line); }
.tr-section-head__title { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.tr-section-head__intro { margin: .35rem 0 0; color: var(--tyr-muted); max-width: 60ch; }
.tr-section-head__more { flex: none; color: var(--tyr-accent-ink); font-weight: 600; white-space: nowrap; }
.tr-link-strong { display: inline-block; margin-top: .25rem; font-weight: 700; color: var(--tyr-mora); }

/* Banner patrocinado */
.tr-sponsor {
	display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: .5rem 1.25rem;
	margin-top: 1.75rem; padding: 1rem 1.5rem; border-radius: 16px; background: var(--tyr-surface); color: var(--tyr-ink); text-decoration: none;
}
.tr-sponsor__label { font-size: .78rem; font-weight: 700; color: var(--tyr-gold); }
.tr-sponsor__title { font: 600 1.15rem var(--tyr-font-display); color: var(--tyr-mora); }
.tr-sponsor__text { color: var(--tyr-muted); font-size: .95rem; }
.tr-sponsor__cta { font-weight: 700; color: var(--tyr-accent-ink); text-decoration: underline; }
.tr-sponsor:hover { background: #ecdfc9; color: var(--tyr-ink); }

/* Portada: Hoy en la Vitrina */
.tr-today { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 3rem; padding-top: 2.5rem; }
.tr-today__lead .tyr-card--lead { grid-template-columns: 1fr; gap: 1.25rem; }
.tr-today__lead .tyr-card--lead .tyr-card__media { aspect-ratio: 16 / 10; }
.tr-today__lead .tyr-card__title { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.08; letter-spacing: -.01em; }
.tr-today__side { display: flex; flex-direction: column; gap: 1.1rem; padding-left: 2rem; border-left: 2px dotted var(--tyr-line); }
.tr-today__side-title { margin: 0; font: italic 500 1.2rem var(--tyr-font-display); color: var(--tyr-gold); }

/* Franja hojaldre con carril de negocios */
.tr-band { margin-top: 4.5rem; padding: 3.5rem 0; }
.tr-band--hojaldre { background: var(--tyr-surface); }
.tr-band .tr-section-head { border-bottom-color: #dccbb0; }
.tr-band .tyr-negocio-card { background: var(--tyr-bg); }
.tr-band .tyr-negocio-card__body > .tyr-logo { box-shadow: 0 0 0 4px var(--tyr-bg); }
.tr-rail {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 1.5rem) / 4); gap: 1.5rem;
	overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-color: var(--tyr-mora) transparent;
}
.tr-rail > * { scroll-snap-align: start; }

/* Recetario */
.tr-recipes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.25rem 1.5rem; }
.tr-recipe-card { display: flex; flex-direction: column; gap: .55rem; }
.tr-recipe-card__media { display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--tyr-surface); margin-bottom: .35rem; }
.tr-recipe-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tr-recipe-card:hover .tr-recipe-card__media img { transform: scale(1.03); }
.tr-recipe-card__ph { display: grid; place-items: center; width: 100%; height: 100%; }
.tr-recipe-card__ph img { width: 64px; height: auto; opacity: .55; transform: none !important; }
.tr-recipe-card__cat { align-self: flex-start; color: var(--tyr-accent-ink); font-size: .85rem; font-weight: 600; text-decoration: none; }
.tr-recipe-card__title { margin: 0; font-size: 1.15rem; line-height: 1.3; text-wrap: balance; }
.tr-recipe-card__title a { color: var(--tyr-mora); text-decoration: none; }
.tr-recipe-card__title a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Invitación a negocios */
.tr-invite {
	display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 2.5rem;
	margin-top: 5rem; padding: 2.5rem 3rem; border-radius: 26px; background: var(--tyr-mora); color: #e3d0bd;
}
.tr-invite__seal { width: 150px; height: 150px; transform: rotate(-8deg); }
.tr-invite h2 { margin: 0 0 .6rem; color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.tr-invite p { margin: 0; max-width: 56ch; line-height: 1.6; }
.tr-btn-cream { background: var(--tyr-bg); color: var(--tyr-mora); }
.tr-btn-cream:hover { background: var(--tr-rosa); color: var(--tyr-mora); }

/* Encabezados de página ---------------------------------------------------- */
.tr-page-head { padding: 3rem 0 2rem; }
.tr-page-head__title { margin: 0; font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.01em; }
.tr-page-head__intro { max-width: 60ch; margin-top: .75rem; color: var(--tyr-muted); font-size: 1.08rem; }
.tr-listing { padding-bottom: 4rem; }
.tr-page { padding-bottom: 4rem; }
.tr-page__narrow { max-width: 760px; }
.tr-page--full { padding-bottom: 0; }

/* Receta individual */
.tr-single { padding-bottom: 4rem; }
.tr-single__head { max-width: 860px; padding: 3rem 0 1.75rem; }
.tr-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: 0 0 .9rem; color: var(--tyr-muted); font-size: .92rem; }
.tr-meta__cat { color: var(--tyr-accent-ink); font-weight: 700; text-decoration: none; }
.tr-single__title { margin: 0; font-size: clamp(2.3rem, 5.5vw, 3.8rem); line-height: 1.05; letter-spacing: -.015em; text-wrap: balance; }
.tr-single__lede { margin: 1rem 0 0; font: 400 1.25rem/1.55 var(--tyr-font-display); color: var(--tyr-muted); max-width: 60ch; }
.tr-single__figure { margin-bottom: 2.75rem; }
.tr-single__figure img { display: block; width: 100%; max-height: 620px; object-fit: cover; border-radius: 22px; }
.tr-single__layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.tr-single__layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 300px; gap: 3.5rem; }

.tr-prose { font-family: var(--tyr-font-display); font-size: 1.14rem; line-height: 1.8; max-width: 70ch; }
.tr-prose > * { margin-top: 0; margin-bottom: 1.15em; }
.tr-prose h2 { font-size: 1.7rem; margin-top: 2em; }
.tr-prose h3 { font-size: 1.35rem; margin-top: 1.75em; }
.tr-prose ul, .tr-prose ol { padding-left: 1.3em; }
.tr-prose li { margin-bottom: .35em; }
.tr-prose li::marker { color: var(--tyr-accent); }
.tr-prose img { border-radius: 14px; }
.tr-prose blockquote { margin-left: 0; padding: .25rem 0 .25rem 1.4rem; border-left: 3px solid var(--tyr-accent); font-style: italic; color: var(--tyr-muted); }
.tr-prose strong { color: var(--tyr-mora); }
.tr-prose a { color: var(--tyr-accent-ink); }

.tr-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px dotted var(--tyr-line); font-family: var(--tyr-font-body); font-size: .95rem; }
.tr-share span { font-weight: 700; color: var(--tyr-mora); margin-right: .25rem; }
.tr-share a { padding: .35rem .9rem; border-radius: 999px; background: var(--tyr-surface); color: var(--tyr-mora); text-decoration: none; font-weight: 600; }
.tr-share a:hover { background: var(--tyr-mora); color: #fff; }

.tr-sidebar { font-size: .98rem; }
.tr-widget { margin-bottom: 1.5rem; padding: 1.25rem; border-radius: 16px; background: var(--tyr-surface-2); box-shadow: inset 0 0 0 1px var(--tyr-line); }
.tr-widget__title { margin: 0 0 .75rem; font-size: 1.1rem; }
.tr-widget ul { margin: 0; padding-left: 1.1em; }

/* Búsqueda */
.tr-searchform { display: flex; gap: .5rem; max-width: 640px; }
.tr-searchform input { flex: 1; min-height: 48px; padding: .6rem 1.1rem; border: 1.5px solid var(--tyr-line); border-radius: 999px; background: #fff; font: 500 1rem var(--tyr-font-body); color: var(--tyr-ink); }
.tr-searchform input:focus { outline: none; border-color: var(--tyr-mora); box-shadow: 0 0 0 3px rgba(176, 138, 62, .4); }
.tr-searchbar .tr-searchform { margin-inline: auto; }

/* 404 */
.tr-404 { text-align: center; padding: 4rem 0 5rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.tr-404 p { max-width: 52ch; color: var(--tyr-muted); }

/* Comentarios */
.tr-comments-wrap { max-width: 760px; margin-top: 4rem; }
.tr-comment-list { list-style: none; padding: 0; }
.tr-comment-list .comment-body { padding: 1rem 0; border-bottom: 1px dashed var(--tyr-line); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: .65rem .85rem; border: 1.5px solid var(--tyr-line); border-radius: 10px; font: inherit; }
.comment-form .submit { min-height: 46px; padding: .6rem 1.3rem; border: 0; border-radius: 999px; background: var(--tyr-mora); color: #fff; font: 600 1rem var(--tyr-font-body); cursor: pointer; }

/* Pie de página ------------------------------------------------------------ */
.tr-footer { margin-top: 5rem; background: var(--tyr-mora); color: #e3d0bd; font-size: .96rem; }
.tr-footer__awning { height: 14px; background: radial-gradient(circle at 14px 0, var(--tyr-bg) 13.5px, transparent 14px) 0 0 / 28px 14px repeat-x; }
.tr-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.tr-footer__brand .tr-brand img { height: 64px; }
.tr-footer__brand p { max-width: 38ch; line-height: 1.6; }
.tr-footer h2 { margin: .25rem 0 1rem; color: #fff; font-size: 1.1rem; }
.tr-footer__list ul, ul.tr-footer__list, .tr-footer__list .tr-menu { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; justify-content: start; }
.tr-footer__list .tr-menu a { padding: 0; font-weight: 400; font-size: .96rem; }
.tr-footer a { color: #f5ebdd; text-decoration: none; }
.tr-footer a:hover { color: #fff; text-decoration: underline; }
.tr-social { display: flex; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.tr-social a { display: inline-block; padding: .35rem .85rem; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(246, 233, 225, .35); font-size: .88rem; }
.tr-social a:hover { background: rgba(246, 233, 225, .12); text-decoration: none; }
.tr-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0 2rem; border-top: 1px solid rgba(246, 233, 225, .14); font-size: .85rem; color: #cdb7a3; }
.tr-footer__bottom p { margin: 0; }
.tr-footer__legal { display: flex; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }

/* Páginas de tienda y formularios */
.tr-app > p:first-child { max-width: 62ch; color: var(--tyr-muted); font-size: 1.08rem; margin-top: 0; }
.wp-block-button__link { border-radius: 999px; background: var(--tyr-mora); }
.has-mora-color { color: #4a1426; } .has-mora-background-color { background-color: #4a1426; }
.has-guayaba-color { color: #a8324f; } .has-guayaba-background-color { background-color: #a8324f; }
.has-arequipe-color { color: #8f6b26; } .has-arequipe-background-color { background-color: #8f6b26; }
.has-hojaldre-color { color: #f3eadb; } .has-hojaldre-background-color { background-color: #f3eadb; }
.has-merengue-color { color: #fbf7f0; } .has-merengue-background-color { background-color: #fbf7f0; }
.alignwide { max-width: 1200px; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }

/* Responsivo ---------------------------------------------------------------- */
@media (max-width: 1100px) {
	.tr-rail { grid-auto-columns: calc((100% - 2 * 1.5rem) / 3); }
	.tr-recipes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tr-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	.tr-topbar__contact { display: none !important; }
	.tr-menu-toggle { visibility: visible; }
	.tr-iconbtn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
	.tr-iconbtn { width: 44px; padding: 0; justify-content: center; }
	.tr-brand img, .custom-logo { height: 54px; }
	.tr-nav { display: none; }
	.tr-nav.is-open { display: block; }
	.tr-menu { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0 1rem; }
	.tr-menu a { display: block; padding: .7rem 0; border-bottom: 1px dashed var(--tyr-line); font-size: 1.05rem; }
	.tr-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: none; padding: 0 0 0 1rem; }
	.tr-today { grid-template-columns: 1fr; gap: 2rem; }
	.tr-today__side { padding-left: 0; border-left: 0; padding-top: 1.5rem; border-top: 2px dotted var(--tyr-line); }
	.tr-rail { grid-auto-columns: 78%; }
	.tr-recipes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tr-invite { grid-template-columns: 1fr; gap: 1.25rem; padding: 2rem 1.5rem; text-align: left; }
	.tr-invite__seal { width: 110px; height: 110px; }
	.tr-single__layout.has-sidebar { grid-template-columns: 1fr; gap: 2rem; }
	.tr-sponsor { grid-template-columns: 1fr; gap: .25rem; }
}
@media (max-width: 600px) {
	body { font-size: 1rem; }
	.tr-topbar__date { display: none !important; }
	.tr-topbar__row { justify-content: flex-end; }
	.tr-masthead__row { padding: 1rem 0 .75rem; gap: .5rem; }
	.tr-brand img, .custom-logo { height: 44px; }
	.tr-section { margin-top: 3.25rem; }
	.tr-section-head { flex-direction: column; align-items: flex-start; gap: .5rem; }
	.tr-recipes { gap: 1.75rem 1rem; }
	.tr-recipe-card__title { font-size: 1.02rem; }
	.tr-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
	.tr-prose { font-size: 1.06rem; }
	.tr-searchform { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.tr-awning { animation: none; }
	.tr-recipe-card__media img, .tr-menu .sub-menu { transition: none; }
	.tr-recipe-card:hover .tr-recipe-card__media img { transform: none; }
}
@media print {
	.tr-topbar, .tr-masthead, .tr-chipsbar, .tr-footer, .tr-share, .tr-sidebar, .tr-comments-wrap { display: none !important; }
	body { background: #fff; }
}

/* ==========================================================================
   Acabados de la paleta: borgoña, oro viejo y marfil
   ========================================================================== */
::selection { background: var(--tyr-gold-light); color: var(--tr-deep); }
:focus-visible { outline-color: var(--tyr-gold-soft); }

.tr-topbar { background: var(--tr-deep); color: var(--tr-on-dark-muted); }
.tr-topbar a { color: var(--tr-on-dark); }
.tr-topbar a:hover { color: var(--tyr-gold-light); }
.tr-topbar__cta { background: var(--tyr-gold-light); color: var(--tr-deep) !important; }
.tr-topbar__cta:hover { background: #e6cf98; }
.tr-cart-count { background: var(--tyr-gold-light); color: var(--tr-deep); }

/* Filete dorado sobre el toldo */
.tr-awning { box-shadow: inset 0 2px 0 var(--tyr-gold-soft); }
.tr-menu a:hover, .tr-menu .current-menu-item > a, .tr-menu .current-menu-ancestor > a { color: var(--tyr-mora); text-decoration-color: var(--tyr-gold-soft); }

/* Encabezados de sección con rombo dorado y doble filete */
.tr-section-head { border-bottom: 3px double rgba(176, 138, 62, .55); }
.tr-section-head__title::before {
	content: ""; display: inline-block; width: .42em; height: .42em; margin: 0 .6em 0 .1em;
	background: var(--tyr-gold-soft); transform: rotate(45deg); vertical-align: .18em;
}
.tr-today__side { border-left-style: solid; border-left-width: 1px; }
.tr-today__side-title { color: var(--tyr-gold); }

/* Tarjetas: elevación suave al pasar el cursor */
.tyr-negocio-card { transition: transform .25s ease, box-shadow .25s ease; }
.tyr-negocio-card:hover { transform: translateY(-3px); box-shadow: var(--tr-shadow), inset 0 0 0 1px var(--tyr-line); }
.tyr-negocio-card.is-destacado { box-shadow: inset 0 0 0 2px var(--tyr-gold-soft); }
.tyr-negocio-card.is-destacado:hover { box-shadow: var(--tr-shadow), inset 0 0 0 2px var(--tyr-gold-soft); }
.tyr-btn--primary:hover, .mst-btn--primary:hover { background: var(--tr-deep); }

.tr-sponsor { box-shadow: inset 0 0 0 1px var(--tyr-line); }

/* Invitación a negocios */
.tr-invite {
	background: radial-gradient(120% 140% at 0% 0%, #5e1a31 0%, var(--tyr-mora) 45%, var(--tr-deep) 100%);
	box-shadow: inset 0 0 0 1px rgba(216, 189, 122, .35); color: var(--tr-on-dark-muted);
}
.tr-invite h2 { color: var(--tr-on-dark); }
.tr-btn-cream { background: var(--tyr-gold-light); color: var(--tr-deep); }
.tr-btn-cream:hover { background: #e6cf98; color: var(--tr-deep); }

/* Pie */
.tr-footer { background: var(--tr-deep); color: var(--tr-on-dark-muted); }
.tr-footer h2 { color: var(--tyr-gold-light); }
.tr-footer a { color: var(--tr-on-dark); }
.tr-footer a:hover { color: var(--tyr-gold-light); }
.tr-social a { box-shadow: inset 0 0 0 1px rgba(216, 189, 122, .4); }
.tr-footer__bottom { border-top-color: rgba(216, 189, 122, .2); color: var(--tr-on-dark-muted); }

@media (prefers-reduced-motion: reduce) {
	.tyr-negocio-card, .tyr-negocio-card:hover { transition: none; transform: none; }
}

/* Novedades desde la última visita */
.tr-since {
	display: inline-flex; align-items: center; gap: .55rem; margin: 1.5rem 0 0; padding: .45rem 1rem .45rem .8rem;
	border-radius: 999px; background: #f6eedd; color: var(--tyr-gold); font-weight: 600; font-size: .92rem;
	box-shadow: inset 0 0 0 1px rgba(176, 138, 62, .45);
}
.tr-since::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tyr-gold-soft); box-shadow: 0 0 0 4px rgba(201, 167, 94, .25); }
.tr-new {
	display: inline-block; margin-right: .45rem; padding: .08rem .5rem; border-radius: 999px; vertical-align: .15em;
	background: var(--tyr-mora); color: var(--tyr-gold-light); font: 700 .68rem/1.5 var(--tyr-font-body); letter-spacing: .03em;
}

/* Favoritos */
.tr-fav {
	display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .5rem 1rem; border: 1.5px solid var(--tyr-line);
	border-radius: 999px; background: #fff; color: var(--tyr-mora); font: 600 .95rem var(--tyr-font-body); cursor: pointer;
}
.tr-fav svg { fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .2s ease; }
.tr-fav[aria-pressed="true"] { border-color: var(--tyr-gold-soft); color: var(--tyr-accent); }
.tr-fav[aria-pressed="true"] svg { fill: currentColor; }
.tr-fav.is-pop svg { animation: tr-pop .35s ease; }
@keyframes tr-pop { 50% { transform: scale(1.3); } }
.tr-fav--icon { position: absolute; top: .65rem; right: .65rem; z-index: 2; width: 40px; height: 40px; min-height: 0; padding: 0; justify-content: center; border: 0; background: rgba(255, 253, 248, .92); box-shadow: 0 4px 14px -6px rgba(53, 13, 27, .35); }
.tr-recipe-card, .tyr-negocio-card { position: relative; }
.tr-share .tr-fav { margin-right: .75rem; }
.tr-favcard__remove { align-self: flex-start; margin-top: .25rem; padding: 0; border: 0; background: none; color: var(--tyr-muted); font: 500 .88rem var(--tyr-font-body); text-decoration: underline; cursor: pointer; }
.tr-favlink { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .tr-fav.is-pop svg { animation: none; } }
@media (max-width: 600px) { .tr-favlink { display: none; } }

/* Bienvenida (portada sin novedades todavía) */
.tr-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 3rem; padding: 3.5rem 0 1rem; }
.tr-hero__kicker { margin: 0 0 .75rem; font: italic 500 1.15rem var(--tyr-font-display); color: var(--tyr-gold); }
.tr-hero__title { margin: 0; font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.05; letter-spacing: -.015em; text-wrap: balance; }
.tr-hero__lede { max-width: 54ch; margin: 1.1rem 0 1.75rem; color: var(--tyr-muted); font-size: 1.12rem; line-height: 1.6; }
.tr-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.tr-hero__art { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--tyr-surface-2) 0 55%, var(--tyr-surface) 56% 100%); box-shadow: inset 0 0 0 1px var(--tyr-line), 0 0 0 10px var(--tyr-bg), 0 0 0 11px rgba(176, 138, 62, .45); }
.tr-hero__art img { width: 56%; height: auto; }
.tr-setup { margin-top: 2.5rem; padding: 1.5rem 1.75rem; border-radius: 18px; background: var(--tyr-surface-2); box-shadow: inset 0 0 0 1.5px var(--tyr-gold-soft); }
.tr-setup__title { margin: 0 0 .75rem; font-size: 1.2rem; }
.tr-setup__list { margin: 0; padding-left: 1.3em; display: grid; gap: .4rem; }
.tr-setup__list a { font-weight: 600; }
.tr-setup__note { margin: .9rem 0 0; color: var(--tyr-muted); font-size: .9rem; }
@media (max-width: 900px) {
	.tr-hero { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 2rem; }
	.tr-hero__art { width: 200px; justify-self: start; order: -1; }
}

/* ==========================================================================
   Gala 2.0 · portada
   ========================================================================== */

/* Toldo en borgoña y oro viejo, con filete dorado */
.tr-awning { background-color: transparent; }

/* Héroe oscuro */
.tr-hero2 {
	position: relative; overflow: hidden; color: var(--tr-on-dark-muted);
	background:
		radial-gradient(60% 80% at 85% 20%, rgba(168, 50, 79, .28), transparent 70%),
		radial-gradient(50% 70% at 10% 90%, rgba(201, 167, 94, .14), transparent 70%),
		linear-gradient(160deg, #2a0c18 0%, var(--tr-noche) 55%, #12060b 100%);
	margin-top: -34px; padding-top: 34px; /* el toldo cae sobre el héroe */
}
.tr-hero2::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background-image: radial-gradient(rgba(216, 189, 122, .18) 1px, transparent 1.2px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.tr-hero2__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; padding: 4.5rem 0 3rem; }
.tr-hero2__kicker { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.1rem; color: var(--tyr-gold-light); font: 600 .95rem var(--tyr-font-body); letter-spacing: .02em; }
.tr-hero2__kicker::before { content: ""; width: 28px; height: 1px; background: var(--tyr-gold-light); }
.tr-hero2__title { margin: 0; color: var(--tr-on-dark); font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
.tr-hero2__title em { font-style: italic; font-weight: 500; color: var(--tyr-gold-light); }
.tr-hero2__lede { max-width: 54ch; margin: 1.4rem 0 2rem; font-size: 1.12rem; line-height: 1.65; color: var(--tr-on-dark-muted); }

.tr-hero2__search { display: flex; gap: .5rem; padding: .45rem; border-radius: 999px; background: rgba(255, 253, 248, .96); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(216, 189, 122, .5); max-width: 640px; }
.tr-hero2__search input, .tr-hero2__search select { min-width: 0; border: 0; background: transparent; font: 500 1rem var(--tyr-font-body); color: var(--tyr-ink); }
.tr-hero2__search input { flex: 1; padding: .7rem 1rem; }
.tr-hero2__search select { padding: .7rem .5rem; border-left: 1px solid var(--tyr-line); max-width: 12rem; }
.tr-hero2__search input:focus, .tr-hero2__search select:focus { outline: none; }
.tr-hero2__search:focus-within { box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6), 0 0 0 3px var(--tyr-gold-soft); }
.tr-hero2__btn { flex: none; min-height: 48px; padding: 0 1.6rem; border: 0; border-radius: 999px; background: var(--tyr-mora); color: var(--tr-on-dark); font: 700 1rem var(--tyr-font-body); cursor: pointer; }
.tr-hero2__btn:hover { background: var(--tyr-accent-ink); }
.tr-hero2__search--wp { background: none; box-shadow: none; padding: 0; }

.tr-stats { display: flex; flex-wrap: wrap; gap: 2.25rem; margin: 2.25rem 0 0; padding: 0; list-style: none; }
.tr-stats li { display: grid; gap: .1rem; }
.tr-stats strong { font: 600 2rem/1 var(--tyr-font-display); color: var(--tyr-gold-light); }
.tr-stats span { font-size: .9rem; color: var(--tr-on-dark-muted); }

/* Panel “En vivo” */
.tr-live { position: relative; padding: 1.5rem; border-radius: 22px; background: rgba(255, 253, 248, .05); box-shadow: inset 0 0 0 1px rgba(216, 189, 122, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tr-live__head { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; color: var(--tr-on-dark); font: 600 1.05rem var(--tyr-font-display); }
.tr-live__dot { width: 10px; height: 10px; border-radius: 50%; background: #3fbf7f; box-shadow: 0 0 0 0 rgba(63, 191, 127, .6); animation: tr-pulse 2s infinite; }
@keyframes tr-pulse { 70% { box-shadow: 0 0 0 10px rgba(63, 191, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 191, 127, 0); } }
.tr-live__list { list-style: none; margin: 0; padding: 0; display: grid; }
.tr-live__item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .85rem; align-items: start; padding: .85rem 0; border-top: 1px solid rgba(216, 189, 122, .16); }
.tr-live__item:first-child { border-top: 0; padding-top: 0; }
.tr-live__item .tyr-logo { box-shadow: 0 0 0 1px rgba(216, 189, 122, .4); }
.tr-live__title { display: block; color: var(--tr-on-dark); font: 600 1rem/1.35 var(--tyr-font-display); text-decoration: none; }
.tr-live__title:hover { color: var(--tyr-gold-light); }
.tr-live__meta { display: block; margin-top: .2rem; font-size: .82rem; color: var(--tr-on-dark-muted); }
.tr-live__item.is-new .tr-live__title::after { content: " ●"; color: var(--tyr-gold-light); font-size: .7em; vertical-align: .2em; }
.tr-live__empty { margin: 0 0 1rem; line-height: 1.6; }
.tr-live__all { display: inline-block; margin-top: .75rem; color: var(--tyr-gold-light); font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }
.tr-live__all:hover { color: var(--tr-on-dark); }

/* Tipos de negocio dentro del héroe */
.tr-hero2__types { position: relative; display: flex; gap: .5rem; overflow-x: auto; padding: 0 0 2.5rem; scrollbar-width: none; }
.tr-hero2__types::-webkit-scrollbar { display: none; }
.tr-hero2__types a { flex: none; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: 999px; color: var(--tr-on-dark); text-decoration: none; font-weight: 600; font-size: .92rem; box-shadow: inset 0 0 0 1px rgba(216, 189, 122, .35); }
.tr-hero2__types a:hover { background: var(--tyr-gold-light); color: var(--tr-noche); }
.tr-hero2__types small { color: var(--tyr-gold-light); font-weight: 700; }
.tr-hero2__types a:hover small { color: var(--tr-noche); }

/* Países y ciudades */
.tr-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.tr-place { display: grid; gap: .2rem; padding: 1.25rem 1.25rem 1.1rem; border-radius: 18px; background: var(--tyr-surface-2); box-shadow: inset 0 0 0 1px var(--tyr-line); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.tr-place:hover { transform: translateY(-3px); box-shadow: var(--tr-shadow), inset 0 0 0 1px var(--tyr-gold-soft); }
.tr-place__flag { font-size: 2.1rem; line-height: 1; margin-bottom: .4rem; }
.tr-place__name { font: 600 1.15rem var(--tyr-font-display); color: var(--tyr-mora); }
.tr-place__count { font-size: .85rem; color: var(--tyr-muted); }
.tr-cities { display: flex; flex-wrap: wrap; gap: .6rem; }
.tr-city { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.1rem; border-radius: 999px; background: var(--tyr-mora); color: var(--tr-on-dark); text-decoration: none; font: 600 1rem var(--tyr-font-display); }
.tr-city small { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .4em; border-radius: 999px; background: var(--tyr-gold-light); color: var(--tr-noche); font: 700 .75rem var(--tyr-font-body); }
.tr-city:hover { background: var(--tr-noche); color: var(--tyr-gold-light); }

/* Primeros pasos sobre fondo claro */
.tr-setup { margin-top: 2.5rem; }

/* Superficies cálidas, sin rosados */
.tyr-card__media, .tr-recipe-card__media, .tyr-negocio-card__cover { background-color: #efe5d3; }
.tr-band--hojaldre { background: linear-gradient(180deg, var(--tyr-surface) 0%, #efe3cf 100%); }

@media (max-width: 960px) {
	.tr-hero2__grid { grid-template-columns: 1fr; gap: 2.25rem; padding: 3rem 0 2rem; }
}
@media (max-width: 600px) {
	.tr-hero2__search { flex-wrap: wrap; border-radius: 22px; }
	.tr-hero2__search input { flex: 1 1 100%; }
	.tr-hero2__search select { flex: 1; border-left: 0; border-top: 1px solid var(--tyr-line); max-width: none; }
	.tr-hero2__btn { flex: 1; }
	.tr-stats { gap: 1.5rem; }
	.tr-stats strong { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { .tr-live__dot { animation: none; } .tr-place { transition: none; } }

/* ==========================================================================
   Menú principal grande y elegante
   ========================================================================== */
.tr-nav .tr-menu { gap: .25rem 0; padding: 1.05rem 0 1.15rem; }
.tr-nav .tr-menu > li { display: flex; align-items: center; }
.tr-nav .tr-menu > li + li::before {
	content: ""; width: 6px; height: 6px; margin: 0 1.6rem; background: var(--tyr-gold-soft);
	transform: rotate(45deg); opacity: .9;
}
.tr-nav .tr-menu > li > a {
	position: relative; padding: .25rem 0; font: 600 1.32rem/1.1 var(--tyr-font-display); letter-spacing: .015em;
	color: var(--tyr-mora); text-decoration: none;
}
.tr-nav .tr-menu > li > a::after {
	content: ""; position: absolute; left: 50%; right: 50%; bottom: -.45rem; height: 2px; background: var(--tyr-gold-soft);
	transition: left .25s ease, right .25s ease;
}
.tr-nav .tr-menu > li > a:hover, .tr-nav .tr-menu > .current-menu-item > a, .tr-nav .tr-menu > .current-menu-ancestor > a { color: var(--tyr-accent-ink); text-decoration: none; }
.tr-nav .tr-menu > li > a:hover::after, .tr-nav .tr-menu > .current-menu-item > a::after, .tr-nav .tr-menu > .current-menu-ancestor > a::after { left: 0; right: 0; }
.tr-nav .tr-menu > .current-menu-item > a { font-style: italic; }
@media (max-width: 900px) {
	.tr-nav .tr-menu > li + li::before { display: none; }
	.tr-nav .tr-menu > li { display: block; }
	.tr-nav .tr-menu > li > a { display: block; padding: .85rem 0; font-size: 1.35rem; border-bottom: 1px dashed var(--tyr-line); }
	.tr-nav .tr-menu > li > a::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tr-nav .tr-menu > li > a::after { transition: none; } }

/* ==========================================================================
   Buscador en vivo
   ========================================================================== */
.tr-has-live { position: relative; }
.tr-livebox {
	position: absolute; left: 0; right: 0; top: calc(100% + .5rem); z-index: 60; max-height: min(70vh, 520px); overflow: auto;
	padding: .6rem; border-radius: 18px; background: var(--tyr-surface-2); color: var(--tyr-ink); text-align: left;
	box-shadow: 0 28px 60px -20px rgba(29, 10, 18, .55), inset 0 0 0 1px var(--tyr-line);
}
.tr-livebox[hidden] { display: none; }
.tr-livebox__group { margin: .6rem .6rem .3rem; font: 700 .78rem var(--tyr-font-body); letter-spacing: .04em; color: var(--tyr-gold); }
.tr-livebox__syn { margin: .2rem .6rem .5rem; font-size: .85rem; color: var(--tyr-muted); }
.tr-livebox__syn em { font-style: normal; font-weight: 600; color: var(--tyr-mora); }
.tr-livebox__empty { margin: .7rem .6rem; color: var(--tyr-muted); }
.tr-livebox__item { display: flex; align-items: center; gap: .75rem; padding: .55rem .6rem; border-radius: 12px; color: var(--tyr-ink); text-decoration: none; }
.tr-livebox__item:hover, .tr-livebox__item.is-active { background: var(--tyr-surface); }
.tr-livebox__pic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; overflow: hidden; background: var(--tyr-mora); color: var(--tyr-gold-light); font: italic 600 .95rem var(--tyr-font-display); }
.tr-livebox__pic img { width: 100%; height: 100%; object-fit: cover; }
.tr-livebox__txt { display: grid; min-width: 0; }
.tr-livebox__txt strong { font: 600 1rem/1.3 var(--tyr-font-display); color: var(--tyr-mora); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-livebox__txt small { color: var(--tyr-muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-livebox__all { display: block; margin: .4rem .2rem .2rem; padding: .7rem .8rem; border-radius: 12px; background: var(--tyr-mora); color: var(--tr-on-dark); font-weight: 700; text-align: center; text-decoration: none; }
.tr-livebox__all:hover, .tr-livebox__all.is-active { background: var(--tr-noche); color: var(--tyr-gold-light); }
.tr-hero2__search.tr-has-live { position: relative; }

/* El menú de resultados del buscador puede salir del héroe */
.tr-hero2 { overflow: visible; z-index: 5; }
.tr-hero2::before { border-radius: 0; }
