/**
 * Canal de Denuncias SEID — Frontend
 */

.cds-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #2c2c2c;
    line-height: 1.6;
}

.cds-container h2 {
    font-size: 1.8em;
    margin-bottom: 0.5em;
    color: #1a1a1a;
}

.cds-container h3 {
    font-size: 1.25em;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
    color: #1a1a1a;
}

/* Aviso de anonimato */
.cds-aviso-anonimato {
    background: #e8f4fd;
    border-left: 4px solid #2271b1;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
}

/* Pasos numerados */
.cds-pasos {
    padding-left: 0;
    list-style: none;
    counter-reset: cds-step;
    margin: 20px 0;
}
.cds-pasos li {
    counter-increment: cds-step;
    padding: 12px 12px 12px 50px;
    margin-bottom: 10px;
    position: relative;
    background: #fafafa;
    border-radius: 6px;
}
.cds-pasos li::before {
    content: counter(cds-step);
    position: absolute;
    left: 12px;
    top: 12px;
    width: 28px;
    height: 28px;
    background: #2271b1;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.95em;
}

/* Botones */
.cds-botones-principales {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.cds-boton {
    display: inline-block;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    line-height: 1.2;
}

.cds-boton-primario {
    background: #2271b1;
    color: white;
    border-color: #2271b1;
}
.cds-boton-primario:hover {
    background: #185a8c;
    border-color: #185a8c;
    color: white;
}

.cds-boton-secundario {
    background: white;
    color: #2271b1;
    border-color: #2271b1;
}
.cds-boton-secundario:hover {
    background: #2271b1;
    color: white;
}

/* Formularios */
.cds-form {
    margin: 20px 0;
}

.cds-campo {
    margin-bottom: 22px;
}

.cds-campo label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.cds-campo input[type="text"],
.cds-campo input[type="file"],
.cds-campo select,
.cds-campo textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c0c0c0;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
    box-sizing: border-box;
    background: white;
}

.cds-campo input:focus,
.cds-campo select:focus,
.cds-campo textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
}

.cds-campo textarea {
    resize: vertical;
    min-height: 120px;
}

.cds-campo-checkbox label {
    font-weight: normal;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.cds-campo-checkbox input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
}

.cds-ayuda {
    font-size: 0.9em;
    color: #666;
    margin: 4px 0 8px 0;
}

.cds-req {
    color: #c0392b;
}

.cds-acciones {
    margin-top: 25px;
}

.cds-nota-final {
    margin-top: 20px;
    font-size: 0.85em;
    color: #666;
}

/* Mensajes */
.cds-error {
    background: #fce8e8;
    border-left: 4px solid #c0392b;
    padding: 12px 18px;
    margin: 15px 0;
    border-radius: 4px;
}

.cds-ok {
    background: #e8f5e9;
    border-left: 4px solid #2e7d32;
    padding: 12px 18px;
    margin: 15px 0;
    border-radius: 4px;
}

/* Pantalla de confirmación */
.cds-confirmacion {
    text-align: center;
    padding: 20px;
}

.cds-codigo-display {
    font-size: 2.5em;
    font-weight: bold;
    background: #f5f5f5;
    border: 2px dashed #2271b1;
    padding: 25px;
    margin: 25px auto;
    max-width: 350px;
    border-radius: 8px;
    color: #2271b1;
    letter-spacing: 0.1em;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
}

.cds-aviso-codigo {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    text-align: left;
    margin: 20px 0;
    border-radius: 4px;
}

/* Detalle de seguimiento */
.cds-detalle-cabecera {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 6px;
    margin-bottom: 25px;
}

.cds-detalle-cabecera > div {
    flex: 1;
    min-width: 150px;
}

.cds-etiqueta-pequena {
    display: block;
    font-size: 0.78em;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.cds-codigo-inline {
    font-family: monospace;
    font-size: 1.2em;
}

.cds-estado {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.9em;
    font-weight: 600;
}

.cds-estado-recibida { background: #e8f4fd; color: #1c5d8c; }
.cds-estado-en_revision { background: #fff3cd; color: #856404; }
.cds-estado-investigando { background: #ffe5b4; color: #8a4a00; }
.cds-estado-resuelta { background: #d4edda; color: #155724; }
.cds-estado-archivada { background: #e0e0e0; color: #555; }

/* Conversación */
.cds-conversacion {
    margin: 20px 0;
}

.cds-mensaje {
    padding: 15px 18px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.cds-mensaje-denunciante {
    background: #fafafa;
}

.cds-mensaje-gestor {
    background: #e8f4fd;
    border-color: #b8dcf5;
}

.cds-mensaje-cabecera {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.92em;
}

.cds-mensaje-fecha {
    color: #666;
    font-size: 0.85em;
}

.cds-mensaje-meta {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 8px;
}

.cds-mensaje-cuerpo {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.cds-aviso-cerrada {
    padding: 15px;
    background: #f0f0f0;
    border-radius: 4px;
    color: #666;
    text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
    .cds-container { padding: 20px 15px; }
    .cds-container h2 { font-size: 1.5em; }
    .cds-codigo-display { font-size: 1.8em; padding: 18px; }
    .cds-botones-principales { flex-direction: column; }
    .cds-boton { width: 100%; text-align: center; box-sizing: border-box; }
    .cds-detalle-cabecera { flex-direction: column; gap: 15px; }
}
