/* ============================================================
   Canal de Denuncias — Estilos
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    color: #333;
    min-height: 100vh;
    padding: 40px 16px;
}

.container {
    max-width: 780px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    overflow: hidden;
}

/* ── Cabecera ──────────────────────────────────────────────── */
.header {
    background: linear-gradient(135deg, #1a2a4a 0%, #2c3e6e 100%);
    color: #fff;
    text-align: center;
    padding: 48px 32px 36px;
}

.shield-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.subtitulo {
    font-size: 1rem;
    opacity: 0.85;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ── Alertas ───────────────────────────────────────────────── */
.alert {
    margin: 24px 32px;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 0.97rem;
    line-height: 1.5;
}

.alert-success {
    background: #eafaf1;
    border-left: 5px solid #27ae60;
    color: #1e7e47;
}

.alert-error {
    background: #fdf0ef;
    border-left: 5px solid #e74c3c;
    color: #b03a2e;
}

/* ── Formulario ────────────────────────────────────────────── */
form {
    padding: 32px;
}

.seccion {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.seccion h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8e8e8;
}

.opcional {
    font-size: 0.78rem;
    font-weight: 400;
    color: #888;
}

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

.form-group:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
}

.requerido {
    color: #e74c3c;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: #1a2a4a;
    box-shadow: 0 0 0 3px rgba(26,42,74,0.12);
    background: #fff;
}

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

.ayuda {
    font-size: 0.8rem;
    color: #888;
    margin-top: 6px;
}

/* ── Subida de archivos ────────────────────────────────────── */
.file-upload {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #fafafa;
    transition: border-color 0.2s;
}

.file-upload:hover {
    border-color: #1a2a4a;
}

.file-upload input[type="file"] {
    width: auto;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

/* ── Aviso anónimo ─────────────────────────────────────────── */
.aviso-anonimo {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f0f4ff;
    border-radius: 6px;
    padding: 14px 16px;
    margin-top: 16px;
}

.aviso-anonimo input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #1a2a4a;
}

.aviso-anonimo label {
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 0;
    cursor: pointer;
}

/* ── Política de privacidad ────────────────────────────────── */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #1a2a4a;
}

.checkbox-label a {
    color: #1a2a4a;
    text-decoration: underline;
}

/* ── Botón enviar ──────────────────────────────────────────── */
.btn-enviar {
    display: block;
    width: 100%;
    padding: 16px;
    margin-top: 24px;
    background: linear-gradient(135deg, #1a2a4a, #2c3e6e);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: opacity 0.2s, transform 0.1s;
}

.btn-enviar:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-enviar:active {
    transform: translateY(0);
}

/* ── Footer ────────────────────────────────────────────────── */
.footer-info {
    background: #f5f6f8;
    padding: 20px 32px;
    text-align: center;
    font-size: 0.82rem;
    color: #777;
    line-height: 1.7;
    border-top: 1px solid #e8e8e8;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 600px) {
    body { padding: 0; }
    .container { border-radius: 0; box-shadow: none; }
    .header { padding: 32px 20px 24px; }
    .header h1 { font-size: 1.5rem; }
    form { padding: 20px 16px; }
    .seccion { padding: 16px; }
    .footer-info { padding: 16px; }
}
