﻿/* ===== ESTILOS BASE (MOBILE FIRST) ===== */
@font-face {
	font-family: 'Visby Round CF';
	src: url('../../fonts/VisbyRoundCF-Bold.woff') format('woff2'), url('../../fonts/VisbyRoundCF-Bold.woff') format('woff');
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

/* boton flotante */
.quiz-float-btn-custom {
	position: fixed;
	right: 0px;
	top: 50%;
	z-index: 9999;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	/* Tamaño del botón */
	width: 60px;
	height: 60px;
	/* Fondo cuadrado con esquina izquierda redondeada */
	background: #fff;
	border-radius: 30px 0 0 30px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.quiz-float-btn-circle {
	background:#FE2491; /* Naranja */
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 6px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

/* Overlay del popup */
.agenda-popup-overlay {
	position: fixed !important;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.5);
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
}

.agenda-popup-overlay.show {
	display: flex !important;
}

/* Contenedor principal del popup */
.agenda-popup {
	background: #fff;
	padding: 2rem 1.5rem;
	border-radius: 12px;
	max-width: 800px;
	width: 100%;
	max-height: 90vh; /* Limita la altura al 90% de la ventana */
	overflow-y: auto; /* Muestra scroll solo si es necesario */
	position: relative;
	box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

	/* Scrollbar personalizado solo dentro del popup */
	.agenda-popup::-webkit-scrollbar {
		width: 10px;
		background: #f3e6f9; /* Fondo claro */
		border-radius: 8px;
	}

	.agenda-popup::-webkit-scrollbar-thumb {
		background: #fe2491; /* Color principal */
		border-radius: 8px;
		border: 2px solid #fff;
	}

		.agenda-popup::-webkit-scrollbar-thumb:hover {
			background: #ff6bb7; /* Color al pasar el mouse */
		}

/* Firefox */
.agenda-popup {
	scrollbar-width: thin;
	scrollbar-color: #fe2491 #f3e6f9;
}


/* Botón de cerrar */
.agenda-popup-close {
	position: absolute;
	top: 10px;
	right: 16px;
	font-size: 1.5rem;
	cursor: pointer;
}

/* Pasos 0-8 */
.quiz-emotional-result {
	background: linear-gradient(90deg, #fceaff 0%, #e6faff 100%);
	border-radius: 12px;
	padding: 1.2rem 1rem 1rem 1rem;
	margin-bottom: 1.2rem;
	text-align: center;
	box-shadow: 0 2px 12px 0 rgba(254,36,145,0.07);
	position: relative;
}

.quiz-emotional-icon {
	font-size: 2.2rem;
	display: block;
	margin-bottom: 0.3rem;
}

.quiz-emotional-title {
	font-family: 'Alexandria', 'Visby Round CF', Arial, sans-serif;
	font-size: 1.25rem;
	font-weight: 800;
	color: #fe2491;
	margin-bottom: 0.3rem;
	letter-spacing: -0.5px;
}

.quiz-emotional-text {
	font-size: 1.05rem;
	color: #444;
	font-weight: 400;
	line-height: 1.5;
}

.quiz-cta-block {
	background: #fff7e6;
	border-radius: 12px;
	padding: 1.2rem 1rem 1.5rem 1rem;
	text-align: center;
	box-shadow: 0 2px 12px 0 rgba(255,180,58,0.07);
	margin-bottom: 0.5rem;
	position: relative;
}

.quiz-cta-icon {
	display: block;
	margin-bottom: 0.2rem;
}

.quiz-cta-title {
	font-family: 'Alexandria', 'Visby Round CF', Arial, sans-serif;
	font-size: 1.1rem;
	font-weight: 700;
	color: #FFB43A;
	margin-bottom: 0.2rem;
}

.quiz-cta-text {
	font-size: 1rem;
	color: #555;
	font-weight: 400;
	line-height: 1.5;
}

.quiz-cta-highlight {
	color: #fe2491;
	font-weight: 700;
	display: block;
	margin-top: 0.3rem;
	font-size: 1.05rem;
}

/* Pasos 0-8  */

/* Progreso del quiz */
#quiz-popup-progress {
	margin-bottom: 1rem;
}

	#quiz-popup-progress .quiz-title {
		font-weight: bold;
		color: #fe2491;
	}

	#quiz-popup-progress .quiz-progress-label {
		margin-top: 0.3rem;
		font-size: 1rem;
		color: #555;
	}

#quiz-popup-porcentaje {
	font-weight: bold;
}

#quiz-popup-progress-bar-bg {
	background: #eee;
	border-radius: 6px;
	height: 8px;
	margin-top: 0.3rem;
}

#quiz-popup-bar {
	background: #fe2491;
	height: 8px;
	border-radius: 6px;
	width: 0%;
	transition: width 0.3s;
}

.form-row {
	margin-top:35px;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

	.form-row .form-group {
		flex: 1 1 calc(50% - 10px);
	}


.form-group {
	position: relative;
}

	.form-group label {
		position: absolute;
		top: 45%;
		left: 0.75rem;
		transform: translateY(-50%);
		color: #aaa;
		font-size: 2rem;
		pointer-events: none;
		transition: all 0.3s ease;
	}

	.form-group input {
		display: block;
		width: 100%;
		padding: 0.75rem 0.75rem 0.75rem 0.75rem;
		padding: 0.75rem;
		border: 1px solid #ccc;
		border-radius: 5px;
		font-size: 1rem;
		outline: none;
		font-family: 'Visby Round CF', Arial, sans-serif;
	}
		.form-group input:focus + label,
		.form-group input:not(:placeholder-shown) + label {
			top: -0.6rem;
			background: none;
			padding: 0 0.25rem;
			font-size: 1.2rem;
			color: #FFB03A;
			text-shadow: 0 0 1px #fff, /* Brillo blanco muy suave */
			-1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff, 0 0 2px #000;
		}
	.form-group select {
		display: block;
		top: -0.6rem;
		width: 100%;
		padding: 0.80rem;
		border: 1px solid #ccc;
		border-radius: 5px;
		font-size: 1rem;
		outline: none;
		background: white;
	}
		.form-group select:focus + label,
		.form-group select:valid + label {
			top: -0.6rem;
			font-size: 1.2rem;
			color: #FFB03A;
		}
/* Pasos del quiz */
.quiz-step {
	display: none;
}

	.quiz-step.active {
		display: block;
	}

.agenda-popup-subtitle {
	font-weight: bold;
	color: #47D5DF;
	margin-bottom: 0.5rem;
}

.quiz-step .quiz-description {
	margin-bottom: 1rem;
}

/* Botones del quiz */
.popup-multistep-btn,
.quiz-answer-btn {
	width: 100%;
	border-radius: 8px;
	padding: 1rem;
	font-size: 1.1rem;
	font-weight: bold;
	border: none;
	cursor: pointer;
	margin-bottom: 0.5rem;
	transition: background 0.2s;
}

	#quiz-start-btn,
	#quiz-close-final,
	.quiz-answer-btn[data-answer="A"] {
		background: #fe2491;
		color: #fff;
	}

	.quiz-answer-btn[data-answer="B"] {
		background: #47D5DF;
		color: #fff;
	}

	.quiz-answer-btn[data-answer="C"] {
		background: #FFB43A;
		color: #fff;
	}

#quiz-next-1 {
	background: #47D5DF;
	color: #fff;
}

#quiz-close-final {
	margin-top: 1rem;
}

/* Formulario de contacto */
#quiz-contact-form {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
}

	#quiz-contact-form input[type="email"] {
		padding: 0.5rem;
		border-radius: 6px;
		border: 1px solid #ccc;
	}

	#quiz-contact-form button[type="submit"] {
		background: #fe2491;
		color: #fff;
		border-radius: 8px;
		padding: 0.8rem;
		font-weight: bold;
		border: none;
		cursor: pointer;
	}

/* Mensaje de éxito */
#quiz-contact-success {
	display: none;
	color: #47D5DF;
	font-weight: bold;
	margin-top: 1rem;
	text-align: center;
}

/* Título principal del quiz */
#quiz-popup-progress > div:first-child  {
	font-family: 'Alexandria', 'Visby Round CF', Arial, sans-serif;
	font-size: 1.5rem;
	font-weight: 800;
	color: #fe2491;
	letter-spacing: -0.5px;
	margin-bottom: 0.2em;
	text-align: center;
	line-height: 1.2;
}

/* Subtítulo o paso actual */
.agenda-popup-subtitle {
	font-family: 'Alexandria', 'Visby Round CF', Arial, sans-serif;
	font-size: 1.15rem;
	font-weight: 700;
	color: #47D5DF;
	margin-bottom: 0.5rem;
	letter-spacing: 0.1px;
	text-align: center;
	line-height: 1.2;
}

/* Pregunta del quiz */
.quiz-step .agenda-popup-subtitle {
	font-size: 1.1rem;
	font-weight: 700;
	color: #47D5DF;
	margin-bottom: 0.3rem;
	text-align: left;
}

/* Texto descriptivo debajo de subtítulos */
.quiz-step > div:not(.agenda-popup-subtitle):not(:has(button)) {
	font-family: 'Visby Round CF', Arial, sans-serif;
	font-size: 1rem;
	font-weight: 400;
	color: #444;
	margin-bottom: 1rem;
	line-height: 1.5;
	text-align: left;
}

/* Preguntas y respuestas */
.quiz-step .quiz-answer-btn {
	font-family: 'Visby Round CF', Arial, sans-serif;
	font-size: 1rem;
	font-weight: 600;
	text-align: left;
	letter-spacing: 0.1px;
}

/* Mensaje de éxito y resultado */
#quiz-contact-success {
	font-family: 'Visby Round CF', Arial, sans-serif;
	font-size: 1rem;
	font-weight: 400;
	color: #47D5DF;
	text-align: center;
	margin-bottom: 1rem;
	line-height: 1.5;
}

/* Botón de cerrar (opcional, para hacerlo más sutil) */
#quiz-popup-close {
	font-family: 'Visby Round CF', Arial, sans-serif;
	font-size: 2rem;
	font-weight: 400;
	color: #bbb;
	transition: color 0.2s;
}

	#quiz-popup-close:hover {
		color: #fe2491;
	}

.agenda-popup h2 {
	font-family: 'Alexandria', 'Visby Round CF', Arial, sans-serif;
	font-size: 1.4rem;
	font-weight: 800;
	color: #fe2491;
	margin-bottom: 1.2rem;
	text-align: center;
	letter-spacing: -0.5px;
}
#agenda-form {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

	#agenda-form button[type="submit"] {
		background: linear-gradient(90deg, #fe2491 60%, #ffb43a 100%);
		color: #fff;
		border-radius: 8px;
		padding: 0.9rem 0;
		font-weight: bold;
		font-size: 1.1rem;
		border: none;
		cursor: pointer;
		margin-top: 1rem;
		box-shadow: 0 2px 8px rgba(254,36,145,0.08);
		transition: background 0.2s, transform 0.1s;
	}

		#agenda-form button[type="submit"]:hover {
			background: linear-gradient(90deg, #ffb43a 0%, #fe2491 100%);
			transform: translateY(-2px) scale(1.03);
		}


.phone-wrapper {
	display: flex;
	gap: 8px;
	align-items: center;
}

