:root {
    --zeus-primary: #125e63;
    --zeus-primary-dark: #083f46;
    --zeus-primary-soft: #ddebee;
    --zeus-accent: #f2a541;
    --zeus-accent-soft: #fff2dc;
    --zeus-bg: #f5f7f4;
    --zeus-surface: #ffffff;
    --zeus-muted: #58666a;
    --zeus-text: #172026;
    --zeus-border: #d7e0da;
    --zeus-success-soft: #e0f2e8;
    --zeus-success: #2e7d55;
}

* {
    box-sizing: border-box;
}

.zeus-page {
    background: var(--zeus-bg) !important;
    color: var(--zeus-text) !important;
    letter-spacing: 0;
}

.zeus-header {
    max-width: 1120px;
    margin: 22px auto 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(135deg, var(--zeus-primary-dark), var(--zeus-primary)) !important;
    box-shadow: 0 12px 28px rgba(8, 63, 70, 0.16) !important;
}

.zeus-header .container {
    max-width: 1010px;
    gap: 18px;
    padding-left: 8px;
    padding-right: 8px;
}

.zeus-header h1 {
    font-size: clamp(1.35rem, 2.2vw, 2rem) !important;
    line-height: 1.1;
}

.zeus-eyebrow {
    display: inline-block;
    margin: 0 0 8px;
    padding: 5px 9px;
    border-radius: 8px;
    background: var(--zeus-success-soft);
    color: var(--zeus-primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
}

.zeus-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 5px 10px 5px 5px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
}

.zeus-brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    background: #ffffff;
}

.zeus-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.zeus-nav a,
.zeus-nav button,
.zeus-header a {
    margin-left: 0 !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.09);
}

.zeus-nav a:hover,
.zeus-nav button:hover,
.zeus-header a:hover {
    background: rgba(255, 255, 255, 0.18) !important;
}

#header-donate-button {
    background: var(--zeus-accent-soft) !important;
    color: var(--zeus-text) !important;
}

.zeus-hero {
    max-width: 760px;
    margin: 28px auto 0;
    padding: 26px 30px;
    text-align: center;
}

.zeus-hero-compact {
    max-width: 720px;
    padding-bottom: 18px;
}

.zeus-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    padding: 6px 11px;
    border-radius: 8px;
    border: 1px solid var(--zeus-success);
    background: var(--zeus-success-soft);
    color: var(--zeus-primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
}

.zeus-hero h2 {
    max-width: 620px;
    margin: 0 auto;
    color: var(--zeus-text);
    font-size: clamp(1.75rem, 4vw, 2.65rem);
    line-height: 1.08;
    font-weight: 800;
}

.zeus-hero p {
    max-width: 640px;
    margin: 12px auto 0;
    color: var(--zeus-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.zeus-main {
    max-width: 1080px !important;
    padding: 28px 28px 10px !important;
}

.zeus-policy-main {
    max-width: 860px !important;
}

.zeus-map-main {
    max-width: 1120px !important;
}

.zeus-section-title {
    text-align: center;
    color: var(--zeus-text);
    font-weight: 800;
}

.bg-white {
    background: var(--zeus-surface) !important;
}

.rounded-lg,
.rounded-xl,
.rounded-md {
    border-radius: 8px !important;
}

.shadow-md,
.shadow-2xl {
    box-shadow: 0 10px 24px rgba(23, 32, 38, 0.08) !important;
}

.bg-white.p-6,
.bg-white.p-8,
#filters-section,
#map-container,
[data-ad-slot] {
    border: 1px solid var(--zeus-border);
}

.text-blue-600,
.text-blue-400,
.text-green-600 {
    color: var(--zeus-primary) !important;
}

.text-gray-600,
.text-gray-700 {
    color: var(--zeus-muted) !important;
}

button,
.zeus-page a,
select,
input,
#chart-state-filter-display {
    border-radius: 8px !important;
}

.bg-blue-600,
.bg-green-500 {
    background: var(--zeus-primary) !important;
}

.bg-blue-600:hover,
.bg-green-500:hover {
    background: var(--zeus-primary-dark) !important;
}

.bg-gray-500 {
    background: var(--zeus-muted) !important;
}

select,
#chart-state-filter-display,
.form-select {
    border-color: var(--zeus-border) !important;
}

canvas {
    max-width: 100%;
}

.zeus-footer {
    max-width: 1120px;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 22px;
    border-radius: 8px;
    background: var(--zeus-text) !important;
}

.zeus-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    margin-top: 8px;
    font-size: 0.92rem;
}

.zeus-content-main {
    max-width: 860px !important;
}

.zeus-content-card {
    margin-bottom: 18px;
    padding: 28px;
    border: 1px solid var(--zeus-border);
    border-radius: 8px;
    background: var(--zeus-surface);
    box-shadow: 0 10px 24px rgba(23, 32, 38, 0.08);
}

.zeus-content-card h2 {
    margin: 0 0 12px;
    color: var(--zeus-text);
    font-size: 1.35rem;
    line-height: 1.25;
    font-weight: 800;
}

.zeus-content-card p,
.zeus-content-card li {
    color: var(--zeus-muted);
    font-size: 1rem;
    line-height: 1.72;
}

.zeus-content-card p + p {
    margin-top: 10px;
}

.zeus-step-list {
    margin: 0;
    padding-left: 22px;
}

.zeus-step-list li + li,
.zeus-faq-list .zeus-content-card + .zeus-content-card {
    margin-top: 12px;
}

[data-ad-slot]::before {
    content: "Publicidad";
    display: block;
    margin-bottom: 6px;
    color: var(--zeus-muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Estilos personalizados para la tabla responsiva en móviles */
@media (max-width: 768px) {
    .zeus-header {
        margin: 0;
        border-radius: 0 0 8px 8px;
    }

    .zeus-header .container {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .zeus-brand {
        justify-content: center;
    }

    .zeus-nav {
        justify-content: center;
    }

    .zeus-nav a,
    .zeus-nav button,
    .zeus-header a {
        width: auto;
        padding: 9px 11px !important;
        font-size: 0.9rem;
    }

    .zeus-hero {
        padding: 24px 28px 8px;
        margin-top: 18px;
    }

    .zeus-main {
        padding: 22px 22px 8px !important;
    }

    .zeus-content-card {
        padding: 22px 18px;
    }

    .grid {
        gap: 16px !important;
    }

    table, thead, tbody, th, td, tr {
        display: block; /* Hace que los elementos de la tabla se comporten como bloques */
    }
    thead tr {
        /* Oculta los encabezados de la tabla en móvil */
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    tr {
        /* Estilo para cada fila en móvil (ahora se ve como una tarjeta) */
        border: 1px solid #e2e8f0; /* border-gray-200 */
        margin-bottom: 0.75rem; /* mb-3 */
        border-radius: 0.5rem; /* rounded-lg */
        overflow: hidden; /* Asegura que los bordes redondeados se apliquen correctamente */
    }
    td {
        /* Estilo para cada celda en móvil */
        border: none; /* Elimina los bordes internos de las celdas */
        border-bottom: 1px solid #e2e8f0; /* Añade un borde inferior para separar las "filas" dentro de la tarjeta */
        position: relative;
        padding-left: 50%; /* Deja espacio para la etiqueta */
        text-align: right; /* Alinea el contenido a la derecha */
        padding-top: 0.5rem; /* py-2 */
        padding-bottom: 0.5rem; /* py-2 */
        padding-right: 1.5rem; /* px-6 */
    }
    td:last-child {
        border-bottom: 0; /* Elimina el borde inferior de la última celda */
    }
    td:before {
        /* Crea una pseudo-clase para la etiqueta de cada celda en móvil */
        position: absolute;
        top: 0;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #4a5568; /* text-gray-700 */
        padding-top: 0.5rem; /* py-2 */
    }
    /* Etiquetas para las celdas en móvil (el contenido de 'content' es la etiqueta) */
    td:nth-of-type(1):before { content: "Folio:"; }
    td:nth-of-type(2):before { content: "Categoría:"; }
    td:nth-of-type(3):before { content: "Delito:"; }
    td:nth-of-type(4):before { content: "Descripción:"; }
    td:nth-of-type(5):before { content: "Ubicación:"; }
    td:nth-of-type(6):before { content: "Fecha/Hora Incidente:"; }
    td:nth-of-type(7):before { content: "Reportado El:"; }
}
/* Estilo para el contenedor del mapa */
#map-container {
    height: 600px; /* Altura fija para el mapa */
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 10px 24px rgba(23, 32, 38, 0.08);
    background: var(--zeus-surface);
}

#filters-section {
    position: sticky;
    top: 18px;
}

#crime-categories-list {
    border-color: var(--zeus-border) !important;
    border-radius: 8px;
}

#mexico-map path {
    transition: fill 0.18s ease, opacity 0.18s ease;
}

#mexico-map path:hover {
    opacity: 0.82;
}

#donation-modal > div {
    border-radius: 8px !important;
    border: 1px solid var(--zeus-border);
}

.bg-yellow-100 {
    background: var(--zeus-accent-soft) !important;
}

.border-yellow-500 {
    border-color: var(--zeus-accent) !important;
}

.text-yellow-700 {
    color: var(--zeus-text) !important;
}

@media (max-width: 768px) {
    #filters-section {
        position: static;
    }

    #map-container {
        height: 460px;
        padding: 14px !important;
    }
}
/* Estilos para el tooltip del mapa */
.info {
    padding: 6px 8px;
    font: 14px/16px Arial, Helvetica, sans-serif;
    background: white;
    background: rgba(255,255,255,0.8);
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 5px;
}
.info h4 {
    margin: 0 0 5px;
    color: #777;
}
.legend {
    line-height: 18px;
    color: #555;
}
.legend i {
    width: 18px;
    height: 18px;
    float: left;
    margin-right: 8px;
    opacity: 0.7;
}
