/* ===================================
   ESTILOS FINALES - MODALES TITULAR Y AUTORIDAD
   Modal de Detalle + Modales de Acciones
   VERSIÓN ACTUALIZADA CON BOTONES SIN FONDO
   nombre del css: static/css/style_modal_ver.css
   ================================== */

/* MODAL BASE */
.denuncias-modal-detalle {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease-out;
    overflow: hidden;
}

.denuncias-modal-detalle .denuncias-modal-content-large {
    max-width: 80vw !important;
    width: 80% !important;
    max-height: 90vh !important;
    padding: 0 !important;
    border-radius: 8px !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: white;
}

.denuncias-modal-detalle .denuncias-modal-body {
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ===================================
   CONTENEDOR COMPLETO
   ================================== */
.detalle-contenedor-completo {
    display: flex;
    flex-direction: column;
    background: white;
    height: 100%;
    overflow: hidden;
}

/* ===================================
   HEADER VERDE
   ================================== */
.detalle-header-completo {
    background: var(--color-dark);
    padding: 1rem;
    text-align: center;
    color: white;
    flex-shrink: 0;
    border-radius: 8px 8px 0 0;
}

.detalle-titulo-principal {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.2rem 0;
    letter-spacing: 0.5px;
}

.detalle-subtitulo-principal {
    font-size: 0.8rem;
    margin: 0;
    opacity: 1;
    font-weight: 400;
}

/* ===================================
   CONTENIDO CON SCROLL
   ================================== */
.detalle-scroll-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    padding: 1rem;
    padding-bottom: 0;
}

.detalle-contenido-scroll {
    flex: 1;
    padding: 1rem;
}

/* ===================================
   SECCIONES - TÍTULOS GRISES
   ================================== */
.detalle-seccion-box {
    background: #dee2e6;
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.detalle-titulo-gris {
    background: #d5dce2;
    color: #2d6a5a;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.65rem 1rem;
    margin: 0;
    text-align: center;
    border-bottom: none;
}

/* ===================================
   CAMPOS DENTRO DE SECCIONES
   ================================== */
.detalle-campos-wrapper {
    padding: 1rem 0;
    background: #f8f9fa;
}

.detalle-item {
    display: block;
    margin-bottom: 0.75rem;
}

.detalle-item:last-child {
    margin-bottom: 0;
}

.detalle-etiqueta {
    display: inline-block;
    color: #2d6a5a;
    font-size: 0.75rem;
    font-weight: 700;
}

.detalle-valor {
    display: inline;
    color: #2d3748;
    font-size: 0.8rem;
}

/* ===================================
   BADGE DE ESTADO
   ================================== */
.detalle-pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid;
}

.detalle-pill.denuncias-badge-presentada {
    background: var(--color-presentada);
    color: var(--color-presentada-text);
    border-color: var(--color-presentada-border);
}

.detalle-pill.denuncias-badge-turnada {
    background: var(--color-turnada);
    color: var(--color-turnada-text);
    border-color: var(--color-turnada-border);
}

.detalle-pill.denuncias-badge-actualizada {
    background: var(--color-actualizada);
    color: var(--color-actualizada-text);
    border-color: var(--color-actualizada-border);
}

.detalle-pill.denuncias-badge-sin-respuesta {
    background: var(--color-sin-respuesta);
    color: var(--color-sin-respuesta-text);
    border-color: var(--color-sin-respuesta-border);
}

.detalle-pill.denuncias-badge-incompetente {
    background: var(--color-incompetente);
    color: var(--color-incompetente-text);
    border-color: var(--color-incompetente-border);
}

.detalle-pill.denuncias-badge-finalizada {
    background: var(--color-finalizada);
    color: var(--color-finalizada-text);
    border-color: var(--color-finalizada-border);
}

.detalle-pill.denuncias-badge-prevenida {
    background: var(--color-prevenida);
    color: var(--color-prevenida-text);
    border-color: var(--color-prevenida-border);
}

/* ===================================
   PÁRRAFOS Y LISTAS
   ================================== */
.detalle-parrafo p {
    color: #495057;
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    text-align: justify;
}

/* Narración de hechos: respeta saltos de línea capturados en el textarea */
.detalle-parrafo-multilinea p {
    white-space: pre-line;
}

.detalle-parrafo p:last-child {
    margin-bottom: 0;
}

.detalle-parrafo strong {
    color: #2d6a5a;
    font-weight: 700;
}

.detalle-subseccion-titulo {
    color: #2d6a5a;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.detalle-lista-puntos {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detalle-lista-puntos li {
    color: #495057;
    font-size: 0.8rem;
    line-height: 1.5;
    padding: 0.3rem 0 0.3rem 1.2rem;
    position: relative;
}

.detalle-lista-puntos li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2d3748;
    font-weight: bold;
}

.detalle-falta-tipo {
    color: #6c757d;
    font-size: 0.75rem;
    font-style: italic;
}

/* ===================================
   SECCIÓN DE ARCHIVOS
   ================================== */
.detalle-seccion-archivos {
    margin-bottom: 0;
}

.detalle-titulo-archivos-header {
    background: #f8f9fa;
    color: #2d6a5a;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.75rem 0.1rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================================
   PESTAÑAS
   ================================== */
.detalle-pestanas-archivos {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #dee2e6;
    background: white;
}

.detalle-pestana {
    flex: 1;
    background: #f8f9fa;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.6rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.detalle-pestana:hover {
    background: #f8f9fa;
    color: #495057;
}

.detalle-pestana.active {
    color: #2d6a5a;
    border-bottom-color: #2d6a5a;
    background: #2d6a5a43;
}

/* ===================================
   CONTENEDOR Y FILA DE ARCHIVO
   ================================== */
.detalle-contenedor-archivos {
    padding: 1rem 0;
    background: #f8f9fa;
    min-height: 100px;
}

.detalle-fila-archivo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.detalle-fila-archivo:last-child {
    margin-bottom: 0;
}

.detalle-fila-archivo:hover {
    background: #e9ecef;
}

.detalle-fila-archivo.hidden {
    display: none !important;
}

/* ===================================
   ICONOS DE TIPO
   ================================== */
.detalle-icono-tipo {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    flex-shrink: 0;
}

.detalle-icono-tipo.pdf {
    background: #2d5f4f;
    color: white;
}

.detalle-icono-tipo.jpg,
.detalle-icono-tipo.jpeg,
.detalle-icono-tipo.png {
    background: #2d5f4f;
    color: white;
}

.detalle-icono-tipo.doc,
.detalle-icono-tipo.docx {
    background: #2d5f4f;
    color: white;
}

/* ===================================
   INFO Y ACCIONES DE ARCHIVO
   ================================== */
.detalle-info-archivo {
    flex: 1;
    min-width: 0;
}

.detalle-nombre-archivo {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detalle-fecha-archivo {
    font-size: 0.7rem;
    color: #6c757d;
}

.detalle-acciones-archivo {
    display: flex;
    gap: 0.4rem;
}

.detalle-btn-circular {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.detalle-btn-ver {
    color: #187257;
    background: none;
    border: none;
    padding: 10px 26px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 18px;
}

.detalle-btn-ver:hover {
    color: var(--color-primary-dark);
    background: var(--color-primary-alpha);
}

/* ===================================
   BOTONES DE ACCIÓN - LAYOUTS
   ================================== */
.detalle-zona-botones {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.detalle-zona-botones.layout-titular {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto auto;
}

.detalle-zona-botones.layout-autoridad-turnada {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
}

.detalle-zona-botones.layout-autoridad-iniciada {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto auto;
}

.detalle-zona-botones.layout-titular-limitado {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
}

.detalle-zona-botones.layout-titular-prevenida {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
}

.detalle-zona-botones.layout-titular-finalizada {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
}

.detalle-boton-accion {
    padding: 0.6rem 0.8rem;
    border: none;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s;
    white-space: nowrap;
    text-align: center;
    min-height: 38px;
}

.detalle-boton-accion i {
    font-size: 0.9rem;
}

/* ===================================
   COLORES DE BOTONES - TITULAR
   ================================== */
.detalle-boton-morado {
    background: #8D74BD;
    color: white;
}

.detalle-boton-morado:hover {
    background: #6a5493;
}

.detalle-boton-verde-turnar {
    background: #8BBF89;
    color: white;
}

.detalle-boton-verde-turnar:hover {
    background: #75a274;
}

.detalle-boton-cyan {
    background: #46B6D2;
    color: white;
}

.detalle-boton-cyan:hover {
    background: rgb(48, 121, 130);
}

.detalle-boton-rojo-rechazar {
    background: #E25A5A;
    color: white;
}

.detalle-boton-rojo-rechazar:hover {
    background: rgb(166, 58, 58);
}

/* ── Botón Solicitar Actualización (sin-respuesta palette) ── */
.detalle-boton-naranja-notificar {
    background-color: var(--color-sin-respuesta-text);
    color: white;
}
.detalle-boton-naranja-notificar:hover:not(:disabled) {
    background-color: #8f4707;
}

.detalle-boton-naranja-notificar:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}

.detalle-boton-naranja-notificar:disabled {
    opacity:        0.5;
    cursor:         not-allowed;
    pointer-events: none;
}

/* ===================================
   COLORES DE BOTONES - AUTORIDAD
   ================================== */
.detalle-boton-cyan-iniciar {
    background: #4db8c4;
    color: white;
}

.detalle-boton-cyan-iniciar:hover {
    background: #3d9ca6;
}

.detalle-boton-rojo-incompetente {
    background: #e66565;
    color: white;
}

.detalle-boton-rojo-incompetente:hover {
    background: #d14545;
}

.detalle-boton-morado-adjuntar {
    background: #8D74BD;
    color: white;
}

.detalle-boton-morado-adjuntar:hover {
    background: #6a5493;
}

.detalle-boton-verde-resolver {
    background: #52c17a;
    color: white;
}

.detalle-boton-verde-resolver:hover {
    background: #42a665;
}

.detalle-boton-cyan-cambiar-fase {
    background: #4db8c4;
    color: white;
}

.detalle-boton-cyan-cambiar-fase:hover {
    background: #3d9ca6;
}

.detalle-boton-azul-tipo {
    background: #5b7fc7;
    color: white;
}

.detalle-boton-azul-tipo:hover {
    background: #4a6ba8;
}

.detalle-boton-verde-pdf {
    background: #4F886D;
    color: white;
}

.detalle-boton-verde-pdf:hover {
    background: rgb(48, 105, 81);
}

.detalle-boton-replicar {
    background: #E8A838;
    color: white;
}

.detalle-boton-replicar:hover {
    background: #c98d2a;
}

.detalle-boton-cerrar {
    grid-column: 1 / -1;
    background: white;
    color: #4F886D;
    border: 1px solid #6c757d;
    padding: 0.7rem;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.detalle-boton-cerrar:hover {
    background: #cfd1d2;
    color: #4F886D;
}

/* ===================================
   MODALES DE ACCIÓN
   ================================== */
.modal-accion {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.modal-accion-content {
    background: white;
    border-radius: 8px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-accion-header,
.modal-accion-header-verde {
    background: #3d8c5a;
    color: white;
    padding: 1rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
}

.modal-accion-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.modal-accion-descripcion {
    color: #4a6378;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-campo,
.modal-campo-obligatorio {
    margin-bottom: 1.5rem;
}

.modal-campo-label {
    display: block;
    color: #2d3748;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.campo-obligatorio-asterisco {
    color: #e74c3c;
    font-weight: 700;
    margin-left: 0.2rem;
}

.modal-campo-select,
.modal-campo-textarea,
.modal-campo-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: inherit;
    background: #f7fafc;
}

.modal-campo-select:focus,
.modal-campo-textarea:focus,
.modal-campo-input:focus {
    outline: none;
    border-color: #3d8c5a;
    background: white;
}

.modal-campo-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Zona de carga de archivos */
.modal-zona-carga {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: #f7fafc;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-zona-carga:hover {
    border-color: #3d8c5a;
    background: #edf7f2;
}

.modal-zona-carga-icono {
    width: 60px;
    height: 60px;
    background: #3d8c5a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.modal-zona-carga-icono i {
    font-size: 1.5rem;
    color: white;
}

.modal-zona-carga-texto {
    color: #4a6378;
    font-size: 0.85rem;
    margin: 0;
}

.modal-input-archivo {
    display: none;
}

/* ===================================
   LISTA DE ARCHIVOS EN MODALES
   ESTILOS ACTUALIZADOS - BOTONES SIN FONDO
   ================================== */
.modal-lista-archivos {
    margin-top: 1rem;
}

.modal-archivo-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f1f3f5;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.modal-archivo-item:hover {
    background: #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.modal-archivo-icono {
    width: 40px;
    height: 40px;
    background: #2d5f4f;
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    flex-shrink: 0;
}

.modal-archivo-info {
    flex: 1;
    min-width: 0;
}

.modal-archivo-nombre {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2d3748;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-archivo-tamano {
    font-size: 0.7rem;
    color: #6c757d;
}

.modal-archivo-acciones {
    display: flex;
    gap: 0.5rem;
}

/* ===================================
   BOTONES VER Y ELIMINAR - SIN FONDO
   ICONOS DE COLORES
   ================================== */
.modal-btn-ver-archivo,
.modal-archivo-ver,
.modal-btn-eliminar-archivo,
.modal-archivo-eliminar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 18px;
}

/* Botón VER - Icono VERDE */
.modal-btn-ver-archivo,
.modal-archivo-ver {
    color: #187257 !important;
}

.modal-btn-ver-archivo:hover,
.modal-archivo-ver:hover {
    color: #145c46 !important;
    background: var(--color-primary-alpha) !important;
}

/* Botón ELIMINAR - Icono ROJO */
.modal-btn-eliminar-archivo,
.modal-archivo-eliminar {
    color: #dc3545 !important;
}

.modal-btn-eliminar-archivo:hover,
.modal-archivo-eliminar:hover {
    color: #c82333 !important;
    background: rgba(220, 53, 69, 0.1) !important;
}

/* Botón agregar más archivos */
.modal-btn-agregar-mas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: transparent;
    border: 2px dashed #6c757d;
    border-radius: 8px;
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.modal-btn-agregar-mas:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    background: var(--color-primary-alpha);
}

/* Botones del modal */
.modal-accion-botones {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 1.5rem;
    border-top: 1px solid #dee2e6;
    background: #f8f9fa;
}

.modal-btn {
    padding: 0.7rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn-cancelar {
    background: #cbd5e0;
    color: #4a5568;
}

.modal-btn-cancelar:hover {
    background: #a0aec0;
}

.modal-btn-confirmar,
.modal-btn-confirmar-verde {
    background: #3d8c5a;
    color: white;
}

.modal-btn-confirmar:hover,
.modal-btn-confirmar-verde:hover {
    background: #2d6b44;
}

.modal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    background: #e9ecef !important;
    color: #6c757d !important;
}

.modal-btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* ===================================
   MODAL DE CONFIRMACIÓN
   ================================== */
.modal-confirmacion,
.modal-confirmacion-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(4px);
}

.modal-confirmacion-content,
.modal-confirmacion-box {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.modal-confirmacion-icono-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.modal-confirmacion-icono-circulo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.4s ease-out;
}

.modal-confirmacion-icono-circulo i {
    font-size: 40px;
    color: white;
}

.modal-confirmacion-icono-warning {
    background: #e66565;
}

.modal-confirmacion-icono-success {
    background: #3d8c5a;
}

.modal-confirmacion-titulo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 1rem 0;
}

.modal-confirmacion-descripcion {
    text-align: center;
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-confirmacion-botones {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-confirmacion-btn {
    padding: 0.7rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 130px;
}

.modal-confirmacion-btn-secundario {
    background: #cbd5e0;
    color: #4a5568;
}

.modal-confirmacion-btn-secundario:hover {
    background: #a0aec0;
}

.modal-confirmacion-btn-primario {
    background: #3d8c5a;
    color: white;
}

.modal-confirmacion-btn-primario:hover {
    background: #2d6b44;
}

.modal-confirmacion-btn-peligro {
    background: #e66565;
    color: white;
}

.modal-confirmacion-btn-peligro:hover {
    background: #d14545;
}

.modal-confirmacion-btn-unico {
    min-width: 180px;
}

/* ===================================
   MODAL VISTA PREVIA
   ================================== */
.modal-vista-previa {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 12000;
    animation: fadeIn 0.2s ease-out;
}

.modal-vista-previa-content {
    background: white;
    border-radius: 8px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-vista-previa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}

.modal-vista-previa-titulo {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
}

.modal-vista-previa-cerrar {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-vista-previa-cerrar:hover {
    background: #e9ecef;
}

.modal-vista-previa-body {
    padding: 20px;
    overflow: auto;
    flex: 1;
}

.modal-vista-previa-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ===================================
   SCROLLBAR PERSONALIZADO
   ================================== */
.detalle-scroll-wrapper::-webkit-scrollbar,
.modal-accion-body::-webkit-scrollbar {
    width: 8px;
}

.detalle-scroll-wrapper::-webkit-scrollbar-track,
.modal-accion-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.detalle-scroll-wrapper::-webkit-scrollbar-thumb,
.modal-accion-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.detalle-scroll-wrapper::-webkit-scrollbar-thumb:hover,
.modal-accion-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ===================================
   RESPONSIVE
   ================================== */
@media (max-width: 768px) {
    .denuncias-modal-detalle .denuncias-modal-content-large {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        height: 100vh !important;
        max-height: 100vh !important;
    }
    
    .modal-accion-content {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .detalle-zona-botones {
        grid-template-columns: 1fr !important;
        padding: 0.75rem;
    }
    
    .detalle-zona-botones.layout-titular-limitado,
    .detalle-zona-botones.layout-titular-prevenida,
    .detalle-zona-botones.layout-titular-finalizada {
        grid-template-columns: 1fr !important;
    }
}

/* ===================================
   ANIMACIONES
   ================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}