/* ============================================================
 * Calculador de presupuesto de fiestas privadas (2026-10-25)
 * Misma paleta que el calendario (calendarPrivateParty.css):
 * fondo oscuro, violeta de marca, verde para precios.
 * ============================================================ */
.calc-page {
	background: radial-gradient(1200px 600px at 15% -10%, rgba(124,92,255,.22), transparent 60%),
		radial-gradient(900px 500px at 100% 10%, rgba(35,198,212,.12), transparent 60%), #0b0a16;
	min-height: 100vh;
	padding-bottom: 6rem; /* sitio para la barra fija */
}
.calc-preview-banner {
	background: #facc15;
	color: #1f1600;
	font-weight: 700;
	text-align: center;
	padding: .5rem 1rem;
}
.calc-hero { padding: 6.5rem 0 1.5rem; text-align: center; }
.calc-kicker {
	margin: 0 0 .5rem;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .38em;
	text-transform: uppercase;
	color: #f0c878;
}
.calc-title {
	font-weight: 800;
	font-size: clamp(1.8rem, 4.5vw, 2.8rem);
	background: linear-gradient(90deg, #b69cff 0%, #5cdcff 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	margin: 0 0 .75rem;
}
.calc-sub { max-width: 42rem; margin: 0 auto 1.25rem; color: #cbd0e0; font-size: 1.05rem; }
.calc-steps {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem;
	list-style: none;
	padding: 0;
	margin: 0;
}
.calc-steps li {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .3rem .8rem;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,.12);
	background: rgba(255,255,255,.04);
	font-size: .82rem;
	color: #cbd0e0;
}
.calc-steps li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.4rem; height: 1.4rem;
	border-radius: 50%;
	background: rgba(255,255,255,.1);
	font-weight: 800;
	font-size: .75rem;
}
.calc-steps li.is-current { border-color: #8b5cf6; color: #fff; }
.calc-steps li.is-current span { background: linear-gradient(135deg, #5b21b6, #6d28d9); }
.calc-steps li.is-done span { background: #16a34a; }

.calc-main { max-width: 1140px; }
.calc-step {
	background: rgba(13,15,21,.55);
	border: 1px solid rgba(255,255,255,.07);
	border-radius: 22px;
	padding: 1.25rem;
	margin: 0 0 1.25rem;
	scroll-margin-top: 90px;
}
.calc-step__title {
	display: flex;
	align-items: center;
	gap: .6rem;
	font-size: 1.3rem;
	font-weight: 800;
	margin: 0 0 1rem;
	color: #fff;
}
.calc-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem; height: 2rem;
	border-radius: 50%;
	background: linear-gradient(135deg, #5b21b6, #6d28d9);
	font-size: 1rem;
}
.calc-step__intro { color: #cbd0e0; margin: -.5rem 0 1rem; }

/* personas */
.calc-pax { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-bottom: 1rem; }
.calc-pax label { font-weight: 700; }
.calc-pax__note { color: #fde047; flex-basis: 100%; }
.calc-pax__req { color: #facc15; }
/* número de personas obligatorio: resaltado si se abre un día sin él */
.calc-stepper input.is-missing { border-color: #facc15; box-shadow: 0 0 0 3px rgba(250, 204, 21, .3); }
.calc-stepper { display: inline-flex; align-items: center; gap: .4rem; }
/* ya hay botones − y +: sin las flechas del navegador (cortaban el "p. ej. 40") */
.calc-stepper input { -moz-appearance: textfield; appearance: textfield; }
.calc-stepper input::-webkit-inner-spin-button, .calc-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.calc-stepper input, .calc-card__units {
	width: 5.5rem;
	height: 44px;
	border-radius: 12px;
	border: 1px solid rgba(255,255,255,.2);
	background: rgba(0,0,0,.35);
	color: #fff;
	text-align: center;
	font-weight: 800;
	font-size: 1.1rem;
}
.calc-card__units { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 36px; font-size: 1rem; }
.calc-stepper__btn {
	width: 44px; height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,.16);
	background: rgba(255,255,255,.06);
	color: #fff;
	font-size: 1.3rem;
	line-height: 1;
}
.calc-stepper--sm .calc-stepper__btn { width: 36px; height: 36px; font-size: 1.1rem; }
.calc-stepper__btn:hover { background: rgba(124,92,255,.3); }
.calc-stepper__btn:focus-visible, .calc-option:focus-within, .calc-card button:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 2px; }

.calc-slot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .6rem;
	margin-top: 1rem;
	padding: .75rem 1rem;
	border-radius: 14px;
	background: rgba(34,197,94,.12);
	border: 1px solid rgba(34,197,94,.4);
	font-weight: 700;
}
.calc-slot i { color: #86efac; }
.calc-slot__text { flex: 1; }

/* 2. consumición obligatoria */
.calc-req + .calc-req { margin-top: 1.25rem; }
.calc-req__name { font-size: 1.05rem; font-weight: 800; margin: 0 0 .25rem; }
.calc-req__desc { color: #cbd0e0; margin: 0 0 .75rem; }
.calc-options { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.calc-option, .calc-card {
	display: block;
	position: relative;
	padding: .9rem 1rem;
	border-radius: 16px;
	border: 1px solid rgba(255,255,255,.12);
	background: rgba(255,255,255,.04);
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}
.calc-card { cursor: default; }
.calc-option input { position: absolute; top: 1rem; right: 1rem; accent-color: #8b5cf6; width: 1.2rem; height: 1.2rem; }
.calc-option.is-active, .calc-card.is-active { border-color: #8b5cf6; background: rgba(124,92,255,.14); }
.calc-option.is-disabled { opacity: .55; cursor: not-allowed; }
.calc-option__body { display: flex; flex-direction: column; gap: .2rem; padding-right: 1.8rem; }
.calc-option__name, .calc-card__name { font-weight: 800; color: #fff; }
.calc-option__price { color: #86efac; font-weight: 700; font-size: .92rem; }
.calc-option__note, .calc-card__note { color: #fde047; font-size: .82rem; margin: 0; }

/* 3. extras */
.calc-cat + .calc-cat { margin-top: 1.25rem; }
.calc-cat__title {
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #b69cff;
	margin: 0 0 .6rem;
}
.calc-cards { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.calc-children {
	grid-column: 1 / -1;
	display: grid;
	gap: .5rem;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
	padding-left: 1rem;
	border-left: 2px solid rgba(139,92,246,.5);
}
.calc-card__head { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.calc-card__price { color: #86efac; font-weight: 700; white-space: nowrap; font-size: .92rem; }
.calc-card__desc { color: #cbd0e0; font-size: .88rem; margin: .35rem 0 0; }
.calc-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .7rem; }
.calc-card__units-label { font-size: .82rem; color: #cbd0e0; }
.calc-card__line { margin-left: auto; font-size: .82rem; color: #e9ddff; font-weight: 700; }
.calc-detail { margin-top: .6rem; font-size: .85rem; }
.calc-detail summary { cursor: pointer; color: #b69cff; font-weight: 600; }
.calc-detail__text { white-space: pre-line; color: #cbd0e0; margin: .4rem 0; }
.calc-detail__link { color: #5cdcff; }

/* 4. resumen y formulario */
.calc-summary {
	background: rgba(0,0,0,.25);
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 18px;
	padding: 1rem 1.1rem;
}
.calc-summary__when { font-weight: 800; color: #fff; margin: 0 0 .75rem; }
.calc-lines { width: 100%; border-collapse: collapse; }
.calc-lines td { padding: .45rem 0; border-bottom: 1px dashed rgba(255,255,255,.1); color: #e5e7eb; vertical-align: top; }
.calc-lines td small { color: #9ca3af; }
.calc-lines td.num { text-align: right; white-space: nowrap; font-weight: 700; padding-left: .75rem; }
.calc-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-top: .75rem;
	font-size: 1.15rem;
	font-weight: 800;
}
.calc-total strong { font-size: 1.6rem; color: #86efac; }
.calc-summary__vat, .calc-summary__deposit, .calc-summary__valid, .calc-summary__note { margin: .25rem 0 0; color: #cbd0e0; font-size: .9rem; }
.calc-summary__note { color: #9ca3af; font-size: .82rem; }
.calc-alert {
	margin: .6rem 0 0;
	padding: .5rem .75rem;
	border-radius: 10px;
	background: rgba(250,204,21,.12);
	border: 1px solid rgba(250,204,21,.4);
	color: #fde68a;
	font-size: .88rem;
}
.calc-alert--error { background: rgba(185,28,28,.2); border-color: rgba(239,68,68,.6); color: #fecaca; }
.calc-conditions { margin-top: 1rem; }
.calc-conditions summary { cursor: pointer; font-weight: 700; color: #b69cff; }
.calc-conditions h4 { font-size: .95rem; font-weight: 800; margin: 1rem 0 .3rem; }
.calc-conditions__text { white-space: pre-line; color: #cbd0e0; font-size: .85rem; }

.calc-form {
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.1);
	border-radius: 18px;
	padding: 1.1rem;
}
.calc-form__title { font-size: 1.15rem; font-weight: 800; margin: 0 0 .25rem; }
.calc-form__intro, .calc-form__small { color: #cbd0e0; font-size: .88rem; }
.calc-form__small { margin: .6rem 0 0; color: #9ca3af; font-size: .78rem; }
.calc-field { display: block; margin: 0 0 .7rem; font-size: .88rem; font-weight: 600; }
.calc-field input, .calc-field textarea {
	display: block;
	width: 100%;
	margin-top: .25rem;
	padding: .6rem .75rem;
	border-radius: 12px;
	border: 1px solid rgba(255,255,255,.18);
	background: rgba(0,0,0,.35);
	color: #fff;
	font-size: 1rem; /* 16px: iOS no hace zoom */
}
.calc-consent { margin: .5rem 0 .8rem; font-size: .85rem; }
.calc-consent a { color: #5cdcff; }
.calc-form__error { color: #fecaca; font-weight: 700; font-size: .88rem; }
.calc-send { min-height: 48px; font-weight: 800; }
.calc-done {
	text-align: center;
	padding: 1.5rem 1rem;
	border-radius: 18px;
	background: rgba(34,197,94,.1);
	border: 1px solid rgba(34,197,94,.4);
}
.calc-done__icon { font-size: 2rem; color: #86efac; }

/* barra fija con el total */
.calc-bar {
	position: fixed;
	left: 0; right: 0;
	bottom: calc(58px + env(safe-area-inset-bottom, 0px)); /* encima de la barra inferior del sitio */
	z-index: 1030;
	background: rgba(11,10,22,.94);
	border-top: 1px solid rgba(255,255,255,.1);
	backdrop-filter: blur(8px);
}
.calc-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 1rem; }
.calc-bar__label { color: #cbd0e0; font-size: .85rem; }
.calc-bar__total strong { font-size: 1.3rem; color: #86efac; }
.calc-bar__total small { display: block; color: #9ca3af; font-size: .72rem; }
.calc-bar .btn { min-height: 44px; font-weight: 800; white-space: nowrap; }
@media (min-width: 992px) {
	.calc-bar { bottom: 0; }
}
@media (max-width: 575.98px) {
	.calc-step { padding: 1rem .8rem; border-radius: 18px; }
	.calc-hero { padding-top: 5.5rem; }
}
@media (prefers-reduced-motion: reduce) {
	.calc-option, .calc-card { transition: none; }
}
