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

/* --- Utilidades --- */
.is-hidden { display: none !important; }

/* --- Base compartida --- */
.denuncia-step,
.content_form {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* --- Títulos --- */
.denuncia-step h2,
.content_form h2 {
    font-family: 'Montserrat', sans-serif;
    color: #00B5AD;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 28px;
}

.denuncia-step h3,
.content_form h3 {
    font-family: 'Montserrat', sans-serif;
    color: #00B5AD;
    font-weight: 700;
    font-size: 20px;
    margin-top: 28px;
    margin-bottom: 12px;
}

/* --- Párrafos y texto --- */
.denuncia-step p,
.content_form p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 18px;
}

/* --- Links --- */
.denuncia-step a,
.content_form a {
    color: #00B5AD;
    font-weight: 600;
    text-decoration: none;
}
.denuncia-step a:hover,
.content_form a:hover { text-decoration: underline; }

/* --- Labels --- */
.denuncia-step label,
.content_form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    margin-top: 14px;
}
.denuncia-step label strong,
.content_form label strong { color: #333; }

/* --- Radios y checkboxes inline --- */
.denuncia-step label input[type="checkbox"],
.content_form label input[type="checkbox"],
.denuncia-step label input[type="radio"],
.content_form label input[type="radio"] {
    margin-right: 8px;
    vertical-align: middle;
}
.denuncia-step input[type="radio"],
.content_form input[type="radio"] { margin-right: 8px; }

.denuncia-step label:has(input[type="radio"]),
.content_form label:has(input[type="radio"]) {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    margin-top: 8px;
}

/* --- Campos de texto, selects, textareas --- */
.denuncia-step select,
.content_form select,
.denuncia-step input[type="text"],
.content_form input[type="text"],
.denuncia-step input[type="email"],
.content_form input[type="email"],
.denuncia-step input[type="date"],
.content_form input[type="date"],
.denuncia-step input[type="file"],
.content_form input[type="file"],
.denuncia-step textarea,
.content_form textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #dce3eb;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}
.denuncia-step select:focus,
.content_form select:focus,
.denuncia-step input:focus,
.content_form input:focus,
.denuncia-step textarea:focus,
.content_form textarea:focus {
    outline: none;
    border-color: #00B5AD;
    box-shadow: 0 0 0 3px rgba(0,181,173,.12);
}

.denuncia-step textarea,
.content_form textarea { resize: vertical; }

.content_form input[type="file"] { padding: 10px 14px; }

/* --- Select con flecha custom --- */
.denuncia-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

/* --- Small / hints --- */
.denuncia-step small,
.content_form small {
    display: block;
    font-size: 12px;
    color: #777;
    margin-top: 6px;
}

/* --- Botones base --- */
.denuncia-btn,
.content_form button[type="submit"],
#btn_enviar,
#dp1-btn,
#dp2-next,
#dp2-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .15s, opacity .2s, box-shadow .2s;
}

/* Primario */
.denuncia-btn--primary,
#dp1-btn,
#dp2-next,
#btn_enviar,
.content_form button[type="submit"] {
    background: #00B5AD;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,181,173,.25);
}
.denuncia-btn--primary:hover:not(:disabled),
#dp1-btn:hover:not(:disabled),
#dp2-next:hover:not(:disabled),
#btn_enviar:hover:not(:disabled),
.content_form button[type="submit"]:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,181,173,.35);
}
.denuncia-btn--primary:disabled,
#dp1-btn:disabled,
#dp2-next:disabled,
#btn_enviar:disabled,
.content_form button[type="submit"]:disabled {
    background: #a0ddd9;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: .6;
}

.content_form button[type="submit"],
#btn_enviar { padding: 14px 32px; font-size: 15px; }

/* Secundario / Volver */
#dp2-back {
    background: #f0f3f7;
    color: #444;
}
#dp2-back:hover { background: #e2e7ed; }

/* --- Contenedor de acciones --- */
.denuncia-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* --- Checkbox "acepto términos" decorado --- */
.denuncia-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f6f9fb;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin: 18px 0;
    font-size: 14px;
    color: #444;
}
.denuncia-check input[type="checkbox"] { margin-top: 2px; }
.denuncia-check a { color: #00B5AD; font-weight: 600; text-decoration: none; }
.denuncia-check a:hover { text-decoration: underline; }

/* --- Info box --- */
.denuncia-info {
    background: rgba(238,252,251,.95);
    border-left: 4px solid #00B5AD;
    border-radius: 0 10px 10px 0;
    padding: 14px 18px;
    font-size: 13px;
    color: #0d5c57;
    line-height: 1.55;
    margin: 12px 0;
}

/* --- Mensaje final (código) --- */
.denuncia-final-msg {
    background: #f0fdfa;
    border: 1.5px solid #00B5AD;
    border-radius: 14px;
    padding: 32px 24px;
    margin: 24px 0;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}
.denuncia-final-msg .codigo {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #00B5AD;
    margin: 14px 0;
}
.denuncia-final-msg .nota {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* --- Alerta de errores --- */
.denuncia-alert {
    background: #fff5f5;
    border: 1.5px solid #ffcfcf;
    color: #7a1f1f;
    border-radius: 12px;
    padding: 14px 18px;
    margin: 14px 0;
    font-size: 13px;
}
.denuncia-alert ul { margin: 8px 0 0 18px; padding: 0; }
.denuncia-alert li { margin-bottom: 4px; }

/* --- Estado cargando --- */
.denuncia-loading,
.content_form.denuncia-loading {
    opacity: .6;
    pointer-events: none;
}

/* --- Bloque denunciante --- */
.content_form #bloque_denunciante {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    margin: 18px 0;
}
.content_form #bloque_denunciante h3 { margin-top: 0; }
.content_form #bloque_denunciante p {
    font-size: 13px;
    color: #666;
    margin-top: -8px;
    margin-bottom: 14px;
}

/* --- Grid de cards en paso 3 --- */
.cards_form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 640px) {
    .cards_form { grid-template-columns: 1fr; }
}

.c-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { margin-bottom: 4px; }
.content_form .form-group { margin-bottom: 14px; }

/* --- Paso 2: tipo/subtipo --- */
.denuncia-step-2 select {
    width: 100%;
    max-width: 520px;
}
#dp2-subwrap {
    display: none;
    margin-bottom: 14px;
}
#dp2-subwrap label { display: block; margin-bottom: 6px; font-weight: 600; }
#dp2-subwrap > div {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
#dp2-subwrap select { flex: 1; min-width: 200px; max-width: 520px; }
#dp2-info { display: none; margin-top: 10px; }
#dp2-next:disabled { opacity: .6; cursor: not-allowed; }

/* Botón "ver definiciones" */
#dp2-ver-def {
    padding: 10px 16px;
    font-size: 13px;
    background: #f0f3f7;
    color: #444;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: background .2s;
}
#dp2-ver-def:hover { background: #e2e7ed; }
#dp2-ver-def:disabled { opacity: .6; cursor: not-allowed; }

/* --- Modal de definiciones --- */
#dp2-modal {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    background: rgba(0,0,0,.45);
    z-index: 9999;
    padding: 20px;
}
#dp2-modal.is-open { display: grid; }
#dp2-modal > div {
    background: #fff;
    max-width: 720px;
    width: 92vw;
    border: 1px solid #e8ecf3;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    position: relative;
}
#dp2-modal > div > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
#dp2-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    font-family: 'Montserrat', sans-serif;
}
#dp2-modal-body {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    white-space: pre-wrap;
}
#dp2-close {
    background: #f0f3f7;
    color: #444;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    align-self: flex-start;
}
#dp2-close:hover { background: #e2e7ed; }

/* --- Contenedores de resultado/error en paso 3 --- */
#denuncia_errors { margin-bottom: 16px; }
#denuncia_result { margin-bottom: 16px; }

/* --- Otro lugar --- */
.content_form #wrap_otro_lugar { margin-top: 8px; }
