/*
 * Escaparate de Ofertas: listado, ficha y bloque del barrio (DECISIONES 249).
 * De la misma familia que la landing: la tarjeta es la etiqueta colgada.
 */

body.rt-escaparate .row.page-header-no-bg { display: none; }

.rt-esc {
	--rojo: var(--rt-color-rojo, #f71920);
	--rojo-texto: var(--rt-color-rojo-accesible, #c9141e);
	--tinta: var(--rt-color-tinta, #1d1d1f);
	--gris: #5c5e64;
	--niebla: var(--rt-color-fondo, #f4f5f6);
	--linea: rgb(29 29 31 / 12%);
	--radio: 1.25rem;
	max-width: 72rem;
	margin: 0 auto;
	padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem);
	color: var(--tinta);
	font-family: var(--rt-font-body, "Manrope", system-ui, sans-serif);
}
.rt-esc *, .rt-esc *::before, .rt-esc *::after { box-sizing: border-box; }
.rt-esc h1, .rt-esc h2, .rt-esc h3, .rt-esc p, .rt-esc a, .rt-esc span, .rt-esc label, .rt-esc select {
	font-family: var(--rt-font-heading, "Manrope", system-ui, sans-serif) !important;
	text-transform: none !important;
	letter-spacing: normal;
}
.rt-esc ul { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.rt-esc ul > li { margin: 0 !important; padding: 0; list-style: none !important; }
.rt-esc ul > li::marker { content: "" !important; }
.rt-esc a:focus-visible, .rt-esc select:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; border-radius: 6px; }

/* --- Cabecera del listado -------------------------------------------- */
.rt-esc__cabecera { margin: 0 0 2rem; }
.rt-esc .rt-esc__titulo {
	margin: 0 0 .75rem; color: var(--tinta);
	font-size: clamp(2.5rem, 6.5vw, 4.5rem); font-weight: 800; line-height: .98; letter-spacing: -.045em;
}
.rt-esc .rt-esc__entradilla { margin: 0; max-width: 40rem; color: var(--gris); font-size: clamp(1.0625rem, 2vw, 1.25rem); line-height: 1.55; }

/* --- Filtros ----------------------------------------------------------- */
.rt-esc__filtros { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1.5rem; padding: 0 0 1.25rem; border-bottom: 1px solid var(--linea); }
.rt-esc__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.rt-esc .rt-esc__chip {
	display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1rem;
	border: 2px solid var(--tinta); border-radius: 999px; background: #fff; color: var(--tinta);
	font-size: .9375rem; font-weight: 700; text-decoration: none;
}
.rt-esc .rt-esc__chip:hover { background: var(--niebla); }
.rt-esc .rt-esc__chip.is-activo { background: var(--tinta); color: #fff; }
.rt-esc__barrio { display: flex; align-items: center; gap: .5rem; margin: 0; }
.rt-esc .rt-esc__barrio label { font-weight: 700; font-size: .9375rem; }
.rt-esc .rt-esc__barrio select {
	min-height: 2.5rem; padding: 0 2.25rem 0 .875rem; border: 2px solid var(--tinta) !important; border-radius: 999px !important;
	background: #fff; color: var(--tinta); font-size: .9375rem; font-weight: 700;
}
.rt-esc .rt-esc__cuantas { margin: 0 0 1rem; color: var(--gris); font-size: .9375rem; font-weight: 600; }

/* --- Rejilla y tarjeta ------------------------------------------------- */
.rt-esc__rejilla { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
.rt-esc__tarjeta { height: 100%; }
.rt-esc .rt-esc__enlace {
	display: flex; flex-direction: column; height: 100%; overflow: hidden;
	border-radius: var(--radio); background: #fff; color: var(--tinta); text-decoration: none;
	box-shadow: 0 0 0 1px var(--linea), 0 1.25rem 2.5rem -1.75rem rgb(29 29 31 / 45%);
	transition: transform .2s ease, box-shadow .2s ease;
}
.rt-esc .rt-esc__enlace:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: 0 0 0 1px var(--linea), 0 1.75rem 3rem -1.5rem rgb(29 29 31 / 50%); }
.rt-esc__foto { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; }
.rt-esc .rt-esc__foto--sin {
	display: grid; place-items: center; background: var(--niebla); color: var(--gris);
	font-size: 1.125rem; font-weight: 800; letter-spacing: -.01em;
}
.rt-esc__cuerpo { display: flex; flex-direction: column; flex: 1; gap: .4rem; padding: 1.1rem 1.25rem 1.3rem; border-top: 2px dashed var(--linea); }
.rt-esc .rt-esc__negocio { color: var(--gris); font-size: .875rem; font-weight: 700; }
.rt-esc .rt-esc__ventaja { margin: 0; color: var(--tinta); font-size: 1.375rem; font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
.rt-esc .rt-esc__datos { display: flex; flex-wrap: wrap; gap: .4rem; margin: auto 0 0; padding-top: .5rem; }
.rt-esc .rt-esc__datos span { padding: .25rem .65rem; border-radius: 999px; background: var(--niebla); font-size: .8125rem; font-weight: 700; }
.rt-esc .rt-esc__datos .rt-esc__hasta { background: var(--tinta); color: #fff; }

.rt-esc .rt-esc__vacio { margin: 2rem 0; padding: 2rem; border-radius: var(--radio); background: var(--niebla); font-size: 1.125rem; font-weight: 600; }

/* --- La llamada a los negocios ---------------------------------------- */
.rt-esc__negocios {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
	margin-top: clamp(2.5rem, 6vw, 4rem); padding: 1.5rem clamp(1.25rem, 4vw, 2rem);
	border-radius: var(--radio); background: var(--rojo); color: #fff;
}
.rt-esc .rt-esc__negocios p { margin: 0; color: #fff; font-size: 1.125rem; }
.rt-esc .rt-esc__boton {
	display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.5rem;
	border: 2px solid var(--tinta); border-radius: 999px; background: var(--tinta); color: #fff !important;
	font-size: 1rem; font-weight: 700; text-decoration: none; transition: transform .18s ease;
}
.rt-esc .rt-esc__boton:hover { transform: translateY(-2px); }
.rt-esc__negocios .rt-esc__boton { background: #fff; border-color: #fff; color: var(--tinta) !important; }
.rt-esc .rt-esc__boton--claro { background: #fff; color: var(--tinta) !important; }

/* --- Ficha ------------------------------------------------------------- */
.rt-esc .rt-esc__migas { margin: 0 0 1.5rem; color: var(--gris); font-size: .9375rem; }
.rt-esc .rt-esc__migas a { color: var(--tinta); font-weight: 700; }
.rt-esc__oferta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.rt-esc__oferta-foto { position: sticky; top: calc(var(--rt-header-offset, 6.5rem) + 1rem); overflow: hidden; border-radius: var(--radio); transform: rotate(-1deg); box-shadow: 0 2rem 3rem -2rem rgb(29 29 31 / 55%); }
.rt-esc .rt-esc__oferta-titulo { margin: .25rem 0 1rem; color: var(--tinta); font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.rt-esc--ficha .rt-esc__datos { margin: 0 0 1.5rem; padding: 0; }
.rt-esc .rt-esc__condiciones p { margin: 0 0 .75rem; font-size: 1.125rem; line-height: 1.6; }
.rt-esc .rt-esc__h2 { margin: 2rem 0 .5rem; color: var(--tinta); font-size: 1.25rem; font-weight: 800; }
.rt-esc .rt-esc__donde { margin: 0 0 1.25rem; font-size: 1.0625rem; line-height: 1.5; }
.rt-esc .rt-esc__donde span { color: var(--gris); }
.rt-esc__acciones { display: flex; flex-wrap: wrap; gap: .75rem; }
.rt-esc .rt-esc__aviso { margin: 2rem 0 0; padding: 1rem 1.25rem; border-radius: .75rem; background: var(--niebla); color: var(--gris); font-size: .875rem; line-height: 1.5; }
.rt-esc .rt-esc__aviso a { color: var(--tinta); }

/* --- Bloque del barrio y «más ofertas» --------------------------------- */
.rt-esc--bloque { margin-top: clamp(2.5rem, 6vw, 4rem); }
.rt-esc.rt-esc--bloque { padding: 0; }
.rt-esc .rt-esc__bloque-titulo { margin: 0 0 1.25rem; color: var(--tinta); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.025em; }
.rt-esc .rt-esc__mas { margin: 1.25rem 0 0; }
.rt-esc .rt-esc__mas a { color: var(--tinta); font-weight: 700; }

@media (max-width: 48rem) {
	.rt-esc__oferta { grid-template-columns: 1fr; }
	.rt-esc__oferta-foto { position: static; transform: none; }
	.rt-esc__filtros { flex-direction: column; align-items: stretch; }
	.rt-esc__chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .25rem; -webkit-overflow-scrolling: touch; }
	.rt-esc .rt-esc__chip { flex: none; }
	.rt-esc__acciones .rt-esc__boton { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.rt-esc .rt-esc__enlace, .rt-esc .rt-esc__boton { transition: none; }
	.rt-esc .rt-esc__enlace:hover, .rt-esc .rt-esc__boton:hover { transform: none; }
	.rt-esc__oferta-foto { transform: none; }
}

/* --- El anuncio a los comercios, en la portada ------------------------ */
.rt-esc.rt-esc--anuncio { padding: clamp(1.5rem, 4vw, 2.5rem) 0; }
.rt-esc__anuncio {
	position: relative; overflow: hidden;
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(1rem, 3vw, 2rem); align-items: center;
	padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.25rem, 4vw, 2.5rem);
	border-radius: var(--radio); background: var(--rojo); color: #fff;
}
.rt-esc__anuncio::after {
	content: ""; position: absolute; right: -4rem; bottom: -5rem; width: 16rem; height: 16rem;
	border-radius: 50%; background: rgb(255 255 255 / 8%); pointer-events: none;
}
.rt-esc__anuncio-etiqueta { width: clamp(3.25rem, 7vw, 4.5rem); height: auto; transform: rotate(-12deg); filter: drop-shadow(0 .6rem .8rem rgb(80 0 0 / 35%)); }
.rt-esc .rt-esc__anuncio-quien { margin: 0 0 .25rem; color: rgb(255 255 255 / 88%); font-size: .9375rem; font-weight: 700; }
.rt-esc .rt-esc__anuncio-titulo { margin: 0 0 .4rem; color: #fff; font-size: clamp(1.625rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; }
.rt-esc .rt-esc__anuncio-linea { margin: 0; color: rgb(255 255 255 / 92%); font-size: 1.0625rem; }
.rt-esc__anuncio-acciones { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.rt-esc .rt-esc__boton--blanco { background: #fff; border-color: #fff; color: var(--tinta) !important; white-space: nowrap; }
.rt-esc .rt-esc__boton--blanco:hover { background: var(--tinta); border-color: var(--tinta); color: #fff !important; }
.rt-esc .rt-esc__anuncio-ver { color: #fff; font-size: .9375rem; font-weight: 700; text-underline-offset: .2em; }
.rt-esc__anuncio a:focus-visible { outline-color: #fff; }
@media (max-width: 48rem) {
	.rt-esc__anuncio { grid-template-columns: 1fr; text-align: left; }
	.rt-esc__anuncio-etiqueta { width: 3rem; }
	.rt-esc__anuncio-acciones { align-items: stretch; }
	.rt-esc__anuncio-acciones .rt-esc__boton { width: 100%; }
}

/* --- Botón de oferta del barrio y su icono en el mapa (28-oct) ---------- */
.rt-esc .rt-esc__boton--oferta {
	align-self: flex-start; margin-top: .6rem; min-height: 2.75rem; padding: 0 1.25rem;
	border-color: var(--rojo-texto); background: var(--rojo-texto); color: #fff !important;
	box-shadow: 0 .6rem 1.1rem -.7rem rgb(201 20 30 / 80%);
}
.rt-esc--barrio .rt-esc__tarjeta .rt-esc__enlace:hover .rt-esc__boton--oferta { transform: translateX(3px); }
.rt-esc--barrio .rt-esc__enlace { box-shadow: 0 0 0 2px var(--rojo-texto), 0 1.25rem 2.5rem -1.5rem rgb(201 20 30 / 55%); }

.rt-oferta-cta {
	display: inline-flex; align-items: center; gap: .85rem; max-width: 100%; margin: 1.25rem 0 0; padding: .8rem 1.25rem .8rem 1rem;
	border-radius: 999px; background: #c9141e; color: #fff !important; text-decoration: none !important;
	box-shadow: 0 .9rem 1.6rem -.9rem rgb(0 0 0 / 70%), 0 0 0 1px rgb(255 255 255 / 25%) inset;
	transition: transform .18s ease, background .18s ease; font-family: inherit;
}
.rt-oferta-cta:hover { transform: translateY(-2px); background: #a80f19; color: #fff !important; }
.rt-oferta-cta__ico { flex: none; }
.rt-oferta-cta__texto { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.rt-oferta-cta__texto strong { font-size: 1.0625rem; font-weight: 800; color: #fff; }
.rt-oferta-cta__texto span { font-size: .8125rem; font-weight: 600; color: rgb(255 255 255 / 88%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-oferta-cta__flecha { flex: none; font-size: 1.25rem; font-weight: 800; }

/* El icono propio de la oferta en el mapa: píldora oscura con etiqueta y el rojo de la marca. */
.rt-oferta-pin {
	display: inline-flex; align-items: center; gap: .4rem; height: 34px; padding: 0 .85rem 0 .55rem; border: 2px solid #fff; border-radius: 999px;
	background: #17161a; color: #fff; font: 800 .8125rem/1 "Manrope", system-ui, sans-serif; letter-spacing: .01em; cursor: pointer;
	box-shadow: 0 0 0 3px rgb(201 20 30 / 85%), 0 .6rem 1rem -.3rem rgb(0 0 0 / 55%);
	transition: transform .15s ease; z-index: 5;
}
.rt-oferta-pin:hover, .rt-oferta-pin:focus-visible { transform: scale(1.08); }
.rt-oferta-pin svg { color: #ff4d57; flex: none; }
.rt-oferta-pop { display: block; width: 240px; font-family: "Manrope", system-ui, sans-serif; }
.rt-oferta-pop img { display: block; width: 100%; height: 120px; object-fit: cover; border-radius: .5rem; margin: 0 0 .5rem; }
.rt-oferta-pop__neg { margin: 0; font-size: .75rem; font-weight: 700; color: #5c5e64; }
.rt-oferta-pop__ventaja { margin: .15rem 0 .35rem; font-size: 1rem; font-weight: 800; line-height: 1.2; color: #17161a; }
.rt-oferta-pop__hasta { margin: 0 0 .6rem; font-size: .8125rem; font-weight: 700; color: #5c5e64; }
.rt-oferta-pop__boton { display: block; padding: .6rem 1rem; border-radius: 999px; background: #c9141e; color: #fff !important; text-align: center; font-weight: 800; font-size: .875rem; text-decoration: none !important; }
.rt-oferta-pop__boton:hover { background: #a80f19; }
