body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background-color: #89f7fe;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.6), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(100, 200, 255, 0.5), transparent 50%),
        linear-gradient(135deg, #D6E7FF 0%, #E0F6FF 100%);
    background-attachment: fixed;
    margin: 0; 
    padding: 0; 
    min-height: 100vh;
    color: #0f172a;
}
.container { 
    max-width: 700px; 
    margin: 40px auto; 
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    padding: 30px; 
    border-radius: 20px; 
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.6);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), inset 0 2px 2px rgba(255, 255, 255, 0.6);
}
h2, h3 { 
    text-align: center; 
    color: #0284c7; 
    margin-top: 0; 
    text-shadow: 0 2px 4px rgba(255,255,255,0.8);
}
label { 
    display: block; 
    margin-top: 18px; 
    font-weight: 600; 
    color: #0f172a; 
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}
input[type="text"], select, textarea { 
    width: 100%; 
    padding: 12px; 
    margin-top: 8px; 
    /* Borde invertido para simular profundidad */
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px; 
    font-size: 15px; 
    background: rgba(255, 255, 255, 0.4);
    color: #1e293b;
    box-sizing: border-box; 
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}
input[type="text"]:focus, select:focus, textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.8);
    border-color: #3b82f6;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4), inset 0 2px 4px rgba(0,0,0,0.05);
}
input[type="text"], input[type="date"], select, textarea { 
    width: 100%; 
    padding: 12px; 
    margin-top: 8px; 
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px; 
    font-size: 15px; 
    background: rgba(255, 255, 255, 0.4); 
    color: #1e293b;
    box-sizing: border-box; 
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    font-family: inherit;
}
input[type="text"]:focus, input[type="date"]:focus, select:focus, textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.8);
    border-color: #3b82f6;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4), inset 0 2px 4px rgba(0,0,0,0.05);
}
textarea { resize: vertical; min-height: 80px; }
button { 
    display: block; 
    width: 100%; 
    padding: 14px; 
    margin-top: 30px; 
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 49%, #2563eb 50%, #1d4ed8 100%);
    color: white; 
    font-weight: 600; 
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.4); 
    border-radius: 30px; 
    cursor: pointer; 
    text-shadow: 0px -1px 1px rgba(0,0,0,0.4);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3), 
                inset 0 2px 4px rgba(255,255,255,0.7), 
                inset 0 -2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}
button:hover { 
    background: linear-gradient(180deg, #93c5fd 0%, #60a5fa 49%, #3b82f6 50%, #2563eb 100%);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4), 
                inset 0 2px 6px rgba(255,255,255,0.9);
    transform: translateY(-2px);
}
.btn-cancel { 
    display: block; 
    width: 100%; 
    padding: 14px; 
    margin-top: 15px; 
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(180deg, #f87171 0%, #ef4444 49%, #dc2626 50%, #b91c1c 100%);
    color: white; 
    font-weight: 600; 
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.4); 
    border-radius: 30px; 
    cursor: pointer; 
    text-shadow: 0px -1px 1px rgba(0,0,0,0.4);
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3), 
                inset 0 2px 4px rgba(255,255,255,0.7), 
                inset 0 -2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}
.btn-cancel:hover {
    background: linear-gradient(180deg, #fca5a5 0%, #f87171 49%, #ef4444 50%, #dc2626 100%);
    box-shadow: 0 6px 15px rgba(220, 38, 38, 0.4), 
                inset 0 2px 6px rgba(255,255,255,0.9);
    transform: translateY(-2px);
}
fieldset { 
    border-radius: 16px; 
    border: 1px solid rgba(255, 255, 255, 0.6); 
    margin-bottom: 20px; 
    padding: 20px; 
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 10px rgba(255,255,255,0.4);
}
legend {
    color: #0369a1;
    font-weight: 600;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.5);
}
.preview-img { 
    display: block; 
    margin: 20px auto 10px; 
    max-width: 150px; 
    border-radius: 16px; 
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15); 
}
.file-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}
.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    margin-top: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(10px);
    border: 2px dashed rgba(2, 132, 199, 0.4); 
    border-radius: 16px;
    color: #0369a1;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}
.file-label:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 100%);
    border: 2px dashed #0284c7; /* Borde más intenso */
    box-shadow: inset 0 2px 10px rgba(255,255,255,0.8), 0 4px 10px rgba(2, 132, 199, 0.1);
    transform: translateY(-1px);
}
.file-input:focus + .file-label {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}
@media (max-width: 768px) {
    .container { 
        margin: 20px 15px; 
        padding: 25px 15px; 
    }
    fieldset {
        padding: 15px 10px;
    }
    button {
        padding: 16px;
    }
}