/* Actualización puntual del pie y del aviso de compatibilidad. */
/* Navegación: elimina el marcador triangular heredado del menú activo. */
._overPl {
    background-image: none !important;
}

/* Contenido educativo en modales: imagen, jerarquía y lectura más actual. */
.healthModal {
    width: min(620px, calc(100vw - 80px));
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    padding: 0 !important;
    color: #344b56;
    font-family: "Open Sans", Arial, sans-serif;
}

.healthModal::before {
    display: block;
    height: 142px;
    background: url('../images/diabetes-modal-photo.jpg') center / cover no-repeat;
    content: '';
}

#que_es::before { background-image: url('../images/diabetes-que-es.jpg'); }
#causas::before { background-image: url('../images/diabetes-causas.jpg'); }
#sintomas::before { background-image: url('../images/diabetes-sintomas.jpg'); }
#prevencion::before { background-image: url('../images/diabetes-prevencion.jpg'); }
#tipos::before { background-image: url('../images/diabetes-tipos.jpg'); }
#diagnosticos::before { background-image: url('../images/diabetes-diagnosticos.jpg'); }
#tratamientos::before { background-image: url('../images/diabetes-tratamientos.jpg'); }
#diabetes::before { background-image: url('../images/diabetes-modal-photo.jpg'); }

.healthModal > p {
    margin: 0 !important;
    padding: 24px 30px 28px;
    font-size: 14px;
    line-height: 1.7;
}

.healthModal > p strong {
    display: block;
    margin-bottom: 10px;
    color: #174a5c;
    font-size: 20px;
    line-height: 1.25;
}

.footerLine {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 8px auto 0 !important;
    transform: translateY(2px);
}

.footerLine .textPrivacy {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.footerNotice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 32px;
    padding: 3px 5px 3px 10px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    color: #fff !important;
    background: rgba(25, 42, 51, .52);
    box-shadow: 0 5px 18px rgba(0, 0, 0, .12);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    text-transform: none;
}

.footerNotice > span:first-child {
    color: #fff;
    font-weight: 700;
    letter-spacing: .01em;
}

.footerCopyright a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footerSeparator {
    color: #bdefff;
    font-size: 15px;
}

.browserLink {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border: 1px solid #63d0f3;
    border-radius: 999px;
    color: #fff !important;
    background: linear-gradient(135deg, #28a4e1, #0876a5);
    box-shadow: 0 3px 10px rgba(0, 92, 130, .28);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .02em;
    text-decoration: none !important;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.browserLink:hover,
.browserLink:focus-visible {
    border-color: #fff;
    color: #fff !important;
    background: linear-gradient(135deg, #45bde9, #0a6389);
    outline: none;
}

.socialLinks {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.socialLinks > li,
.socialLinks > li > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    margin: 0 !important;
}

.socialLinks > li > a {
    border-radius: 50%;
    color: #fff;
    background: #2aa9dd;
    transition: transform .2s ease, background-color .2s ease;
}

.socialLinks > li:last-child > a {
    background: #17232b;
}

.socialLinks > li > a:hover,
.socialLinks > li > a:focus-visible {
    background: #075778;
    outline: none;
    transform: translateY(-1px);
}

.socialLinks svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

#cboxOverlay {
    background: rgba(16, 39, 50, .74) !important;
}

#colorbox {
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

#cboxContent {
    border-radius: 18px;
    background: #fff;
}

#cboxLoadedContent {
    margin-bottom: 0 !important;
    overflow: visible !important;
}

@media (min-width: 900px) and (min-height: 700px) {
    body {
        min-height: 100vh !important;
        overflow-y: hidden !important;
    }
}

#cboxClose {
    top: 12px;
    right: 12px;
    bottom: auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #eaf4f8 !important;
    color: #27677e;
    text-indent: -9999px;
    transition: background-color .2s ease, transform .2s ease;
}

#cboxClose::before,
#cboxClose::after {
    position: absolute;
    top: 14px;
    left: 8px;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: #27677e;
    content: '';
}

#cboxClose::before { transform: rotate(45deg); }
#cboxClose::after { transform: rotate(-45deg); }
#cboxClose:hover { background: #cfeaf3 !important; transform: rotate(90deg); }

/* Modal moderno independiente de Colorbox para los contenidos educativos. */
.modernModalOverlay[hidden] {
    display: none;
}

.modernModalOverlay {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(16, 39, 50, .78);
}

.modernModalOpen {
    overflow: hidden !important;
}

.modernModalShell {
    position: relative;
    width: min(920px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .35);
}

.modernModalContent {
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

@media (min-width: 900px) {
    ._contacts {
        top: 500px !important;
    }

    .modernModalContent {
        max-height: none;
        overflow: visible;
    }

    .modernModalPanel.healthModal {
        max-height: none;
    }

    .modernModalPanel.healthModal > p {
        font-size: 13px;
        line-height: 1.5;
    }

    .modernModalPanel#tipos > p,
    .modernModalPanel#diagnosticos > p,
    .modernModalPanel#tratamientos > p {
        column-count: 2;
        column-gap: 34px;
    }
}

.modernModalClose {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: #24596c;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
    cursor: pointer;
    font-size: 25px;
    line-height: 30px;
}

.modernModalClose:hover,
.modernModalClose:focus-visible {
    color: #fff;
    background: #168caf;
    outline: none;
}

.modernModalPanel.healthModal,
.modernModalPanel.browserModal {
    width: 100% !important;
    max-width: none;
    max-height: none;
    overflow: visible;
}

.modernModalPanel.healthModal > p {
    padding-left: 30px;
    padding-right: 30px;
}

.modernModalPanel.browserModal {
    padding: 34px 38px 30px !important;
}

.browserModal {
    width: min(620px, calc(100vw - 80px));
    padding: 34px 38px 30px !important;
    color: #344b56;
    border-top: 5px solid #28a4e1;
    font-family: "Open Sans", Arial, sans-serif;
}

.browserModalKicker {
    color: #28a4e1;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.browserModal h2 {
    margin: 8px 42px 12px 0;
    color: #1f3945;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 25px;
    line-height: 1.2;
}

.browserModal h2::after {
    display: block;
    width: 52px;
    height: 3px;
    margin-top: 13px;
    border-radius: 3px;
    background: #28a4e1;
    content: '';
}

.browserModal p {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.6;
}

.browserGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.browserGrid a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 15px;
    border: 1px solid #dbeaf0;
    border-radius: 12px;
    color: #1f6077;
    background: linear-gradient(145deg, #fbfeff, #f0f9fb);
    text-decoration: none;
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.browserGrid a:hover,
.browserGrid a:focus-visible {
    border-color: #6dc6e4;
    background: #edf9fc;
    outline: none;
    transform: translateY(-2px);
}

.browserGrid strong { font-size: 14px; }
.browserGrid span { color: #738b95; font-size: 11px; }
.browserModal .browserModalNote { margin: 0; color: #738b95; font-size: 12px; }

@media (max-width: 760px) {
    .footerLine { gap: 8px; transform: translateY(0); }
    .footerNotice { margin-left: 0; white-space: normal; justify-content: center; flex-wrap: wrap; }
    .healthModal { width: calc(100vw - 60px); }
    .healthModal::before { height: 112px; }
    .healthModal > p { padding: 20px 22px 24px; }
    .browserModal { width: calc(100vw - 60px); padding: 28px 22px 24px !important; }
    .browserGrid { grid-template-columns: 1fr; }
}
