/* STC Solicitudes de Stand: formulario público.
   Los colores se pueden ajustar desde el tema sobrescribiendo estas variables en .stc-form */
.stc-form {
	--stc-ink: #1c1816;
	--stc-muted: #6b6560;
	--stc-gold: #b08828;
	--stc-gold-soft: #f6efdc;
	--stc-line: #d9d2c7;
	--stc-bg: #ffffff;
	--stc-error: #b3261e;
	--stc-radius: 6px;
	max-width: 760px;
	margin: 0 auto;
	color: var(--stc-ink);
	font-size: 16px;
	line-height: 1.5;
	box-sizing: border-box;
}
.stc-form *, .stc-form *::before, .stc-form *::after { box-sizing: inherit; }

.stc-form [hidden] { display: none !important; }
.stc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Pasos ------------------------------------------------------------------ */
.stc-step {
	border: 0;
	border-top: 2px solid var(--stc-ink);
	margin: 0 0 40px;
	padding: 20px 0 0;
	min-width: 0;
}
.stc-step legend {
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding: 0 14px 0 0;
	font-size: 1.35em;
	font-weight: 700;
	letter-spacing: -0.01em;
}
.stc-step__n {
	font-size: 1.9em;
	line-height: 1;
	color: var(--stc-gold);
	font-variant-numeric: tabular-nums;
}

/* Campos ----------------------------------------------------------------- */
.stc-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 16px; }
.stc-col-3 { grid-column: span 3; } .stc-col-4 { grid-column: span 4; } .stc-col-5 { grid-column: span 5; }
.stc-col-6 { grid-column: span 6; } .stc-col-7 { grid-column: span 7; } .stc-col-9 { grid-column: span 9; }
.stc-col-12 { grid-column: span 12; }

.stc-field { margin: 0 0 18px; }
.stc-field > label, .stc-label {
	display: block;
	margin: 0 0 6px;
	font-size: 0.9em;
	font-weight: 600;
}
.stc-opt { font-weight: 400; color: var(--stc-muted); font-size: 0.92em; }

.stc-form input[type="text"], .stc-form input[type="email"], .stc-form input[type="tel"],
.stc-form input[type="number"], .stc-form select, .stc-form textarea {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid var(--stc-line);
	border-radius: var(--stc-radius);
	background: var(--stc-bg);
	color: var(--stc-ink);
	font: inherit;
	line-height: 1.4;
	margin: 0;
}
.stc-form input:focus, .stc-form select:focus, .stc-form textarea:focus {
	outline: none;
	border-color: var(--stc-ink);
	box-shadow: 0 0 0 3px var(--stc-gold-soft);
}
.stc-field.is-error input, .stc-form [aria-invalid="true"] { border-color: var(--stc-error); }

.stc-conv-meta { margin: 8px 0 0; color: var(--stc-muted); font-size: 0.92em; }
.stc-conv-meta:empty { display: none; }
.stc-conv-info { margin-top: 10px; font-size: 0.92em; }
.stc-conv-info summary { cursor: pointer; font-weight: 600; }
.stc-conv-info div { white-space: pre-line; padding: 10px 0 0; color: var(--stc-muted); }

/* Tipo de stand ---------------------------------------------------------- */
.stc-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stc-option { position: relative; display: block; cursor: pointer; }
.stc-option input { position: absolute; opacity: 0; }
.stc-option > span {
	display: flex;
	flex-direction: column;
	gap: 2px;
	height: 100%;
	padding: 14px 16px;
	border: 1px solid var(--stc-line);
	border-radius: var(--stc-radius);
	transition: border-color .15s, background-color .15s;
}
.stc-option small { color: var(--stc-muted); font-size: 0.85em; }
.stc-option em { font-style: normal; font-weight: 700; margin-top: 6px; }
.stc-option em:empty { display: none; }
.stc-option input:checked + span { border-color: var(--stc-ink); background: var(--stc-gold-soft); box-shadow: inset 0 0 0 1px var(--stc-ink); }
.stc-option input:focus-visible + span { outline: 2px solid var(--stc-gold); outline-offset: 2px; }

.stc-total {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 20px;
	margin-top: 6px;
	padding: 12px 16px;
	border-left: 3px solid var(--stc-gold);
	background: var(--stc-gold-soft);
	font-size: 0.95em;
}
.stc-total strong { font-size: 1.1em; }

/* Archivos: marcos tipo hoja de flash, con línea discontinua de calco ----- */
.stc-files { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 22px; }
.stc-file { position: relative; }
.stc-file--wide { grid-column: 1 / -1; }
.stc-file input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.stc-file label {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1.5px dashed #a79d8f;
	border-radius: var(--stc-radius);
	background: var(--stc-bg);
	overflow: hidden;
	transition: border-color .15s;
}
.stc-file--wide label { flex-direction: row; align-items: center; }
.stc-file__preview {
	display: block;
	aspect-ratio: 1;
	background: repeating-linear-gradient(-45deg, transparent 0 9px, #efeae2 9px 10px);
	background-size: cover;
	background-position: center;
	border-bottom: 1.5px dashed #a79d8f;
	position: relative;
}
.stc-file__preview::after {
	content: "+";
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: 30px;
	font-weight: 300;
	color: #a79d8f;
}
.stc-file--wide .stc-file__preview { width: 76px; flex: none; border-bottom: 0; border-right: 1.5px dashed #a79d8f; }
.stc-file__text { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; }
.stc-file__text strong { font-size: 0.92em; }
.stc-file__text small { color: var(--stc-muted); font-size: 0.8em; line-height: 1.35; word-break: break-word; }

.stc-file input:focus-visible + label { outline: 2px solid var(--stc-gold); outline-offset: 2px; }
.stc-file:hover label { border-color: var(--stc-ink); }
.stc-file.has-file label { border-style: solid; border-color: var(--stc-ink); }
.stc-file.has-file .stc-file__preview { border-style: solid; border-color: var(--stc-ink); }
.stc-file.has-file .stc-file__preview::after { content: none; }
.stc-file.is-doc .stc-file__preview::after { content: "PDF"; font-size: 15px; font-weight: 700; color: var(--stc-ink); }
.stc-file.is-error label { border-color: var(--stc-error); }
.stc-file.is-error small { color: var(--stc-error); }

/* Condiciones ------------------------------------------------------------ */
.stc-condiciones {
	max-height: 320px;
	overflow-y: auto;
	padding: 4px 18px 4px 0;
	margin: 0 0 18px;
	font-size: 0.9em;
	color: #3b3531;
	border-bottom: 1px solid var(--stc-line);
}
.stc-condiciones:focus-visible { outline: 2px solid var(--stc-gold); outline-offset: 4px; }
.stc-condiciones--page { max-height: none; border: 0; }
.stc-condiciones h1, .stc-condiciones h2, .stc-condiciones h3, .stc-condiciones h4 { font-size: 1.05em; margin: 1.2em 0 .5em; color: var(--stc-ink); }
.stc-condiciones ul { margin: 0 0 1em 1.1em; padding: 0; }
.stc-condiciones li { margin: 0 0 .45em; }

.stc-check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; cursor: pointer; }
.stc-check input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--stc-ink); }
.stc-privacy { margin-top: 4px; font-size: 0.85em; color: var(--stc-muted); }
.stc-privacy summary { cursor: pointer; text-decoration: underline; }

/* Envío ------------------------------------------------------------------ */
.stc-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.stc-btn {
	appearance: none;
	border: 0;
	border-radius: var(--stc-radius);
	background: var(--stc-ink);
	color: #fff;
	padding: 15px 30px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .15s;
}
.stc-btn:hover { background: #3a332f; }
.stc-btn:focus-visible { outline: 3px solid var(--stc-gold); outline-offset: 3px; }
.stc-btn[disabled] { opacity: .6; cursor: progress; }
.stc-hint { margin: 0 0 14px; color: var(--stc-muted); font-size: 0.88em; }
.stc-submit .stc-hint { margin: 0; flex: 1 1 240px; }

.stc-alert {
	margin: 0 0 30px;
	padding: 14px 18px;
	border-left: 4px solid var(--stc-error);
	background: #fbeeed;
}
.stc-alert ul { margin: 8px 0 8px 1.2em; padding: 0; }
.stc-alert p { margin: 0; font-size: 0.9em; }

.stc-done { padding: 28px 0; border-top: 2px solid var(--stc-ink); }
.stc-done h3 { margin: 0 0 8px; }

@media (max-width: 640px) {
	.stc-grid > .stc-field { grid-column: span 12; }
	.stc-choice { grid-template-columns: 1fr; }
	.stc-files { grid-template-columns: repeat(2, 1fr); }
	.stc-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.stc-form * { transition: none !important; }
}
