
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 800px;        
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    /*background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);*/
    /*background:  #0d3152 ;*/
    background:  #ffffff ;
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.event-info {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.event-image {
    width: 100%;
    height: 300px;
    background-color: #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-details h2 {
    color:  #0d3152 ;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.event-details p {
    margin-bottom: 10px;
    color: #555;
}

.registration-form {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.registration-form h2 {
    color:  #0d3152 ;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus, select:focus {
    border-color:  #0d3152 ;
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 117, 252, 0.2);
}

.error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit {
    /*background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);*/
    background:  #0d3152 ;
    color: white;
    flex: 2;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #580fb5 0%, #1c67e3 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 117, 252, 0.3);
}

.btn-reset {
    background: #f1f1f1;
    color: #555;
    flex: 1;
}

.btn-reset:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: #777;
    font-size: 14px;
}

@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .event-details h2, .registration-form h2 {
        font-size: 1.5rem;
    }
    
    .buttons {
        flex-direction: column;
    }
}

.success-message {
    display: none;
    background: #2ecc71;
    color: white;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
}

.caja{
max-height: 500px;   /* alto máximo visible */
overflow-y: auto;    /* activa scroll vertical cuando haga falta */
overflow-x: hidden;  /* evita scroll horizontal */
border: 1px solid #ddd;
padding: 12px;
box-sizing: border-box;
}