/* Variables y Estilos Generales */
:root {
    --primary-color: #135923;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --item-color-bg: #bad1ba;
    --text-color-light: #f8f9fa;
    --text-color-dark: #135923;
    --navbar-bg: rgba(51, 51, 51, 0.6);
    --link-color: #135923;
    --hover-color: #24ab44;
    --font-family: "Baloo Tammudu 2", monospace;
}

/* Estilos generales para el texto del estado */
.estado-nuevo,
.estado-proceso,
.estado-resuelto,
.estado-error {
    font-weight: bold; /* Hace que el texto del estado sea más visible */
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block; /* Asegura que el color de fondo solo ocupe el espacio del texto */
}

/* 1. Estado: NUEVO (Similar a naranja/amarillo) */
.estado-nuevo {
    color: #ff9800; /* Naranja fuerte para indicar que está pendiente */
    background-color: #fff3e0;
    border: 1px solid #ff9800;
}

/* 2. Estado: EN PROCESO (Similar a azul/info) */
.estado-proceso {
    color: #2196f3; /* Azul para indicar que se está trabajando en ello */
    background-color: #e3f2fd;
    border: 1px solid #2196f3;
}

/* 3. Estado: RESUELTO (Similar a verde/éxito) */
.estado-resuelto {
    color: #4caf50; /* Verde para indicar que la acción ha finalizado */
    background-color: #e8f5e9;
    border: 1px solid #4caf50;
}

/* 4. Estado: Por defecto/ERROR (Similar a rojo) */
.estado-error {
    color: #f44336; /* Rojo para indicar un estado no esperado o error */
    background-color: #ffebee;
    border: 1px solid #f44336;
}


/* --- Estilos del Nuevo Diseño --- */
.header {
    background: rgba(255, 255, 255, 0.8); 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.header-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body {
    font-family: var(--font-family), sans-serif;
    line-height: 1.6;
    color: #333;

    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), /* Capa negra semi-transparente */
        url('../img/banner.png'); /* La imagen de fondo real */
    background-size: cover; 
    background-attachment: fixed; 
    background-position: center center; 
    background-repeat: no-repeat; 
    /* El valor de margin-top debe ser igual a la altura total de las barras (top-bar + header) */
    padding-top: 100px; 
}
/* Ajuste para las secciones de contenido */
section {
    background: rgba(255, 255, 255, 0.9); /* Fondo blanco semitransparente para contenido */
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}



.top-bar {
    background-color: #1b517b; 
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    color: #fff;
    font-size: 1rem;
    padding: 5px 0;
    text-align: left;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1001; 
    overflow: hidden; 
    
}
.top-bar span {
    display: inline-block; 
    padding-right: 20%; 
    width: 110vw;
    animation: scroll-text 20s linear infinite; 
}
.top-bar a {
    color: #fff; 
    text-decoration: none; 
    font-weight: bold;
}

.top-bar a:hover {
    text-decoration: underline; /* Añade un subrayado al pasar el cursor */
}

/* Estilos para la barra de navegación fija */
.fixed-nav {
    position: fixed; 
    top: 30px; 
    left: 0;
    width: 100%;
    z-index: 1000; /* Asegura que esté por encima del contenido */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: top 0.3s ease;
}

.logo img {
    height: 60px; /* Ajusta el tamaño de tu logotipo */
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    text-decoration: none;
    color: var(--link-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--hover-color);
}

/* Sección de la imagen de portada (Hero Section) */
.hero-section {

    position: relative;

    background-color: transparent;
    color: var(--light-color);
    height: 400px; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 20px;

    overflow: hidden;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}
.hero-content {
    position: relative; 
    z-index: 2; 
}
.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--light-color);
}

.btn-principal {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

.btn-secundario {
    background: var(--item-color-bg);
    border: 2px solid var(--primary-color);
    color: var(--light-color);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    margin: 0 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-principal:hover {
    background: var(--hover-color);
}

.btn-secundario:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

/* Estilos para el contenido principal */
.container {
    max-width: 960px;
    margin: auto;
    padding: 20px;
}

.content-section {
    margin-top: 40px;
}

.content-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 30px;
}

/* Estilos de la sección "Cómo Funciona" */
.pasos-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: nowrap;
    gap: 20px;
    text-align: center;
    align-items: stretch;
}

.paso {
    flex-basis: 30%;
    padding: 20px;
    background: var(--item-color-bg);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
}

.paso img {
    height: 80px;
    margin-bottom: 15px;
    border-radius: 10px;
}

.paso h3, p {
    color: var(--primary-color);
}

/* Estilos de la sección FAQ con acordeón */
.faq-acordeon details {
    background: var(--light-color);
    margin-bottom: 10px;
    border-radius: 5px;
    padding: 15px;
    cursor: pointer;
}

.faq-acordeon summary {
    font-weight: bold;
    color: var(--primary-color);
}

.faq-acordeon p {
    margin-top: 10px;
    padding-left: 20px;
}


/* Ajuste para el contenedor principal de los formularios (reportar.php, seguimiento.php) */
.main-form {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95); 
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Estilos de sección */
.seccion-formulario {
    padding: 20px 30px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

/* Estilo del formulario */
form {
    display: flex;
    flex-direction: column;
}

/* Estilo de las etiquetas de los campos */
label {
    font-weight: 700;
    color: #444;
    margin-top: 15px;
    margin-bottom: 5px;
    display: block;
}

/* Estilo de los campos de texto, select y textarea */
input[type="text"],
input[type="email"],
input[type="date"],
input[type="tel"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Estilo de enfoque para los campos */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color); 
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

/* Estilo para el botón de envío */
.btn-submit {
    background: var(--primary-color);
    color: var(--light-color);
    font-weight: bold;
    font-size: 1.1rem;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 25px;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background: var(--hover-color);
}

/* Estilo para el botón de aceptar la política de privacidad */
.btn-aceptar {
    background: var(--primary-color);
    color: var(--light-color);
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.btn-aceptar:hover {
    background: var(--hover-color);
}

/* -------------------------------------- */
/* KEYFRAMES PARA EL DESPLAZAMIENTO       */
/* -------------------------------------- */
@keyframes scroll-text {
    /* Mueve el texto a la derecha (fuera de la vista) */
    0% {
        transform: translateX(-100%);
    }
    /* Mueve el texto a la izquierda (fuera de la vista) */
    100% {
        transform: translateX(100%);
    }
}

/* ========================================================= */
/* ESTILOS ESPECÍFICOS PARA EL PANEL DE ADMINISTRACIÓN (ADMIN_DASHBOARD) */
/* ========================================================= */

/* Layout principal para dos columnas */
.admin-layout { 
    display: flex; 
    max-width: 1400px; 
    margin: 20px auto; 
    padding: 0 20px; /* Asegura un pequeño margen en los bordes de la ventana */
    
}

/* Panel lateral para la lista de reportes (Sidebar) */
.sidebar { 
    width: 300px; 
    padding: 20px; 
    border-right: 1px solid #ddd; 
    max-height: 80vh; 
    overflow-y: auto; 
    background-color: #ffffff; 
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
    flex-shrink: 0; 
}

/* Contenedor de la Descripción de los Hechos (dentro del Detalle) */
.reporte-info-card div[style*="white-space: pre-wrap"] { 
    /* Permite el corte de palabras largas para evitar que se desborde el contenedor */
    word-break: break-word; 
    overflow-wrap: break-word;
    /* Establece un ancho máximo si el contenedor principal lo permite, 
       pero 'word-break' es lo más efectivo aquí. */
}

/* Panel de contenido principal (detalle del reporte) */
.content { 
    flex-grow: 1; 
    padding: 30px; 
    
    background-color: #ffffff; 
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
    margin-left: 20px; 
    max-width: calc(100% - 340px);
}

/* Encabezados y títulos */
.admin-layout h3 {
    color: #355e3b; /* Azul oscuro del header */
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}
.admin-layout h4 {
    color: #355e3b; /* Verde oscuro consistente */
    margin-top: 20px;
}

/* --- Estilo de la Tabla (Report List) --- */
.report-list table { 
    width: 100%; 
    border-collapse: collapse; 
    font-size: 0.9em; 
    margin-bottom: 20px;
}

.report-list th, .report-list td { 
    padding: 10px; 
    border-bottom: 1px solid var(--primary-color); 
    text-align: left; 
}

.report-list th {
    background-color: #f5f5f5; /* Fondo gris muy claro para los encabezados */
    color: #555;
    font-weight: 700;
    text-transform: uppercase;
}

/* Estilo al pasar el cursor (verde claro pálido) */
.report-list tr:hover { 
    background-color: #f0fff0; 
    cursor: pointer; 
}

/* Estilo para las acciones individuales (Histórico) */
.accion-historico { 
    background: #f0fff0; /* Fondo verde claro pálido para el historial */
    padding: 15px; 
    border-radius: 5px; 
    margin-bottom: 10px; 
    border-left: 5px solid #355e3b; /* Barra vertical verde oscuro */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    word-wrap: break-word; 
    word-break: break-word; 
    max-width: 80%;
}

/* Contenedores de Acciones Históricas */
.accion-historico p {
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 30ch;
    text-align: justify;
}
