.s24-plazas {
	--s24-amarillo: #ffc629;
	--s24-rojo: #fd0223;
	--s24-gris-claro: #e5e6e7;
	--s24-gris-oscuro: #424143;
	--s24-whatsapp: #25d366;

	/* Proporción de la imagen de portada y % de altura que ocupa su franja
	   amarilla vacía. Recalibrar cuando lleguen las imágenes reales. */
	--s24-card-ratio: 380 / 515;
	--s24-label-zone: 26%;

	font-family: 'Montserrat', sans-serif;
	box-sizing: border-box;
}

.s24-plazas *,
.s24-plazas *::before,
.s24-plazas *::after {
	box-sizing: inherit;
}

.s24-plazas-empty {
	color: var(--s24-gris-oscuro);
}

.s24-plazas a {
	text-decoration: none;
}

/* ---------- Grid ---------- */

.s24-grid {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 20px;
}

@media (min-width: 768px) {
	.s24-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.s24-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 28px;
	}
}

/* ---------- Tarjeta ---------- */

.s24-card {
	cursor: pointer;
	border: none;
	background: none;
	padding: 0;
	border-radius: 16px;
}

.s24-card:focus-visible {
	outline: 3px solid var(--s24-rojo);
	outline-offset: 3px;
}

.s24-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: var(--s24-card-ratio);
	overflow: hidden;
	border-radius: 16px;
	background: none;
}

.s24-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.s24-card:hover .s24-card__media img,
.s24-card:focus-visible .s24-card__media img {
	transform: scale(1.03);
}

.s24-card__title {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: var(--s24-label-zone);
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0 10%;
	text-align: center;
	text-transform: uppercase;
	color: var(--s24-gris-oscuro);
	overflow: hidden;
}

.s24-card__title-line {
	display: block;
	line-height: 1.2;
	white-space: nowrap;
}

.s24-card__title-line--sm {
	font-weight: 700;
	font-size: 14px;
}

.s24-card__title-line--lg {
	font-weight: 800;
	font-size: 22px;
}

/* ---------- Modal ---------- */

html.s24-modal-open,
body.s24-modal-open {
	overflow: hidden;
}

.s24-modal[hidden] {
	display: none;
}

.s24-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.s24-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(66, 65, 67, 0.55);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

/* Flechas de navegación: fuera de la tarjeta blanca, sobre el fondo difuminado.
   "all: unset" primero para anular cualquier estilo global de <button> que
   traiga el tema activo (bordes, fondos, sombras), luego se redeclara todo. */
.s24-modal__nav {
	all: unset;
	box-sizing: border-box;
	position: relative;
	z-index: 2;
	flex: 0 0 auto;
	color: #fff;
	font-size: 44px;
	font-weight: 300;
	line-height: 1;
	padding: 8px 14px;
	cursor: pointer;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
	display: none;
	appearance: none !important;
	-webkit-appearance: none !important;
	border: 0 none !important;
	background: none !important;
	box-shadow: none !important;
	outline: none !important;
	border-radius: 0 !important;
}

@media (min-width: 640px) {
	.s24-modal__nav {
		display: block;
	}
}

.s24-modal__dialog {
	position: relative;
	z-index: 2;
	width: calc(100% - 32px);
	max-width: 960px;
	/* dvh se ajusta al alto de pantalla realmente visible (evita que la
	   barra de direcciones del navegador móvil corte el modal con vh). */
	max-height: min(92vh, 680px);
	max-height: min(92dvh, 680px);
	background: #fff;
	border-radius: 32px;
	display: flex;
	flex-direction: column;
	padding: 20px;
	gap: 20px;
	overflow: visible;
}

@media (min-width: 768px) {
	.s24-modal__dialog {
		flex-direction: row;
		padding: 28px;
		gap: 28px;
		border-radius: 40px;
	}
}

.s24-modal__close {
	all: unset;
	box-sizing: border-box;
	position: absolute;
	top: -16px;
	right: -16px;
	z-index: 3;
	width: 48px;
	height: 48px;
	color: var(--s24-rojo) !important;
	font-size: 26px;
	font-weight: 700;
	line-height: 48px;
	cursor: pointer;
	text-align: center;
	appearance: none !important;
	-webkit-appearance: none !important;
	border: 0 none !important;
	background: var(--s24-amarillo) !important;
	border-radius: 50% !important;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
	outline: none !important;
}

/* En móvil se fija el alto (50dvh) y el ancho de la imagen se calcula a
   partir de la proporción real de la foto (--s24-card-ratio), en vez de
   forzar un ancho del 100% que obligaba a recortar la imagen (y con eso,
   la franja amarilla) para llenar una caja con otra proporción. */
.s24-modal__media-wrap {
	flex: 0 0 auto;
	width: 100%;
	height: 50vh;
	height: 50dvh;
	display: flex;
	justify-content: center;
	overflow: hidden;
}

@media (min-width: 768px) {
	.s24-modal__media-wrap {
		flex: 0 0 45%;
		max-height: none;
		height: auto;
	}
}

.s24-modal__media-wrap .s24-card__media {
	width: auto;
	height: 100%;
	min-height: 220px;
	border-radius: 24px;
}

@media (min-width: 768px) {
	.s24-modal__media-wrap .s24-card__media {
		/* En desktop/tablet el ancho manda (columna del 45%) y el alto se
		   calcula solo, vía aspect-ratio, a partir de ese ancho. */
		width: 100%;
		height: auto;
		border-radius: 28px;
	}
}

.s24-modal__panel {
	position: relative;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
}

.s24-modal__scroll {
	flex: 1 1 auto;
	overflow-y: auto;
	font-size: 16px;
	line-height: 1.5;
	color: var(--s24-gris-oscuro);
}

@media (min-width: 1024px) {
	.s24-modal__scroll {
		font-size: 18px;
	}
}

.s24-modal__scroll p {
	margin: 0 0 12px;
	text-align: justify;
}

.s24-modal__section {
	padding-top: 16px;
	margin-top: 16px;
	border-top: 2px solid var(--s24-gris-oscuro);
}

.s24-modal__section:first-child {
	padding-top: 0;
	margin-top: 0;
	border-top: none;
}

.s24-modal__section h4 {
	margin: 0 0 8px;
	color: var(--s24-gris-oscuro);
	text-transform: uppercase;
	font-size: 0.95em;
	font-weight: 700;
}

.s24-modal__section :is(ul, ol) {
	list-style: none;
	padding-left: 1.1em;
	margin: 0;
}

.s24-modal__section li {
	position: relative;
	margin-bottom: 4px;
}

.s24-modal__section li::before {
	content: '\00B7';
	position: absolute;
	left: -1.1em;
	font-weight: 800;
}

.s24-modal__footer {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding-top: 16px;
}

.s24-modal__whatsapp,
.s24-modal__email {
	all: unset;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	font-weight: 700;
	cursor: pointer;
	padding: 10px 20px;
	border-radius: 999px;
}

.s24-modal__whatsapp {
	gap: 8px;
	background: var(--s24-whatsapp);
	color: #fff !important;
	transition: background-color 0.2s ease;
}

.s24-modal__whatsapp:hover,
.s24-modal__whatsapp:focus-visible {
	background: #1ebc59;
	color: #fff !important;
}

.s24-modal__email {
	background: var(--s24-amarillo);
	color: var(--s24-gris-oscuro);
}
