/* ========================================
   VARIABLES CSS - SISTEMA DE COLORES
   ======================================== */

:root {
	/* Colores principales */
	--color-primary: linear-gradient(135deg, #1b0d57 , #010228 );
	--color-primary-light: #a50000;
	--color-primary-dark: linear-gradient(135deg, #1b0d57 , #010228 );
	--color-secondary: #d4a574;
	--color-secondary-light: #e6c299;
	--color-secondary-dark: #b8935f;
	
	/* Colores de estado */
	--color-success: #10b981;
	--color-warning: #f59e0b;
	--color-error: #ef4444;
	--color-info: #3b82f6;
	
	/* Colores de texto */
	--color-text-primary: #1f2937;
	--color-text-secondary: #6b7280;
	--color-text-muted: #9ca3af;
	--color-text-white: #ffffff;
	
	/* Colores de fondo */
	--color-bg-primary: #ffffff;
	--color-bg-secondary: #f8fafc;
	--color-bg-light: #f9fafb;
	--color-bg-dark: #111827;
	
	/* Colores de borde */
	--color-border-light: #e5e7eb;
	--color-border-medium: #d1d5db;
	--color-border-dark: #9ca3af;
	
	/* Gradientes */
	--gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
	--gradient-secondary: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
	--gradient-light: linear-gradient(135deg, var(--color-bg-secondary), #e2e8f0);
	
	/* Sombras */
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	
	/* Radios de borde */
	--radius-sm: 0.375rem;
	--radius-md: 0.5rem;
	--radius-lg: 0.75rem;
	--radius-xl: 1rem;
	--radius-2xl: 1.5rem;
	
	/* Espaciado */
	--spacing-xs: 0.25rem;
	--spacing-sm: 0.5rem;
	--spacing-md: 1rem;
	--spacing-lg: 1.5rem;
	--spacing-xl: 2rem;
	--spacing-2xl: 3rem;
	
	/* Transiciones */
	--transition-fast: 0.15s ease-in-out;
	--transition-normal: 0.3s ease-in-out;
	--transition-slow: 0.5s ease-in-out;
}

/* Estilos principales para rifa.html */
* {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* CSS minificado para mejor rendimiento */
.topbar{
	height: 90px !important;
	min-height: 90px !important;
	position: fixed !important;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: var(--color-primary-dark) !important;
	box-shadow: var(--shadow-lg);
	border: none !important;
	display: flex !important;
	align-items: center !important;
	padding: 0 var(--spacing-lg) !important;
}

.topbar .navbar {
	height: 100%;
	align-items: center;
	background: transparent !important;
	border: none !important;
	border-bottom: none !important;
	border-top: none !important;
	box-shadow: none !important;
}

.navbar-expand {
	border: none !important;
	border-bottom: none !important;
}

/* Sobrescribir estilos de Bootstrap */
.navbar, .navbar-expand, .navbar-light, .navbar-dark {
	border: none !important;
	border-bottom: none !important;
	border-top: none !important;
	box-shadow: none !important;
	background: transparent !important;
}

.navbar::after, .navbar-expand::after {
	display: none !important;
}

/* Eliminar completamente cualquier línea o borde azul */
.topbar, .topbar *, .navbar, .navbar *, .header-wrapper, .header-wrapper * {
	border-bottom: none !important;
	border-top: none !important;
	border-left: none !important;
	border-right: none !important;
	outline: none !important;
}

.topbar .navbar::before, .topbar .navbar::after,
.navbar-expand::before, .navbar-expand::after {
	content: none !important;
	display: none !important;
}

.header-wrapper {
	background: linear-gradient(135deg, #1b0d57 , #010228 ); !important;
	border: none !important;
}

header {
	background: linear-gradient(135deg, #1b0d57 , #010228 ); !important;
	border: none !important;
}

.logo-icon {
	height: clamp(2.5rem, 6vw, 3.5rem) !important;
	width: auto;
	max-height: clamp(2.5rem, 6vw, 3.5rem);
	margin: 0.3rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.logo-icon:hover {
	transform: scale(1.05);
}

.topbar-logo-header {
	height: 100%;
	display: flex;
	align-items: center;
}

.logo-link {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.header-right {
	display: flex;
	align-items: center;
	gap: var(--spacing-lg);
	color: var(--color-text-white);
	font-weight: 500;
	font-size: 0.9rem;
	margin-left: auto;
	height: 100%;
	flex-shrink: 0;
}

.header-right .me-3 {
	display: flex;
	align-items: center;
	height: 100%;
	text-decoration: none;
	color: inherit;
	transition: var(--transition-fast);
}

.header-right a[href*="wa.me"] {
	display: flex;
	align-items: center;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

/* Fondo principal limpio sin partículas */
body {
	background: var(--gradient-light);
	min-height: 100vh;
}

.rifa-container {
	background: var(--color-bg-secondary);
	min-height: 100vh;
	padding: 30px 0;
	margin-top: 90px;
}

.rifa-card {
	background: white;
	border-radius: 12px;
	box-shadow: 0 2px 20px rgba(0,0,0,0.05);
	overflow: hidden;
	border: 1px solid #f0f0f0;
}

/* Contenedor de la imagen con tamaño fijo */
.rifa-image-container {
    width: 100%;
    height: clamp(20rem, 50vh, 37.5rem);
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f8f8f8;
	border-radius: 12px 0 0 12px;
	overflow: hidden;
	position: relative;
	padding: 0;
}

/* Imagen adaptada al contenedor fijo */
.rifa-image {
	max-width: 100%;
	max-height: 90%;
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: center;
	transition: all 0.3s ease;
	display: block;
	border-radius: 8px;
}

/* Asegurar que la imagen se mantenga dentro del contenedor */
.rifa-image-container img {
	max-width: calc(100% - 40px);
	max-height: calc(100% - 40px);
}

/* Título minimalista */
.rifa-title {
	color: linear-gradient(135deg, #1b0d57 , #010228 );;
	font-size: 2rem;
	font-weight: 600;
	text-align: center;
	margin-bottom: 2rem;
	line-height: 1.3;
}

/* Stats cards minimalistas */
.stats-card {
	background: white;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	padding: 1.5rem;
	text-align: center;
	transition: all 0.2s ease;
}

.stats-card:hover {
	border-color: linear-gradient(135deg, #1b0d57 , #010228 );;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(121, 0, 0, 0.1);
}

.stats-label {
	color: #666;
	font-size: 0.85rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 0.5rem;
}

.stats-value {
	color: linear-gradient(135deg, #1b0d57 , #010228 );;
	font-size: 1.8rem;
	font-weight: 700;
	margin: 0;
}

/* Progress bar minimalista */
.progress-container {
	background: white;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	padding: 2rem;
	margin: 2rem 0;
}

.progress-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
}

.progress-title {
	color: #333;
	font-weight: 600;
	font-size: 1.1rem;
	margin: 0;
}

.progress-percentage {
	color: linear-gradient(135deg, #1b0d57 , #010228 );;
	font-weight: 700;
	font-size: 1.4rem;
	margin: 0;
}

.progress-bar-container {
	background: #f0f0f0;
	border-radius: 15px;
	height: 20px;
	overflow: hidden;
	position: relative;
	box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-bar-fill {
	background: linear-gradient(90deg, linear-gradient(135deg, #1b0d57 , #010228 );, #a50000, linear-gradient(135deg, #1b0d57 , #010228 ););
	height: 100%;
	border-radius: 15px;
	transition: width 1s ease-in-out;
	position: relative;
	box-shadow: 0 2px 8px rgba(121, 0, 0, 0.3);
}

.progress-bar-fill::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
	border-radius: 15px;
	animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
	0%, 100% { 
		transform: translateX(-100%); 
	}
	50% { 
		transform: translateX(100%); 
	}
}

/* Ticket numbers minimalistas */
.ticket-number {
	background: white;
	color: linear-gradient(135deg, #1b0d57 , #010228 );;
	border: 2px solid #e8e8e8;
	padding: 1rem;
	text-align: center;
	font-weight: 600;
	font-size: 1rem;
	border-radius: 8px;
	margin: 0.25rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ticket-number:hover {
	border-color: linear-gradient(135deg, #1b0d57 , #010228 );;
	background: linear-gradient(135deg, #1b0d57 , #010228 );;
	color: white;
	transform: translateY(-1px);
}

.ticket-selected {
	background: linear-gradient(135deg, #1b0d57 , #010228 ); !important;
	color: white !important;
	border-color: linear-gradient(135deg, #1b0d57 , #010228 ); !important;
}

/* Controles de cantidad minimalistas */
.quantity-control {
	border: 2px solid #e8e8e8;
	border-radius: 8px;
	padding: 0.8rem;
	text-align: center;
	font-size: 1.1rem;
	font-weight: 600;
	background: white;
	color: #333;
	transition: all 0.2s ease;
}

.quantity-control:focus {
	border-color: linear-gradient(135deg, #1b0d57 , #010228 );;
	outline: none;
	box-shadow: 0 0 0 3px rgba(121, 0, 0, 0.1);
}

.btn-quantity {
	background: white;
	border: 2px solid #e8e8e8;
	width: 50px;
	height: 50px;
	border-radius: 8px;
	font-size: 1.2rem;
	font-weight: 600;
	color: linear-gradient(135deg, #1b0d57 , #010228 );;
	transition: all 0.2s ease;
}

.btn-quantity:hover {
	border-color: linear-gradient(135deg, #1b0d57 , #010228 );;
	background: linear-gradient(135deg, #1b0d57 , #010228 );;
	color: white;
}

/* Botones minimalistas */
.btn-comprar {
	background: linear-gradient(135deg, #1b0d57 , #010228 );;
	border: none;
	padding: 1rem 2rem;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 8px;
	color: white;
	width: 100%;
	margin: 1rem 0;
	transition: all 0.2s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.btn-comprar:hover {
	background: linear-gradient(135deg, #1b0d57 , #010228 );
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(121, 0, 0, 0.2);
	color: white !important;
}

.btn-comprar:focus,
.btn-comprar:focus-visible,
.btn-comprar:focus-within {
	background: linear-gradient(135deg, #1b0d57 , #010228 ); !important;
	background-color: linear-gradient(135deg, #1b0d57 , #010228 ); !important;
	color: white !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(121, 0, 0, 0.3) !important;
	border-color: linear-gradient(135deg, #1b0d57 , #010228 ); !important;
}

.btn-comprar:active,
.btn-comprar.active {
	background: linear-gradient(135deg, #1b0d57 , #010228 ) !important;
	background-color: linear-gradient(135deg, #1b0d57 , #010228 ) !important;
	color: white !important;
	transform: translateY(0);
	border-color: linear-gradient(135deg, #1b0d57 , #010228 ) !important;
}

.btn-comprar:visited {
	background: linear-gradient(135deg, #1b0d57 , #010228 ); !important;
	background-color: linear-gradient(135deg, #1b0d57 , #010228 ); !important;
	color: white !important;
	border-color: linear-gradient(135deg, #1b0d57 , #010228 ); !important;
}

.btn-comprar:focus:hover,
.btn-comprar:focus-visible:hover {
	background: linear-gradient(135deg, #1b0d57 , #010228 ) !important;
	background-color: linear-gradient(135deg, #1b0d57 , #010228 ) !important;
	color: white !important;
	border-color: linear-gradient(135deg, #1b0d57 , #010228 ) !important;
}

/* Sobrescribir estilos de Bootstrap específicamente */
.btn.btn-comprar,
button.btn-comprar {
	background: linear-gradient(135deg, #1b0d57 , #010228 ); !important;
	background-color: linear-gradient(135deg, #1b0d57 , #010228 ); !important;
	color: white !important;
	border: none !important;
	border-color: linear-gradient(135deg, #1b0d57 , #010228 ); !important;
}

.btn.btn-comprar:hover,
button.btn-comprar:hover {
	background: linear-gradient(135deg, #1b0d57 , #010228 ) !important;
	background-color: linear-gradient(135deg, #1b0d57 , #010228 ) !important;
	color: white !important;
	border-color: linear-gradient(135deg, #1b0d57 , #010228 ) !important;
}

.btn.btn-comprar:focus,
.btn.btn-comprar:focus-visible,
button.btn-comprar:focus,
button.btn-comprar:focus-visible {
	background: linear-gradient(135deg, #1b0d57 , #010228 ); !important;
	background-color: linear-gradient(135deg, #1b0d57 , #010228 ); !important;
	color: white !important;
	border-color: linear-gradient(135deg, #1b0d57 , #010228 ); !important;
	box-shadow: 0 0 0 3px rgba(121, 0, 0, 0.3) !important;
}

.btn.btn-comprar:active,
.btn.btn-comprar.active,
button.btn-comprar:active,
button.btn-comprar.active {
	background: linear-gradient(135deg, #1b0d57 , #010228 ) !important;
	background-color: linear-gradient(135deg, #1b0d57 , #010228 ) !important;
	color: white !important;
	border-color: linear-gradient(135deg, #1b0d57 , #010228 ) !important;
}

.btn-limpiar {
	background: white;
	border: 2px solid #e8e8e8;
	padding: 1rem 2rem;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 8px;
	color: #666;
	width: 100%;
	transition: all 0.2s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.btn-limpiar:hover {
	border-color: linear-gradient(135deg, #1b0d57 , #010228 );;
	color: linear-gradient(135deg, #1b0d57 , #010228 );;
	transform: translateY(-1px);
}

/* Responsive minimalista */
@media (max-width: 768px) {
	.rifa-image-container {
		height: 280px;
		border-radius: 12px 12px 0 0;
		padding: 15px;
	}
	
	.rifa-title {
		font-size: 1.5rem;
		margin-bottom: 1.5rem;
	}
	
	.stats-value {
		font-size: 1.4rem;
	}
	
	.rifa-container {
		padding: 20px 15px;
	}

	/* Botones más grandes en móvil */
	.btn-comprar, .btn-limpiar {
		padding: 1.2rem 2rem;
		font-size: 1.1rem;
		margin: 0.8rem 0;
	}

	/* Botones de cantidad más grandes */
	.btn-quantity {
		width: 60px;
		height: 60px;
		font-size: 1.4rem;
	}

	/* Input de cantidad más grande */
	.quantity-control {
		padding: 1rem;
		font-size: 1.2rem;
	}

	/* Números de tickets más grandes */
	.ticket-number {
		padding: 1.2rem;
		font-size: 1.1rem;
		margin: 0.3rem;
	}

	/* Progress bar ajustado */
	.progress-container {
		padding: 1.5rem;
		margin: 1.5rem 0;
	}

	.progress-title {
		font-size: 1rem;
	}

	.progress-percentage {
		font-size: 1.2rem;
	}

	/* Stats cards más grandes */
	.stats-card {
		padding: 1.8rem 1.5rem;
		margin-bottom: 1rem;
	}

	.stats-label {
		font-size: 0.9rem;
	}

	.stats-value {
		font-size: 1.6rem;
	}
}

@media (max-width: 576px) {
	.rifa-image-container {
		height: 220px;
		border-radius: 12px 12px 0 0;
		padding: 10px;
	}
	
	.rifa-title {
		font-size: 1.3rem;
		margin-bottom: 1rem;
	}
	
	.rifa-container {
		padding: 15px 10px;
	}

	/* Botones extra grandes en móviles pequeños */
	.btn-comprar, .btn-limpiar {
		padding: 1.4rem 2rem;
		font-size: 1.2rem;
		margin: 1rem 0;
		border-radius: 12px;
	}

	/* Botones de cantidad extra grandes */
	.btn-quantity {
		width: 70px;
		height: 70px;
		font-size: 1.6rem;
		border-radius: 12px;
	}

	/* Input más grande */
	.quantity-control {
		padding: 1.2rem;
		font-size: 1.4rem;
		border-radius: 12px;
	}

	/* Números de tickets adaptados */
	.ticket-number {
		padding: 1.4rem 0.8rem;
		font-size: 1rem;
		margin: 0.2rem;
		border-radius: 10px;
	}

	/* Progress bar más compacto */
	.progress-container {
		padding: 1.2rem;
		margin: 1rem 0;
	}

	.progress-header {
		margin-bottom: 1rem;
	}

	.progress-title {
		font-size: 0.9rem;
	}

	.progress-percentage {
		font-size: 1.1rem;
	}

	.progress-bar-container {
		height: 16px;
	}

	/* Stats cards compactas */
	.stats-card {
		padding: 1.5rem 1rem;
	}

	.stats-label {
		font-size: 0.8rem;
	}

	.stats-value {
		font-size: 1.4rem;
	}

	/* Ajustes para grid de tickets */
	.row.mb-4 .col-2 {
		flex: 0 0 auto;
		width: 16.666667%;
		padding: 0 0.2rem;
	}

	/* Modales más amigables en móvil */
	.modal-content {
		margin: 1rem;
		border-radius: 15px;
	}

	.modal-header {
		padding: 1.2rem;
	}

	.modal-body {
		padding: 1.2rem;
	}

	.btn-reportar, .btn-continuar-pago {
		padding: 1.2rem 2rem !important;
		font-size: 1.1rem !important;
	}

	/* Formularios más grandes */
	.form-control {
		padding: 1rem !important;
		font-size: 1rem !important;
	}

	/* Métodos de pago más grandes */
	.payment-method-modal {
		padding: 1.5rem !important;
		margin-bottom: 1rem !important;
	}
}

@media (max-width: 480px) {
	/* Para móviles muy pequeños */
	.rifa-card {
		margin: 0.5rem;
		border-radius: 15px;
	}

	.btn-comprar, .btn-limpiar {
		padding: 1.5rem 2rem;
		font-size: 1.3rem;
		border-radius: 15px;
	}

	.btn-quantity {
		width: 80px;
		height: 80px;
		font-size: 1.8rem;
		border-radius: 15px;
	}

	.quantity-control {
		padding: 1.4rem;
		font-size: 1.5rem;
		border-radius: 15px;
	}

	/* Tickets en dos filas para móviles muy pequeños */
	.ticket-number {
		padding: 1.2rem 0.6rem;
		font-size: 0.9rem;
		margin: 0.15rem;
	}

	.row.mb-4 .col-2 {
		width: 33.333333%;
		margin-bottom: 0.5rem;
	}
}

/* Mejoras de accesibilidad táctil */
@media (hover: none) and (pointer: coarse) {
	/* Para dispositivos táctiles */
	.btn-comprar, .btn-limpiar, .btn-quantity, .ticket-number {
		min-height: 48px;
		min-width: 48px;
	}

	.ticket-number:hover,
	.btn-quantity:hover,
	.btn-comprar:hover,
	.btn-limpiar:hover {
		transform: none;
	}

	.ticket-number:active,
	.btn-quantity:active,
	.btn-comprar:active,
	.btn-limpiar:active {
		transform: scale(0.95);
		transition: transform 0.1s ease;
	}
}

/* Modales minimalistas */
.modal-content {
	border-radius: 12px;
	border: none;
	box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.modal-header {
	border-bottom: 1px solid #f0f0f0;
	padding: 1.5rem;
}

.modal-title {
	color: linear-gradient(135deg, #1b0d57 , #010228 );;
	font-size: 1.3rem;
	font-weight: 600;
	text-align: center;
	width: 100%;
}

.modal-body {
	padding: 1.5rem;
}

.resumen-item {
	display: flex;
	justify-content: space-between;
	margin-bottom: 1rem;
	font-size: 1rem;
	padding: 0.8rem;
	background: #f8f8f8;
	border-radius: 6px;
}

.resumen-label {
	color: #666;
	font-weight: 500;
}

.resumen-value {
	color: linear-gradient(135deg, #1b0d57 , #010228 );;
	font-weight: 700;
}

.total-section {
	border-top: 1px solid #e8e8e8;
	padding-top: 1rem;
	margin-top: 1rem;
}

.btn-reportar {
	background: linear-gradient(135deg, #1b0d57 , #010228 );;
	border: none;
	padding: 1rem 2rem;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 8px;
	color: white;
	width: 100%;
	transition: all 0.2s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.btn-reportar:hover {
	background: linear-gradient(135deg, #1b0d57 , #010228 );
	color: white !important;
	transform: translateY(-1px);
}

/* Efectos sutiles para elementos interactivos */
.card-hover:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* Estilos para Sold Out */
.sold-out-container {
	text-align: center;
	padding: 30px 20px;
	background: linear-gradient(135deg, #ffebee, #ffcdd2);
	border-radius: 15px;
	border: 2px solid #f44336;
}

.sold-out-badge {
	background: #f44336;
	color: white;
	padding: 15px 25px;
	border-radius: 50px;
	display: inline-block;
	font-size: 1.2rem;
	font-weight: bold;
	margin-bottom: 15px;
	box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.sold-out-badge i {
	margin-right: 8px;
}

.sold-out-message {
	color: #d32f2f;
	font-size: 1rem;
	font-weight: 600;
	margin: 0;
}

/* Animaciones sutiles */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.rifa-card {
	animation: fadeInUp 0.6s ease-out;
}

/* Notificaciones minimalistas */
.notification {
	background: white !important;
	color: #333 !important;
	border-left: 4px solid linear-gradient(135deg, #1b0d57 , #010228 );;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.notification.success {
	border-left-color: #28a745;
}

.notification.error {
	border-left-color: #dc3545;
}

/* Estilos para formularios */
.form-control {
	border: 2px solid #e8e8e8;
	border-radius: 8px;
	padding: 0.8rem;
	transition: all 0.2s ease;
}

.form-control:focus {
	border-color: linear-gradient(135deg, #1b0d57 , #010228 );;
	outline: none;
	box-shadow: 0 0 0 3px rgba(121, 0, 0, 0.1);
}

/* Métodos de pago minimalistas */
.payment-method-modal {
	border: 2px solid #e8e8e8 !important;
	border-radius: 8px !important;
	background: white !important;
	transition: all 0.2s ease !important;
}

.payment-method-modal:hover {
	border-color: linear-gradient(135deg, #1b0d57 , #010228 ); !important;
	transform: translateY(-2px);
}

.payment-method-modal.selected {
	border-color: linear-gradient(135deg, #1b0d57 , #010228 ); !important;
	background: #f8f4f4 !important;
}

/* Botón continuar pago */
.btn-continuar-pago {
	background: linear-gradient(135deg, #1b0d57 , #010228 ); !important;
	border: none !important;
	padding: 1rem 2rem !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
	border-radius: 8px !important;
	color: white !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
}

.btn-continuar-pago:hover {
	background: linear-gradient(135deg, #1b0d57 , #010228 ) !important;
}

.btn-continuar-pago:disabled {
	background: #ccc !important;
}

/* Información de pago */
.payment-info-card {
	background: white !important;
	border: 1px solid #e8e8e8 !important;
	border-radius: 8px !important;
}

.copy-btn {
	background: linear-gradient(135deg, #1b0d57 , #010228 ); !important;
	border: none !important;
	border-radius: 4px !important;
	font-size: 0.75rem !important;
}

.copy-btn:hover {
	background: linear-gradient(135deg, #1b0d57 , #010228 ) !important;
}

/* Área de subida de archivos */
.upload-area {
	border: 2px dashed #e8e8e8 !important;
	border-radius: 8px !important;
	background: #fafafa !important;
}

.upload-area:hover {
	border-color: linear-gradient(135deg, #1b0d57 , #010228 ); !important;
	background: #f8f4f4 !important;
}

.btn-browse {
	background: linear-gradient(135deg, #1b0d57 , #010228 ); !important;
	border: none !important;
	border-radius: 6px !important;
}

.btn-browse:hover {
	background: linear-gradient(135deg, #1b0d57 , #010228 ) !important;
}

/* Optimizaciones para móviles */
@media (max-width: 768px) {
	.topbar { height: 70px !important; }
	.logo-icon { height: clamp(2rem, 5vw, 2.8rem) !important; max-height: clamp(2rem, 5vw, 2.8rem); }
	.rifa-container { margin-top: 70px; padding: 15px 0; }
	.rifa-title { font-size: 1.8rem; }
	.stats-card { padding: 1rem; }
	.rifa-card { margin: 10px; }
}

/* Mejorar rendimiento - eliminar efectos pesados */
.btn-hover-effect::before,
.ticket-number::before,
.btn-quantity::before,
.btn-comprar::before,
.btn-reportar::before {
	display: none;
}

/* Eliminar animaciones pesadas para móviles */
@media (max-width: 768px) {
	.particles-bg { display: none; }
	.pulse-effect { animation: none; }
	* { animation-duration: 0.1s !important; }
}

/* Performance: usar transform3d para aceleración hardware */
.rifa-card, .stats-card, .btn {
	transform: translateZ(0);
	backface-visibility: hidden;
}

/* Estilos para el modal de Mis Tickets */
.modal-dialog-scrollable .modal-content {
	max-height: calc(100vh - 2rem);
}

#modalMisTickets .modal-body {
	max-height: calc(100vh - 200px);
	overflow-y: auto;
}

/* Asegurar que los modales funcionen correctamente */
.modal.fade .modal-dialog {
	transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
	transform: none;
}

/* Mejorar el estilo del formulario de consulta */
#formConsultarTickets button[type="submit"] {
	background: linear-gradient(135deg, #1b0d57 , #010228 ); !important;
	border: none !important;
	color: white !important;
	transition: all 0.2s ease;
}

#formConsultarTickets button[type="submit"]:hover {
	background: linear-gradient(135deg, #1b0d57 , #010228 ) !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(121, 0, 0, 0.3);
}

#formConsultarTickets button[type="submit"]:disabled {
	background: #ccc !important;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* Estilos para notificaciones */
.notification {
	font-family: 'Inter', sans-serif;
}

/* Estilo específico para el botón "Mis tickets" */
span[data-bs-target="#modalMisTickets"] {
	padding: 8px 16px;
	border-radius: 8px;
	transition: all 0.2s ease;
	background: rgba(255, 255, 255, 0.1);
	color: white;
}

span[data-bs-target="#modalMisTickets"]:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: translateY(-1px);
}

/* Quitar hover del WhatsApp */
a[href*="wa.me"] {
	transition: none !important;
}

a[href*="wa.me"]:hover {
	transform: none !important;
	scale: none !important;
}

a[href*="wa.me"] i {
	transition: none !important;
}

a[href*="wa.me"]:hover i {
	transform: none !important;
	scale: none !important;
}

/* Estilos adicionales de modales y elementos específicos */

/* Header específicos */
.header-right .me-3[data-bs-target="#modalMisTickets"] {
	cursor: pointer;
}

.header-right a[href*="wa.me"] i.bxl-whatsapp {
	font-size: 2rem;
	color: white;
	border-radius: 50%;
	padding: 4px;
}

/* Estilos para página sin rifa activa */
.no-rifa-container {
	padding: 3rem 2rem;
}

.no-rifa-content {
	margin-bottom: 2rem;
}

.no-rifa-icon {
	font-size: 5rem;
	color: linear-gradient(135deg, #1b0d57 , #010228 );;
	opacity: 0.8;
}

.no-rifa-title {
	color: linear-gradient(135deg, #1b0d57 , #010228 );;
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	line-height: 1.2;
}

.no-rifa-subtitle {
	color: #666;
	font-size: 1.4rem;
	font-weight: 500;
	margin: 0;
}

/* Sold Out Badge específico */
.sold-out-badge.inline-style {
	color: linear-gradient(135deg, #1b0d57 , #010228 );;
	font-weight: bold;
	font-size: 1em;
	margin-top: 5px;
}

/* Progress bar con ancho inicial */
#progress-bar-fill {
	width: 70%;
}

/* Botón comprar deshabilitado */
.btn-comprar:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Mensaje sold out oculto por defecto */
#mensaje-sold-out {
	display: none;
}

/* Estilos específicos para modales */

/* Modal títulos centrados */
.modal-title.centered {
	color: linear-gradient(135deg, #1b0d57 , #010228 );;
	font-weight: 600;
	width: 100%;
	text-align: center;
}

/* Formularios en modales */
.modal-body .form-label {
	color: #333;
	font-weight: 600;
}

.modal-body .form-control,
.modal-body .form-select {
	border: 2px solid #e9ecef;
	border-radius: 10px;
	padding: 12px 15px;
}

.modal-body .form-control.cedula-input {
	padding: 12px 15px 12px 100px;
}

/* Select de tipo documento */
#tipoDocumento {
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	width: 80px;
	border: none;
	background: transparent;
	z-index: 10;
}

/* Botón continuar en modales */
.btn-continuar {
	background: linear-gradient(135deg, #1b0d57 , #010228 );;
	border: none;
	padding: 15px 40px;
	font-size: 1.1rem;
	font-weight: 600;
	border-radius: 8px;
	color: white;
	width: 100%;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.2s ease;
}

.btn-continuar:hover {
	background: linear-gradient(135deg, #1b0d57 , #010228 );
}

/* Métodos de pago */
.payment-method-modal {
	border: 2px solid #e9ecef;
	border-radius: 15px;
	padding: 20px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
}

.payment-method-icon {
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, #1b0d57 , #010228 );;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 15px;
	color: white;
	font-size: 1.5rem;
	font-weight: bold;
}

.payment-method-icon.binance {
	border-radius: 15px;
	font-size: 2rem;
}

.payment-method-name {
	font-weight: bold;
	color: #333;
}

/* Botón continuar pago deshabilitado */
.btn-continuar-pago:disabled {
	background: #ccc !important;
	border: none;
	padding: 15px 40px;
	font-size: 1.1rem;
	font-weight: 600;
	border-radius: 8px;
	color: white;
	width: 100%;
	margin-top: 20px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Header de método de pago */
.payment-method-header {
	display: flex;
	align-items: center;
	gap: 15px;
	width: 100%;
	justify-content: center;
}

/* Modal body con scroll */
.modal-body.scrollable {
	max-height: 70vh;
	overflow-y: auto;
}

/* Secciones de métodos de pago */
.payment-method-section {
	display: none;
}

.payment-method-section.active {
	display: block;
}

/* Tarjetas de información de pago */
.payment-info-card {
	background: white;
	padding: 20px;
	border-radius: 15px;
	border: 2px solid #e9ecef;
	margin-bottom: 20px;
}

/* Filas de información */
.info-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}

.info-label {
	font-weight: 600;
	color: #333;
}

.info-value {
	color: #333;
}

/* Botones de copiar */
.copy-btn {
	background: linear-gradient(135deg, #1b0d57 , #010228 );;
	color: white;
	border: none;
	padding: 5px 10px;
	border-radius: 5px;
	font-size: 0.8rem;
}

.copy-btn.banca-amiga {
	background: #d4a574;
}

.copy-btn:hover {
	background: linear-gradient(135deg, #1b0d57 , #010228 );
}

.copy-btn.banca-amiga:hover {
	background: #b8956a;
}

/* Destacado de monto */
.amount-highlight {
	background: linear-gradient(135deg, #1b0d57 , #010228 );;
	color: white;
	padding: 20px;
	border-radius: 15px;
	text-align: center;
	margin-bottom: 20px;
	font-size: 1.2rem;
	font-weight: bold;
}

/* Sección de formulario de pago */
.payment-form-section {
	background: white;
	padding: 20px;
	border-radius: 15px;
	border: 2px solid #e9ecef;
	margin-bottom: 20px;
}

.payment-form-section h4 {
	color: #d4a574;
	text-align: center;
	margin-bottom: 20px;
}

/* Área de subida de archivos */
.upload-area {
	border: 3px dashed linear-gradient(135deg, #1b0d57 , #010228 );;
	border-radius: 15px;
	padding: 40px 20px;
	text-align: center;
	background: white;
	cursor: pointer;
}

.upload-area i {
	font-size: 3rem;
	color: #d4a574;
}

.upload-area p {
	margin: 15px 0 20px 0;
	color: #666;
	font-size: 1.1rem;
}

/* Botón examinar */
.btn-browse {
	background: linear-gradient(45deg, #d4a574 0%, #b8956a 100%);
	border: none;
	color: white;
	padding: 10px 25px;
	border-radius: 25px;
	font-weight: bold;
}

.btn-browse:hover {
	background: linear-gradient(45deg, #b8956a 0%, #a08458 100%);
}

/* Input de archivo oculto */
input[type="file"].hidden {
	display: none;
}

/* Vista previa de imagen */
.image-preview {
	display: none;
	text-align: center;
	padding: 20px;
	background: white;
	border-radius: 15px;
	border: 2px solid #e9ecef;
}

.image-preview.active {
	display: block;
}

.image-preview img {
	max-width: 300px;
	max-height: 400px;
	width: auto;
	height: auto;
	border-radius: 10px;
	object-fit: contain;
}

/* Acciones de vista previa */
.preview-actions {
	margin-top: 20px;
	display: flex;
	justify-content: center;
	gap: 15px;
}

.btn-remove {
	background: #dc3545;
	color: white;
	padding: 8px 20px;
	border: none;
	border-radius: 20px;
	font-weight: bold;
}

.btn-remove:hover {
	background: #c82333;
}

.btn-change {
	background: #6c757d;
	color: white;
	padding: 8px 20px;
	border: none;
	border-radius: 20px;
	font-weight: bold;
}

.btn-change:hover {
	background: #5a6268;
}

/* Modal de Mis Tickets */
#modalMisTickets .modal-content {
	border-radius: 20px;
	border: none;
	box-shadow: 0 10px 40px rgba(0,0,0,0.2);
	background: white;
	max-height: 90vh;
}

#modalMisTickets .modal-header {
	border: none;
	padding: 30px 30px 0 30px;
}

#modalMisTickets .modal-header h4 {
	color: linear-gradient(135deg, #1b0d57 , #010228 );;
	font-weight: 800;
	margin: 0;
	font-size: 2rem;
	text-align: center;
	width: 100%;
}

#modalMisTickets .modal-header i {
	margin-right: 12px;
	font-size: 2.2rem;
}

#modalMisTickets .modal-header .btn-close {
	margin: 0;
	font-size: 1.2rem;
}

#modalMisTickets .modal-body {
	padding: 20px 30px 40px 30px;
	max-height: 70vh;
	overflow-y: auto;
}

/* Modal de Términos y Condiciones */
#modalTerminos .modal-content {
	border-radius: 20px;
	border: none;
	box-shadow: 0 10px 40px rgba(0,0,0,0.2);
	background: white;
}

#modalTerminos .modal-header {
	border: none;
	padding: 30px 30px 0 30px;
}

#modalTerminos .modal-header h4 {
	color: linear-gradient(135deg, #1b0d57 , #010228 );;
	font-weight: 800;
	margin: 0;
	font-size: 2rem;
	text-align: center;
	width: 100%;
}

#modalTerminos .modal-header i {
	margin-right: 12px;
	font-size: 2.2rem;
}

#modalTerminos .modal-header .btn-close {
	margin: 0;
	font-size: 1.2rem;
}

#modalTerminos .modal-body {
	padding: 30px;
	max-height: 70vh;
	overflow-y: auto;
}

/* Secciones de términos */
.terms-section {
	background: #f8f9fa;
	border-radius: 15px;
	padding: 25px;
	margin-bottom: 20px;
}

.terms-section h5 {
	color: linear-gradient(135deg, #1b0d57 , #010228 );;
	font-weight: 700;
	margin-bottom: 15px;
}

.terms-section p {
	color: #333;
	line-height: 1.6;
	margin-bottom: 15px;
}

.terms-section ul {
	color: #333;
	line-height: 1.6;
	margin-bottom: 15px;
	padding-left: 20px;
}

/* Enlaces en términos */
.terms-link {
	color: linear-gradient(135deg, #1b0d57 , #010228 );;
	text-decoration: underline;
	font-weight: 600;
}

.terms-link:hover {
	color: linear-gradient(135deg, #1b0d57 , #010228 );
}

/* Texto pequeño en términos */
.terms-small {
	color: #666;
}

/* Estilos para efectos JavaScript */
.ticket-hover-effect {
	transform: translateY(-5px) scale(1.1);
	box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.loading-button {
	background: linear-gradient(135deg, #a0aec0, #718096) !important;
}

.processing-button {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* ========================================
   ESTILOS PARA CLASES INLINE REMOVIDAS
   ======================================== */

/* Sold out badge inline */
.sold-out-badge.sold-out-inline {
	color: var(--color-primary);
	font-weight: bold;
	font-size: 1em;
	margin-top: 5px;
}

/* Botón comprar deshabilitado */
.btn-comprar-disabled {
	opacity: 0.5 !important;
	cursor: not-allowed !important;
}

/* Mensaje sold out oculto */
.mensaje-sold-out-hidden {
	display: none;
}

/* Modal title primary */
.modal-title-primary {
	color: var(--color-primary) !important;
	font-weight: 600 !important;
	width: 100% !important;
	text-align: center !important;
}

/* Form labels dark */
.form-label-dark {
	color: var(--color-text-primary) !important;
	font-weight: 600 !important;
}

/* Form controls styled */
.form-control-styled {
	border: 2px solid var(--color-border-light) !important;
	border-radius: var(--radius-lg) !important;
	padding: 12px 15px !important;
}

/* Cedula input styled */
.cedula-input-styled {
	padding-left: 100px !important;
}

/* Tipo documento select */
.tipo-documento-select {
	position: absolute !important;
	left: 15px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	width: 80px !important;
	border: none !important;
	background: transparent !important;
	z-index: 10 !important;
}

/* Botón continuar primary */
.btn-continuar-primary {
	background: var(--gradient-primary) !important;
	border: none !important;
	padding: 15px 40px !important;
	font-size: 1.1rem !important;
	font-weight: 600 !important;
	border-radius: var(--radius-md) !important;
	color: var(--color-text-white) !important;
	width: 100% !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	transition: var(--transition-fast) !important;
}

/* Botón continuar pago deshabilitado */
.btn-continuar-pago-disabled {
	background: var(--color-border-dark) !important;
	border: none !important;
	padding: 15px 40px !important;
	font-size: 1.1rem !important;
	font-weight: 600 !important;
	border-radius: var(--radius-md) !important;
	color: var(--color-text-white) !important;
	width: 100% !important;
	margin-top: 20px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	cursor: not-allowed !important;
}

/* Payment method card */
.payment-method-card {
	border: 2px solid var(--color-border-light) !important;
	border-radius: var(--radius-2xl) !important;
	padding: var(--spacing-xl) !important;
	text-align: center !important;
	cursor: pointer !important;
	transition: var(--transition-normal) !important;
}

/* Payment method icon primary */
.payment-method-icon-primary {
	width: 60px !important;
	height: 60px !important;
	background: var(--color-primary) !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 auto 15px !important;
	color: var(--color-text-white) !important;
	font-size: 1.5rem !important;
	font-weight: 600 !important;
}

/* Payment method icon square */
.payment-method-icon-square {
	border-radius: var(--radius-2xl) !important;
	font-size: 2rem !important;
}

/* Payment method name dark */
.payment-method-name-dark {
	font-weight: bold !important;
	color: var(--color-text-primary) !important;
}

/* Payment method header centered */
.payment-method-header-centered {
	display: flex !important;
	align-items: center !important;
	gap: 15px !important;
	width: 100% !important;
	justify-content: center !important;
}

/* Modal body scrollable */
.modal-body-scrollable {
	max-height: 70vh !important;
	overflow-y: auto !important;
}

/* Payment method section hidden */
.payment-method-section-hidden {
	display: none !important;
}

/* Payment info card styled */
.payment-info-card-styled {
	background: var(--color-bg-primary) !important;
	padding: var(--spacing-xl) !important;
	border-radius: var(--radius-2xl) !important;
	border: 2px solid var(--color-border-light) !important;
	margin-bottom: var(--spacing-xl) !important;
}

/* Info row styled */
.info-row-styled {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	margin-bottom: 15px !important;
}

/* Info label styled */
.info-label-styled {
	font-weight: 600 !important;
	color: var(--color-text-primary) !important;
}

/* Info value styled */
.info-value-styled {
	color: var(--color-text-primary) !important;
}

/* Copy button secondary */
.copy-btn-secondary {
	background: var(--color-secondary) !important;
	color: var(--color-text-white) !important;
	border: none !important;
	padding: 5px 10px !important;
	border-radius: var(--radius-sm) !important;
	font-size: 0.8rem !important;
}

/* Copy button primary */
.copy-btn-primary {
	background: var(--color-primary) !important;
	color: var(--color-text-white) !important;
	border: none !important;
	padding: 5px 10px !important;
	border-radius: var(--radius-sm) !important;
	font-size: 0.8rem !important;
}

/* Amount highlight primary */
.amount-highlight-primary {
	background: var(--color-primary) !important;
	color: var(--color-text-white) !important;
	padding: var(--spacing-xl) !important;
	border-radius: var(--radius-2xl) !important;
	text-align: center !important;
	margin-bottom: var(--spacing-xl) !important;
	font-size: 1.2rem !important;
	font-weight: bold !important;
}

/* Payment form section styled */
.payment-form-section-styled {
	background: var(--color-bg-primary) !important;
	padding: var(--spacing-xl) !important;
	border-radius: var(--radius-2xl) !important;
	border: 2px solid var(--color-border-light) !important;
	margin-bottom: var(--spacing-xl) !important;
}

/* Form section title secondary */
.form-section-title-secondary {
	color: var(--color-secondary) !important;
	text-align: center !important;
	margin-bottom: var(--spacing-xl) !important;
}

/* Form section title primary */
.form-section-title-primary {
	color: var(--color-primary) !important;
	text-align: center !important;
	margin-bottom: var(--spacing-xl) !important;
}

/* Upload area styled */
.upload-area-styled {
	border: 3px dashed var(--color-primary) !important;
	border-radius: var(--radius-2xl) !important;
	padding: 40px 20px !important;
	text-align: center !important;
	background: var(--color-bg-primary) !important;
	cursor: pointer !important;
}

/* Upload icon */
.upload-icon {
	font-size: 3rem !important;
	color: var(--color-secondary) !important;
}

/* Button browse styled */
.btn-browse-styled {
	background: var(--gradient-secondary) !important;
	border: none !important;
	color: var(--color-text-white) !important;
	padding: 10px 25px !important;
	border-radius: 25px !important;
	font-weight: bold !important;
}

/* File input hidden */
.file-input-hidden {
	display: none !important;
}

/* Image preview styled */
.image-preview-styled {
	display: none !important;
	text-align: center !important;
	padding: var(--spacing-xl) !important;
	background: var(--color-bg-primary) !important;
	border-radius: var(--radius-2xl) !important;
	border: 2px solid var(--color-border-light) !important;
}

/* Preview img styled */
.preview-img-styled {
	max-width: 300px !important;
	max-height: 400px !important;
	width: auto !important;
	height: auto !important;
	border-radius: var(--radius-lg) !important;
	object-fit: contain !important;
}

/* Preview actions styled */
.preview-actions-styled {
	margin-top: var(--spacing-xl) !important;
	display: flex !important;
	justify-content: center !important;
	gap: 15px !important;
}

/* Button remove styled */
.btn-remove-styled {
	background: var(--color-error) !important;
	color: var(--color-text-white) !important;
	padding: 8px 20px !important;
	border: none !important;
	border-radius: 20px !important;
	font-weight: bold !important;
}

/* Button change styled */
.btn-change-styled {
	background: #6c757d !important;
	color: var(--color-text-white) !important;
	padding: 8px 20px !important;
	border: none !important;
	border-radius: 20px !important;
	font-weight: bold !important;
}

/* ========================================
   RESPONSIVE DESIGN COMPLETO
   ======================================== */

/* Extra Large Devices (Desktops 1200px and up) */
@media (min-width: 1200px) {
	.rifa-container {
		padding: 40px 0;
	}
	
	.rifa-image-container {
		height: 600px;
	}
	
	.rifa-title {
		font-size: 2.5rem;
	}
	
	.stats-value {
		font-size: 2rem;
	}
	
	.progress-container {
		padding: 2.5rem;
	}
	
	/* Modales más grandes en desktop */
    .modal-dialog {
        max-width: min(90vw, 900px);
    }
    
    .modal-dialog-xl {
        max-width: min(92vw, 1280px);
    }
	
	/* Formularios más espaciados */
	.modal-body .form-control,
	.modal-body .form-select {
		padding: 15px 20px;
		font-size: 1.1rem;
	}
	
	/* Botones más grandes */
	.btn-continuar,
	.btn-continuar-pago,
	.btn-reportar {
		padding: 18px 50px;
		font-size: 1.2rem;
	}
	
	/* Área de subida más grande */
	.upload-area {
		padding: 60px 40px;
	}
	
	.upload-area i {
		font-size: 4rem;
	}
	
	/* Vista previa de imagen más grande */
	.image-preview img {
		max-width: 400px;
		max-height: 500px;
	}
}

/* Large Devices (Desktops 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
	.rifa-container {
		padding: 35px 0;
	}
	
	.rifa-image-container {
		height: 550px;
	}
	
	.rifa-title {
		font-size: 2.2rem;
	}
	
	/* Modales ajustados */
	.modal-dialog {
		max-width: 700px;
	}
	
	.modal-dialog-xl {
		max-width: 900px;
	}
	
	/* Formularios */
	.modal-body .form-control,
	.modal-body .form-select {
		padding: 14px 18px;
		font-size: 1.05rem;
	}
	
	/* Botones */
	.btn-continuar,
	.btn-continuar-pago,
	.btn-reportar {
		padding: 16px 45px;
		font-size: 1.15rem;
	}
}

/* Layout base responsivo para rifa-main-content */
.rifa-main-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
}

.rifa-image-section,
.rifa-info-section {
    width: 100%;
}

/* Layout desktop: fila (imagen a la izquierda, info a la derecha) */
@media (min-width: 992px) {
    .rifa-main-content {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 1.25rem;
    }
    .rifa-image-section {
        flex: 0 0 40%;
        max-width: 40%;
        min-height: clamp(26rem, 55vh, 37.5rem);
        display: flex;
        flex-direction: column;
    }
    .rifa-info-section {
        flex: 0 0 60%;
        max-width: 60%;
        min-height: clamp(26rem, 55vh, 37.5rem);
        display: flex;
        flex-direction: column;
        padding-right: clamp(1rem, 4vw, 2.5rem);
        box-sizing: border-box;
    }
    /* Asegurar que la imagen rellene el alto del contenedor */
    .rifa-image-container {
        height: 100%;
    }
    /* Botones principales más grandes en desktop */
    .btn-comprar, .btn-limpiar {
        padding: 1.25rem 2.5rem;
        font-size: 1.15rem;
        border-radius: 0.75rem;
    }
}

/* Medium Devices (Tablets 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
	/* Header en tablets */
	.topbar {
		height: 5rem !important;
		min-height: 5rem !important;
		padding: 0 1.5rem !important;
	}
	
	.logo-icon {
		height: clamp(2.5rem, 4vw, 3.5rem) !important;
	}
	
	.header-right {
		font-size: 0.9rem !important;
		gap: 1rem !important;
	}
	
	.header-right .me-3 {
		padding: 0.5rem 1rem !important;
		background: rgba(255, 255, 255, 0.1) !important;
		border: 1px solid rgba(255, 255, 255, 0.2) !important;
		border-radius: 0.5rem !important;
		font-weight: 500 !important;
	}
	
	.header-right .me-3:hover {
		background: rgba(255, 255, 255, 0.2) !important;
		border-color: rgba(255, 255, 255, 0.3) !important;
	}
	
	.header-right a[href*="wa.me"] {
		width: 2.75rem;
		height: 2.75rem;
		padding: 0.5rem !important;
	}
	
	.header-right a[href*="wa.me"] i.bxl-whatsapp {
		font-size: 1.6rem !important;
		color: var(--color-text-white) !important;
	}
	
	.rifa-container {
		padding: 25px 10px;
	}
	
	.rifa-image-container {
		height: 400px;
		padding: 20px;
	}
	
	.rifa-title {
		font-size: 1.8rem;
		margin-bottom: 1.8rem;
	}
	
	.stats-card {
		padding: 1.3rem;
		margin-bottom: 0.8rem;
	}
	
	.btn-comprar, .btn-limpiar {
		padding: 1rem 1.8rem;
		font-size: 1rem;
	}
	
	.btn-quantity {
		width: 55px;
		height: 55px;
		font-size: 1.3rem;
	}
	
	.ticket-number {
		padding: 0.9rem;
		font-size: 1rem;
		margin: 0.2rem;
	}
	
	/* Modales en tablets */
	.modal-dialog {
		max-width: 600px;
		margin: 1rem;
	}
	
	.modal-dialog-xl {
		max-width: 90vw;
	}
	
	/* Header de modales */
	.modal-header {
		padding: 1.5rem 1.5rem 1rem 1.5rem;
	}
	
	.modal-body {
		padding: 1rem 1.5rem 1.5rem 1.5rem;
	}
	
	/* Formularios en tablets */
	.modal-body .form-control,
	.modal-body .form-select {
		padding: 12px 15px;
		font-size: 1rem;
	}
	
	/* Métodos de pago en tablets */
	.payment-method-modal {
		padding: 15px;
		margin-bottom: 15px;
	}
	
	.payment-method-icon {
		width: 50px;
		height: 50px;
		font-size: 1.3rem;
		margin-bottom: 10px;
	}
	
	/* Información de pago */
	.payment-info-card {
		padding: 15px;
		margin-bottom: 15px;
	}
	
	.info-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		margin-bottom: 12px;
	}
	
	.info-row .copy-btn {
		align-self: flex-end;
	}
	
	/* Área de subida */
	.upload-area {
		padding: 30px 15px;
	}
	
	.upload-area i {
		font-size: 2.5rem;
	}
	
	/* Botones */
	.btn-continuar,
	.btn-continuar-pago,
	.btn-reportar {
		padding: 14px 35px;
		font-size: 1.1rem;
	}
	
	/* Vista previa */
	.image-preview img {
		max-width: 250px;
		max-height: 300px;
	}
	
	.preview-actions {
		flex-direction: column;
		gap: 10px;
	}
	
	.btn-remove,
	.btn-change {
		padding: 10px 25px;
		width: 100%;
	}
}

/* Small Devices (Landscape phones and small tablets) */
@media (max-width: 767.98px) {
	.topbar { 
		height: 70px !important; 
	}
	
	.logo-icon { 
		height: 60px !important;
		max-height: 60px;
	}
	
	.rifa-container { 
		margin-top: 70px; 
		padding: 20px 15px; 
	}
	
	.rifa-card { 
		margin: 10px; 
	}
	
	/* Header responsive - Mobile */
	.topbar {
		height: 4.5rem !important;
		min-height: 4.5rem !important;
		padding: 0 1rem !important;
	}
	
	.topbar-logo-header {
		flex-shrink: 0;
		max-width: 65%;
	}
	
	.logo-icon {
		height: clamp(2rem, 4.5vw, 2.8rem) !important;
	}
	
	.header-right {
		flex-direction: row !important;
		gap: 0.75rem !important;
		font-size: 0.8rem !important;
		align-items: center !important;
		justify-content: flex-end !important;
		flex-wrap: nowrap !important;
		margin-left: auto !important;
		white-space: nowrap;
		max-width: 35%;
	}
	
	.header-right .me-3 {
		margin-right: 0 !important;
		margin-bottom: 0 !important;
		cursor: pointer;
		padding: 0.5rem 0.75rem !important;
		border-radius: 0.5rem !important;
		transition: var(--transition-fast);
		background: rgba(255, 255, 255, 0.1) !important;
		border: 1px solid rgba(255, 255, 255, 0.2) !important;
		font-weight: 500 !important;
		font-size: 0.75rem !important;
		line-height: 1 !important;
		text-align: center;
	}
	
	.header-right .me-3:hover {
		background: rgba(255, 255, 255, 0.2) !important;
		border-color: rgba(255, 255, 255, 0.3) !important;
		transform: translateY(-1px);
	}
	
	.header-right a[href*="wa.me"] {
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0.5rem !important;
		border-radius: 0.5rem !important;
		transition: var(--transition-fast);
		width: 2.5rem;
		height: 2.5rem;
	}
	
	.header-right a[href*="wa.me"]:hover {
		transform: scale(1.05);
	}
	
	.header-right a[href*="wa.me"] i.bxl-whatsapp {
		font-size: 1.5rem !important;
		color: var(--color-text-white) !important;
	}
	
	/* Ajustar contenido principal */
	.rifa-container {
		margin-top: 4.5rem !important;
	}
	
	/* No rifa responsive */
	.no-rifa-container {
		padding: 2rem 1rem;
	}
	
	.no-rifa-icon {
		font-size: 3.5rem;
	}
	
	.no-rifa-title {
		font-size: 1.8rem;
		margin-bottom: 1rem;
	}
	
	.no-rifa-subtitle {
		font-size: 1.1rem;
	}
	
	/* Modales responsive */
	.modal-dialog {
		margin: 0.5rem;
		max-width: calc(100vw - 1rem);
	}
	
	.modal-dialog-xl {
		margin: 0.25rem;
		max-width: calc(100vw - 0.5rem);
	}
	
	.modal-content {
		border-radius: 15px;
		max-height: calc(100vh - 1rem);
	}
	
    .modal-header {
        padding: 1rem;
        text-align: center;
    }
	
	.modal-header .btn-close {
		position: absolute;
		top: 15px;
		right: 15px;
		margin: 0;
	}
	
	.modal-title {
		font-size: 1.3rem !important;
		margin-bottom: 0;
	}
	
	.modal-body {
		padding: 1rem;
		max-height: calc(100vh - 150px);
		overflow-y: auto;
	}
	
	/* Formularios móviles */
	.modal-body .form-label {
		font-size: 0.9rem;
		margin-bottom: 8px;
	}
	
	.modal-body .form-control,
	.modal-body .form-select {
		padding: 15px;
		font-size: 1rem;
		border-radius: 12px;
		min-height: 50px;
	}
	
	.modal-body .form-control.cedula-input {
		padding-left: 90px;
	}
	
	#tipoDocumento {
		width: 70px;
		font-size: 0.8rem;
	}
	
	/* Métodos de pago móviles */
	.payment-method-modal {
		padding: 20px 15px;
		margin-bottom: 15px;
		border-radius: 12px;
	}
	
	.payment-method-icon {
		width: 45px;
		height: 45px;
		font-size: 1.2rem;
		margin-bottom: 8px;
	}
	
	.payment-method-name {
		font-size: 0.9rem;
	}
	
	/* Header de método de pago */
	.payment-method-header {
		flex-direction: column;
		gap: 10px;
		text-align: center;
	}
	
	/* Información de pago móvil */
	.payment-info-card {
		padding: 15px;
		margin-bottom: 15px;
		border-radius: 12px;
	}
	
	.info-row {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		margin-bottom: 15px;
		padding: 10px;
		background: #f8f9fa;
		border-radius: 8px;
	}
	
	.info-label {
		font-size: 0.85rem;
		color: #666;
	}
	
	.info-value {
		font-size: 1rem;
		font-weight: 600;
		color: #333;
		word-break: break-all;
	}
	
	.copy-btn {
		padding: 8px 15px;
		font-size: 0.8rem;
		border-radius: 8px;
		width: 100%;
		margin-top: 5px;
	}
	
	/* Destacado de monto móvil */
	.amount-highlight {
		padding: 15px;
		font-size: 1.1rem;
		border-radius: 12px;
		margin-bottom: 15px;
	}
	
	/* Formulario de pago móvil */
	.payment-form-section {
		padding: 15px;
		margin-bottom: 15px;
		border-radius: 12px;
	}
	
	.payment-form-section h4 {
		font-size: 1.1rem;
		margin-bottom: 15px;
	}
	
	/* Área de subida móvil */
	.upload-area {
		padding: 25px 15px;
		border-radius: 12px;
		border-width: 2px;
	}
	
	.upload-area i {
		font-size: 2.5rem;
	}
	
	.upload-area p {
		font-size: 1rem;
		margin: 10px 0 15px 0;
	}
	
	.btn-browse {
		padding: 12px 25px;
		font-size: 1rem;
		border-radius: 20px;
	}
	
	/* Vista previa móvil */
	.image-preview {
		padding: 15px;
		border-radius: 12px;
	}
	
	.image-preview img {
		max-width: 100%;
		max-height: 250px;
	}
	
	.preview-actions {
		margin-top: 15px;
		flex-direction: column;
		gap: 10px;
	}
	
	.btn-remove,
	.btn-change {
		padding: 12px 20px;
		border-radius: 15px;
		width: 100%;
		font-size: 1rem;
	}
	
	/* Botones principales móviles */
	.btn-continuar,
	.btn-continuar-pago,
	.btn-reportar {
		padding: 18px 25px;
		font-size: 1.1rem;
		border-radius: 12px;
		width: 100%;
		min-height: 55px;
	}
	
	/* Resumen items móviles */
	.resumen-item {
		padding: 15px;
		font-size: 1rem;
		border-radius: 8px;
		margin-bottom: 12px;
	}
	
	/* Grid responsive para tickets - 3 columnas en móviles */
	.row.mb-4 .col-2 {
		flex: 0 0 auto;
		width: 33.333333%;
		padding: 0 0.15rem;
		margin-bottom: 0.4rem;
	}
	
	/* Términos y condiciones móvil */
	.terms-section {
		padding: 15px;
		margin-bottom: 15px;
		border-radius: 12px;
	}
	
	.terms-section h5 {
		font-size: 1.1rem;
		margin-bottom: 10px;
	}
	
	.terms-section p,
	.terms-section ul {
		font-size: 0.9rem;
		line-height: 1.5;
		margin-bottom: 10px;
	}
	
	/* Modales específicos móviles */
	#modalMisTickets .modal-header,
	#modalTerminos .modal-header {
		padding: 20px 15px 10px 15px;
	}
	
	#modalMisTickets .modal-header h4,
	#modalTerminos .modal-header h4 {
		font-size: 1.4rem;
	}
	
	#modalMisTickets .modal-header i,
	#modalTerminos .modal-header i {
		font-size: 1.6rem;
		margin-right: 8px;
	}
	
	#modalMisTickets .modal-body,
	#modalTerminos .modal-body {
		padding: 15px;
	}
}

/* Extra Small Devices (Portrait phones 576px and down) */
@media (max-width: 575.98px) {
	.rifa-container {
		padding: 15px 10px;
		margin-top: 70px;
	}
	
	/* Header extra pequeño */
	.topbar {
		height: 4rem !important;
		min-height: 4rem !important;
		padding: 0 0.75rem !important;
	}
	
	.topbar-logo-header {
		flex-shrink: 0;
		max-width: 60%;
	}
	
	.logo-icon {
		height: clamp(1.8rem, 4vw, 2.5rem) !important;
	}
	
	.header-right {
		font-size: 0.7rem !important;
		gap: 0.5rem !important;
		flex-shrink: 0;
		max-width: 40%;
	}
	
	.header-right .me-3 {
		padding: 0.4rem 0.6rem !important;
		font-size: 0.65rem !important;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 5rem;
		background: rgba(255, 255, 255, 0.1) !important;
		border: 1px solid rgba(255, 255, 255, 0.15) !important;
		border-radius: 0.4rem !important;
		font-weight: 500 !important;
		line-height: 1 !important;
	}
	
	.header-right .me-3:hover {
		background: rgba(255, 255, 255, 0.2) !important;
		border-color: rgba(255, 255, 255, 0.25) !important;
	}
	
	.header-right a[href*="wa.me"] {
		width: 2.2rem;
		height: 2.2rem;
		padding: 0.4rem !important;
	}
	
	.header-right a[href*="wa.me"] i.bxl-whatsapp {
		font-size: 1.3rem !important;
		color: var(--color-text-white) !important;
	}
	
	/* Ajustar contenido principal para header más pequeño */
	.rifa-container {
		margin-top: 4rem !important;
	}
	
	/* No rifa extra pequeño */
	.no-rifa-container {
		padding: 1.5rem 0.5rem;
	}
	
	.no-rifa-icon {
		font-size: 3rem;
	}
	
	.no-rifa-title {
		font-size: 1.5rem;
		line-height: 1.2;
	}
	
	.no-rifa-subtitle {
		font-size: 1rem;
	}
	
	/* Modales extra pequeños */
	.modal-dialog,
	.modal-dialog-xl {
		margin: 0.25rem;
		max-width: calc(100vw - 0.5rem);
	}
	
	.modal-content {
		border-radius: 12px;
		max-height: calc(100vh - 0.5rem);
	}
	
	.modal-header {
		padding: 0.8rem;
	}
	
	.modal-title {
		font-size: 1.1rem !important;
	}
	
	.modal-body {
		padding: 0.8rem;
		max-height: calc(100vh - 120px);
	}
	
	/* Formularios extra pequeños */
	.modal-body .form-control,
	.modal-body .form-select {
		padding: 12px;
		font-size: 0.95rem;
		min-height: 45px;
	}
	
	.modal-body .form-control.cedula-input {
		padding-left: 80px;
	}
	
	#tipoDocumento {
		width: 65px;
		font-size: 0.75rem;
	}
	
	/* Métodos de pago extra pequeños */
	.payment-method-modal {
		padding: 15px 10px;
	}
	
	.payment-method-icon {
		width: 40px;
		height: 40px;
		font-size: 1rem;
	}
	
	.payment-method-name {
		font-size: 0.85rem;
	}
	
	/* Información de pago extra pequeña */
	.payment-info-card {
		padding: 12px;
	}
	
	.info-row {
		padding: 8px;
		margin-bottom: 10px;
	}
	
	.info-label {
		font-size: 0.8rem;
	}
	
	.info-value {
		font-size: 0.9rem;
	}
	
	.copy-btn {
		padding: 6px 12px;
		font-size: 0.75rem;
	}
	
	/* Área de subida extra pequeña */
	.upload-area {
		padding: 20px 10px;
	}
	
	.upload-area i {
		font-size: 2rem;
	}
	
	.upload-area p {
		font-size: 0.9rem;
		margin: 8px 0 12px 0;
	}
	
	.btn-browse {
		padding: 10px 20px;
		font-size: 0.9rem;
	}
	
	/* Vista previa extra pequeña */
	.image-preview img {
		max-height: 200px;
	}
	
	.btn-remove,
	.btn-change {
		padding: 10px 15px;
		font-size: 0.9rem;
	}
	
	/* Botones extra pequeños */
	.btn-continuar,
	.btn-continuar-pago,
	.btn-reportar {
		padding: 15px 20px;
		font-size: 1rem;
		min-height: 50px;
	}
	
	/* Resumen extra pequeño */
	.resumen-item {
		padding: 12px;
		font-size: 0.9rem;
		flex-direction: column;
		text-align: center;
		gap: 5px;
	}
	
	/* Términos extra pequeños */
	.terms-section {
		padding: 12px;
	}
	
	.terms-section h5 {
		font-size: 1rem;
	}
	
	.terms-section p,
	.terms-section ul {
		font-size: 0.85rem;
	}
	
	/* Grid de tickets - 2 columnas en móviles muy pequeños */
	.row.mb-4 .col-2 {
		width: 50%;
		padding: 0 0.1rem;
		margin-bottom: 0.3rem;
	}
	
	/* Modales específicos extra pequeños */
	#modalMisTickets .modal-header h4,
	#modalTerminos .modal-header h4 {
		font-size: 1.2rem;
	}
	
	#modalMisTickets .modal-header i,
	#modalTerminos .modal-header i {
		font-size: 1.4rem;
	}
}

/* Mejoras de accesibilidad táctil para todos los dispositivos móviles */
@media (hover: none) and (pointer: coarse) {
	/* Asegurar tamaños mínimos táctiles */
	.btn-continuar,
	.btn-continuar-pago,
	.btn-reportar,
	.copy-btn,
	.btn-browse,
	.btn-remove,
	.btn-change {
		min-height: 44px;
		min-width: 44px;
	}
	
	/* Mejorar área táctil de elementos interactivos */
	.payment-method-modal {
		min-height: 80px;
	}
	
	.modal-header .btn-close {
		min-height: 44px;
		min-width: 44px;
		padding: 8px;
	}
	
	/* Espaciado mejorado para touch */
	.info-row {
		margin-bottom: 20px;
	}
	
	.preview-actions {
		gap: 15px;
	}
}

/* Extra Extra Small Devices (Pantallas muy pequeñas 360px and down) */
@media (max-width: 360px) {
	.topbar {
		height: 3.5rem !important;
		min-height: 3.5rem !important;
		padding: 0 0.5rem !important;
	}
	
	.logo-icon {
		height: clamp(2.2rem, 5vw, 3rem) !important;
	}
	
	.topbar-logo-header {
		max-width: 55%;
	}
	
	.header-right {
		max-width: 45%;
		font-size: 0.6rem !important;
		gap: 0.25rem !important;
	}
	
	.header-right .me-3 {
		font-size: 0.55rem !important;
		padding: 0.3rem 0.4rem !important;
		max-width: 4rem;
		background: rgba(255, 255, 255, 0.1) !important;
		border: 1px solid rgba(255, 255, 255, 0.1) !important;
		border-radius: 0.3rem !important;
		font-weight: 500 !important;
		line-height: 1 !important;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	
	.header-right .me-3:hover {
		background: rgba(255, 255, 255, 0.15) !important;
		border-color: rgba(255, 255, 255, 0.2) !important;
	}
	
	.header-right a[href*="wa.me"] {
		width: 2rem;
		height: 2rem;
		padding: 0.3rem !important;
	}
	
	.header-right a[href*="wa.me"] i.bxl-whatsapp {
		font-size: 1.1rem !important;
		color: var(--color-text-white) !important;
	}
	
	.rifa-container {
		margin-top: 3.5rem !important;
	}
}