/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(100deg, #127ABF 0%, #C0212A 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

/* Contenedor principal */
.formulario {
    max-width: 700px;
    margin: 30px auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.resultado{
    max-width: 700px;
    margin: 30px auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.error{
    max-width: 700px;
    margin: 30px auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

/* Estilos del formulario */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: #4AB6EF;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

select {
    cursor: pointer;
    background-color: white;
}

small {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    padding: 8px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.checkbox-label:hover {
    background-color: #f5f5f5;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Botones */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-submit,
.btn-reset,
.btn-back {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-submit {
    background: linear-gradient(135deg, #127ABF 0%, #C0212A 100%);
    color: white;
    flex: 1;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-reset {
    background-color: #4AB6EF;
    color: #333;
    flex: 1;
}

.btn-reset:hover {
    background-color: #4AB6EF;
}

.btn-back {
    background-color: #4AB6EF;
    color: white;
    margin-top: 20px;
    width: 100%;
}

.btn-back:hover {
    background-color: #4AB6EF;
}

/* Mensajes de error */
.mensaje.error {
    background-color: #fee;
    border-left: 5px solid #e53e3e;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
}

.mensaje.error h2 {
    color: #c53030;
    font-size: 20px;
    margin-bottom: 15px;
}

.mensaje.error ul {
    list-style-position: inside;
    color: #742a2a;
}

.mensaje.error li {
    margin: 8px 0;
    padding: 5px 0;
}

/* Mensajes de éxito */
.mensaje.exito {
    background-color: #f0fdf4;
    border-left: 5px solid #22c55e;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
}

.mensaje.exito h2 {
    color: #16a34a;
    font-size: 20px;
    margin-bottom: 10px;
}

.mensaje.exito p {
    color: #15803d;
    margin-bottom: 20px;
}

/* Resumen de información */
.resumen {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #d1fae5;
}

.resumen h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid #22c55e;
    padding-bottom: 10px;
}

.resumen table {
    width: 100%;
    border-collapse: collapse;
}

.resumen table tr {
    border-bottom: 1px solid #e5e7eb;
}

.resumen table th {
    text-align: left;
    padding: 12px 10px;
    color: #374151;
    font-weight: 600;
    width: 40%;
}

.resumen table td {
    padding: 12px 10px;
    color: #4b5563;
}

.resumen table tr:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .resumen table th,
    .resumen table td {
        display: block;
        width: 100%;
    }
    
    .resumen table th {
        padding-bottom: 5px;
        font-weight: bold;
    }
    
    .resumen table td {
        padding-top: 0;
        padding-bottom: 15px;
    }
}
footer {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;        
    background: linear-gradient(135deg, #003A6C 0%, #C8102E 100%);
            color: white;
            text-align: center;
            padding: 20px;
            margin-top: 40px;
        }
        
        img {
            display: block;         
            margin: 0 auto;
            width: 150px;     
            height: auto;     
            border-radius: 10px;
            
        }