/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos generales del body */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6fb;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

/* Contenedor principal */
.container {
    max-width: 800px;
    margin: 0 auto;
    background: #f4f6fb;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(30, 42, 85, 0.08);
    overflow: hidden;
}

/* Encabezado */
h1 {
    background: linear-gradient(90deg, #1e2a55 0%, #2e4fa2 100%);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin: 0;
    font-size: 2.2em;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(30, 42, 85, 0.18);
}

/* Contenido del formulario */
.form-content {
    padding: 40px;
}

/* Secciones del formulario */
.form-section {
    margin-bottom: 35px;
    border-left: 4px solid #2e4fa2;
    padding-left: 20px;
}

.form-section p {
    font-size: 1.3em;
    font-weight: 600;
    color: #1e2a55;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Grupos de campos */
.field-group {
    margin-bottom: 20px;
}

/* Etiquetas */
label {
    display: block;
    margin-bottom: 8px;
    color: #222b45;
    font-weight: 500;
    font-size: 0.95em;
}

/* Campos de entrada */
input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fafbfc;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* Placeholder */
input::placeholder {
    color: #a0a6aa;
    font-style: italic;
}

/* Select personalizado */
select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Botones */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(90deg, #1e2a55 0%, #2e4fa2 100%);
    color: white;
    margin-right: 15px;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #2e4fa2 0%, #1e2a55 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 79, 162, 0.18);
}

.btn-secondary {
    background: linear-gradient(90deg, #17a2b8 0%, #e5e8ef 100%);
    color: #222b45;
    border: 2px solid #17a2b8;
}

.btn-secondary:hover {
    background: linear-gradient(90deg, #2e4fa2 0%, #17a2b8 100%);
    color: #fff;
    border-color: #17a2b8;
    transform: translateY(-1px);
}

/* Contenedor de botones */
.button-container {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e1e5e9;
}

/* Nota de campos obligatorios */
.required-note {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin: 30px 0;
    font-style: italic;
    color: #6c757d;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .form-content {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8em;
        padding: 20px;
    }
    
    .form-section {
        padding-left: 15px;
    }
    
    .btn {
        width: 100%;
        margin: 10px 0;
    }
    
    .btn-primary {
        margin-right: 0;
    }
}

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

.container {
    animation: fadeInUp 0.6s ease-out;
}

/* Estados de validación */
input:invalid {
    border-color: #dc3545;
}

input:valid {
    border-color: #28a745;
}

/* Efectos hover para campos */
.field-group:hover input,
.field-group:hover select {
    border-color: #9fa8da;
}

/* Mensaje de confirmación */
.confirmation-message {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    border: none;
    animation: slideInDown 0.5s ease-out;
}

/* Animación para el mensaje de confirmación */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
