/* ============================================================
   ESTILOS GENERALES - Formulario de Reporte
   ============================================================ */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f5f7fa;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Logo */
img {
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto 15px auto;
}

h1 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    display: inline-block;
}

/* Contenedor del formulario */
form {
    background: #ffffff;
    padding: 30px 35px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    max-width: 750px;
    width: 100%;
    margin: 0 auto;
}

/* Grupos de campos */
form > div {
    margin-bottom: 18px;
}

label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 14px;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="tel"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #dce1e8;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fafbfc;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.2);
    outline: none;
    background: #fff;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Checkboxes (condición) */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.checkbox-group label {
    display: inline-flex;
    align-items: center;
    font-weight: 400;
    cursor: pointer;
    margin: 0;
    padding: 4px 0;
    font-size: 14px;
    flex: 0 0 auto;
    min-width: 140px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #3498db;
    cursor: pointer;
}

/* Archivos */
input[type="file"] {
    padding: 10px 0;
    border: none;
    background: transparent;
    font-size: 14px;
}

input[type="file"]::file-selector-button {
    padding: 8px 18px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

input[type="file"]::file-selector-button:hover {
    background: #2980b9;
}

/* Botón 3D */
button.btn-3d {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 35px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 6px #1e7e34, 0 -3px 6px rgba(0,0,0,0.1) inset;
    transition: all 0.15s ease;
    letter-spacing: 0.5px;
    width: 100%;
    max-width: 300px;
    margin: 10px auto 0;
    display: block;
}

button.btn-3d:hover {
    box-shadow: 0 10px #1e7e34, 0 -5px 8px rgba(0,0,0,0.15) inset;
    transform: translateY(-2px);
}

button.btn-3d:active {
    box-shadow: 0 3px #1e7e34, 0 -2px 4px rgba(0,0,0,0.1) inset;
    transform: translateY(3px);
}

/* Mensajes de éxito/error */
.mensaje {
    max-width: 750px;
    width: 100%;
    margin: 0 auto 20px;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.mensaje-exito {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.mensaje-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Enlace al panel */
.panel-link {
    margin-top: 25px;
    text-align: center;
}

.panel-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 20px;
    border: 2px solid #3498db;
    border-radius: 30px;
    transition: all 0.3s;
    display: inline-block;
}

.panel-link a:hover {
    background: #3498db;
    color: white;
}

/* Responsive */
@media (max-width: 600px) {
    form {
        padding: 20px;
    }
    .checkbox-group label {
        min-width: 100px;
        flex: 1 1 45%;
    }
    button.btn-3d {
        max-width: 100%;
    }
}
