/*
 * La Vitrina · estilos públicos.
 * Usa las variables del tema Torta & Receta; si se usa con otro tema, aplica los valores por defecto.
 */
:where(:root) {
	--tyr-ink: #241418;
	--tyr-mora: #4a1426;
	--tyr-accent: #a8324f;
	--tyr-accent-ink: #8c2440;
	--tyr-gold: #8f6b26;
	--tyr-bg: #fbf7f0;
	--tyr-surface: #f3eadb;
	--tyr-surface-2: #fffdf8;
	--tyr-line: #e7dac4;
	--tyr-muted: #6b5a5e;
	--tyr-wa: #1d7a4b;
	--tyr-gold-soft: #c9a75e;
	--tyr-gold-light: #d8bd7a;
	--tyr-font-display: "Lora", Georgia, "Times New Roman", serif;
	--tyr-font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	--tyr-wrap: 1200px;
}

.tyr-wrap { width: min(100% - 2.5rem, var(--tyr-wrap)); margin-inline: auto; }
.tyr-main { padding-bottom: 4rem; color: var(--tyr-ink); font-family: var(--tyr-font-body); }
.tyr-muted { color: var(--tyr-muted); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Botones */
.tyr-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 44px; padding: .6rem 1.15rem; border-radius: 999px;
	font: 600 .95rem/1.1 var(--tyr-font-body); text-decoration: none; cursor: pointer;
	border: 1.5px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.tyr-btn--primary { background: var(--tyr-mora); color: #fff; }
.tyr-btn--primary:hover { background: var(--tyr-accent-ink); color: #fff; }
.tyr-btn--wa { background: var(--tyr-wa); color: #fff; }
.tyr-btn--wa:hover { background: #156b3f; color: #fff; }
.tyr-btn--ghost { border-color: var(--tyr-mora); color: var(--tyr-mora); background: transparent; }
.tyr-btn--ghost:hover { background: var(--tyr-mora); color: #fff; }
.tyr-btn--link { color: var(--tyr-mora); padding-inline: .6rem; text-decoration: underline; text-underline-offset: 3px; }
.tyr-btn:focus-visible, .tyr-chip:focus-visible, .tyr-tag:focus-visible, .tyr-main a:focus-visible { outline: 3px solid var(--tyr-accent); outline-offset: 2px; }

/* Logos de negocio */
.tyr-logo {
	--s: 40px; flex: none; display: inline-grid; place-items: center;
	width: var(--s); height: var(--s); border-radius: 50%; overflow: hidden;
	background: #fff; box-shadow: 0 0 0 1px var(--tyr-line);
}
.tyr-logo img { width: 100%; height: 100%; object-fit: cover; }
.tyr-logo--mono {
	background: var(--tyr-mora); color: var(--tyr-gold-light, #d8bd7a); box-shadow: none;
	font: italic 600 calc(var(--s) * .42)/1 var(--tyr-font-display); letter-spacing: .02em;
}
.tyr-logo--xs { --s: 24px; }
.tyr-logo--sm { --s: 36px; }
.tyr-logo--md { --s: 64px; }
.tyr-logo--xl { --s: 128px; box-shadow: 0 0 0 6px var(--tyr-bg), 0 0 0 7px var(--tyr-line); }
.tyr-logo--admin { --s: 36px; }

/* Etiqueta del negocio: forma de etiqueta de precio con ojal */
.tyr-tag {
	position: relative; display: inline-flex; align-items: center; gap: .45rem; max-width: 100%;
	padding: .22rem .75rem .22rem 1.25rem; border-radius: 6px 999px 999px 6px;
	background: var(--tyr-surface); color: var(--tyr-mora); text-decoration: none;
	font: 600 .82rem/1.2 var(--tyr-font-body);
}
.tyr-tag::before {
	content: ""; position: absolute; left: .45rem; top: 50%; width: 6px; height: 6px; margin-top: -3px;
	border-radius: 50%; background: var(--tyr-bg); box-shadow: inset 0 0 0 1px var(--tyr-line);
}
.tyr-tag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tyr-tag:hover { background: #ece0cc; }

/* Tarjetas de novedad */
.tyr-grid { display: grid; gap: 2.25rem 1.75rem; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.tyr-grid--2 { --cols: 2; }
.tyr-grid--3 { --cols: 3; }
.tyr-grid--4 { --cols: 4; }
.tyr-card { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.tyr-card__media { display: block; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; background: var(--tyr-surface); }
.tyr-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tyr-card:hover .tyr-card__media img { transform: scale(1.03); }
.tyr-card__body { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.tyr-card__tipo { align-self: flex-start; color: var(--tyr-accent-ink); font: 600 .85rem/1.2 var(--tyr-font-body); text-decoration: none; }
.tyr-card__tipo:hover { text-decoration: underline; }
.tyr-card__title { margin: 0; font: 600 1.2rem/1.28 var(--tyr-font-display); color: var(--tyr-mora); text-wrap: balance; }
.tyr-card__title a { color: inherit; text-decoration: none; }
.tyr-card__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.tyr-card__excerpt { margin: 0; color: var(--tyr-muted); font-size: .95rem; line-height: 1.55; }
.tyr-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-top: .35rem; font-size: .82rem; color: var(--tyr-muted); }
.tyr-card--noimg { padding: 1.25rem; border-radius: 14px; background: var(--tyr-surface-2); box-shadow: inset 0 0 0 1px var(--tyr-line); }
.tyr-card--compact { padding-bottom: 1rem; border-bottom: 1px dashed var(--tyr-line); }
.tyr-card--compact .tyr-card__title { font-size: 1.05rem; }
.tyr-card--compact.tyr-card--noimg { padding: 0 0 1rem; background: none; box-shadow: none; border-radius: 0; }

.tyr-lead-row { margin-bottom: 2.75rem; }
.tyr-card--lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem; align-items: center; }
.tyr-card--lead .tyr-card__media { aspect-ratio: 4 / 3; border-radius: 18px; }
.tyr-card--lead .tyr-card__title { font-size: clamp(1.7rem, 2.6vw, 2.5rem); line-height: 1.12; }
.tyr-card--lead .tyr-card__excerpt { font-size: 1.05rem; }
.tyr-card--lead.tyr-card--noimg { grid-template-columns: 1fr; }

/* Tarjetas de negocio */
.tyr-dir-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tyr-negocio-card { position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--tyr-surface-2); box-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, #c9a75e); }
.tyr-negocio-card__cover {
	display: block; aspect-ratio: 16 / 7; background: var(--tyr-surface) center / cover no-repeat;
	background-image: radial-gradient(circle at 12px 12px, #e9dcc6 2px, transparent 2.5px);
	background-size: cover;
}
.tyr-negocio-card__cover:not([style]) { background-size: 18px 18px; background-repeat: repeat; }
.tyr-negocio-card__body { display: flex; flex-direction: column; gap: .35rem; padding: 0 1.25rem 1.25rem; flex: 1; }
.tyr-negocio-card__body > .tyr-logo { margin-top: -32px; box-shadow: 0 0 0 4px var(--tyr-surface-2); }
.tyr-negocio-card__name { margin: .5rem 0 0; font: 600 1.2rem/1.25 var(--tyr-font-display); color: var(--tyr-mora); display: flex; align-items: center; gap: .4rem; }
.tyr-negocio-card__name a { color: inherit; text-decoration: none; }
.tyr-negocio-card__name a::after { content: ""; position: absolute; inset: 0; }
.tyr-negocio-card__where { margin: 0; color: var(--tyr-accent-ink); font-size: .88rem; font-weight: 600; }
.tyr-negocio-card__desc { margin: .25rem 0 0; color: var(--tyr-muted); font-size: .92rem; line-height: 1.5; }
.tyr-negocio-card__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: 1rem; }
.tyr-negocio-card__actions .tyr-btn { min-height: 40px; padding: .45rem .9rem; font-size: .88rem; }
.tyr-verified { flex: none; display: inline-block; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23a47c30' d='M10 0l2.4 2.1 3.2-.3.9 3.1 2.8 1.6-1 3 1 3-2.8 1.6-.9 3.1-3.2-.3L10 20l-2.4-2.1-3.2.3-.9-3.1L.7 13.5l1-3-1-3 2.8-1.6.9-3.1 3.2.3z'/%3E%3Cpath d='M6 10.2l2.6 2.6L14 7.4' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.tyr-badge .tyr-verified { width: 18px; height: 18px; }

/* Filtros y chips */
.tyr-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1.5rem 0 0; }
.tyr-filtros input[type="search"], .tyr-filtros select {
	min-height: 46px; padding: .55rem 1rem; border: 1.5px solid var(--tyr-line); border-radius: 999px;
	background: #fff; color: var(--tyr-ink); font: 500 .95rem var(--tyr-font-body);
}
.tyr-filtros input[type="search"] { width: min(100%, 22rem); }
.tyr-filtros input:focus, .tyr-filtros select:focus { outline: none; border-color: var(--tyr-mora); box-shadow: 0 0 0 3px rgba(176, 138, 62, .4); }
.tyr-filtros__search { flex: 1 1 16rem; display: flex; }
.tyr-filtros__search input { flex: 1; }
.tyr-filtros__reset { color: var(--tyr-muted); font-size: .9rem; }
.tyr-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.tyr-chip { padding: .4rem .9rem; border-radius: 999px; background: var(--tyr-surface); color: var(--tyr-mora); font: 600 .88rem/1.2 var(--tyr-font-body); text-decoration: none; }
.tyr-chip:hover, .tyr-chip.is-active { background: var(--tyr-mora); color: #fff; }

/* Archivos */
.tyr-archive__head { padding: 3rem 0 2.5rem; }
.tyr-archive__title { margin: 0; font: 600 clamp(2.2rem, 5vw, 3.6rem)/1.05 var(--tyr-font-display); color: var(--tyr-mora); letter-spacing: -.01em; }
.tyr-archive__intro { max-width: 60ch; margin: .75rem 0 0; color: var(--tyr-muted); font-size: 1.08rem; line-height: 1.6; }
.tyr-section { margin-top: 3rem; }
.tyr-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.tyr-section__title { margin: 0 0 1.25rem; font: 600 1.6rem/1.2 var(--tyr-font-display); color: var(--tyr-mora); }
.tyr-section__more { color: var(--tyr-accent-ink); font-weight: 600; }
.tyr-pagination { margin-top: 3rem; }
.tyr-pagination .nav-links, nav.tyr-pagination { display: flex; flex-wrap: wrap; gap: .4rem; }
.tyr-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .8rem; border-radius: 999px; color: var(--tyr-mora); text-decoration: none; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--tyr-line); }
.tyr-pagination .page-numbers.current { background: var(--tyr-mora); color: #fff; box-shadow: none; }
.tyr-empty { padding: 2.5rem; border-radius: 18px; background: var(--tyr-surface-2); box-shadow: inset 0 0 0 1px var(--tyr-line); max-width: 46rem; }
.tyr-empty p { margin: 0 0 .4rem; }

/* Ficha del negocio */
.tyr-negocio__hero { position: relative; padding-top: 2.5rem; }
.tyr-negocio__hero.has-cover { padding-top: 0; }
.tyr-negocio__cover { height: clamp(200px, 32vw, 380px); background: var(--tyr-surface) center / cover no-repeat; }
.tyr-negocio__id { display: flex; align-items: flex-end; gap: 1.5rem; }
.has-cover .tyr-negocio__id { margin-top: -64px; align-items: flex-start; }
.has-cover .tyr-negocio__titles { padding-top: 76px; }
.tyr-negocio__titles { padding-bottom: .5rem; min-width: 0; }
.tyr-negocio__kicker { margin: 0 0 .25rem; font-weight: 600; color: var(--tyr-muted); }
.tyr-negocio__kicker a { color: var(--tyr-accent-ink); text-decoration: none; }
.tyr-negocio__name { margin: 0; font: 600 clamp(2rem, 4.5vw, 3.2rem)/1.05 var(--tyr-font-display); color: var(--tyr-mora); }
.tyr-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin: .75rem 0 0; padding: 0; list-style: none; }
.tyr-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 999px; background: var(--tyr-surface); color: var(--tyr-mora); font-size: .85rem; font-weight: 600; }
.tyr-badge--verified { background: #f6eedd; color: var(--tyr-gold); padding-left: .4rem; }
.tyr-actions { display: flex; flex-wrap: wrap; gap: .6rem; padding: 1.75rem 0; border-bottom: 1px solid var(--tyr-line); }
.tyr-negocio__layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; }
.tyr-negocio__aside { display: flex; flex-direction: column; gap: 1rem; padding-top: 3rem; }
.tyr-box { padding: 1.25rem 1.35rem; border-radius: 16px; background: var(--tyr-surface-2); box-shadow: inset 0 0 0 1px var(--tyr-line); }
.tyr-box__title { margin: 0 0 .6rem; font: 600 1.05rem/1.3 var(--tyr-font-display); color: var(--tyr-mora); }
.tyr-box p { margin: 0; line-height: 1.6; }
.tyr-dl { margin: 0; display: grid; gap: .15rem; }
.tyr-dl dt { font-size: .8rem; color: var(--tyr-muted); margin-top: .5rem; }
.tyr-dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.tyr-dl a { color: var(--tyr-mora); }
.tyr-minilist { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.tyr-minilist li { display: flex; align-items: center; gap: .65rem; }
.tyr-minilist a { color: var(--tyr-mora); font-weight: 600; text-decoration: none; }
.tyr-minilist small { display: block; color: var(--tyr-muted); font-size: .8rem; }
.tyr-prose { font-family: var(--tyr-font-display); font-size: 1.1rem; line-height: 1.75; max-width: 68ch; }
.tyr-prose p { margin: 0 0 1.1em; }

/* Novedad */
.tyr-novedad__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; padding-top: 2.5rem; }
.tyr-crumbs { display: flex; gap: .5rem; font-size: .9rem; font-weight: 600; }
.tyr-crumbs a { color: var(--tyr-accent-ink); text-decoration: none; }
.tyr-crumbs span { color: var(--tyr-line); }
.tyr-novedad__title { margin: .75rem 0 .5rem; font: 600 clamp(1.9rem, 4vw, 3rem)/1.1 var(--tyr-font-display); color: var(--tyr-mora); text-wrap: balance; }
.tyr-novedad__figure { margin: 1.75rem 0; border-radius: 18px; overflow: hidden; background: var(--tyr-surface); }
.tyr-novedad__figure img { width: 100%; max-height: 560px; object-fit: cover; display: block; }
.tyr-lede { font-size: 1.22rem; color: var(--tyr-ink); }
.tyr-novedad__cta { margin: 1.5rem 0 .75rem; }
.tyr-source-note { max-width: 60ch; margin: 0; color: var(--tyr-muted); font-size: .85rem; line-height: 1.5; }
.tyr-novedad__aside { padding-top: 3.25rem; }

/* Formulario de inscripción */
.tyr-form { max-width: 46rem; display: grid; gap: 1.25rem; }
.tyr-form fieldset { margin: 0; padding: 1.5rem; border: 0; border-radius: 18px; background: var(--tyr-surface-2); box-shadow: inset 0 0 0 1px var(--tyr-line); }
.tyr-form legend { padding: 0; font: 600 1.25rem var(--tyr-font-display); color: var(--tyr-mora); float: left; width: 100%; margin-bottom: 1rem; }
.tyr-form legend + * { clear: both; }
.tyr-form p { margin: 0 0 1rem; display: grid; gap: .35rem; }
.tyr-form label { font-weight: 600; font-size: .92rem; color: var(--tyr-mora); }
.tyr-form input[type="text"], .tyr-form input[type="email"], .tyr-form input[type="url"], .tyr-form input[type="tel"], .tyr-form select, .tyr-form textarea {
	width: 100%; min-height: 46px; padding: .6rem .85rem; border: 1.5px solid var(--tyr-line); border-radius: 10px; background: #fff; font: 400 1rem var(--tyr-font-body); color: var(--tyr-ink);
}
.tyr-form input:focus, .tyr-form select:focus, .tyr-form textarea:focus { outline: none; border-color: var(--tyr-mora); box-shadow: 0 0 0 3px rgba(176, 138, 62, .4); }
.tyr-form small { color: var(--tyr-muted); }
.tyr-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.tyr-check label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; color: var(--tyr-ink); line-height: 1.5; }
.tyr-check input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--tyr-mora); }
.tyr-hp { position: absolute; left: -9999px; }
.tyr-notice { padding: 1rem 1.25rem; border-radius: 12px; margin-bottom: 1rem; }
.tyr-notice--ok { background: #e6f4ec; color: #134e2f; }
.tyr-notice--err { background: #f7e9ea; color: #7a1d36; }

@media (max-width: 960px) {
	.tyr-grid--3, .tyr-grid--4 { --cols: 2; }
	.tyr-card--lead { grid-template-columns: 1fr; gap: 1.25rem; }
	.tyr-negocio__layout, .tyr-novedad__grid { grid-template-columns: 1fr; gap: 1rem; }
	.tyr-negocio__aside, .tyr-novedad__aside { padding-top: 1rem; }
}
@media (max-width: 600px) {
	.tyr-grid, .tyr-grid--2, .tyr-grid--3, .tyr-grid--4 { --cols: 1; }
	.tyr-negocio__id { flex-direction: column; align-items: flex-start; gap: .75rem; }
	.has-cover .tyr-negocio__titles { padding-top: 0; }
	.tyr-logo--xl { --s: 96px; }
	.tyr-form-row { grid-template-columns: 1fr; }
	.tyr-filtros > label:not(.tyr-filtros__search) { flex: 1 1 45%; }
	.tyr-filtros select { width: 100%; }
	.tyr-filtros .tyr-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.tyr-card__media img { transition: none; }
	.tyr-card:hover .tyr-card__media img { transform: none; }
}

/* Planes del formulario de inscripción */
.tyr-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.tyr-plan { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--tyr-line); cursor: pointer; }
.tyr-plan:has(input:checked) { box-shadow: inset 0 0 0 2px var(--tyr-mora); background: #fdf8f0; }
.tyr-plan--paid:has(input:checked) { box-shadow: inset 0 0 0 2px var(--tyr-gold); }
.tyr-plan input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--tyr-mora); flex: none; }
.tyr-plan__body { display: grid; gap: .25rem; }
.tyr-plan__body strong { font: 600 1.1rem var(--tyr-font-display); color: var(--tyr-mora); }
.tyr-plan__price { font-weight: 700; color: var(--tyr-accent-ink); }
.tyr-plan__body small { color: var(--tyr-muted); line-height: 1.45; font-weight: 400; }
.tyr-form .tyr-plan, .tyr-form .tyr-plan * { font-size: inherit; }
.tyr-help { color: var(--tyr-muted); font-size: .88rem; margin: .5rem 0 0 !important; }
.tyr-form input[type="file"] { padding: .5rem; min-height: auto; background: #fff; border: 1.5px dashed var(--tyr-line); border-radius: 10px; width: 100%; }

/* Novedades de medios y crédito de datos */
.tyr-tag--medio { cursor: default; }
.tyr-tag--medio:hover { background: var(--tyr-surface); }
.tyr-box--osm { font-size: .85rem; color: var(--tyr-muted); }
.tyr-box--osm p { margin: 0 0 .4rem; }

/* Mapa dentro de la ficha */
.tyr-mapa { scroll-margin-top: 1.5rem; }
.tyr-mapa__dir { margin: -.5rem 0 1rem; color: var(--tyr-muted); }
.tyr-mapa__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--tyr-surface); box-shadow: inset 0 0 0 1px var(--tyr-line), 0 18px 40px -24px rgba(53, 13, 27, .45); }
.tyr-mapa__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 600px) { .tyr-mapa__frame { aspect-ratio: 4 / 3; } }

/* Párrafo amplio de la noticia */
.tyr-novedad__text p { font-size: 1.12rem; line-height: 1.8; }
.tyr-novedad__text .tyr-lede { font-size: 1.28rem; line-height: 1.6; color: var(--tyr-mora); }
