:root {
    --primary: #FF9E1B;
    --secondary: #005DAA;
    --accent: #CF142B;
    --light: #f8f9fa;
    --dark: #343a40;
    --dark-bg: #0f1117;
    --dark-card: #1e2128;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
}

/* Reset y estilos base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7f9;
    color: #333;
    line-height: 1.6;
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

section {
    padding: 30px 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 1.8rem;
    color: var(--secondary);
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 10px auto;
    border-radius: 2px;
}

/* Estilos para tarjetas y formularios */
.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* Estilos para botones */
.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

/* Estados y mensajes */
.status-indicator {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
    display: none;
    font-size: 0.9rem;
}

.status-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Subida de archivos */
.upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary);
}

.upload-area i {
    font-size: 2.5rem;
    color: #ccc;
    margin-bottom: 10px;
}

.preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    height: 120px;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--danger);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
}

/* Carrusel de rifas */
.raffles-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 0 40px;
}

.raffles-track {
    display: flex;
    transition: transform 0.5s ease;
}

.raffle-slide {
    min-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.nav-btn-left, .nav-btn-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 20;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    opacity: 0.9;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn-left {
    left: 5px;
}

.nav-btn-right {
    right: 5px;
}

.nav-btn-left:hover, .nav-btn-right:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9);
}

.nav-btn-left:disabled, .nav-btn-right:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.nav-btn-left:disabled:hover, .nav-btn-right:disabled:hover {
    transform: translateY(-50%);
    opacity: 0.3;
}

/* Tarjetas de rifa */
.raffle-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.raffle-image-container {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.raffle-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.raffle-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0.4) 60%, transparent 100%);
    padding: 20px;
    color: white;
}

.raffle-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.raffle-description {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.9;
    max-height: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Precios de rifa */
.raffle-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    justify-content: center;
    flex-direction: row;
}

.price-tag {
    background: linear-gradient(135deg, var(--secondary), #0077CC);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: bold;
    text-align: center;
    min-width: 120px;
    box-shadow: 0 4px 12px rgba(0, 93, 170, 0.3);
    flex: 1 1 auto;
    max-width: 150px;
}

.price-amount {
    font-size: 1.4rem;
    display: block;
    margin-bottom: 5px;
}

.price-per-ticket {
    font-size: 0.8rem;
    opacity: 0.9;
    display: block;
}

.price-tag.special {
    background: linear-gradient(135deg, var(--primary), #FFB74D);
    box-shadow: 0 4px 12px rgba(255, 158, 27, 0.4);
    transform: scale(1.05);
    position: relative;
    z-index: 5;
}

.price-tag.special::after {
    content: 'RECOMENDADO';
    position: absolute;
    top: -8px;
    right: 10px;
    background: var(--accent);
    color: white;
    font-size: 0.6rem;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: bold;
}

/* Barra de progreso */
.progress-container {
    width: 100%;
    margin: 15px 0 5px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1rem;
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.progress-bar {
    height: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
}

.progress-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #FFD700, var(--primary));
    border-radius: 15px;
    transition: width 0.5s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 158, 27, 0.8), inset 0 0 10px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.progress-bar-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Badges y etiquetas */
.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: white;
    padding: 10px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1rem;
    z-index: 15;
    box-shadow: 0 4px 10px rgba(207, 20, 43, 0.4);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin 3s infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

.urgent-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 15;
    animation: blink 2s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.motivator-top-left {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 5px 20px rgba(207, 20, 43, 0.5);
    max-width: 250px;
    text-align: center;
    z-index: 25;
    animation: subtlePulse 3s infinite;
    user-select: none;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes subtlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* Información de cierre de rifa */
.raffle-closing-info {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.raffle-closing-info i {
    color: #FF9E1B;
    font-size: 1rem;
}

.closing-text {
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 0.3px;
}

.raffle-closing-info.urgent {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    animation: pulse-urgent 2s infinite;
}

@keyframes pulse-urgent {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.raffle-closing-info.warning {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.urgent-badge, .warning-badge {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 8px;
    font-weight: bold;
    text-transform: uppercase;
}

.urgent-badge {
    background: rgba(255,255,255,0.3);
    animation: blink 1s infinite;
}

/* Selección de tickets */
.ticket-selection {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.ticket-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.ticket-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.ticket-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.ticket-btn:hover:not(:disabled) {
    background: #e58c0e;
    transform: scale(1.1);
}

.ticket-quantity {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 15px;
    min-width: 30px;
    text-align: center;
}

.ticket-slider {
    width: 100%;
    margin: 15px 0;
}

.ticket-price-info {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.ticket-price-info p {
    margin: 8px 0;
}

.total-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--secondary);
}

/* Botones de compra */
.purchase-btn-container {
    position: relative;
    margin-top: 20px;
}

.purchase-btn {
    width: 100%;
    padding: 18px 25px;
    background: linear-gradient(135deg, var(--success) 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.purchase-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.purchase-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.6);
}

.purchase-btn:hover::before {
    left: 100%;
}

.purchase-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.4);
}

.purchase-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.purchase-btn:disabled::before {
    display: none;
}

.btn-icon {
    font-size: 1.3rem;
}

.btn-text {
    flex: 1;
    text-align: center;
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
}

.security-badge i {
    color: var(--success);
}

.purchase-spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    z-index: 1001;
}

.close-modal:hover {
    color: var(--danger);
}

.modal-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    justify-content: center;
}

.modal-tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.modal-tab.active {
    border-bottom: 3px solid var(--primary);
    font-weight: 600;
    color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Métodos de pago */
.payment-methods-container {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #eee;
}

.payment-method {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method:hover {
    border-color: var(--primary);
}

.payment-method.selected {
    border-color: var(--primary);
    background-color: rgba(255, 158, 27, 0.1);
}

.payment-method-details {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 6px;
    margin-top: 10px;
    display: none;
}

.payment-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.payment-detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.copy-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.8rem;
}

.copy-btn:hover {
    background: #e58c0e;
}

.copy-all-btn {
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.copy-all-btn:hover {
    background: #004a8a;
}

/* Ticket modal */
.ticket-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ticket-container {
    width: 100%;
    max-width: 340px;
    margin: 20px auto;
    position: relative;
}

.ticket-card {
    background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: ticketGlow 3s infinite;
}

@keyframes ticketGlow {
    0% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
    100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
}

.ticket-gold-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #FFD700, var(--primary), #FFD700);
    z-index: 10;
}

.ticket-header {
    background: linear-gradient(135deg, var(--secondary) 0%, #003366 100%);
    padding: 20px 15px;
    text-align: center;
    position: relative;
    color: white;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.2);
}

.ticket-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.ticket-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.ticket-body {
    padding: 20px;
    background: white;
    position: relative;
}

.ticket-perforation {
    position: absolute;
    top: -5px;
    left: 15px;
    right: 15px;
    height: 10px;
    display: flex;
    justify-content: space-between;
}

.ticket-perforation::before,
.ticket-perforation::after {
    content: '';
    width: 15px;
    height: 15px;
    background: #FFD700;
    border-radius: 50%;
    box-shadow: 0 0 10px #FFD700;
}

.ticket-details {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ticket-detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ddd;
}

.ticket-detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ticket-detail-label {
    color: #555;
    font-weight: 600;
    font-size: 0.85rem;
}

.ticket-detail-value {
    font-weight: 700;
    color: var(--secondary);
    text-align: right;
    font-size: 0.9rem;
}

.ticket-numbers-section {
    background: linear-gradient(135deg, var(--primary) 0%, #ff6b35 100%);
    border-radius: 10px;
    padding: 12px;
    margin: 15px 0;
    text-align: center;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 158, 27, 0.3);
}

.ticket-numbers-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.ticket-numbers {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.ticket-number {
    background: white;
    color: var(--secondary);
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.9rem;
    min-width: 35px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-family: 'Courier New', monospace;
}

.ticket-qr-section {
    text-align: center;
    margin: 20px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.ticket-qr-container {
    width: 130px;
    height: 130px;
    margin: 0 auto;
    padding: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ticket-qr {
    width: 114px;
    height: 114px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticket-qr svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ticket-qr-instruction {
    color: #666;
    font-size: 0.8rem;
    margin-top: 10px;
    font-weight: 500;
}

.ticket-footer {
    background: var(--dark-bg);
    color: white;
    padding: 15px;
    text-align: center;
    border-top: 2px dashed rgba(255, 255, 255, 0.1);
}

.ticket-footer p {
    margin: 4px 0;
    font-size: 0.75rem;
    opacity: 0.8;
}

.raspalo-watermark {
    position: absolute;
    bottom: 8px;
    right: 8px;
    opacity: 0.05;
    font-size: 3rem;
    color: var(--secondary);
    font-weight: 900;
    transform: rotate(-15deg);
    pointer-events: none;
    font-family: 'Arial Black', Arial, sans-serif;
    letter-spacing: -2px;
}

.ticket-download-options {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 15px;
}

.download-btn {
    background: linear-gradient(135deg, var(--success) 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    flex: 1;
    justify-content: center;
    max-width: 140px;
    font-size: 0.85rem;
}

.download-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.4);
}

.download-btn.pdf {
    background: linear-gradient(135deg, var(--accent) 0%, #e74c3c 100%);
}

.download-btn.pdf:hover {
    background: #c0392b;
}

.ticket-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.75rem;
    color: #28a745;
    font-weight: 600;
}

.ticket-security i {
    font-size: 0.9rem;
}

.status-reserved {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
}

/* Rifas inactivas */
.raffle-inactive {
    opacity: 0.9;
    filter: grayscale(10%);
    transition: all 0.3s ease;
}

.raffle-status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 15;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-paused {
    background: rgba(255, 167, 38, 0.9);
    color: white;
}

.status-completed {
    background: rgba(120, 144, 156, 0.9);
    color: white;
}

.status-soldout {
    background: rgba(239, 83, 80, 0.9);
    color: white;
}

.status-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    backdrop-filter: blur(2px);
}

.status-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 80%;
}

.status-content i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.status-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Manual ticket modal */
.manual-ticket-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

.manual-ticket-container {
    background: white;
    border-radius: 15px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.manual-ticket-header {
    background: linear-gradient(135deg, var(--secondary), #0077CC);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    text-align: center;
    position: relative;
}

.manual-ticket-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.manual-ticket-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.manual-ticket-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.manual-ticket-body {
    padding: 25px;
}

.manual-ticket-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.ticket-counter {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
}

.ticket-counter span {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.3rem;
}

.ticket-actions {
    display: flex;
    gap: 10px;
}

.ticket-action-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ticket-action-btn.clear {
    background: #f8f9fa;
    color: var(--dark);
    border: 1px solid #ddd;
}

.ticket-action-btn.clear:hover {
    background: #e9ecef;
}

.ticket-action-btn.confirm {
    background: var(--success);
    color: white;
}

.ticket-action-btn.confirm:hover {
    background: #218838;
    transform: translateY(-2px);
}

.ticket-action-btn.confirm:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.ticket-grid-container {
    margin-bottom: 20px;
}

.ticket-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.ticket-number-select {
    aspect-ratio: 1;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    color: #333;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
    font-size: 0.9rem;
}

.ticket-number-select:hover:not(.sold):not(.selected) {
    border-color: var(--primary);
    background: #FFF5E6;
    transform: scale(1.05);
}

.ticket-number-select.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 158, 27, 0.4);
}

.ticket-number-select.sold {
    background: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
    border-color: #e9ecef;
}

.ticket-number-select.sold::after {
    content: '✗';
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticket-grid-navigation {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.page-btn {
    padding: 8px 15px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
    background: #004a8a;
    transform: translateY(-2px);
}

.page-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.page-indicator {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--secondary);
}

.ticket-preview {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

.ticket-preview h4 {
    margin: 0 0 10px 0;
    color: var(--secondary);
    font-size: 1.1rem;
}

.selected-tickets-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 120px;
    overflow-y: auto;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.selected-ticket-badge {
    background: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.selected-ticket-badge .remove-ticket {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.7rem;
    padding: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selected-ticket-badge .remove-ticket:hover {
    background: rgba(255, 255, 255, 0.2);
}

.no-tickets-selected {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 10px;
}

/* Selection method modal */
.selection-method-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.selection-method-container {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.selection-method-header {
    background: linear-gradient(135deg, var(--secondary), #0077CC);
    color: white;
    padding: 25px;
    text-align: center;
}

.selection-method-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.selection-method-header p {
    margin: 10px 0 0 0;
    opacity: 0.9;
    font-size: 1rem;
}

.selection-method-body {
    padding: 30px;
}

.selection-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.selection-option {
    border: 3px solid #e9ecef;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.selection-option:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 158, 27, 0.2);
}

.selection-option.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, #FFF5E6, #FFE4B2);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 158, 27, 0.3);
}

.selection-option.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
}

.option-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.option-icon.auto {
    color: var(--secondary);
}

.option-icon.manual {
    color: var(--primary);
}

.option-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.option-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.selection-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    display: none;
}

.selection-details.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.auto-details, .manual-details {
    display: none;
}

.auto-details.active, .manual-details.active {
    display: block;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-icon {
    color: var(--primary);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.detail-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

.selection-confirm-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--success), #20c997);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.selection-confirm-btn:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

.selection-confirm-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.selection-method-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s;
    z-index: 10;
}

.selection-method-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 30px 15px;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #444;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-icons a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #444;
    font-size: 0.8rem;
}

/* Utilidades */
.hidden {
    display: none !important;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    animation: spin 1s linear infinite;
    margin: 15px auto;
    display: none;
}

.referral-field-active {
    border-color: #28a745 !important;
    background-color: #f8fff9 !important;
}

.referral-field-active:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

.referral-field-locked {
    background-color: #f5f5f5 !important;
    cursor: not-allowed !important;
}

/* Media Queries */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.6rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .raffle-image-container {
        height: 400px;
    }
    
    .raffle-prices {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-evenly;
        gap: 5px;
        overflow: visible;
        padding: 0 8px 12px;
        margin-bottom: 10px;
    }
    
    .price-tag {
        min-width: 90px;
        max-width: 120px;
        padding: 12px 15px;
        font-size: 0.85rem;
        position: relative;
        z-index: 2;
        margin-bottom: 5px;
        box-shadow: 0 3px 8px rgba(0, 93, 170, 0.2);
    }
    
    .price-tag.special {
        transform: scale(1.02);
    }
    
    .price-tag.special::after {
        content: 'RECOMENDADO';
        position: absolute;
        top: 0;
        right: 0;
        background: var(--accent);
        color: white;
        font-size: 0.6rem;
        padding: 2px 5px;
        border-radius: 6px;
        font-weight: bold;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        z-index: 3;
        text-align: center;
        min-width: 55px;
        transform: translateY(-20%);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
        line-height: 1.2;
    }
    
    .purchase-btn {
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    
    .btn-icon {
        font-size: 1.1rem;
    }

    .referral-banner {
        top: 80px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .raffle-closing-info {
        padding: 10px 12px;
        font-size: 0.9rem;
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .raffle-closing-info i {
        font-size: 0.9rem;
    }
    
    .urgent-badge, .warning-badge {
        margin-left: 0;
        margin-top: 5px;
    }

    .selection-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .selection-method-container {
        max-width: 90%;
    }

    .selection-method-header {
        padding: 20px;
    }

    .selection-method-header h2 {
        font-size: 1.5rem;
    }

    .selection-method-body {
        padding: 20px;
    }

    .selection-option {
        padding: 20px 15px;
    }

    .option-icon {
        font-size: 2.5rem;
    }

    .manual-ticket-container {
        max-width: 95%;
    }

    .ticket-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 6px;
    }

    .ticket-number-select {
        font-size: 0.8rem;
    }

    .manual-ticket-info {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .ticket-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .ticket-container {
        max-width: 95%;
    }
    
    .ticket-title {
        font-size: 1.4rem;
    }
    
    .ticket-qr-container {
        width: 120px;
        height: 120px;
    }
    
    .ticket-qr {
        width: 104px;
        height: 104px;
    }
    
    .ticket-download-options {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        max-width: 180px;
        width: 100%;
    }
    
    .section-title {
        font-size: 1.4rem;
    }

    .ticket-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .ticket-number-select {
        font-size: 0.75rem;
    }
}

    /* ===== ANIMACIÓN AUTOMÁTICA MEJORADA - EXACTA ===== */
            .floating-shadow-btn {
                position: fixed;
                bottom: 30px;
                right: 30px;
                background: none;
                border: none;
                cursor: pointer;
                z-index: 999;
                transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
                display: flex;
                align-items: center;
                justify-content: flex-end;
                padding: 0;
                border-radius: 0;
                background: transparent;
                box-shadow: none;
                min-width: auto;
                max-width: auto;
                overflow: visible;
                animation: slideInRight 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            }
        
            .floating-shadow-btn.expanded {
                padding: 12px 15px;
                border-radius: 50px;
                background: white;
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
                min-width: 220px;
                max-width: 220px;
                overflow: hidden;
                justify-content: flex-start;
            }
        
            /* Contenedor de tickets */
            .ticket-icons-container {
                position: relative;
                width: 70px;
                height: 70px;
                display: flex;
                align-items: center;
                justify-content: center;
                filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.2));
                transition: all 0.4s ease;
                flex-shrink: 0;
            }
        
            .floating-shadow-btn.expanded .ticket-icons-container {
                width: 40px;
                height: 40px;
                margin-right: 10px;
            }
        
            /* ANIMACIÓN AUTOMÁTICA EXACTA - 8 SEGUNDOS (REDUCIDO DE 9s) - SOLO CUANDO NO ESTÁ EXPANDIDO - INICIO EN SEGUNDO 12 */
            .floating-shadow-btn:not(.expanded) {
                animation: buttonAnimation 8s 12s infinite !important;
            }
        
            @keyframes buttonAnimation {
                0%, 19% { /* AJUSTADO: 15% -> 19% */
                    width: 70px;
                    border-radius: 50%;
                    background: white;
                }
                25% { /* AJUSTADO: 20% -> 25% */
                    width: 200px;
                    border-radius: 30px;
                    background: white;
                }
                /* MÁS TIEMPO DE EXPANSIÓN */
                50% { /* AJUSTADO: 40% -> 50% */
                    width: 200px;
                    border-radius: 30px;
                    background: white;
                }
                /* RETRACCIÓN MÁS RÁPIDA */
                56% { /* AJUSTADO: 45% -> 56% */
                    width: 70px;
                    border-radius: 50%;
                    background: white;
                }
                63%, 100% { /* AJUSTADO: 50% -> 63% */
                    width: 70px;
                    border-radius: 50%;
                    background: white;
                }
            }
        
            /* Ticket siempre a la derecha */
            .ticket-icon {
                position: absolute;
                font-size: 1.8rem;
                z-index: 2;
                right: 18px;
                color: #FF9E1B;
            }
        
            .floating-shadow-btn.expanded .ticket-icon {
                font-size: 1.8rem;
                right: 11px;
            }
        
            /* ANIMACIÓN DE TICKETS - DESAPARECEN AL MISMO TIEMPO QUE EL CARRITO */
            .floating-shadow-btn:not(.expanded) .ticket-icon {
                animation: ticketAnimation 8s 12s infinite;
            }
            .floating-shadow-btn.expanded .ticket-icon {
                animation: none;
            }
        
            @keyframes ticketAnimation {
                0%, 43% { /* AJUSTADO: 34% -> 43% */
                    opacity: 1;
                }
                44%, 100% { /* AJUSTADO: 35% -> 44% - DESAPARECEN AL MISMO TIEMPO QUE EL CARRITO */
                    opacity: 0;
                }
            }
        
            .ticket-1 {
                top: 15px;
                left: 15px;
                transform: rotate(-8deg);
                color: #FF9E1B;
                text-shadow: 0 2px 8px rgba(255, 158, 27, 0.4);
            }
        
            .floating-shadow-btn.expanded .ticket-1 {
                top: 8px;
                left: 8px;
            }
        
            .ticket-2 {
                bottom: 15px;
                right: 15px;
                transform: rotate(8deg);
                color: #FF6B35;
                text-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
            }
        
            .floating-shadow-btn.expanded .ticket-2 {
                bottom: 8px;
                right: 8px;
            }
        
            /* Carrito con MÁS TIEMPO DE ANIMACIÓN - DESAPARECE AL MISMO TIEMPO QUE LOS TICKETS */
            .mini-cart-anim {
                position: absolute;
                font-size: 1.8rem;
                color: #2c3e50;
                left: 20px;
                opacity: 0;
                z-index: 1;
            }
        
            .floating-shadow-btn:not(.expanded) .mini-cart-anim {
                animation: cartAnimation 8s 12s infinite;
            }
            .floating-shadow-btn.expanded .mini-cart-anim {
                animation: none;
                opacity: 0;
            }
        
            @keyframes cartAnimation {
                0%, 24% { /* AJUSTADO: 19% -> 24% */
                    opacity: 0;
                    transform: translateX(-10px);
                }
                25% { /* AJUSTADO: 20% -> 25% */
                    opacity: 1;
                    transform: translateX(0);
                }
                /* MÁS TIEMPO DE MOVIMIENTO DEL CARRITO */
                43% { /* AJUSTADO: 34% -> 43% */
                    opacity: 1;
                    transform: translateX(120px);
                }
                44%, 100% { /* AJUSTADO: 35% -> 44% - DESAPARECE AL MISMO TIEMPO QUE LOS TICKETS */
                    opacity: 0;
                    transform: translateX(120px);
                }
            }
        
            /* Copa de ganador - TIEMPOS AJUSTADOS PARA 8s */
            .mini-cup-anim {
                position: absolute;
                font-size: 1.8rem;
                color: #FFD700;
                opacity: 0;
                right: 18px;
                filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.7));
                z-index: 7;
            }
        
            .floating-shadow-btn.expanded .mini-cup-anim {
                right: 11px;
            }
        
            .floating-shadow-btn:not(.expanded) .mini-cup-anim {
                animation: trophyAnimation 8s 12s infinite;
            }
            .floating-shadow-btn.expanded .mini-cup-anim {
                animation: none;
                opacity: 0;
            }
        
            @keyframes trophyAnimation {
                0%, 43% { /* AJUSTADO: 34% -> 43% */
                    opacity: 0;
                }
                44%, 81% { /* AJUSTADO: 35% -> 44%, 65% -> 81% */
                    opacity: 1;
                }
                82%, 100% { /* AJUSTADO: 66% -> 82% */
                    opacity: 0;
                }
            }
        
            /* Contenedor de animación */
            .mini-animation-container {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                display: flex;
                align-items: center;
                justify-content: flex-start;
                pointer-events: none;
                z-index: 5;
            }
        
            /* Texto - solo visible cuando está expandido */
            .text-container {
                display: none;
                flex-direction: column;
                align-items: flex-start;
                margin-left: 0;
                opacity: 0;
                transform: translateX(-10px);
                transition: all 0.4s ease 0.1s;
                white-space: nowrap;
                overflow: hidden;
                flex: 1;
            }
        
            .floating-shadow-btn.expanded .text-container {
                display: flex;
                opacity: 1;
                transform: translateX(0);
            }
        
            .floating-shadow-btn .btn-text {
                font-size: 1rem;
                font-weight: 800;
                line-height: 1.2;
                letter-spacing: 0.5px;
                color: #2c3e50;
                text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            }
        
            .floating-shadow-btn .btn-subtext {
                font-size: 0.7rem;
                font-weight: 600;
                color: #FF9E1B;
                margin-top: 1px;
                text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
                letter-spacing: 0.3px;
            }
        
            /* Indicador de notificación */
            .notification-dot {
                position: absolute;
                top: 10px;
                right: 10px;
                width: 12px;
                height: 12px;
                background: #CF142B;
                border-radius: 50%;
                z-index: 3;
                animation: blink 1.5s infinite;
                box-shadow: 0 0 8px rgba(207, 20, 43, 0.7);
                display: none;
            }
        
            .floating-shadow-btn.expanded .notification-dot {
                display: block;
                top: 5px;
                right: 5px;
            }
        
            /* ANIMACIÓN DE ENTRADA DESDE LA DERECHA */
            @keyframes slideInRight {
                0% { 
                    opacity: 0;
                    transform: translateX(30px);
                }
                100% { 
                    opacity: 1;
                    transform: translateX(0);
                }
            }
        
            @keyframes blink {
                0%, 50% { opacity: 1; }
                51%, 100% { opacity: 0; }
            }
        
            /* Efecto de pulso sutil en el icono */
            @keyframes icon-pulse {
                0% { 
                    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.2));
                }
                50% { 
                    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
                }
                100% { 
                    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.2));
                }
            }
        
            .ticket-icons-container {
                animation: icon-pulse 4s ease-in-out infinite;
            }
        
            /* Estados especiales del botón */
            .floating-shadow-btn.urgent .ticket-icons-container {
                filter: drop-shadow(0 8px 15px rgba(207, 20, 43, 0.4));
                animation: icon-pulse-urgent 3s ease-in-out infinite;
            }
        
            .floating-shadow-btn.urgent .ticket-1 {
                color: #FF6B35;
            }
        
            .floating-shadow-btn.urgent .ticket-2 {
                color: #CF142B;
            }
        
            .floating-shadow-btn.urgent .btn-subtext {
                color: #CF142B;
            }
        
            .floating-shadow-btn.urgent.expanded {
                background: white;
                box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
            }
        
            @keyframes icon-pulse-urgent {
                0% { 
                    filter: drop-shadow(0 8px 15px rgba(207, 20, 43, 0.4));
                }
                50% { 
                    filter: drop-shadow(0 10px 20px rgba(207, 20, 43, 0.6));
                }
                100% { 
                    filter: drop-shadow(0 8px 15px rgba(207, 20, 43, 0.4));
                }
            }
        
            .floating-shadow-btn.critical .ticket-icons-container {
                filter: drop-shadow(0 8px 15px rgba(160, 16, 32, 0.5));
                animation: icon-pulse-critical 2s ease-in-out infinite;
            }
        
            .floating-shadow-btn.critical .ticket-1 {
                color: #CF142B;
            }
        
            .floating-shadow-btn.critical .ticket-2 {
                color: #A01020;
            }
        
            .floating-shadow-btn.critical .btn-subtext {
                color: #A01020;
            }
        
            .floating-shadow-btn.critical.expanded {
                background: white;
                box-shadow: 0 10px 30px rgba(207, 20, 43, 0.25);
            }
        
            @keyframes icon-pulse-critical {
                0% { 
                    filter: drop-shadow(0 8px 15px rgba(160, 16, 32, 0.5));
                }
                50% { 
                    filter: drop-shadow(0 10px 20px rgba(160, 16, 32, 0.7));
                }
                100% { 
                    filter: drop-shadow(0 8px 15px rgba(160, 16, 32, 0.5));
                }
            }
        
            /* Efecto de brillo al expandir */
            .floating-shadow-btn.expanded::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: linear-gradient(135deg, rgba(255, 158, 27, 0.1), transparent);
                border-radius: 50px;
                opacity: 0;
                transition: opacity 0.3s ease;
                z-index: -1;
            }
        
            .floating-shadow-btn.expanded::before {
                opacity: 1;
            }
        
            /* Versión móvil */
            @media (max-width: 768px) {
                .floating-shadow-btn {
                    bottom: 20px;
                    right: 20px;
                }
                
                .floating-shadow-btn.expanded {
                    padding: 10px 12px;
                    min-width: 180px;
                    max-width: 180px;
                }
                
                .ticket-icons-container {
                    width: 60px;
                    height: 60px;
                }
                
                .floating-shadow-btn.expanded .ticket-icons-container {
                    width: 35px;
                    height: 35px;
                    margin-right: 8px;
                }
                
                .ticket-icon {
                    font-size: 1.5rem;
                }
                
                .floating-shadow-btn.expanded .ticket-icon {
                    font-size: 1.5rem;
                    right: 9px;
                }
                
                .mini-cart-anim, .mini-cup-anim {
                    font-size: 1.5rem;
                }
                
                .text-container {
                    margin-left: 0;
                }
                
                .floating-shadow-btn .btn-text {
                    font-size: 0.9rem;
                }
                
                .floating-shadow-btn .btn-subtext {
                    font-size: 0.65rem;
                }
                
                .notification-dot {
                    width: 10px;
                    height: 10px;
                    top: 8px;
                    right: 8px;
                }
                
                .floating-shadow-btn.expanded .notification-dot {
                    top: 4px;
                    right: 4px;
                }
                
                .floating-shadow-btn.expanded .ticket-1 {
                    top: 6px;
                    left: 6px;
                }
                
                .floating-shadow-btn.expanded .ticket-2 {
                    bottom: 6px;
                    right: 6px;
                }
                
                .floating-shadow-btn.expanded .mini-cup-anim {
                    right: 9px;
                }
            }
        
            /* Estilos para el estado de carga */
        .ticket-number-select.loading {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: loading 1.5s infinite;
            color: transparent;
            border-color: #e0e0e0;
        }
        
        @keyframes loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
        
        .ticket-number-select:not(.loading) {
            transition: all 0.3s ease;
        }

        /* Estilos para los price-tags */



.price-tag.selected {

    color: #333; /* Mantener color de texto oscuro */
    transform: translateY(-4px);

}

/* ESTILOS PARA TÍTULOS RETRAÍBLES - CONTENIDO SIEMPRE VISIBLE */
.collapsible-title-section {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.collapsible-title-section:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

/* ENCABEZADO RETRAÍBLE */
.collapsible-title {
    display: flex;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 0;
}

.collapsible-title.collapsed {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #e0e0e0;
}

.collapsible-title:hover {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
}

.step-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.collapsible-title.collapsed .step-icon {
    background: linear-gradient(135deg, #95a4f0, #9d7ac9);
    transform: scale(0.9);
}

.step-title {
    flex: 1;
}

.step-title h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.3em;
    font-weight: 600;
    transition: color 0.3s ease;
}

.collapsible-title.collapsed .step-title h3 {
    color: #666;
}

.step-description {
    color: #666;
    font-size: 14px;
    transition: all 0.3s ease;
    max-height: 20px;
    opacity: 1;
    overflow: hidden;
}

.collapsible-title.collapsed .step-description {
    max-height: 0;
    opacity: 0;
    margin: 0;
}

.collapse-indicator {
    transition: all 0.3s ease;
    transform: rotate(0deg);
    color: #666;
    font-size: 16px;
}

.collapsible-title.collapsed .collapse-indicator {
    transform: rotate(180deg);
    color: #999;
}

/* CONTENIDO PERMANENTE - SIEMPRE VISIBLE */
.permanent-content {
    padding: 25px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.collapsible-title.collapsed + .permanent-content {
    opacity: 0.7;
}

/* EFECTO SUAVE AL PASAR EL MOUSE SOBRE CONTENIDO SEMI-OCULTO */
.collapsible-title-section:hover .permanent-content {
    opacity: 1;
}

/* SECCIÓN DE SELECCIÓN DE TICKETS */
.ticket-selection-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.ticket-selection-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.ticket-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.ticket-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ticket-btn:hover:not(:disabled) {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.ticket-btn:disabled {
    border-color: #ccc;
    color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.ticket-quantity {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    min-width: 40px;
    text-align: center;
}

.ticket-slider {
    width: 100%;
    margin: 20px 0;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.ticket-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ticket-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ticket-price-info {
    text-align: center;
    margin-top: 15px;
}

.price-per-ticket, .total-price {
    margin: 8px 0;
    font-size: 16px;
}

.total-price {
    font-size: 18px;
    font-weight: bold;
    color: #4CAF50;
}

/* FORMULARIOS */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-help {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* ÁREA DE SUBIDA */
.upload-section {
    margin-top: 20px;
}

.upload-section h4 {
    margin-bottom: 15px;
    color: #333;
}

.upload-area {
    border: 2px dashed #667eea;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.upload-area:hover {
    background: #e3f2fd;
    border-color: #4CAF50;
}

.upload-area i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 10px;
}

.upload-area p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* MÉTODOS DE PAGO */
.payment-methods-container {
    margin-bottom: 20px;
}

.payment-methods-container h4 {
    margin-bottom: 15px;
    color: #333;
}

.payment-method {
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    cursor: pointer;
    background: white;
}

.payment-method:hover {
    border-color: #667eea;
}

.payment-method.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

/* BOTÓN DE COMPRA */
.purchase-btn-container {
    margin-top: 25px;
}

.security-badge {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
}

.security-badge i {
    color: #4CAF50;
    margin-right: 8px;
}

/* MEJORAS PARA MÓVIL */
@media (max-width: 768px) {
    .collapsible-title-section {
        border-radius: 8px;
        margin-bottom: 12px;
    }
    
    .collapsible-title {
        padding: 15px;
    }
    
    .step-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
        margin-right: 12px;
    }
    
    .step-title h3 {
        font-size: 1.1em;
    }
    
    .step-description {
        font-size: 13px;
    }
    
    .permanent-content {
        padding: 20px;
    }
    
    .ticket-selection-section {
        padding: 15px;
    }
    
    .ticket-controls {
        gap: 10px;
    }
    
    .ticket-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .ticket-quantity {
        font-size: 20px;
    }
    
    .upload-area {
        padding: 20px 15px;
    }
    
    .upload-area i {
        font-size: 36px;
    }
    
    .form-group input {
        padding: 10px;
    }
}

/* PANTALLAS MUY PEQUEÑAS */
@media (max-width: 480px) {
    .collapsible-title {
        padding: 12px;
    }
    
    .step-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
        margin-right: 10px;
    }
    
    .step-title h3 {
        font-size: 1em;
    }
    
    .step-description {
        font-size: 12px;
    }
    
    .permanent-content {
        padding: 15px;
    }
}

/* ===== INFORMACIÓN DE CIERRE EN UNA SOLA LÍNEA ===== */
.raffle-closing-info {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 40px;
    line-height: 1.2;
}

.raffle-closing-info i {
    color: #FF9E1B;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-right: 0;
}

.closing-text {
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    text-align: left;
    font-size: 0.85rem;
}

.urgent-badge, .warning-badge {
    background: rgba(255,255,255,0.2);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
}

.raffle-closing-info.urgent {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    animation: pulse-urgent 2s infinite;
}

.raffle-closing-info.warning {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

/* ===== AJUSTES ESPECÍFICOS PARA MÓVIL ===== */
@media (max-width: 768px) {
    .raffle-closing-info {
        padding: 8px 12px;
        font-size: 0.8rem;
        gap: 6px;
        min-height: 35px;
        justify-content: flex-start;
    }
    
    .closing-text {
        font-size: 0.75rem;
        letter-spacing: 0.2px;
        text-align: left;
        flex: 1;
        min-width: 0; /* Permite que el texto se recorte con ellipsis */
    }
    
    .urgent-badge, .warning-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
        margin-left: auto;
    }
    
    .raffle-closing-info i {
        font-size: 0.8rem;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .raffle-closing-info {
        padding: 6px 10px;
        font-size: 0.75rem;
        min-height: 32px;
        gap: 5px;
    }
    
    .closing-text {
        font-size: 0.7rem;
    }
    
    .urgent-badge, .warning-badge {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
    
    .raffle-closing-info i {
        font-size: 0.7rem;
    }
    
    /* Para pantallas muy pequeñas, ocultar el año si es necesario */
    @media (max-width: 360px) {
        .closing-text {
            font-size: 0.65rem;
        }
        
        .urgent-badge, .warning-badge {
            font-size: 0.55rem;
            padding: 1px 3px;
        }
    }
}

/* ===== CONTENEDOR PARA MENSAJE MOTIVADOR ===== */
.motivator-top-container {
    position: relative;
    width: 100%;
    padding: 12px 15px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 5px 20px rgba(207, 20, 43, 0.5);
    animation: subtlePulse 3s infinite;
    user-select: none;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 25;
    border-radius: 10px 10px 0 0;
}

/* Eliminar el motivador anterior de la imagen */
.motivator-top-left {
    display: none;
}