/* Cotizador de paseos de curso - Sensorial Park */
.spc {
	--spc-violeta: #7B2FD1;
	--spc-profundo: #4E1A8C;
	--spc-naranjo: #FF8A00;
	--spc-tinta: #2E2A3B;
	--spc-cuerpo: #6B6779;
	--spc-tenue: #9A96A8;
	--spc-tinte: #F3ECFD;
	--spc-campo: #F7F3FD;
	--spc-tinte-naranjo: #FFF1DF;
	--spc-cafe: #8C4A00;
	--spc-error: #D9453C;
	--spc-ok: #2FA36B;
	font-family: 'Nunito', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--spc-tinta);
	text-align: left;
}
.spc *, .spc *::before, .spc *::after { box-sizing: border-box; }
.spc p { padding: 0; }
.spc [hidden] { display: none !important; }

.spc-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 370px;
	gap: 28px;
	align-items: start;
}

/* Tarjetas de cada paso */
.spc .spc-card {
	background: #FFFFFF;
	border: 0;
	border-radius: 28px;
	padding: 28px;
	margin: 0 0 22px;
	min-width: 0;
	box-shadow: 0 4px 16px rgba(78, 26, 140, .08);
}
.spc .spc-card legend {
	float: left;
	width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0;
	margin: 0 0 18px;
	font-family: 'Baloo 2', sans-serif;
	font-weight: 800;
	font-size: 24px;
	line-height: 1.15;
	color: var(--spc-tinta);
}
.spc .spc-card legend + * { clear: both; }
.spc-num {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--spc-tinte);
	color: var(--spc-violeta);
	font-size: 18px;
}

/* Campos */
.spc-campos {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 18px;
}
.spc-campo { min-width: 0; }
.spc-campo--full { grid-column: 1 / -1; }
.spc .spc-label {
	display: block;
	margin: 0 0 6px;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.3;
	color: var(--spc-tinta);
}
.spc .spc-req { color: var(--spc-naranjo); }
.spc input[type="text"],
.spc input[type="email"],
.spc input[type="tel"],
.spc input[type="date"],
.spc input[type="time"],
.spc input[type="number"],
.spc select {
	display: block;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 12px 16px;
	border: 2px solid transparent;
	border-radius: 14px;
	background: var(--spc-campo);
	color: var(--spc-tinta);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.3;
	box-shadow: none;
	transition: border-color .2s, background-color .2s;
}
.spc input[type="date"],
.spc input[type="time"] { -webkit-appearance: none; appearance: none; }
.spc input::placeholder { color: var(--spc-tenue); opacity: 1; }
.spc input:focus,
.spc select:focus {
	outline: none;
	border-color: var(--spc-violeta);
	background: #FFFFFF;
}
.spc .is-error input,
.spc .is-error select { border-color: var(--spc-error); background: #FFF5F4; }
.spc .spc-error {
	margin: 6px 0 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--spc-error);
}
.spc .spc-ayuda {
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--spc-cuerpo);
}
.spc .spc-tarifa {
	display: inline-block;
	margin: 10px 0 0;
	padding: 6px 14px;
	border-radius: 100px;
	background: var(--spc-tinte);
	color: var(--spc-violeta);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.4;
}
.spc .spc-tarifa.is-finde { background: var(--spc-tinte-naranjo); color: var(--spc-cafe); }

/* Bloques horarios */
.spc-opciones {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
.spc-opcion { position: relative; display: block; margin: 0; cursor: pointer; }
.spc-opcion input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.spc-opcion span {
	display: block;
	padding: 14px 18px;
	border: 2px solid transparent;
	border-radius: 18px;
	background: var(--spc-campo);
	color: var(--spc-cuerpo);
	font-size: 15px;
	line-height: 1.4;
	transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.spc-opcion strong {
	display: block;
	font-family: 'Baloo 2', sans-serif;
	font-weight: 700;
	font-size: 19px;
	color: var(--spc-tinta);
}
.spc-opcion input:checked + span {
	border-color: var(--spc-violeta);
	background: #FFFFFF;
	box-shadow: 0 4px 16px rgba(78, 26, 140, .12);
}
.spc-opcion input:focus-visible + span { outline: 3px solid rgba(123, 47, 209, .35); outline-offset: 2px; }
.spc .is-error .spc-opcion span { border-color: rgba(217, 69, 60, .5); }

/* Servicios */
.spc-servicio {
	margin: 0 0 12px;
	padding: 16px 18px;
	border: 2px solid transparent;
	border-radius: 20px;
	background: var(--spc-campo);
	transition: border-color .2s, background-color .2s;
}
.spc-servicio:last-child { margin-bottom: 0; }
.spc-servicio.is-on { border-color: var(--spc-violeta); background: #FFFFFF; }
.spc-servicio.is-fijo { border-color: transparent; background: var(--spc-tinte); }
.spc .spc-check {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0;
	cursor: pointer;
}
.spc-servicio.is-fijo .spc-check { cursor: default; }
.spc .spc-check input[type="checkbox"] {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin: 3px 0 0;
	accent-color: var(--spc-violeta);
	cursor: pointer;
}
.spc-check-marca {
	flex: 0 0 auto;
	position: relative;
	width: 22px;
	height: 22px;
	margin-top: 3px;
	border-radius: 6px;
	background: var(--spc-violeta);
}
.spc-check-marca::after {
	content: '';
	position: absolute;
	left: 7px;
	top: 3px;
	width: 6px;
	height: 11px;
	border: solid #FFFFFF;
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}
.spc-servicio-texto { flex: 1 1 auto; min-width: 0; }
.spc-servicio-nombre {
	display: block;
	font-family: 'Baloo 2', sans-serif;
	font-weight: 700;
	font-size: 19px;
	line-height: 1.25;
	color: var(--spc-tinta);
}
.spc-servicio-detalle {
	display: block;
	margin-top: 2px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--spc-cuerpo);
}
.spc-servicio-precio {
	flex: 0 0 auto;
	max-width: 45%;
	text-align: right;
	font-weight: 800;
	font-size: 15px;
	line-height: 1.4;
	color: var(--spc-violeta);
}
.spc-sub {
	display: grid;
	gap: 10px;
	margin: 14px 0 0 36px;
}
.spc-menu {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}
.spc .spc-menu label { flex: 1 1 auto; margin: 0; font-size: 15px; line-height: 1.4; color: var(--spc-tinta); }
.spc-menu-precio { display: block; font-weight: 800; color: var(--spc-violeta); }
.spc .spc-menu input { flex: 0 0 104px; width: 104px; text-align: center; }
.spc .spc-sub input,
.spc .spc-sub select { border-color: #E2D6F7; background: var(--spc-tinte); }
.spc .spc-sub input:focus,
.spc .spc-sub select:focus { border-color: var(--spc-violeta); background: #FFFFFF; }
.spc .spc-menu select { flex: 0 0 auto; width: auto; min-width: 220px; }

/* Resumen */
.spc-resumen {
	position: sticky;
	top: 120px;
	padding: 26px;
	border-radius: 28px;
	background: #FFFFFF;
	box-shadow: 0 12px 32px rgba(78, 26, 140, .12);
}
.spc .spc-resumen-titulo {
	margin: 0 0 10px;
	padding: 0;
	font-family: 'Baloo 2', sans-serif;
	font-weight: 800;
	font-size: 24px;
	line-height: 1.15;
	color: var(--spc-tinta);
}
.spc-lineas { margin: 0 0 14px; }
.spc .spc-vacio { margin: 0; font-size: 15px; color: var(--spc-cuerpo); }
.spc-linea {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px dashed #E6DDF5;
	font-size: 15px;
	line-height: 1.4;
}
.spc-linea small { display: block; margin-top: 2px; font-size: 13px; color: var(--spc-cuerpo); }
.spc-linea strong { flex: 0 0 auto; font-weight: 800; white-space: nowrap; }
.spc-linea--desc strong { color: var(--spc-ok); }
.spc-linea--incluido strong { color: var(--spc-violeta); }
.spc-linea--iva { font-size: 14px; color: var(--spc-cuerpo); }
.spc-linea--iva strong { font-weight: 700; }
.spc-total,
.spc-por-alumno {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 14px 18px;
	border-radius: 20px;
}
.spc-total { background: var(--spc-profundo); color: #FFFFFF; }
.spc-total span { font-weight: 700; font-size: 17px; }
.spc-total strong { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 30px; line-height: 1; }
.spc-por-alumno { margin-top: 8px; background: var(--spc-tinte-naranjo); color: var(--spc-cafe); }
.spc-por-alumno span { font-weight: 700; font-size: 15px; }
.spc-por-alumno strong { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 24px; line-height: 1; }
.spc .spc-nota { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--spc-cuerpo); }
.spc .spc-aviso {
	margin: 12px 0 0;
	padding: 12px 14px;
	border-radius: 16px;
	background: var(--spc-tinte-naranjo);
	color: var(--spc-cafe);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
}
.spc-acciones { display: grid; gap: 10px; margin-top: 18px; }
.spc .spc-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 54px;
	margin: 0;
	padding: 14px 24px;
	border: 0;
	border-radius: 100px;
	font-family: 'Baloo 2', sans-serif;
	font-weight: 700;
	font-size: 17px;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s, opacity .2s;
}
.spc .spc-btn--pdf { background: var(--spc-naranjo); color: #FFFFFF; box-shadow: 0 8px 20px rgba(255, 138, 0, .32); }
.spc .spc-btn--wsp { background: var(--spc-violeta); color: #FFFFFF; box-shadow: 0 8px 20px rgba(78, 26, 140, .28); }
.spc .spc-btn:hover { transform: translateY(-3px); }
.spc .spc-btn:active { transform: translateY(0); }
.spc .spc-btn:focus-visible { outline: 3px solid rgba(123, 47, 209, .45); outline-offset: 3px; }
.spc .spc-btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.spc .spc-mensaje { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--spc-cuerpo); }
.spc .spc-mensaje:empty { display: none; }
.spc .spc-mensaje.is-error { color: var(--spc-error); font-weight: 700; }
.spc .spc-mensaje.is-ok { color: var(--spc-ok); font-weight: 700; }

/* Campo trampa para robots */
.spc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 901px) {
	/* Con muchos servicios, el detalle hace scroll y los botones siguen a la vista. */
	.spc-lineas { max-height: max(160px, calc(100vh - 560px)); overflow-y: auto; padding-right: 4px; }
}
@media (max-width: 1080px) {
	.spc-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; }
}
@media (max-width: 900px) {
	.spc-grid { grid-template-columns: minmax(0, 1fr); }
	.spc-resumen { position: static; }
}
@media (max-width: 600px) {
	.spc .spc-card { padding: 22px 18px; border-radius: 24px; }
	.spc .spc-card legend { font-size: 21px; }
	.spc-campos { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.spc-opciones { grid-template-columns: minmax(0, 1fr); }
	.spc-sub { margin-left: 0; }
	.spc .spc-check { flex-wrap: wrap; }
	.spc-servicio-texto { flex-basis: calc(100% - 36px); }
	.spc-servicio-precio { max-width: none; margin-left: 36px; text-align: left; }
	.spc .spc-menu select { min-width: 0; width: 100%; }
	.spc-menu:has(select) { flex-direction: column; align-items: stretch; }
	.spc-resumen { padding: 22px 18px; border-radius: 24px; }
	.spc-total strong { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
	.spc *, .spc .spc-btn { transition: none !important; }
}
