/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    max-width: 1200px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.8s ease;
}

header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 3px solid #667eea;
    padding-bottom: 20px;
}

header h1 {
    font-size: 2.5em;
    color: #2d3748;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.2em;
    color: #667eea;
    font-weight: 600;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.event-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-details {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 15px;
    color: white;
    transition: transform 0.3s;
}

.event-details:hover {
    transform: translateY(-5px);
}

.event-details h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
}

.event-details p {
    margin: 10px 0;
    font-size: 1.1em;
}

.validation-form {
    background: #f7fafc;
    padding: 30px;
    border-radius: 15px;
}

.validation-form h3 {
    color: #2d3748;
    margin-bottom: 25px;
    font-size: 1.5em;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.9em;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-validate {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-validate:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-validate:active:not(:disabled) {
    transform: translateY(0);
}

.btn-validate:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.resultado {
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.3em;
    font-weight: 700;
    animation: slideIn 0.5s ease;
}

.resultado.exito {
    background: #48bb78;
    color: white;
    border: 3px solid #38a169;
}

.resultado.error {
    background: #fc8181;
    color: white;
    border: 3px solid #e53e3e;
}

.resultado.oculto {
    display: none;
}

.loading-spinner {
    text-align: center;
    margin-top: 20px;
}

.loading-spinner.oculto {
    display: none;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

footer {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
    color: #4a5568;
}

footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

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

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

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

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    header h1 {
        font-size: 2em;
    }

    .container {
        padding: 20px;
    }

    .event-details {
        padding: 20px;
    }
}
