/* =========================================================
   conDenunciasEmergencia.css
   Formulario PACO - Denuncias de emergencia
   ========================================================= */

#seccion-denuncias-emergencia,
.emergencia-system,
.emergencia-intro,
.emergencia-form-wrapper {
    font-family: 'Segoe UI', Arial, sans-serif;
}

.bannerBaseDeDatos {
    width: 100%;
}

.bannerBaseDeDatos h1 {
    margin: 0;
}

/* =========================================================
   Encabezado y tarjetas
   ========================================================= */

.emergencia-intro {
    max-width: 100%;
    margin: 0 auto 42px;
    padding: 0;
    color: #333;
}

.emergencia-intro-header {
    margin: 0 auto 30px;
    padding: 0 26px;
    text-align: center;
}

.emergencia-intro-header h1 {
    margin: 0 0 22px;
    color: #2f5f9d;
    font-size: 3rem;
    font-weight: 400;
}

.emergencia-intro-header > p {
    max-width: 1050px;
    margin: 0 auto;
    color: #4b4b4b;
    font-size: 1.12rem;
    line-height: 1.55;
}

.emergencia-intro-header .emergencia-principios {
    max-width: 1050px;
    margin: 24px auto 0;
    padding: 20px 24px 24px;
    border-radius: 14px;
    background: #f5fbfd;
    text-align: center;
}

.emergencia-intro-header .emergencia-principios h2 {
    margin: 0 0 16px;
    color: #1e8aa4;
    font-size: 1.35rem;
    font-weight: 700;
}

.emergencia-principios-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.principio-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    background: #1e8aa4;
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.25;
}

.emergencia-intro-cards,
.radar-cards {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 28px;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    padding: 46px 26px;
    overflow: hidden;
    background: linear-gradient(108deg, #1d347e 0%, #203f8f 46%, #227f9c 100%);
}

.emergencia-intro-cards::before,
.emergencia-intro-cards::after {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    content: '';
    opacity: .08;
    pointer-events: none;
}

.emergencia-intro-cards::before {
    top: -220px;
    left: -160px;
    width: 360px;
    height: 360px;
}

.emergencia-intro-cards::after {
    right: -230px;
    bottom: -280px;
    width: 430px;
    height: 430px;
}

.emergencia-intro-card {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    width: 50%;
    box-sizing: border-box;
    padding: 30px 36px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(10, 30, 75, .22);
}

.emergencia-intro-card h2 {
    margin: 0 0 18px;
    color: #333;
    font-size: 1.25rem;
    font-weight: 500;
}

.emergencia-intro-card p {
    margin: 0 0 18px;
    color: #404040;
    font-size: 1.08rem;
    line-height: 1.48;
}

.emergencia-intro-card p:last-child {
    margin-bottom: 0;
}

.emergencia-card-alert {
    display: inline-block;
    margin-bottom: 16px;
    padding: 7px 14px;
    border-radius: 4px;
    background: #c83225;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .25px;
    text-transform: uppercase;
}

.emergencia-card-alert::before {
    content: '⚠ ';
}

/* =========================================================
   Contenedor y secciones del formulario
   ========================================================= */

.emergencia-form-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.emergencia-info-box {
    margin-bottom: 30px;
    padding: 20px 26px;
    border: 1px solid #c7d7ea;
    border-left: 5px solid #1f5f8b;
    border-radius: 12px;
    background: #eef4ff;
}

.emergencia-info-box p {
    margin: 0 0 8px;
    color: #1f3c5a;
    font-size: .95rem;
    line-height: 1.6;
}

.emergencia-info-box p:last-child {
    margin-bottom: 0;
}

.emergencia-info-box strong {
    color: #154063;
}

.emergencia-panel {
    padding: 32px 36px;
    border: 1px solid #d9e2ec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 60, 90, .08);
}

.emergencia-section {
    margin-bottom: 34px;
}

.emergencia-section:last-of-type {
    margin-bottom: 0;
}

.emergencia-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 6px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef4ff;
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 700;
}

.num-badge,
.emergencia-section-title .num-badge {
    display: inline-flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #1f5f8b;
    color: #fff;
    font-size: .9rem;
}

.emergencia-note {
    margin: 12px 0 20px;
    padding: 12px 16px;
    border: 1px solid #f2e0a8;
    border-radius: 10px;
    background: #fff8e1;
    color: #5a6b7b;
    font-size: .85rem;
    line-height: 1.55;
}

.emergencia-note strong {
    color: #e74c3c;
}

.emergencia-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.emergencia-field {
    margin-bottom: 20px;
}

.emergencia-field-inline {
    margin-bottom: 0;
}

.emergencia-field label {
    display: block;
    margin-bottom: 7px;
    color: #1f3c5a;
    font-size: .9rem;
    font-weight: 700;
}

.emergencia-field .req {
    color: #e74c3c;
}

.emergencia-field .optional {
    color: #5a6b7b;
    font-weight: 400;
}

.emergencia-field input[type='text'],
.emergencia-field input[type='email'],
.emergencia-field input[type='date'],
.emergencia-field input[type='time'],
.emergencia-field select,
.emergencia-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 1px solid #c7d7ea;
    border-radius: 10px;
    background: #fbfcfe;
    color: #2c3e50;
    font-family: inherit;
    font-size: .92rem;
}

.emergencia-field textarea {
    min-height: 100px;
    resize: vertical;
}

.emergencia-field input:focus,
.emergencia-field select:focus,
.emergencia-field textarea:focus {
    outline: none;
    border-color: #1f5f8b;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(31, 95, 139, .14);
}

.emergencia-helper {
    margin-top: 5px;
    color: #8a97a8;
    font-size: .78rem;
}

/* =========================================================
   Reporte ante otras entidades
   ========================================================= */

.emergencia-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 6px;
}

.emergencia-radio-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: 1px solid #c7d7ea;
    border-radius: 999px;
    background: #eef4ff;
    color: #1f3c5a;
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
}

.emergencia-radio-pill:hover {
    background: #dce8fb;
}

.emergencia-radio-pill.checked {
    border-color: #1f5f8b;
    background: #1f5f8b;
    color: #fff;
}

.emergencia-radio-pill input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #1f5f8b;
}

.emergencia-entidades-container {
    display: none;
    margin-top: 20px;
}

.emergencia-entidades-container.is-visible {
    display: block;
}

.emergencia-entidad-row {
    display: grid;
    grid-template-columns: 190px 1fr 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px dashed #d9e2ec;
}

.emergencia-entidad-row:last-child {
    border-bottom: 0;
}

.emergencia-entidad-row .checkbox-label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #2c3e50;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
}

.emergencia-entidad-row input[type='checkbox'] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #1f5f8b;
}

.emergencia-entidad-row input[type='text'] {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 1px solid #c7d7ea;
    border-radius: 10px;
    background: #fbfcfe;
    color: #2c3e50;
    font-family: inherit;
    font-size: .92rem;
}

.emergencia-entidad-row input[type='text']:disabled {
    border-color: #d4dce5;
    background: #f4f6f8;
    color: #8a97a8;
    cursor: not-allowed;
    opacity: 1;
}

/* =========================================================
   Evidencias, términos y mensajes
   ========================================================= */

.emergencia-upload {
    display: block;
    padding: 32px;
    border: 2px dashed #c7d7ea;
    border-radius: 16px;
    background: #fbfcfe;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.emergencia-upload:hover {
    border-color: #1f5f8b;
    background: #eef4ff;
}

.emergencia-upload .upload-icon {
    margin-bottom: 8px;
    color: #1f5f8b;
    font-size: 2rem;
}

.emergencia-upload p {
    margin: 4px 0;
    color: #2c3e50;
    font-size: .92rem;
}

.emergencia-upload .upload-hint {
    color: #8a97a8;
    font-size: .78rem;
}

.emergencia-upload input[type='file'] {
    display: none;
}

.emergencia-file-list {
    margin-top: 14px;
    color: #1f3c5a;
    font-size: .85rem;
    text-align: left;
}

.emergencia-file-list div {
    padding: 5px 0;
}

.emergencia-legal {
    margin: 32px 0;
    padding: 24px 28px;
    border: 1px solid #f3c1bd;
    border-top: 5px solid #e74c3c;
    border-radius: 16px;
    background: #fdecec;
}

.emergencia-legal h4 {
    margin: 0 0 12px;
    color: #c0392b;
    font-size: 1.05rem;
}

.emergencia-legal p {
    margin: 0 0 10px;
    color: #7d3a36;
    font-size: .85rem;
    line-height: 1.7;
}

.emergencia-legal p:last-child {
    margin-bottom: 0;
}

.emergencia-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 28px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #eef4ff;
}

.emergencia-consent input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #1f5f8b;
}

.emergencia-consent label {
    color: #333;
    font-size: .85rem;
    line-height: 1.6;
}

.emergencia-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 12px;
}

.emergencia-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 30px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s ease;
}

.emergencia-btn-secondary {
    border-color: #1f5f8b;
    background: rgba(31, 95, 139, .08);
    color: #1f5f8b;
}

.emergencia-btn-secondary:hover {
    background: rgba(31, 95, 139, .16);
}

.emergencia-btn-primary {
    border-color: #e74c3c;
    background: #e74c3c;
    color: #fff;
}

.emergencia-btn-primary:hover {
    border-color: #c0392b;
    background: #c0392b;
}

.emergencia-btn-primary:disabled {
    cursor: not-allowed;
    opacity: .6;
}

.emergencia-error {
    display: none;
    margin-top: 20px;
    padding: 14px 18px;
    border: 1px solid #f3c1bd;
    border-radius: 10px;
    background: #fdecec;
    color: #c0392b;
    font-size: .88rem;
    line-height: 1.5;
}

.emergencia-error.show {
    display: block;
}

.emergencia-radicado {
    display: none;
    margin-top: 24px;
    padding: 26px;
    border: 1px solid #b6e3c2;
    border-top: 5px solid #2ecc71;
    border-radius: 16px;
    background: #eafaf1;
    text-align: center;
}

.emergencia-radicado.show {
    display: block;
}

.emergencia-radicado h3 {
    margin: 0 0 8px;
    color: #1c7c3c;
}

.emergencia-radicado .code {
    margin: 10px 0;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

/* =========================================================
   Diseño adaptable
   ========================================================= */

@media (max-width: 768px) {
    .emergencia-intro-header {
        padding: 0 20px;
    }

    .emergencia-intro-header h1 {
        font-size: 2.2rem;
    }

    .emergencia-intro-header > p,
    .emergencia-intro-card p {
        font-size: 1rem;
    }

    .emergencia-intro-header .emergencia-principios {
        margin-top: 20px;
        padding: 18px 16px;
    }

    .principio-badge {
        font-size: .82rem;
    }

    .emergencia-intro-cards,
    .radar-cards {
        flex-direction: column;
        padding: 30px 20px;
    }

    .emergencia-intro-card {
        width: 100%;
        padding: 24px 20px;
    }

    .emergencia-form-wrapper {
        padding: 0 14px 32px;
    }

    .emergencia-panel {
        padding: 24px 18px;
    }

    .emergencia-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .emergencia-entidad-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .emergencia-actions {
        justify-content: stretch;
    }

    .emergencia-btn {
        flex: 1 1 100%;
    }
}
