/* Fiesta del Cordero · Encuesta. Misma paleta y estilo "sticker" de la landing. */

#fce-root, .fce-inline {
	--fce-noche: #14104A;
	--fce-violeta: #5B2BB5;
	--fce-azul: #2335D6;
	--fce-fucsia: #EE2A7B;
	--fce-naranjo: #F7792F;
	--fce-amarillo: #FFC72C;
	--fce-verde: #7CB342;
	--fce-crema: #F9EFDB;
	--fce-tinta: #141414;
	--fce-display: "Bowlby One", "Arial Black", Impact, sans-serif;
	--fce-texto: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-family: var(--fce-texto);
	color: var(--fce-tinta);
	line-height: 1.5;
}
#fce-root *, #fce-root *::before, #fce-root *::after,
.fce-inline *, .fce-inline *::before, .fce-inline *::after { box-sizing: border-box; }
#fce-root :where(h2, p), .fce-inline :where(h2, p) { margin: 0; padding: 0; }
#fce-root [hidden], .fce-inline [hidden] { display: none !important; }

html.fce-lock, html.fce-lock body { overflow: hidden; }

/* ---------- Capa y diálogo ---------- */
.fce-overlay {
	position: fixed; inset: 0; z-index: 99999;
	display: flex; align-items: flex-end; justify-content: center;
	background: rgba(20, 16, 74, .62);
	backdrop-filter: blur(3px);
	opacity: 0; transition: opacity .2s ease;
}
.fce-overlay.is-open { opacity: 1; }
.fce-dialog {
	position: relative; width: 100%; max-height: 92svh; overflow-y: auto; overscroll-behavior: contain;
	background: var(--fce-crema);
	border: 2.5px solid var(--fce-tinta); border-bottom: 0;
	border-radius: 24px 24px 0 0;
	padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
	transform: translateY(24px); transition: transform .25s cubic-bezier(.2, .9, .3, 1.2);
}
.fce-dialog::before { /* banderines */
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px;
	background: repeating-linear-gradient(90deg, var(--fce-fucsia) 0 40px, var(--fce-amarillo) 40px 80px, var(--fce-naranjo) 80px 120px, var(--fce-violeta) 120px 160px);
	border-radius: 22px 22px 0 0;
}
.fce-overlay.is-open .fce-dialog { transform: none; }
.fce-dialog:focus { outline: none; }

@media (min-width: 640px) {
	.fce-overlay { align-items: center; padding: 24px; }
	.fce-dialog { max-width: 560px; border-bottom: 2.5px solid var(--fce-tinta); border-radius: 24px; box-shadow: 8px 8px 0 var(--fce-tinta); padding: 30px 32px 28px; }
}

.fce-close {
	position: absolute; top: 18px; right: 14px; z-index: 2;
	width: 40px; height: 40px; display: grid; place-items: center;
	border-radius: 50%; border: 2px solid var(--fce-tinta); background: #fff; color: var(--fce-tinta); cursor: pointer;
}
.fce-close:hover { background: var(--fce-amarillo); }
.fce-i { display: inline-flex; width: 20px; height: 20px; flex: none; }
.fce-i svg { width: 100%; height: 100%; }

/* ---------- Pantallas ---------- */
.fce-screen { animation: fce-in .28s ease both; }
@keyframes fce-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

.fce-intro, .fce-thanks { text-align: center; padding: 10px 0 4px; }
.fce-avatar { width: 92px; height: 92px; margin: 6px auto 14px; display: block; border-radius: 50%; background: var(--fce-amarillo); border: 2.5px solid var(--fce-tinta); box-shadow: 4px 4px 0 var(--fce-tinta); transform: rotate(-4deg); }
.fce-title { font: clamp(24px, 6vw, 30px)/1.08 var(--fce-display); text-transform: uppercase; margin: 0 auto 10px; max-width: 18ch; outline: none; }
.fce-lead { font-size: 16px; font-weight: 500; max-width: 42ch; margin: 0 auto; }
.fce-note { margin: 14px auto 0; max-width: 42ch; font-size: 14px; background: #fff; border: 2px dashed var(--fce-violeta); border-radius: 12px; padding: 10px 12px; }
.fce-meta { margin-top: 14px; font-size: 13px; font-weight: 700; opacity: .65; }

/* Progreso */
.fce-progress { display: flex; align-items: center; gap: 12px; margin: 6px 52px 20px 0; }
.fce-progress__bar { flex: 1; height: 12px; background: #fff; border: 2px solid var(--fce-tinta); border-radius: 999px; overflow: hidden; }
.fce-progress__bar span { display: block; height: 100%; background: repeating-linear-gradient(135deg, var(--fce-fucsia) 0 8px, #ff4f93 8px 16px); border-right: 2px solid var(--fce-tinta); transition: width .35s ease; }
.fce-progress__bar span[style="width:0%"] { border-right: 0; }
.fce-progress__txt { font: 13px/1 var(--fce-display); }

.fce-q { font-size: clamp(19px, 4.6vw, 22px); font-weight: 800; line-height: 1.3; outline: none; }
.fce-optional { font-weight: 500; font-size: 15px; opacity: .6; }
.fce-help { margin-top: 6px; font-size: 14px; opacity: .75; }

/* Opciones */
.fce-options { display: grid; gap: 10px; margin-top: 18px; }
.fce-opt {
	display: flex; align-items: center; gap: 12px; width: 100%;
	min-height: 54px; padding: 12px 14px; text-align: left;
	font: 700 16px/1.3 var(--fce-texto); color: var(--fce-tinta);
	background: #fff; border: 2px solid var(--fce-tinta); border-radius: 14px; cursor: pointer;
	box-shadow: 3px 3px 0 var(--fce-tinta);
	transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.fce-opt:hover { background: #FFF6DB; }
.fce-opt:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--fce-tinta); }
.fce-opt__mark { width: 24px; height: 24px; flex: none; border: 2px solid var(--fce-tinta); border-radius: 50%; background: #fff; display: grid; place-items: center; color: #fff; }
.fce-opt--check .fce-opt__mark { border-radius: 7px; }
.fce-opt--check .fce-opt__mark .fce-i { width: 16px; height: 16px; opacity: 0; }
.fce-opt.is-on { background: var(--fce-amarillo); }
.fce-opt.is-on .fce-opt__mark { background: var(--fce-tinta); box-shadow: inset 0 0 0 4px #fff; }
.fce-opt--check.is-on .fce-opt__mark { box-shadow: none; }
.fce-opt--check.is-on .fce-opt__mark .fce-i { opacity: 1; }

/* Escalas */
.fce-scale { margin-top: 20px; }
.fce-scale__row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.fce-scale--nps .fce-scale__row { grid-template-columns: repeat(6, 1fr); }
.fce-scale__btn {
	height: 58px; border: 2px solid var(--fce-tinta); border-radius: 14px; cursor: pointer;
	font: 22px/1 var(--fce-display); color: var(--fce-tinta); background: #fff;
	box-shadow: 3px 3px 0 var(--fce-tinta); transition: transform .12s, box-shadow .12s, background-color .12s;
}
.fce-scale--nps .fce-scale__btn { height: 50px; font-size: 18px; }
.fce-scale__btn:hover { transform: translate(-1px, -1px); }
.fce-scale__btn.is-on { color: #fff; transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--fce-tinta); }
.fce-tone-s1.is-on, .fce-tone-lo.is-on { background: var(--fce-fucsia); }
.fce-tone-s2.is-on { background: var(--fce-naranjo); }
.fce-tone-s3.is-on, .fce-tone-mid.is-on { background: var(--fce-amarillo); color: var(--fce-tinta); }
.fce-tone-s4.is-on { background: #46A35A; }
.fce-tone-s5.is-on, .fce-tone-hi.is-on { background: var(--fce-violeta); }
.fce-scale__labels { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; font-weight: 700; opacity: .7; }
@media (min-width: 640px) { .fce-scale--nps .fce-scale__row { grid-template-columns: repeat(11, 1fr); gap: 6px; } .fce-scale--nps .fce-scale__btn { height: 48px; font-size: 16px; border-radius: 10px; } }

/* Campos */
.fce-input {
	display: block; width: 100%; margin-top: 18px;
	font: 600 17px/1.4 var(--fce-texto); color: var(--fce-tinta);
	background: #fff; border: 2px solid var(--fce-tinta); border-radius: 14px; padding: 14px 16px;
	box-shadow: 3px 3px 0 var(--fce-tinta);
}
.fce-input:focus { outline: 3px solid var(--fce-amarillo); outline-offset: 2px; }
.fce-textarea { resize: vertical; min-height: 120px; }
.fce-select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; padding-right: 46px; }
.fce-stepper { display: grid; grid-template-columns: 58px 1fr 58px; gap: 10px; margin-top: 18px; }
.fce-stepper .fce-input { margin: 0; text-align: center; font: 26px/1 var(--fce-display); -moz-appearance: textfield; }
.fce-stepper .fce-input::-webkit-outer-spin-button, .fce-stepper .fce-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fce-stepper__btn { border: 2px solid var(--fce-tinta); border-radius: 14px; background: var(--fce-amarillo); font: 28px/1 var(--fce-display); cursor: pointer; box-shadow: 3px 3px 0 var(--fce-tinta); color: var(--fce-tinta); }
.fce-stepper__btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--fce-tinta); }

.fce-error { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: #FFE0EC; border: 2px solid var(--fce-fucsia); font-size: 14px; font-weight: 600; }

/* Acciones */
.fce-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 24px; }
.fce-actions--center { justify-content: center; flex-direction: column; margin-top: 22px; }
.fce-actions__right { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.fce-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 50px; padding: 0 22px; cursor: pointer;
	font: 800 15px/1 var(--fce-texto); text-transform: uppercase; letter-spacing: .03em; text-decoration: none;
	border: 2.5px solid var(--fce-tinta); border-radius: 999px;
	transition: transform .12s, box-shadow .12s, opacity .12s;
}
.fce-btn--primary { background: var(--fce-tinta); color: var(--fce-crema); box-shadow: 4px 4px 0 var(--fce-fucsia); }
.fce-btn--primary:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--fce-fucsia); }
.fce-btn--primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--fce-fucsia); }
.fce-btn--primary:disabled { opacity: .35; cursor: not-allowed; transform: none; box-shadow: 4px 4px 0 var(--fce-fucsia); }
.fce-btn--primary.is-loading { opacity: .8; }
.fce-actions--center .fce-btn--primary { min-width: 220px; min-height: 56px; font-size: 16px; }
.fce-btn--ghost { background: #fff; color: var(--fce-tinta); padding: 0 16px; box-shadow: 3px 3px 0 var(--fce-tinta); }
.fce-btn--text { background: none; border-color: transparent; color: var(--fce-tinta); padding: 0 12px; text-decoration: underline; text-underline-offset: 3px; text-transform: none; font-weight: 700; }
.fce-btn:focus-visible, .fce-opt:focus-visible, .fce-scale__btn:focus-visible, .fce-close:focus-visible, .fce-stepper__btn:focus-visible { outline: 3px solid var(--fce-azul); outline-offset: 3px; }

/* Gracias */
.fce-done { width: 92px; height: 92px; margin: 8px auto 16px; display: grid; place-items: center; border-radius: 50%; background: var(--fce-verde); color: #fff; border: 2.5px solid var(--fce-tinta); box-shadow: 4px 4px 0 var(--fce-tinta); animation: fce-pop .45s cubic-bezier(.2, .9, .3, 1.4) both; }
.fce-done .fce-i { width: 46px; height: 46px; }
@keyframes fce-pop { from { transform: scale(.4) rotate(-20deg); } to { transform: none; } }

/* ---------- Botón flotante ---------- */
.fce-fab {
	position: fixed; z-index: 9990; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 16px 6px 6px; cursor: pointer;
	font: 800 14px/1 var(--fce-texto); text-transform: uppercase; letter-spacing: .04em; color: var(--fce-tinta);
	background: var(--fce-amarillo); border: 2.5px solid var(--fce-tinta); border-radius: 999px;
	box-shadow: 4px 4px 0 var(--fce-tinta);
	transition: transform .2s ease, opacity .2s ease;
	animation: fce-fab-in .5s .6s cubic-bezier(.2, .9, .3, 1.3) both;
}
.fce-fab img { width: 34px; height: 34px; border-radius: 50%; background: var(--fce-crema); border: 2px solid var(--fce-tinta); }
.fce-fab:hover { transform: translateY(-2px); }
.fce-fab.is-hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }
@keyframes fce-fab-in { from { transform: translateY(80px); } to { transform: none; } }

/* ---------- Versión dentro de la página (shortcode) ---------- */
.fce-inline { max-width: 600px; margin: 24px auto; background: var(--fce-crema); border: 2.5px solid var(--fce-tinta); border-radius: 22px; padding: 28px 22px; box-shadow: 6px 6px 0 var(--fce-tinta); position: relative; overflow: hidden; }
.fce-inline .fce-progress { margin-right: 0; }

@media (prefers-reduced-motion: reduce) {
	#fce-root *, .fce-inline * { animation: none !important; transition: none !important; }
}
