/**
 * Estilos Frontend - Sorteos Elite
 * Adaptado para Gutierrez Neumáticos
 */

/* Variables de paleta Gutierrez Neumáticos y Tipografías */
:root {
	--gutierrez-orange: #ff6600;
	--gutierrez-orange-hover: #ff8533;
	--gutierrez-orange-dim: #cc5200;
	--dark-bg: #050505;
	--dark-surface: #121212;
	--dark-card: #1c1c1e;
	--text-main: #ffffff;
	--text-secondary: #a0a0a5;
	--transition-duration: 0.4s;
	--easing: cubic-bezier(0.23, 1, 0.32, 1);
	--font-head: 'Montserrat', sans-serif;
	--font-body: 'Roboto', sans-serif;
}

/* Importar tipografías Google Fonts: Montserrat y Roboto */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Roboto:wght@300;400;500;700&display=swap');

* {
	font-family: var(--font-body);
	box-sizing: border-box;
}

/* Contenedor del formulario - Premium Dark */
.sorteos-elite-form-container {
	max-width: 650px;
	margin: 40px auto;
	padding: 50px 40px;
	background: linear-gradient(135deg, rgba(18, 18, 18, 0.95), rgba(28, 28, 30, 0.95));
	backdrop-filter: blur(15px);
	border-radius: 24px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
	border: 2px solid rgba(255, 102, 0, 0.15);
	position: relative;
	overflow: hidden;
}

.sorteos-elite-form-container::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: linear-gradient(90deg, var(--gutierrez-orange), var(--gutierrez-orange-hover));
}

.sorteos-elite-form-title {
	margin-top: 0;
	margin-bottom: 35px;
	color: var(--text-main);
	text-align: center;
	font-family: var(--font-head);
	font-size: 32px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	background: linear-gradient(135deg, var(--text-main), var(--text-secondary));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Formulario */
.sorteos-elite-form {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.sorteos-elite-form-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sorteos-elite-form-group label {
	font-family: var(--font-head);
	font-weight: 700;
	color: var(--text-main);
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.sorteos-elite-form-group .required {
	color: var(--gutierrez-orange);
	font-weight: 900;
	margin-left: 2px;
}

.sorteos-elite-form-group .optional {
	color: var(--text-secondary);
	font-weight: 400;
	font-size: 12px;
	text-transform: none;
	opacity: 0.7;
}

/* Inputs Premium Oscuros */
.sorteos-elite-input {
	padding: 16px 20px;
	border: 2px solid rgba(255, 255, 255, 0.10);
	border-radius: 12px;
	font-size: 16px;
	transition: all var(--transition-duration) var(--easing);
	background: rgba(255, 255, 255, 0.05);
	color: var(--text-main);
	font-weight: 500;
}

.sorteos-elite-input::placeholder {
	color: rgba(255, 255, 255, 0.3);
}

.sorteos-elite-input:focus {
	outline: none;
	border-color: var(--gutierrez-orange);
	box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.25);
	transform: translateY(-2px);
	background: rgba(255, 255, 255, 0.08);
}

/* Checkbox */
.sorteos-elite-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	cursor: pointer;
	padding: 15px;
	border-radius: 12px;
	transition: all var(--transition-duration) var(--easing);
	border: 2px solid transparent;
}

.sorteos-elite-checkbox-label:hover {
	background: rgba(255, 102, 0, 0.05);
	border-color: rgba(255, 102, 0, 0.2);
}

.sorteos-elite-checkbox {
	width: 24px;
	height: 24px;
	margin-top: 2px;
	cursor: pointer;
	accent-color: var(--gutierrez-orange);
	flex-shrink: 0;
}

.sorteos-elite-checkbox-text {
	font-weight: 500;
	line-height: 1.6;
	color: var(--text-main);
	font-size: 14px;
}

/* Botón de envío deportivo de alto rendimiento */
.sorteos-elite-submit-btn {
	padding: 18px 40px;
	background: linear-gradient(135deg, var(--gutierrez-orange), var(--gutierrez-orange-dim));
	color: var(--text-main);
	font-family: var(--font-head);
	border: none;
	border-radius: 30px;
	font-size: 18px;
	font-weight: 800;
	cursor: pointer;
	transition: all var(--transition-duration) var(--easing);
	box-shadow: 0 6px 20px rgba(255, 102, 0, 0.35);
	text-transform: uppercase;
	letter-spacing: 1px;
	position: relative;
	overflow: hidden;
}

.sorteos-elite-submit-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
	transition: left 0.5s;
}

.sorteos-elite-submit-btn:hover::before {
	left: 100%;
}

.sorteos-elite-submit-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 30px rgba(255, 102, 0, 0.55);
	background: linear-gradient(135deg, var(--gutierrez-orange-hover), var(--gutierrez-orange));
}

.sorteos-elite-submit-btn:active {
	transform: translateY(-1px);
}

.sorteos-elite-submit-btn:disabled {
	background: #333;
	color: #666;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* Mensajes */
.sorteos-elite-form-message {
	padding: 18px 24px;
	border-radius: 12px;
	display: none;
	font-weight: 600;
	animation: slideDown 0.4s var(--easing);
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.sorteos-elite-form-message.show {
	display: block;
}

.sorteos-elite-form-message.success {
	background: linear-gradient(135deg, rgba(21, 87, 36, 0.2), rgba(40, 167, 69, 0.2));
	color: #28a745;
	border: 2px solid rgba(40, 167, 69, 0.3);
	box-shadow: 0 4px 15px rgba(40, 167, 69, 0.15);
}

.sorteos-elite-form-message.error {
	background: linear-gradient(135deg, rgba(114, 28, 36, 0.2), rgba(220, 53, 69, 0.2));
	color: #dc3545;
	border: 2px solid rgba(220, 53, 69, 0.3);
	box-shadow: 0 4px 15px rgba(220, 53, 69, 0.15);
}

/* Contenedor de la ruleta - Premium Dark */
.sorteos-elite-ruleta-container {
	max-width: 900px;
	margin: 40px auto;
	padding: 50px 40px;
	background: linear-gradient(135deg, rgba(18, 18, 18, 0.95), rgba(28, 28, 30, 0.95));
	backdrop-filter: blur(15px);
	border-radius: 24px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
	border: 2px solid rgba(255, 102, 0, 0.15);
	text-align: center;
	position: relative;
	overflow: hidden;
}

/* Animación de confeti */
@keyframes confettiFall {
	0% {
		transform: translateY(0) rotate(0deg);
		opacity: 1;
	}
	100% {
		transform: translateY(120vh) rotate(720deg);
		opacity: 0;
	}
}

.sorteos-elite-ruleta-container::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: linear-gradient(90deg, var(--gutierrez-orange), var(--gutierrez-orange-hover));
}

.sorteos-elite-ruleta-title {
	margin-top: 0;
	margin-bottom: 40px;
	color: var(--text-main);
	font-family: var(--font-head);
	font-size: 36px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 2px;
	background: linear-gradient(135deg, var(--text-main), var(--text-secondary));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.sorteos-elite-ruleta-wrapper {
	position: relative;
	display: inline-block;
	margin: 30px 0;
	filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
	transition: filter 0.3s var(--easing);
}

/* Puntero indicador fijo (no rota con la ruleta) */
.sorteos-elite-ruleta-pointer {
	position: absolute;
	top: -15px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 25px solid transparent;
	border-right: 25px solid transparent;
	border-top: 35px solid var(--gutierrez-orange);
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
	z-index: 10;
	pointer-events: none;
}

.sorteos-elite-ruleta-pointer::after {
	content: '';
	position: absolute;
	top: -30px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 18px solid transparent;
	border-right: 18px solid transparent;
	border-top: 25px solid var(--dark-bg);
}

.sorteos-elite-ruleta-wrapper.spinning {
	animation: ruletaPulse 1.5s ease-in-out infinite;
	filter: drop-shadow(0 15px 40px rgba(255, 102, 0, 0.4));
}

@keyframes ruletaPulse {
	0%,
	100% {
		transform: scale(1);
		filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
	}
	50% {
		transform: scale(1.03);
		filter: drop-shadow(0 15px 45px rgba(255, 102, 0, 0.6));
	}
}

#sorteos-elite-ruleta-canvas {
	border-radius: 50%;
	box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7),
		0 0 0 8px rgba(255, 102, 0, 0.15),
		0 0 0 12px rgba(0, 0, 0, 0.4);
	transition: transform 0.1s ease-out, box-shadow 0.3s var(--easing);
	border: 6px solid rgba(255, 255, 255, 0.05);
	background: radial-gradient(circle, rgba(255, 102, 0, 0.1), transparent);
	will-change: transform;
}

.spinning #sorteos-elite-ruleta-canvas {
	box-shadow: 0 15px 60px rgba(255, 102, 0, 0.6),
		0 0 0 8px rgba(255, 102, 0, 0.3),
		0 0 0 12px rgba(0, 0, 0, 0.5),
		0 0 30px rgba(255, 102, 0, 0.4);
}

.sorteos-elite-ruleta-controls {
	margin: 40px 0;
}

.sorteos-elite-girar-btn {
	padding: 20px 50px;
	background: linear-gradient(135deg, var(--gutierrez-orange), var(--gutierrez-orange-dim));
	color: var(--text-main);
	font-family: var(--font-head);
	border: none;
	border-radius: 30px;
	font-size: 20px;
	font-weight: 800;
	cursor: pointer;
	transition: all var(--transition-duration) var(--easing);
	box-shadow: 0 8px 25px rgba(255, 102, 0, 0.35);
	text-transform: uppercase;
	letter-spacing: 2px;
	position: relative;
	overflow: hidden;
}

.sorteos-elite-girar-btn::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

.sorteos-elite-girar-btn:hover::before {
	width: 300px;
	height: 300px;
}

.sorteos-elite-girar-btn:hover:not(:disabled) {
	transform: translateY(-5px) scale(1.05);
	box-shadow: 0 12px 35px rgba(255, 102, 0, 0.55);
	background: linear-gradient(135deg, var(--gutierrez-orange-hover), var(--gutierrez-orange));
}

.sorteos-elite-girar-btn:active:not(:disabled) {
	transform: translateY(-2px) scale(1.02);
}

.sorteos-elite-girar-btn:disabled {
	background: #333;
	color: #666;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
	opacity: 0.6;
}

.sorteos-elite-ganador {
	margin-top: 40px;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 20px;
	display: none;
	opacity: 0;
	transform: scale(0.8) translateY(20px);
	transition: all 0.6s var(--easing);
	perspective: 1000px;
	transform-style: preserve-3d;
}

.sorteos-elite-ganador.show {
	display: block;
	animation: winnerReveal 0.8s var(--easing) forwards;
}

@keyframes winnerReveal {
	0% {
		opacity: 0;
		transform: scale(0.5) translateY(30px) rotateX(-15deg);
	}
	30% {
		opacity: 0.7;
		transform: scale(1.1) translateY(-10px) rotateX(5deg);
	}
	50% {
		transform: scale(0.95) translateY(5px) rotateX(0deg);
	}
	70% {
		transform: scale(1.05) translateY(-5px) rotateX(0deg);
	}
	100% {
		opacity: 1;
		transform: scale(1) translateY(0) rotateX(0deg);
	}
}

.sorteos-elite-ganador-content {
	background: linear-gradient(135deg, var(--gutierrez-orange), var(--gutierrez-orange-dim));
	padding: 40px;
	border-radius: 20px;
	box-shadow: 0 15px 40px rgba(255, 102, 0, 0.4);
	border: 3px solid var(--text-main);
	position: relative;
	overflow: hidden;
}

.sorteos-elite-ganador-content::before {
	content: '🎉';
	position: absolute;
	top: -20px;
	right: -20px;
	font-size: 120px;
	opacity: 0.15;
	animation: rotate 20s linear infinite;
}

@keyframes rotate {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.sorteos-elite-ganador h3 {
	margin: 0 0 20px 0;
	color: var(--text-main);
	font-family: var(--font-head);
	font-size: 32px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 2px;
	position: relative;
	z-index: 1;
	text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.sorteos-elite-ganador p {
	margin: 12px 0;
	color: var(--text-main);
	font-family: var(--font-body);
	font-size: 18px;
	font-weight: 600;
	position: relative;
	z-index: 1;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sorteos-elite-ganador p strong {
	font-family: var(--font-head);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Link de términos y condiciones */
.sorteos-elite-terms-link {
	color: var(--gutierrez-orange);
	text-decoration: none;
	font-weight: 700;
	transition: all 0.3s ease;
	border-bottom: 1px dashed var(--gutierrez-orange);
	cursor: pointer;
}

.sorteos-elite-terms-link:hover {
	color: var(--gutierrez-orange-hover);
	border-bottom-style: solid;
	text-shadow: 0 0 8px rgba(255, 102, 0, 0.4);
}

/* Modal de Términos y Condiciones */
.sorteos-elite-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s var(--easing);
}

.sorteos-elite-modal.show {
	opacity: 1;
	pointer-events: auto;
}

.sorteos-elite-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(8px);
	transition: all 0.4s var(--easing);
}

.sorteos-elite-modal-container {
	position: relative;
	width: 90%;
	max-width: 600px;
	max-height: 80vh;
	background: linear-gradient(135deg, #121212, #1c1c1e);
	border: 2px solid rgba(255, 102, 0, 0.3);
	border-radius: 20px;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 102, 0, 0.15);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transform: scale(0.9) translateY(20px);
	transition: transform 0.4s var(--easing);
	z-index: 1;
}

.sorteos-elite-modal.show .sorteos-elite-modal-container {
	transform: scale(1) translateY(0);
}

.sorteos-elite-modal-header {
	padding: 20px 25px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.sorteos-elite-modal-header h3 {
	margin: 0;
	font-family: var(--font-head);
	font-size: 20px;
	font-weight: 800;
	color: var(--text-main);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.sorteos-elite-modal-close {
	background: transparent;
	border: none;
	color: var(--text-secondary);
	font-size: 28px;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	margin: 0;
	transition: color 0.3s ease, transform 0.3s ease;
}

.sorteos-elite-modal-close:hover {
	color: var(--gutierrez-orange);
	transform: rotate(90deg);
}

.sorteos-elite-modal-body {
	padding: 25px;
	overflow-y: auto;
	color: var(--text-secondary);
	font-size: 14px;
	line-height: 1.6;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

/* Custom scrollbar para modal body */
.sorteos-elite-modal-body::-webkit-scrollbar {
	width: 8px;
}

.sorteos-elite-modal-body::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.02);
	border-radius: 4px;
}

.sorteos-elite-modal-body::-webkit-scrollbar-thumb {
	background: rgba(255, 102, 0, 0.4);
	border-radius: 4px;
}

.sorteos-elite-modal-body::-webkit-scrollbar-thumb:hover {
	background: var(--gutierrez-orange);
}

.sorteos-elite-modal-body h4 {
	margin: 10px 0 5px 0;
	color: var(--text-main);
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.sorteos-elite-modal-body h4:first-of-type {
	margin-top: 0;
}

.sorteos-elite-modal-body p {
	margin: 0;
	font-weight: 400;
	opacity: 0.9;
}

.sorteos-elite-modal-footer {
	padding: 15px 25px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	justify-content: flex-end;
}

.sorteos-elite-btn-close-modal {
	padding: 10px 24px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: var(--text-main);
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.sorteos-elite-btn-close-modal:hover {
	background: var(--gutierrez-orange);
	border-color: var(--gutierrez-orange);
	box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}