:root {
    --primary-color: #ad0f28; /* Azul institucional */
    --secondary-color: #ffcc00; /* Amarillo Vanguardia */
    --text-dark: #333;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.color-primary {
    color: var(--primary-color);
}

.hero-section {
    background: linear-gradient(rgba(0, 74, 153, 0.35), rgba(0, 74, 153, 0.9)), url('banner.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.main-logo {
    max-height: 150px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.hero-section h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

.event-info .badge {
    font-size: 1rem;
    font-weight: 500;
}

.card {
    transition: transform 0.3s ease;
}

.form-control {
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 74, 153, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #b90817;
    border-color: #b90817;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 74, 153, 0.3);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Estilos para el Ticket QR */
.ticket-container {
    background-color: #fff;
    border: 2px dashed #ddd;
    position: relative;
}

.ticket-container::before, .ticket-container::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--bg-light);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.ticket-container::before {
    left: -12px;
}

.ticket-container::after {
    right: -12px;
}

#qrcode img {
    padding: 15px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.politicadatos{
    border:1px solid #ccc;
    font-size:13px;
    width:100%;
    padding:10px;
    color:#666;
    margin-top:8px;
    background:#eee;
}

label.form-label{
    font-weight:bold;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#ticket-section {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Ajustes para impresión */
@media print {
    .hero-section, #registration-card, footer, .btn-link, .btn-outline-dark {
        display: none !important;
    }
    body {
        background-color: white;
    }
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
    }
    #ticket-section {
        display: block !important;
        box-shadow: none;
        border: none;
    }
    .ticket-container {
        border: 2px solid #eee;
    }
}

/* Responsividad */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section {
        padding: 60px 0;
    }
}

/* Estilos para la carga de archivos */
.file-upload-wrapper {
    position: relative;
}

.file-upload-area {
    border: 2px dashed #004a99;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background-color: rgba(0, 74, 153, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    background-color: rgba(0, 74, 153, 0.1);
    border-color: #003366;
}

.file-upload-area.dragover {
    background-color: rgba(0, 74, 153, 0.15);
    border-color: #003366;
    box-shadow: 0 0 15px rgba(0, 74, 153, 0.2);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.file-upload-area h5 {
    color: var(--text-dark);
    font-weight: 600;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.file-preview {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    background-color: #fff;
    margin-top: 15px;
}

.preview-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.preview-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    min-width: 50px;
    text-align: center;
}

.preview-info {
    flex: 1;
    text-align: left;
}

.file-name {
    font-weight: 600;
    color: var(--text-dark);
}

.file-size {
    color: #999;
}

.btn-remove {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    color: #c82333;
    transform: scale(1.1);
}
