/* ================================================================
   denuncia.css — Estilos para el módulo de solicitud de atención
   Inspectoría México-Guadalajara / Salesianos
   Incluye este archivo en tu layout: <link rel="stylesheet" href="<?= base_url('assets/css/denuncia.css') ?>">
   ================================================================ */

/* ── Contenedor principal ── */
.denuncia-wrapper {
  max-width: 680px;
  margin: 2rem auto;
  padding: 0 1rem;
  font-family: inherit; /* hereda de tu proyecto */
  font-size: 15px;
  line-height: 1.7;
  color: #222;
}

/* ── Texto introductorio ── */
.denuncia-intro {
  background: #f8f9fa;
  border-left: 4px solid #1a3a5c;
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 14px;
  color: #444;
}
.denuncia-aviso {
  margin: 0.5rem 0 0;
  font-weight: 600;
  color: #1a3a5c;
}

/* ── Alertas ── */
.denuncia-alert {
  padding: 0.85rem 1rem;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 1.25rem;
}
.denuncia-alert--error {
  background: #fff0f0;
  border: 1px solid #f5c2c2;
  color: #842029;
}
.denuncia-alert--info {
  background: #e8f0fb;
  border: 1px solid #b6cef2;
  color: #1a3a5c;
}

/* ── Campos ── */
.denuncia-field {
  margin-bottom: 1rem;
}
.denuncia-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
}
.denuncia-field input[type="text"],
.denuncia-field input[type="tel"],
.denuncia-field input[type="email"],
.denuncia-field input[type="date"] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  color: #222;
  background: #fff;
  transition: border-color .15s;
  box-sizing: border-box;
}
.denuncia-field input:focus {
  outline: none;
  border-color: #1a3a5c;
  box-shadow: 0 0 0 3px rgba(26,58,92,.1);
}
.denuncia-field--error input {
  border-color: #dc3545;
}
.denuncia-field__msg {
  display: block;
  font-size: 12px;
  color: #dc3545;
  margin-top: 3px;
}

/* ── Fila de 2 columnas ── */
.denuncia-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) {
  .denuncia-row { grid-template-columns: 1fr; }
}

/* ── Requerido ── */
.denuncia-required {
  color: #dc3545;
}

/* ── Label de sección ── */
.denuncia-section-label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin: 1.25rem 0 0.5rem;
}
.denuncia-section-label em {
  font-weight: 400;
  color: #888;
}

/* ── Fieldset radio ── */
.denuncia-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1rem;
}
.denuncia-fieldset legend {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
  padding: 0;
}

/* ── Opción de radio ── */
.denuncia-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: border-color .15s, background .15s;
}
.denuncia-radio:hover {
  border-color: #1a3a5c;
  background: #f4f7fb;
}
.denuncia-radio input[type="radio"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: #1a3a5c;
}
.denuncia-radio--selected {
  border-color: #1a3a5c;
  background: #eef3fa;
}
.denuncia-radio__label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  line-height: 1.5;
}
.denuncia-radio__label em {
  font-size: 12px;
  color: #888;
  font-style: normal;
  margin-top: 2px;
}

/* ── Acciones ── */
.denuncia-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.denuncia-actions--preview {
  justify-content: space-between;
}

/* ── Botones ── */
.denuncia-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: opacity .15s, background .15s;
}
.denuncia-btn--primary {
  background: #1a3a5c;
  color: #fff;
  border-color: #1a3a5c;
}
.denuncia-btn--primary:hover { opacity: .85; }
.denuncia-btn--secondary {
  background: #fff;
  color: #1a3a5c;
  border-color: #1a3a5c;
}
.denuncia-btn--secondary:hover { background: #eef3fa; }

/* Formularios inline (preview → acciones) */
.denuncia-form--inline {
  display: inline;
  margin: 0;
  padding: 0;
}

/* ── Documento de vista previa ── */
.denuncia-documento {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 2rem;
  font-size: 14px;
  line-height: 1.8;
  color: #222;
  margin-bottom: 1.5rem;
}
.denuncia-doc__valor {
  border-bottom: 1.5px solid #1a3a5c;
  padding: 0 2px;
  font-weight: 600;
  color: #1a3a5c;
}
.denuncia-doc__lista {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 1rem;
}
.denuncia-doc__lista li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  color: #555;
}
.denuncia-doc__opcion--activa {
  color: #222;
  font-weight: 600;
}
.denuncia-doc__casilla {
  display: inline-flex;
  width: 16px;
  height: 16px;
  border: 1.5px solid #555;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 3px;
}
.denuncia-doc__opcion--activa .denuncia-doc__casilla {
  border-color: #1a3a5c;
  color: #1a3a5c;
}
.denuncia-doc__fecha {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 14px;
}

/* ── Resultado ── */
.denuncia-resultado {
  text-align: center;
  padding: 3rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
}
.denuncia-resultado__icono {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 1rem;
}
.denuncia-resultado__icono--ok {
  background: #d4edda;
  color: #155724;
}
.denuncia-resultado__icono--error {
  background: #f8d7da;
  color: #721c24;
}
.denuncia-resultado__titulo {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #222;
}
.denuncia-resultado__msg {
  font-size: 14px;
  color: #555;
  margin: 0 0 1.5rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
