.rp-grid .promo-card,
.rp-card.promo-card,
.promo-card {
	font-family: Inter, "Segoe UI", Arial, sans-serif;
	box-sizing: border-box;
}

.rp-grid .promo-card *,
.rp-card.promo-card *,
.promo-card * {
	box-sizing: border-box;
}

.rp-grid .promo-card img,
.rp-card.promo-card img,
.promo-card img {
	display: block;
	max-width: 100%;
}

.rp-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.rp-grid-shortcode {
	margin: 16px 0;
}


.rp-grid-shortcode-wrapper {
	margin: 16px 0;
}

.rp-grid-filters {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 2px 0 6px;
	margin-bottom: 10px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.rp-grid-filters::-webkit-scrollbar {
	height: 6px;
}

.rp-grid-filter-chip {
	appearance: none;
	border: 1px solid #d7dbe6;
	background: #ffffff;
	color: #273041;
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 0.9rem;
	line-height: 1;
	font-weight: 600;
	white-space: nowrap;
	flex: 0 0 auto;
	cursor: pointer;
	scroll-snap-align: start;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.rp-grid-filter-chip.is-active,
.rp-grid-filter-chip[aria-pressed="true"] {
	background: #335cad;
	border-color: #335cad;
	color: #ffffff;
}

.rp-grid-item[hidden] {
	display: none !important;
}

.rp-promo-preview__main {
	max-width: 420px;
	margin: 24px auto;
	padding: 0 16px;
}

.promo-card {
	--rp-card-bg: #ffffff;
	--rp-text: #202124;
	--rp-muted: #5f6368;
	--rp-line: #e7e3dc;
	--rp-line-soft: #efebe3;
	--rp-shadow: 0 8px 20px rgba(16, 24, 40, 0.05);
	--rp-radius: 24px;
	--rp-radius-pill: 999px;
	--pill-main: #58422e;
	background: var(--rp-card-bg);
	border: 1px solid var(--rp-line);
	border-radius: var(--rp-radius);
	box-shadow: var(--rp-shadow);
	padding: 18px 18px 14px;
	display: grid;
	grid-template-rows: auto auto auto auto auto auto auto auto;
	row-gap: 6px;
	align-items: center;
}

.promo-card__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;            /* Un gap mínimo por seguridad */
    min-height: 56px;
    width: 100%;
    overflow: hidden;    /* Corta cualquier cosa que intente salir */
    flex-wrap: nowrap !important; /* Prohibido saltar de línea */
}

.promo-card__entity-logo {
    flex: 0 1 auto;      /* No crece, pero sí se encoge si no hay espacio */
    min-width: 0;        /* PERMITE que la imagen se achique bajo su tamaño original */
    width: auto;
    height: auto;
    max-width: 48%;      /* Un poquito menos del 50% para dar aire extra */
    max-height: 56px;
    object-fit: contain; /* Asegura que el logo no se deforme al achicarse */
}

.promo-card__entity-fallback {
	font-size: 1rem;
	line-height: 1.2;
	font-weight: 700;
	color: var(--rp-text);
	text-align: center;
}

.promo-card__divider,
.promo-card__foot-divider {
	width: 100%;
	height: 1px;
	background: var(--rp-line-soft);
}

.promo-card__days {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 28px;
	text-align: center;
	font-size: 1.5rem;
	line-height: 1.2;
	color: #575c61;
	font-weight: 700;
}

.promo-card__days--empty {
	visibility: hidden;
}

.promo-card__benefits {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 72px;
	overflow: hidden;
}

.promo-card__benefits--combined {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.promo-pill {
	min-height: 40px;
	border-radius: var(--rp-radius-pill);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 8px 18px;
	max-width: 100%;
	white-space: normal;
}

.promo-pill--main {
	background: var(--pill-main, #58422e);
	color: #ffffff;
}

.promo-pill--secondary {
	background: #f3d74f;
	color: #171717;
}

.promo-pill--fallback {
	background: #f3f4f6;
	color: #202124;
}

.promo-pill__text {
	display: flex;
	font-size: 1.6rem;
	line-height: 1;
	font-weight: 500;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	white-space: nowrap;
}

.promo-pill__text--combined {
	font-size: 1.2rem;
}

.promo-pill__text--dark {
	color: #171717;
}

.promo-card__condition {
	min-height: 48px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	text-align: center;
	font-size: 1.5rem;
	line-height: 1.42;
	color: var(--rp-muted);
	font-weight: 400;
	max-width: 34ch;
	margin-inline: auto;
}

.promo-card__condition--empty {
	visibility: hidden;
}

/* CAMBIO CLAVE AQUÍ: Usamos selectores más largos para ganar prioridad */
.promo-card .promo-card__cards {
    min-height: 32px !important; /* Aumentamos el "aire" de la fila */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    margin-top: 2px !important;
    flex-wrap: nowrap !important;
}

/* Forzamos a que las imágenes de tarjetas sean diminutas */
.promo-card .promo-card__cards img.promo-card__card-logo {
    width: auto !important;
    height: 24px !important;
    max-width: 65px !important;
    min-height: 0 !important;
    object-fit: contain !important;
    transition: transform 0.2s ease !important;
}

.promo-card__foot {
	min-height: 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.promo-card__terms-link {
	font-size: 1.2rem;
	font-weight: 600;
	color: #1d4ed8;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.promo-card__state {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 31px;
	padding: 6px 14px;
	border-radius: var(--rp-radius-pill);
	font-size: 1.25rem;
	line-height: 1;
	font-weight: 500;
}

.promo-card__state--success {
	background: #edf7f1;
	color: #177245;
}

.promo-card__state--warning {
	background: #fff4e5;
	color: #b26a00;
}

.promo-card__state--danger {
	background: #fdecea;
	color: #b42318;
}

.rp-open-modal {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 16px;
	border: 0;
	border-radius: 999px;
	background: #111;
	color: #fff;
	cursor: pointer;
}

.rp-woocommerce-block {
	margin-top: 24px;
}

.rp-woocommerce-title {
	margin: 0 0 14px;
	font-size: 18px;
	line-height: 1.3;
}

@media (min-width: 700px) {
	.rp-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}

	.rp-grid-filters {
		overflow: visible;
		flex-wrap: wrap;
		padding-bottom: 0;
	}

	.promo-card {
        padding: 18px 18px 14px;
        grid-template-rows: 60px 1px 32px 52px 52px 32px 1px 32px;
        row-gap: 9px;
    }

    .promo-card__logo-wrap {
        min-height: 78px;
        flex-wrap: nowrap; /* Reforzamos que se mantenga en línea */
    }
	
    .promo-card__entity-logo {
        max-height: 60px;
        max-width: 45%; /* Más restrictivo en tablet para evitar que se peguen */
    }
    
	.promo-card__benefits {
		min-height: 50px;
	}
	
	.promo-card__benefits--combined {
        flex-wrap: nowrap;
    }

	.promo-pill {
		min-height: 42px;
		white-space: nowrap; 
	}

	.promo-pill__text {
		font-size: 1.7rem;
	}

	.promo-pill__text--combined {
		font-size: 1.1rem;
	}

	.promo-card__condition {
		min-height: 62px;
	}
}

@media (min-width: 1080px) {
	.rp-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px;
	}

	.promo-card {
        padding: 19px 20px 14px;
        grid-template-rows: 62px 1px 28px 62px 58px 32px 1px 32px;
        row-gap: 6px;
    }

    .promo-card__logo-wrap {
        min-height: 80px;
    }

	.promo-pill {
		min-height: 44px;
		padding-inline: 12px;
	}

	.promo-pill__text {
		font-size: 1.6rem;
	}

	.promo-pill__text--combined {
		font-size: 1.2rem;
	}
}

.rp-terms-page {
	max-width: 1280px;
	margin: 40px auto 72px;
	padding: 0 40px;
}

.rp-terms-list {
	display: block;
}

.rp-terms-item {
	max-width: 1040px;
	margin: 0 auto;
	padding: 0 0 34px;
}

.rp-terms-item__title {
	margin: 0 0 18px;
	font-size: clamp(1.5rem, 1.25rem + 0.55vw, 2rem);
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: #111827;
}

.rp-terms-item__title strong {
	display: block;
	font-weight: 700;
}

.rp-terms-item__body {
	max-width: 100%;
	font-size: clamp(1.12rem, 1.02rem + 0.18vw, 1.22rem);
	line-height: 1.9;
	color: #374151;
}

.rp-terms-item__body p {
	margin: 0;
	display: inline;
}

.rp-terms-item__body p + p::before {
	content: " ";
}

.rp-terms-divider {
	display: block;
	width: 100%;
	max-width: 1040px;
	height: 0;
	margin: 0 auto 34px;
	border: 0;
	border-top: 1px solid #9ca3af;
}

@media (max-width: 1024px) {
	.rp-terms-page {
		max-width: 100%;
		padding: 0 28px;
	}

	.rp-terms-item,
	.rp-terms-divider {
		max-width: 100%;
	}

	.rp-terms-item__title {
		font-size: 1.45rem;
	}

	.rp-terms-item__body {
		font-size: 1.08rem;
		line-height: 1.85;
	}
}

@media (max-width: 767px) {
	.rp-terms-page {
		margin: 24px auto 44px;
		padding: 0 18px;
	}

	.rp-terms-item {
		padding: 0 0 24px;
	}

	.rp-terms-item__title {
		margin: 0 0 14px;
		font-size: 1.22rem;
		line-height: 1.3;
	}

	.rp-terms-item__body {
		font-size: 1rem;
		line-height: 1.78;
	}

	.rp-terms-divider {
		margin: 0 auto 24px;
	}
}

.rp-grid-shortcode-wrapper[data-rp-grid-filter-root] .rp-grid-filters {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0 auto 20px;
	padding: 4px 8px 8px;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}

.rp-grid-shortcode-wrapper[data-rp-grid-filter-root] .rp-grid-filters::-webkit-scrollbar {
	display: none;
}

.rp-grid-shortcode-wrapper[data-rp-grid-filter-root] .rp-grid-filter-chip {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 18px;
	border: 1.5px solid #cfd4dc;
	border-radius: 999px;
	background: #ffffff;
	color: #111827;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	scroll-snap-align: start;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.rp-grid-shortcode-wrapper[data-rp-grid-filter-root] .rp-grid-filter-chip:hover {
	border-color: #9ca3af;
	background: #f9fafb;
}

.rp-grid-shortcode-wrapper[data-rp-grid-filter-root] .rp-grid-filter-chip.is-active,
.rp-grid-shortcode-wrapper[data-rp-grid-filter-root] .rp-grid-filter-chip[aria-pressed="true"] {
	background: #0f172a;
	color: #ffffff;
	border-color: #0f172a;
}

@media (min-width: 768px) {
	.rp-grid-shortcode-wrapper[data-rp-grid-filter-root] .rp-grid-filters {
		gap: 12px;
		margin-bottom: 24px;
		padding-bottom: 10px;
	}

	.rp-grid-shortcode-wrapper[data-rp-grid-filter-root] .rp-grid-filter-chip {
		min-height: 46px;
		padding: 0 22px;
		font-size: 1rem;
	}
}

@media (min-width: 1080px) {
	.rp-grid-shortcode-wrapper[data-rp-grid-filter-root] .rp-grid-filters {
		gap: 14px;
		margin-bottom: 28px;
	}

	.rp-grid-shortcode-wrapper[data-rp-grid-filter-root] .rp-grid-filter-chip {
		min-height: 48px;
		padding: 0 24px;
		font-size: 1.02rem;
	}
}
