body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f6f8;
    color: #1f2937;
}

header {
    background-color: #0f172a;
    padding: 15px 40px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    color: white;
    margin: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.hero {
    text-align: center;
    padding: 120px 20px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: auto;
    line-height: 1.6;
}

.page-content {
    padding: 80px 40px;
    max-width: 1000px;
    margin: auto;
}

.page-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.page-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

#map {
    width: 100%;
    height: 700px;
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dashboard-container {
    padding: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    margin-bottom: 10px;
    color: #374151;
}

.stat-card p {
    font-size: 2rem;
    font-weight: bold;
    color: #1d4ed8;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.map-panel,
.chart-panel {
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.chart-panel {
    min-height: 400px;
}

body {
    background-color: #f3f4f6;
}

.table-panel {
    background: white;
    margin-top: 30px;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#sequenceTable {
    width: 100%;
    font-size: 0.9rem;
}

.filters-panel {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filters-panel select {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: white;
    font-size: 1rem;
}

/* ====================== */
/* HEADER */
/* ====================== */

.main-header {

    background: linear-gradient(
        90deg,
        #0f172a,
        #1e293b
    );

    color: white;

    box-shadow:
        0 4px 12px rgba(0,0,0,0.15);

}

.header-top {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 15px 40px;

    flex-wrap: wrap;

}

.header-logos {

    display: flex;

    align-items: center;

    gap: 20px;

}

.header-logo {

    height: 60px;

    width: auto;

    object-fit: contain;

}

.mexico-logo {

    height: 50px;

}

.header-title h1 {

    margin: 0;

    font-size: 2rem;

    color: white;

}

.header-title p {

    margin: 5px 0 0 0;

    color: #cbd5e1;

    font-size: 0.95rem;

}

/* ====================== */
/* NAVBAR */
/* ====================== */

.navbar {

    background-color: rgba(255,255,255,0.05);

    border-top:
        1px solid rgba(255,255,255,0.08);

}

.navbar ul {

    list-style: none;

    display: flex;

    justify-content: center;

    gap: 40px;

    margin: 0;

    padding: 15px;

}

.navbar a {

    color: white;

    text-decoration: none;

    font-weight: 600;

    transition: 0.3s;

}

.navbar a:hover {

    color: #60a5fa;

}

/* ====================== */
/* HERO */
/* ====================== */

.hero {

    min-height: 70vh;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 80px 20px;

    background:
        linear-gradient(
            rgba(15,23,42,0.7),
            rgba(15,23,42,0.8)
        ),

        url('../img/background.jpg');

    background-size: cover;

    background-position: center;

    color: white;

}

.hero-content {

    max-width: 900px;

}

.hero-content h2 {

    font-size: 3.5rem;

    margin-bottom: 25px;

    line-height: 1.2;

}

.hero-content p {

    font-size: 1.3rem;

    line-height: 1.8;

    color: #e2e8f0;

}

/* ====================== */
/* COLLABORATORS */
/* ====================== */

.collaborators-section {

    background: white;

    padding: 60px 40px;

    text-align: center;

}

.collaborators-section h3 {

    font-size: 2rem;

    margin-bottom: 40px;

    color: #1e293b;

}

.collaborators-grid {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 50px;

    flex-wrap: wrap;

}

.collaborators-grid img {

    height: 90px;

    width: auto;

    object-fit: contain;

    transition: 0.3s;

    opacity: 0.85;

}

.collaborators-grid img:hover {

    transform: scale(1.05);

    opacity: 1;

}

/* ====================== */
/* FOOTER */
/* ====================== */

.main-footer {

    background-color: #0f172a;

    color: #cbd5e1;

    padding: 50px 20px;

    text-align: center;

}

.footer-content {

    max-width: 900px;

    margin: auto;

}

.footer-content p {

    margin: 10px 0;

    line-height: 1.7;

    font-size: 0.95rem;

}

/* ====================== */
/* RESPONSIVE */
/* ====================== */

@media (max-width: 768px) {

    .header-top {

        flex-direction: column;

        gap: 20px;

        text-align: center;

    }

    .navbar ul {

        flex-direction: column;

        gap: 15px;

    }

    .hero-content h2 {

        font-size: 2.3rem;

    }

    .hero-content p {

        font-size: 1.1rem;

    }

    .header-logo {

        height: 45px;

    }

    .collaborators-grid img {

        height: 65px;

    }

}

@media (max-width: 900px) {

    .dashboard-grid {

        grid-template-columns: 1fr;

    }

    .stats-grid {

        grid-template-columns: 1fr;

    }

    #map {

        height: 500px;

    }

}

/* ====================== */
/* PAGE HERO */
/* ====================== */

.page-hero {

    background:
        linear-gradient(
            rgba(15,23,42,0.82),
            rgba(15,23,42,0.88)
        ),

        url('../img/background.jpg');

    background-size: cover;

    background-position: center;

    padding: 120px 20px;

    text-align: center;

    color: white;

}

.page-hero-content {

    max-width: 950px;

    margin: auto;

}

.page-hero-content h2 {

    font-size: 3rem;

    margin-bottom: 25px;

    line-height: 1.2;

}

.page-hero-content p {

    font-size: 1.25rem;

    line-height: 1.8;

    color: #e2e8f0;

}

/* ====================== */
/* SCIENTIFIC SECTIONS */
/* ====================== */

.info-section {

    background: white;

    padding: 40px;

    margin-bottom: 30px;

    border-radius: 16px;

    box-shadow:
        0 4px 12px rgba(0,0,0,0.08);

}

.info-section h3 {

    font-size: 2rem;

    margin-bottom: 20px;

    color: #0f172a;

}

.info-section p {

    line-height: 1.9;

    font-size: 1.05rem;

    color: #374151;

}

.scientific-list {

    padding-left: 25px;

    line-height: 2;

    color: #374151;

}

.scientific-list li {

    margin-bottom: 10px;

}

/* ====================== */
/* MOBILE */
/* ====================== */

@media (max-width: 768px) {

    .page-hero-content h2 {

        font-size: 2.2rem;

    }

    .page-hero-content p {

        font-size: 1.05rem;

    }

    .info-section {

        padding: 25px;

    }

}

/* ====================== */
/* DASHBOARD INTRO */
/* ====================== */

.dashboard-intro {

    background: white;

    padding: 50px 40px;

    text-align: center;

}

.dashboard-intro-content {

    max-width: 1000px;

    margin: auto;

}

.dashboard-intro-content p {

    font-size: 1.15rem;

    line-height: 1.9;

    color: #374151;

}

/* ====================== */
/* FILTERS */
/* ====================== */

.filters-panel {

    background: white;

    padding: 20px;

    border-radius: 14px;

    box-shadow:
        0 4px 12px rgba(0,0,0,0.08);

}

/* ====================== */
/* PANEL TITLES */
/* ====================== */

.chart-panel h2,
.map-panel h2,
.table-panel h2 {

    margin-top: 0;

    color: #0f172a;

}

/* ====================== */
/* AUTHOR SECTION */
/* ====================== */

.author-container {

    display: flex;

    gap: 40px;

    align-items: center;

    flex-wrap: wrap;

}

.author-image img {

    width: 260px;

    border-radius: 18px;

    object-fit: cover;

    box-shadow:
        0 4px 14px rgba(0,0,0,0.15);

}

.author-text {

    flex: 1;

    min-width: 280px;

}

.author-text h4 {

    font-size: 1.8rem;

    margin-top: 0;

    margin-bottom: 20px;

    color: #0f172a;

}

.author-text p {

    line-height: 1.9;

    color: #374151;

}

/* ====================== */
/* MOBILE */
/* ====================== */

@media (max-width: 768px) {

    .author-container {

        flex-direction: column;

        text-align: center;

    }

    .author-image img {

        width: 220px;

    }

}

/* ====================== */
/* COLLABORATOR SECTION */
/* ====================== */

.collaborator-container {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 40px;

    flex-wrap: wrap;

}

.collaborator-text {

    flex: 1;

    min-width: 280px;

}

.collaborator-text h4 {

    font-size: 1.5rem;

    margin-top: 0;

    margin-bottom: 18px;

    color: #0f172a;

}

.collaborator-text p {

    line-height: 1.9;

    color: #374151;

}

.collaborator-image img {

    width: 180px;

    border-radius: 16px;

    object-fit: cover;

    box-shadow:
        0 4px 12px rgba(0,0,0,0.12);

}

/* ====================== */
/* MOBILE */
/* ====================== */

@media (max-width: 768px) {

    .collaborator-container {

        flex-direction: column-reverse;

        text-align: center;

    }

    .collaborator-image img {

        width: 150px;

    }

}

/* ====================== */
/* MAP LEGEND */
/* ====================== */

.legend {

    background: white;

    padding: 12px 14px;

    border-radius: 10px;

    box-shadow:
        0 2px 10px rgba(0,0,0,0.15);

    line-height: 1.6;

    color: #1f2937;

    font-size: 0.9rem;

}

.legend i {

    border-radius: 3px;

}

/* ====================== */
/* KPI GROUPS */
/* ====================== */

.kpi-section {

    margin-bottom: 35px;

}

.kpi-group {

    margin-bottom: 28px;

}

.kpi-group h2 {

    font-size: 1.4rem;

    margin: 0 0 14px 0;

    color: #0f172a;

    border-left: 5px solid #1d4ed8;

    padding-left: 12px;

}

.global-card {

    border-top: 5px solid #1d4ed8;

}

.prrsv-card {

    border-top: 5px solid #047857;

}

.pcv2-card {

    border-top: 5px solid #7c3aed;

}

.global-card p {

    color: #1d4ed8;

}

.prrsv-card p {

    color: #047857;

}

.pcv2-card p {

    color: #7c3aed;

}

@media (max-width: 900px) {

    .kpi-group h2 {

        text-align: left;

        font-size: 1.25rem;

    }

}

/* ====================== */
/* DASHBOARD VISUAL POLISH */
/* ====================== */

.dashboard-container {
    max-width: 1500px;
    margin: auto;
}

/* Filters */

.filters-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 35px;
}

.filters-panel select {
    width: 100%;
    cursor: pointer;
    font-weight: 500;
    color: #1f2937;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filters-panel select:hover,
.filters-panel select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
    outline: none;
}

/* KPI groups */

.kpi-section {
    margin-bottom: 40px;
}

.kpi-group {
    background: rgba(255,255,255,0.65);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 28px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.kpi-group h2 {
    font-size: 1.35rem;
    margin: 0 0 18px 0;
    color: #0f172a;
    letter-spacing: 0.2px;
}

.kpi-group:nth-child(1) h2 {
    border-left: 5px solid #1d4ed8;
    padding-left: 12px;
}

.kpi-group:nth-child(2) h2 {
    border-left: 5px solid #047857;
    padding-left: 12px;
}

.kpi-group:nth-child(3) h2 {
    border-left: 5px solid #7c3aed;
    padding-left: 12px;
}

.stat-card {
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.stat-card h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.stat-card p {
    margin: 8px 0 0 0;
}

/* Panels */

.map-panel,
.chart-panel,
.table-panel {
    border: 1px solid #e5e7eb;
}

.map-panel h2,
.chart-panel h2,
.table-panel h2 {
    font-size: 1.35rem;
    border-left: 5px solid #1d4ed8;
    padding-left: 12px;
    margin-bottom: 20px;
}

/* Make the map more prominent */

.map-panel {
    grid-row: span 2;
}

#map {
    margin-top: 20px;
}

/* Plot containers */

#lineageChart,
#yearChart,
#stageChart {
    min-height: 330px;
}

/* Table polish */

.table-panel {
    overflow-x: auto;
}

.dataTables_wrapper {
    margin-top: 20px;
}

.dataTables_filter input {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 7px 10px;
}

.dataTables_length select {
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 5px;
}

/* Better mobile dashboard */

@media (max-width: 900px) {

    .dashboard-container {
        padding: 25px 18px;
    }

    .kpi-group {
        padding: 18px;
    }

    .filters-panel {
        grid-template-columns: 1fr;
    }

    .map-panel {
        grid-row: auto;
    }

    #map {
        height: 480px;
    }

}

@media (max-width: 600px) {

    .stat-card {
        padding: 20px;
    }

    .stat-card p {
        font-size: 1.6rem;
    }

    .map-panel h2,
    .chart-panel h2,
    .table-panel h2 {
        font-size: 1.15rem;
    }

    #map {
        height: 420px;
    }

}

/* ====================== */
/* LANGUAGE NOTICE */
/* ====================== */

.language-notice {

    display: inline-block;

    margin-top: 28px;

    padding: 10px 18px;

    border-radius: 999px;

    background: rgba(255,255,255,0.12);

    border: 1px solid rgba(255,255,255,0.28);

    color: #e2e8f0;

    font-size: 0.95rem;

    font-weight: 600;

    letter-spacing: 0.3px;

    backdrop-filter: blur(6px);

}

.professional-link {
    color: #D7E0EA;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(215, 224, 234, 0.45);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.professional-link:hover {
    color: #FFFFFF;
    border-bottom-color: #AFC7DD;
    opacity: 1;
}

/* ====================== */
/* LANGUAGE SWITCH */
/* ====================== */
.language-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: inherit;
  opacity: 0.7;
}

.language-switch a:hover,
.language-switch a.active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.language-switch span {
  opacity: 0.5;
}

.flag-icon {
  width: 20px;
  height: 14px;
  object-fit: cover;
  display: inline-block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

/* ====================== */
/* ACTIVACIÓN DE PÁGINA MENU */
/* ====================== */
.navbar a.active-page {
  color: #ffffff;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.35rem;
  text-decoration-thickness: 2px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.45);
}

.navbar a.active-page:hover {
  color: #ffffff;
  opacity: 1;
}

/* =========================================================
   DISEASESMAPMX — AJUSTES RESPONSIVE SEGUROS
   Este bloque está al final para no alterar el diseño de escritorio.
   ========================================================= */

/* Base preventiva */
*,
*::before,
*::after {
    box-sizing: border-box;
}

.main-header {
    padding: 0;
}

.main-header,
.header-top,
.navbar,
.page-content,
.dashboard-container,
.dashboard-grid,
.stats-grid,
.map-panel,
.chart-panel,
.table-panel {
    min-width: 0;
    max-width: 100%;
}

img,
svg,
canvas {
    max-width: 100%;
}

.page-content p,
.page-content li,
.author-text,
.collaborator-text,
.professional-link {
    overflow-wrap: anywhere;
}


/* ====================== */
/* TABLETA Y PANTALLAS MEDIAS */
/* ====================== */

@media (max-width: 900px) {

    .page-content {
        padding: 48px 24px;
    }

    .dashboard-intro {
        padding: 36px 24px;
    }

    .dashboard-container {
        padding: 24px 18px;
    }

    .map-panel,
    .chart-panel,
    .table-panel {
        min-width: 0;
        padding: 18px;
    }

    .author-text,
    .collaborator-text {
        min-width: 0;
        width: 100%;
    }

    .filters-panel select,
    .dataTables_filter input,
    .dataTables_length select {
        max-width: 100%;
        font-size: 16px;
    }

    #lineageChart,
    #yearChart,
    #stageChart,
    .js-plotly-plot,
    .plot-container,
    .svg-container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}


/* ====================== */
/* CELULAR Y TABLETA VERTICAL */
/* ====================== */

@media (max-width: 768px) {

    /* Cabecera */
    .header-top {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        text-align: center;
    }

    .header-logos {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-logo {
        width: auto;
        height: 40px;
        max-width: 120px;
    }

    .mexico-logo {
        height: 36px;
    }

    .header-title {
        width: 100%;
    }

    .header-title h1 {
        font-size: 1.35rem;
        line-height: 1.15;
    }

    .header-title p {
        margin-top: 4px;
        font-size: 0.82rem;
        line-height: 1.4;
    }

    .language-switch {
        justify-content: center;
        width: 100%;
        font-size: 0.78rem;
    }

    /* Navegación compacta y en varias filas */
    .navbar {
        display: block;
    }

    .navbar ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 6px;
        padding: 8px 10px 10px;
    }

    .navbar li {
        flex: 0 1 auto;
    }

    .navbar a {
        display: block;
        padding: 7px 9px;
        font-size: 0.86rem;
        line-height: 1.15;
    }

    /* Hero de inicio */
    .hero {
        min-height: auto;
        padding: 56px 18px;
    }

    .hero-content h2 {
        margin-bottom: 16px;
        font-size: clamp(1.85rem, 8vw, 2.3rem);
        line-height: 1.16;
    }

    .hero-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Hero de páginas internas */
    .page-hero {
        padding: 64px 18px;
    }

    .page-hero-content h2 {
        margin-bottom: 18px;
        font-size: clamp(1.75rem, 7vw, 2.2rem);
        line-height: 1.16;
    }

    .page-hero-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .language-notice {
        display: block;
        width: fit-content;
        max-width: 100%;
        margin: 20px auto 0;
        padding: 8px 12px;
        font-size: 0.82rem;
        line-height: 1.35;
    }

    /* Contenido general */
    .page-content {
        padding: 40px 18px;
    }

    .page-content h2 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .page-content p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .info-section {
        margin-bottom: 20px;
        padding: 20px;
        border-radius: 12px;
    }

    .info-section h3 {
        font-size: 1.55rem;
        line-height: 1.25;
    }

    .info-section p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .scientific-list {
        padding-left: 20px;
        line-height: 1.7;
    }

    /* Colaboradores y autor */
    .collaborators-section {
        padding: 40px 18px;
    }

    .collaborators-section h3 {
        margin-bottom: 28px;
        font-size: 1.55rem;
    }

    .collaborators-grid {
        gap: 24px 28px;
    }

    .collaborators-grid img {
        width: auto;
        height: 54px;
        max-width: 140px;
    }

    .author-container,
    .collaborator-container {
        gap: 24px;
    }

    .author-image img {
        width: min(210px, 100%);
    }

    .collaborator-image img {
        width: min(145px, 100%);
    }

    /* Introducción y filtros del dashboard */
    .dashboard-intro {
        padding: 32px 18px;
    }

    .dashboard-intro-content p {
        font-size: 1rem;
        line-height: 1.65;
    }

    .dashboard-container {
        padding: 18px 12px;
    }

    .filters-panel {
        gap: 10px;
        margin-bottom: 22px;
        padding: 14px;
    }

    .filters-panel select {
        min-width: 0;
        width: 100%;
        font-size: 16px;
    }

    /* KPI */
    .kpi-group {
        margin-bottom: 18px;
        padding: 14px;
        border-radius: 14px;
    }

    .kpi-group h2 {
        margin-bottom: 14px;
        padding-left: 10px;
        font-size: 1.1rem;
        line-height: 1.25;
    }

    .stats-grid {
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card h3 {
        font-size: 0.82rem;
        line-height: 1.3;
    }

    .stat-card p {
        font-size: 1.45rem;
    }

    /* Paneles, mapa y gráficas */
    .dashboard-grid {
        gap: 16px;
    }

    .map-panel,
    .chart-panel,
    .table-panel {
        padding: 14px;
        border-radius: 12px;
    }

    .map-panel h2,
    .chart-panel h2,
    .table-panel h2 {
        margin-bottom: 14px;
        padding-left: 10px;
        font-size: 1.05rem;
        line-height: 1.3;
    }

    #map {
        height: 380px;
        margin-top: 12px;
        border-radius: 10px;
    }

    #lineageChart,
    #yearChart,
    #stageChart {
        min-height: 280px;
        overflow: hidden;
    }

    .legend {
        max-width: 150px;
        padding: 8px 10px;
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .leaflet-control-layers {
        max-width: calc(100vw - 60px);
        font-size: 0.8rem;
    }

    /* Tabla: se conserva completa y se desplaza horizontalmente */
    .table-panel {
        overflow: hidden;
    }

    #sequenceTable_wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #sequenceTable {
        min-width: 760px;
        font-size: 0.78rem;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        float: none !important;
        width: 100%;
        margin-bottom: 10px;
        text-align: left !important;
    }

    .dataTables_filter input {
        width: 100%;
        max-width: 100%;
        margin-top: 6px;
        margin-left: 0 !important;
    }

    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        float: none !important;
        width: 100%;
        text-align: center !important;
    }

    .dataTables_wrapper .dataTables_paginate {
        white-space: normal;
    }

    /* Footer */
    .main-footer {
        padding: 36px 18px;
    }

    .footer-content p {
        font-size: 0.88rem;
        line-height: 1.6;
    }
}


/* ====================== */
/* CELULARES ESTRECHOS */
/* ====================== */

@media (max-width: 480px) {

    .header-top {
        padding: 12px 14px;
    }

    .header-logo {
        height: 34px;
        max-width: 105px;
    }

    .mexico-logo {
        height: 32px;
    }

    .header-title h1 {
        font-size: 1.16rem;
    }

    .header-title p {
        font-size: 0.76rem;
    }

    .navbar ul {
        gap: 3px 4px;
        padding: 7px 6px 9px;
    }

    .navbar a {
        padding: 6px 7px;
        font-size: 0.79rem;
    }

    .flag-icon {
        width: 18px;
        height: 13px;
    }

    .hero {
        padding: 44px 16px;
    }

    .hero-content h2 {
        font-size: 1.68rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .page-hero {
        padding: 52px 16px;
    }

    .page-hero-content h2 {
        font-size: 1.65rem;
    }

    .page-hero-content p {
        font-size: 0.95rem;
    }

    .page-content {
        padding: 32px 14px;
    }

    .page-content h2 {
        font-size: 1.72rem;
    }

    .info-section {
        padding: 16px;
    }

    .info-section h3 {
        font-size: 1.35rem;
    }

    .dashboard-container {
        padding: 14px 8px;
    }

    .dashboard-intro {
        padding: 28px 16px;
    }

    .filters-panel,
    .kpi-group,
    .map-panel,
    .chart-panel,
    .table-panel {
        padding: 12px;
    }

    #map {
        height: 340px;
    }

    #lineageChart,
    #yearChart,
    #stageChart {
        min-height: 250px;
    }

    .legend {
        max-width: 130px;
        font-size: 0.7rem;
    }
}

.inline-project-link {
  color: #1f5f7a;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 95, 122, 0.45);
  overflow-wrap: anywhere;
  transition: color 0.2s ease, border-color 0.2s ease;
}


/* =========================================================
   DISEASESMAPMX — NAVBAR POLISH FOR SEQUENCE ANALYSIS LINK
   Adds safe wrapping and tighter spacing now that the menu includes
   the sequence-analysis module in both languages.
   ========================================================= */

.navbar ul {
    flex-wrap: wrap;
    column-gap: clamp(18px, 3vw, 34px);
    row-gap: 10px;
}

.navbar a {
    white-space: nowrap;
}

.language-switch {
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .navbar ul {
        column-gap: 22px;
        row-gap: 12px;
    }
}

@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        gap: 15px;
    }

    .navbar a {
        white-space: normal;
    }

    .language-switch {
        justify-content: center;
    }
}

/* =========================================================
   ESTO LO AGREGUE COPIANDO EL ESTILO DEL ENCABEZADO AZUL 
   DE LA PAGINA DE ANALISIS DE SECUENCIAS CSS PHYLOGENY, 
   PARA USARLO EN EL DASHBOARD CSS STYLE.
   ========================================================= */

.analysis-eyebrow,
.analysis-section-label {
    margin: 0 0 8px;
    color: #1d4ed8;
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.analysis-hero .analysis-eyebrow {
    color: #93c5fd;
}