/**
 * Selector de entradas del Festival de la Calabaza.
 * Paleta y tipografías extraídas del diseño de referencia del festival.
 */

.gefc {
	--gefc-verde: #414520;
	--gefc-naranja: #b5481c;
	--gefc-naranja-oscuro: #9c3a0f;
	--gefc-crema: #faf3e9;
	--gefc-crema-boton: #efe8d8;
	--gefc-hueso: #fdfcfa;
	--gefc-claro: #fff6e5;
	--gefc-texto: #2b2a26;
	--gefc-texto-suave: #5a574f;
	--gefc-borde: #e8e7e2;
	--gefc-borde-campo: #dddcd9;
	--gefc-apagado: #b9b7ae;

	--gefc-serif: "EB Garamond", Georgia, "Times New Roman", serif;
	--gefc-sans: "Lato", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
	--gefc-radio: 10px;

	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	align-items: start;
	font-family: var(--gefc-sans);
	color: var(--gefc-texto);
}

.gefc *,
.gefc *::before,
.gefc *::after {
	box-sizing: border-box;
}

/* ---------- Paneles ---------- */

.gefc__panel {
	border: 1px solid var(--gefc-borde);
	border-radius: var(--gefc-radio);
	overflow: hidden;
}

.gefc__panel--evento {
	background: var(--gefc-crema);
}

.gefc__panel--reserva {
	background: var(--gefc-hueso);
}

.gefc__imagen {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.gefc__ficha {
	padding: 18px 20px 22px;
}

.gefc__titulo {
	margin: 0 0 12px;
	font-family: var(--gefc-serif);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--gefc-verde);
}

.gefc__subtitulo {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

.gefc__texto {
	margin: 0 0 8px;
	font-size: 16px;
	line-height: 1.5;
}

.gefc__aviso {
	display: flex;
	gap: 8px;
	align-items: baseline;
	margin: 16px 0 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--gefc-naranja);
}

.gefc__aviso-icono {
	font-size: 18px;
	line-height: 1;
}

/* ---------- Cabecera del panel de reserva ---------- */

.gefc__cabecera {
	margin: 0;
	padding: 14px 20px;
	background: var(--gefc-verde);
	font-family: var(--gefc-serif);
	font-size: 17px;
	font-weight: 400;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--gefc-claro);
}

.gefc__cuerpo {
	padding: 16px 20px 20px;
}

/* ---------- Pasos ---------- */

.gefc-paso + .gefc-paso {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--gefc-borde);
}

.gefc-paso[hidden] {
	display: none;
}

.gefc-paso__cabecera {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	min-height: 26px;
}

.gefc-paso__titulo {
	display: flex;
	gap: 9px;
	align-items: center;
	min-width: 0;
	margin: 0;
	font-family: var(--gefc-serif);
	font-size: 17px;
	font-weight: 600;
	color: var(--gefc-verde);
}

.gefc-paso__numero {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--gefc-verde);
	font-family: var(--gefc-sans);
	font-size: 11px;
	font-weight: 700;
	color: var(--gefc-claro);
}

.gefc-paso--hecho .gefc-paso__numero {
	background: var(--gefc-naranja);
}

.gefc-paso__cambiar {
	flex: 0 0 auto;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--gefc-sans);
	font-size: 13px;
	font-weight: 700;
	color: var(--gefc-naranja);
	text-decoration: underline;
	cursor: pointer;
}

.gefc-paso__cambiar:hover,
.gefc-paso__cambiar:focus,
.gefc-paso__cambiar:active {
	background: none;
	color: var(--gefc-naranja-oscuro);
}

.gefc-paso__cuerpo {
	margin-top: 10px;
}

.gefc-paso__cuerpo[hidden] {
	display: none;
}

/* ---------- Calendario ---------- */

.gefc-cal {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.gefc-cal-nav {
	display: flex;
	gap: 6px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.gefc-cal-nav__mes {
	flex: 1 1 auto;
	margin: 0;
	font-family: var(--gefc-serif);
	font-size: 17px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-align: center;
	color: var(--gefc-verde);
}

.gefc-cal-nav__flecha {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	font-family: var(--gefc-sans);
	border: 1px solid var(--gefc-borde-campo);
	border-radius: 50%;
	background: var(--gefc-crema);
	font-size: 18px;
	line-height: 1;
	color: var(--gefc-verde);
	cursor: pointer;
}

.gefc-cal-nav__flecha:hover:not(:disabled),
.gefc-cal-nav__flecha:focus:not(:disabled),
.gefc-cal-nav__flecha:active:not(:disabled) {
	border-color: var(--gefc-naranja);
	background: var(--gefc-claro);
	color: var(--gefc-verde);
}

.gefc-cal-nav__flecha:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.gefc-cal[hidden] {
	display: none;
}

.gefc-cal th {
	padding: 0 0 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gefc-texto-suave);
}

.gefc-cal th abbr {
	text-decoration: none;
	border: 0;
}

.gefc-cal td {
	padding: 2px;
	text-align: center;
}

.gefc-cal__dia,
.gefc-cal__vacio {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 42px;
	height: 34px;
	margin: 0 auto;
	border-radius: 7px;
	font-family: var(--gefc-sans);
	font-size: 14px;
	line-height: 1;
}

.gefc-cal__vacio {
	visibility: hidden;
}

button.gefc-cal__dia {
	border: 1px solid var(--gefc-borde-campo);
	background: var(--gefc-crema);
	font-weight: 700;
	color: var(--gefc-verde);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

button.gefc-cal__dia:hover,
button.gefc-cal__dia:focus,
button.gefc-cal__dia:focus-visible,
button.gefc-cal__dia:active {
	border-color: var(--gefc-naranja);
	background: var(--gefc-claro);
	color: var(--gefc-verde);
}

button.gefc-cal__dia[aria-pressed="true"],
button.gefc-cal__dia[aria-pressed="true"]:hover,
button.gefc-cal__dia[aria-pressed="true"]:focus,
button.gefc-cal__dia[aria-pressed="true"]:active {
	border-color: var(--gefc-naranja);
	background: var(--gefc-naranja);
	color: #fff;
}

.gefc-cal__dia--cerrado {
	color: var(--gefc-apagado);
}

/* ---------- Turnos ---------- */

.gefc-turnos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
	gap: 8px;
}

.gefc-turno {
	padding: 10px 6px;
	border: 1px solid var(--gefc-borde-campo);
	border-radius: 7px;
	background: var(--gefc-crema);
	font-family: var(--gefc-sans);
	font-size: 15px;
	font-weight: 700;
	color: var(--gefc-verde);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.gefc-turno:hover,
.gefc-turno:focus,
.gefc-turno:focus-visible,
.gefc-turno:active {
	border-color: var(--gefc-naranja);
	background: var(--gefc-claro);
	color: var(--gefc-verde);
}

.gefc-turno[aria-pressed="true"],
.gefc-turno[aria-pressed="true"]:hover,
.gefc-turno[aria-pressed="true"]:focus,
.gefc-turno[aria-pressed="true"]:active {
	border-color: var(--gefc-naranja);
	background: var(--gefc-naranja);
	color: #fff;
}

/* ---------- Artículos ---------- */

.gefc-articulos {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gefc-articulo {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 9px 0;
}

.gefc-articulo + .gefc-articulo {
	border-top: 1px solid var(--gefc-borde);
}

.gefc-articulo__info {
	flex: 1 1 auto;
	min-width: 0;
}

.gefc-articulo__nombre {
	margin: 0;
	font-family: var(--gefc-serif);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.25;
}

.gefc-articulo__rango {
	font-weight: 400;
	color: var(--gefc-texto-suave);
}

.gefc-articulo__descripcion {
	margin: 2px 0 0;
	font-size: 12px;
	line-height: 1.35;
	color: var(--gefc-texto-suave);
}

.gefc-articulo__precio {
	flex: 0 0 auto;
	margin: 0;
	font-family: var(--gefc-serif);
	font-size: 19px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	color: var(--gefc-naranja-oscuro);
}

.gefc-articulos__nota {
	display: flex;
	gap: 7px;
	align-items: center;
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--gefc-texto-suave);
}

.gefc-articulos__hoja {
	flex: 0 0 auto;
	color: var(--gefc-verde);
}

/* ---------- Grupos plegables ---------- */

.gefc-grupo {
	margin-top: 12px;
	border-top: 1px solid var(--gefc-borde);
}

.gefc-grupo__resumen {
	display: flex;
	gap: 10px;
	align-items: baseline;
	justify-content: space-between;
	padding: 11px 0 3px;
	font-family: var(--gefc-serif);
	font-size: 16px;
	font-weight: 600;
	color: var(--gefc-verde);
	cursor: pointer;
	list-style: none;
}

.gefc-grupo__resumen::-webkit-details-marker {
	display: none;
}

.gefc-grupo__titulo::before {
	display: inline-block;
	width: 12px;
	content: "\25B8";
	font-size: 12px;
}

.gefc-grupo[open] .gefc-grupo__titulo::before {
	content: "\25BE";
}

.gefc-grupo__opcional,
.gefc-grupo__desde {
	font-family: var(--gefc-sans);
	font-size: 12px;
	font-weight: 400;
	color: var(--gefc-texto-suave);
}

/* ---------- Casilla (artículos de una sola unidad) ---------- */

.gefc-casilla {
	display: inline-flex;
	flex: 0 0 auto;
	gap: 7px;
	align-items: center;
	min-height: 32px;
	padding: 0 10px;
	border: 1px solid var(--gefc-borde-campo);
	border-radius: 7px;
	background: var(--gefc-hueso);
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.gefc-casilla:hover {
	border-color: var(--gefc-naranja);
	background: var(--gefc-claro);
}

.gefc-casilla__check {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--gefc-naranja);
	cursor: pointer;
}

.gefc-casilla__etiqueta {
	font-family: var(--gefc-sans);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	color: var(--gefc-verde);
}

.gefc-casilla__oculto {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------- Contador ---------- */

.gefc-contador {
	display: flex;
	gap: 6px;
	align-items: center;
	flex: 0 0 auto;
}

.gefc-contador__boton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	font-family: var(--gefc-sans);
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	cursor: pointer;
	transition: filter 0.15s ease;
}

.gefc-contador__boton--menos,
.gefc-contador__boton--menos:hover,
.gefc-contador__boton--menos:focus,
.gefc-contador__boton--menos:active {
	background: var(--gefc-crema-boton);
	color: var(--gefc-verde);
}

.gefc-contador__boton--mas,
.gefc-contador__boton--mas:hover,
.gefc-contador__boton--mas:focus,
.gefc-contador__boton--mas:active {
	background: var(--gefc-naranja);
	color: #fff;
}

.gefc-contador__boton:hover:not(:disabled) {
	filter: brightness(0.95);
}

.gefc-contador__boton:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.gefc-contador__valor {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 32px;
	border: 1px solid var(--gefc-borde-campo);
	border-radius: 7px;
	background: var(--gefc-hueso);
	font-size: 15px;
	font-weight: 700;
}

/* ---------- Ticket Seguro ---------- */

.gefc-seguro {
	margin-top: 14px;
	padding: 12px 14px;
	border: 1px solid var(--gefc-borde-campo);
	border-radius: 8px;
	background: var(--gefc-crema);
}

.gefc-seguro__opcion {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	cursor: pointer;
}

.gefc-seguro__check {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--gefc-naranja);
	cursor: pointer;
}

.gefc-seguro__texto {
	flex: 1 1 auto;
	min-width: 0;
}

.gefc-seguro__cabecera {
	display: flex;
	gap: 10px;
	align-items: baseline;
	justify-content: space-between;
}

.gefc-seguro__nombre {
	font-family: var(--gefc-serif);
	font-size: 16px;
	font-weight: 600;
	color: var(--gefc-verde);
}

.gefc-seguro__precio {
	flex: 0 0 auto;
	font-family: var(--gefc-serif);
	font-size: 16px;
	font-weight: 600;
	white-space: nowrap;
	color: var(--gefc-naranja-oscuro);
}

.gefc-seguro__resumen {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--gefc-texto);
}

.gefc-seguro__aviso {
	margin: 8px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--gefc-naranja-oscuro);
}

.gefc-seguro__detalle {
	margin-top: 8px;
}

.gefc-seguro__mas {
	font-size: 12px;
	font-weight: 700;
	color: var(--gefc-verde);
	text-decoration: underline;
	cursor: pointer;
	list-style: none;
}

.gefc-seguro__mas::-webkit-details-marker {
	display: none;
}

.gefc-seguro__coberturas {
	margin: 8px 0 0;
	padding-left: 18px;
	font-size: 12px;
	line-height: 1.5;
	color: var(--gefc-texto-suave);
}

.gefc-seguro__limite,
.gefc-seguro__aceptacion {
	margin: 8px 0 0;
	font-size: 12px;
	line-height: 1.45;
	color: var(--gefc-texto-suave);
}

.gefc-seguro__aceptacion a {
	color: var(--gefc-naranja);
}

/* ---------- Total y CTA ---------- */

.gefc-total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 12px 0 0;
	padding-top: 12px;
	border-top: 1px solid var(--gefc-borde);
}

.gefc-total__etiqueta {
	font-family: var(--gefc-serif);
	font-size: 17px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--gefc-verde);
}

.gefc-total__importe {
	font-family: var(--gefc-serif);
	font-size: 24px;
	font-weight: 600;
	color: var(--gefc-naranja-oscuro);
}

.gefc__error {
	margin: 14px 0 0;
	padding: 10px 12px;
	border: 1px solid #d9b8ac;
	border-radius: 8px;
	background: #fdf1ec;
	font-size: 14px;
	line-height: 1.4;
	color: var(--gefc-naranja-oscuro);
}

.gefc__error[hidden] {
	display: none;
}

.gefc__cta {
	display: block;
	width: 100%;
	margin-top: 16px;
	padding: 13px 20px;
	border: 0;
	border-radius: 8px;
	background: var(--gefc-naranja);
	font-family: var(--gefc-serif);
	font-size: 16px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gefc-claro);
	cursor: pointer;
	transition: filter 0.15s ease;
}

.gefc__cta:hover:not(:disabled),
.gefc__cta:focus:not(:disabled),
.gefc__cta:active:not(:disabled) {
	background: var(--gefc-naranja);
	color: var(--gefc-claro);
	filter: brightness(0.94);
}

.gefc__cta:disabled {
	background: var(--gefc-crema-boton);
	color: #9b978c;
	cursor: not-allowed;
}

.gefc :focus-visible {
	outline: 2px solid var(--gefc-naranja);
	outline-offset: 2px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
	.gefc {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 480px) {
	.gefc-turnos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gefc-articulo {
		flex-wrap: wrap;
	}

	.gefc-articulo__info {
		flex: 1 1 100%;
	}

	.gefc-articulo__precio {
		margin-right: auto;
	}
}
