:root {
    --primary-color: #004a99; /* 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.8), rgba(0, 74, 153, 0.9)), url('bannerferia.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: 120px;
    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: #003366;
    border-color: #003366;
    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;
    }
}