/* Estilos de subpágina - Portal MinAguas */
.heading-font { font-family: 'Plus Jakarta Sans', sans-serif; }

.glass-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.shadow-capsule { box-shadow: 0 8px 32px 0 rgba(0, 40, 86, 0.15); }

.nav-mobile-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 70;
    margin-top: 0.5rem;
    max-height: min(75vh, 32rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    background: #fff;
    color: #1f2937;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.nav-mobile-panel.is-open {
    display: flex !important;
}
.nav-mobile-sub {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0.25rem 0 0.25rem 1rem;
    padding-left: 1rem;
    border-left: 2px solid #e6f0fa;
}
.nav-mobile-sub.is-open {
    display: flex !important;
}
@media (min-width: 768px) {
    .nav-mobile-panel,
    .nav-mobile-panel.is-open {
        display: none !important;
    }
}

.page-hero {
    background: linear-gradient(135deg, #002856 0%, #0052b4 55%, #006ee6 100%);
}

.content-card {
    background: #ffffff;
    border: 1px solid rgba(0, 40, 86, 0.08);
    box-shadow: 0 10px 30px -10px rgba(0, 40, 86, 0.12);
    border-radius: 28px;
}

.content-card-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: #E6F0FA;
    color: #006ee6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.breadcrumb a { transition: color .2s ease; }
.breadcrumb a:hover { color: #006ee6; }

.fade-in-up {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s ease;
}
.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.accent-bar {
    width: 56px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, #006ee6, #00A896);
}

.contact-card {
    border: 1px solid rgba(0, 40, 86, 0.08);
    transition: transform .25s ease, box-shadow .25s ease;
}
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px -10px rgba(0, 40, 86, 0.18);
}

.pill-tag {
    background: #E6F0FA;
    color: #002856;
}

.news-article-body {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #374151;
}
.news-article-body > *:first-child { margin-top: 0; }
.news-article-body p { margin: 0 0 1.1em; }
.news-article-body h2,
.news-article-body h3,
.news-article-body h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #002856;
    font-weight: 800;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    line-height: 1.25;
}
.news-article-body h2 { font-size: 1.5rem; }
.news-article-body h3 { font-size: 1.25rem; }
.news-article-body h4 { font-size: 1.1rem; }

/* Listas: Tailwind Preflight las quita; restaurar estilo tipo Word */
.news-article-body ul,
.news-article-body ol {
    margin: 0.85em 0 1.15em;
    padding-left: 1.75rem;
}
.news-article-body ul {
    list-style-type: disc;
    list-style-position: outside;
}
.news-article-body ol {
    list-style-type: decimal;
    list-style-position: outside;
}
.news-article-body li {
    display: list-item;
    margin: 0.4em 0;
    padding-left: 0.25rem;
}
.news-article-body li::marker {
    color: #006ee6;
    font-weight: 600;
}
.news-article-body ul ul {
    list-style-type: circle;
    margin: 0.35em 0;
}
.news-article-body ul ul ul {
    list-style-type: square;
}
.news-article-body ol ol {
    list-style-type: lower-alpha;
    margin: 0.35em 0;
}

.news-article-body strong,
.news-article-body b { font-weight: 700; color: #1f2937; }
.news-article-body em,
.news-article-body i { font-style: italic; }
.news-article-body a {
    color: #006ee6;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.news-article-body a:hover { color: #002856; }
.news-article-body hr {
    border: 0;
    border-top: 1px solid #dbe4f0;
    margin: 1.75em 0;
}
.news-article-body img {
    border-radius: 1rem;
    margin: 1.25em 0;
    max-width: 100%;
    height: auto;
}
.news-article-body blockquote {
    border-left: 4px solid #006ee6;
    padding: 0.35rem 0 0.35rem 1rem;
    color: #4b5563;
    font-style: italic;
    margin: 1.5em 0;
    background: #f8fbff;
}
.news-article-body blockquote p:last-child { margin-bottom: 0; }

.news-gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) {
    .news-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .news-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.news-gallery-grid figure {
    margin: 0;
    min-width: 0;
}
.news-gallery-zoom {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 1rem;
    background: #e8eef5;
    cursor: zoom-in;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.news-gallery-zoom:hover,
.news-gallery-zoom:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -12px rgba(0, 40, 86, 0.35);
    outline: none;
}
.news-gallery-zoom img,
.news-gallery-grid img {
    width: 100%;
    height: 100%;
    max-height: 280px;
    object-fit: cover;
    display: block;
}

.news-video {
    margin: 0 0 0.5rem;
    padding: 0;
}
.news-video__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    overflow: hidden;
    background: #0b1c33;
}
.news-video__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.news-video__player {
    display: block;
    width: 100%;
    max-height: 520px;
    border-radius: 1rem;
    background: #0b1c33;
}
.news-video__caption {
    margin: 0.7rem 0 0;
    font-size: 0.875rem;
    font-style: italic;
    color: #6b7280;
    text-align: center;
}

.news-lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.news-lightbox.is-open {
    display: flex;
}
.news-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 20, 43, 0.82);
    backdrop-filter: blur(4px);
}
.news-lightbox__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(1100px, 100%);
    max-height: 92vh;
}
.news-lightbox__figure {
    margin: 0;
    max-width: 100%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.news-lightbox__img {
    display: block;
    max-width: min(100%, 1100px);
    max-height: calc(92vh - 3.5rem);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.75rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    background: #0b1c33;
    transform: scale(0.96);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}
.news-lightbox.is-open .news-lightbox__img.is-ready {
    transform: scale(1);
    opacity: 1;
}
.news-lightbox__caption {
    margin: 0;
    max-width: 42rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    font-style: italic;
}
.news-lightbox__close,
.news-lightbox__nav {
    position: absolute;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.news-lightbox__close:hover,
.news-lightbox__nav:hover,
.news-lightbox__close:focus-visible,
.news-lightbox__nav:focus-visible {
    background: rgba(255, 255, 255, 0.28);
    outline: none;
}
.news-lightbox__close {
    top: 0.35rem;
    right: 0.35rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.6rem;
    line-height: 1;
    z-index: 2;
}
.news-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1rem;
}
.news-lightbox__nav--prev { left: 0.15rem; }
.news-lightbox__nav--next { right: 0.15rem; }
.news-lightbox__nav[hidden] { display: none; }
body.news-lightbox-open { overflow: hidden; }

@media (max-width: 640px) {
    .news-lightbox__nav--prev { left: -0.15rem; }
    .news-lightbox__nav--next { right: -0.15rem; }
    .news-lightbox__nav {
        width: 2.35rem;
        height: 2.35rem;
    }
}

/* Texto enriquecido de subpáginas (Tarjeta de contenido, etc.) */
.page-richtext {
    font-size: 0.975rem;
    line-height: 1.7;
    color: #4b5563;
}
.page-richtext > *:first-child { margin-top: 0; }
.page-richtext > *:last-child { margin-bottom: 0; }

.page-richtext p {
    margin: 0 0 1.15em;
    display: block;
}
/* Doble Enter / párrafo vacío: que se vea el espacio */
.page-richtext p:empty,
.page-richtext p:has(> br:only-child) {
    min-height: 1.15em;
    margin-bottom: 1.15em;
}
.page-richtext p:empty::before {
    content: "\00a0";
}

.page-richtext h2,
.page-richtext h3,
.page-richtext h4 {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: #002856;
    font-weight: 800;
    line-height: 1.3;
    margin: 1.5em 0 0.65em;
}
.page-richtext h2 { font-size: 1.5rem; }
.page-richtext h3 { font-size: 1.25rem; }
.page-richtext h4 { font-size: 1.1rem; }

.page-richtext strong,
.page-richtext b {
    font-weight: 700;
    color: #1f2937;
}
.page-richtext em,
.page-richtext i:not([class*="fa-"]) {
    font-style: italic;
}
.page-richtext a {
    color: #006ee6;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.page-richtext a:hover { color: #002856; }
.page-richtext hr {
    border: 0;
    border-top: 1px solid #dbe4f0;
    margin: 1.5em 0;
}
.page-richtext blockquote {
    border-left: 4px solid #006ee6;
    padding: 0.35rem 0 0.35rem 1rem;
    color: #4b5563;
    font-style: italic;
    margin: 1.35em 0;
    background: #f8fbff;
}

/* Listas numeradas con círculo institucional (Objetivos, etc.) */
.page-richtext ol,
.content-card .page-richtext ol {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    counter-reset: minaguas-ol;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}
.page-richtext ol > li,
.content-card .page-richtext ol > li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
    color: #1f2937;
    line-height: 1.55;
    counter-increment: minaguas-ol;
}
.page-richtext ol > li::before,
.content-card .page-richtext ol > li::before {
    content: counter(minaguas-ol);
    flex-shrink: 0;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    background: #002856;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: Inter, system-ui, sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 40, 86, 0.2);
}
.page-richtext ul,
.content-card .page-richtext ul {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.page-richtext ul > li,
.content-card .page-richtext ul > li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    color: #1f2937;
    line-height: 1.55;
}
.page-richtext ul > li::before,
.content-card .page-richtext ul > li::before {
    content: "";
    flex-shrink: 0;
    width: 0.55rem;
    height: 0.55rem;
    margin-top: 0.55rem;
    border-radius: 50%;
    background: #006ee6;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Boletín (tokens MinAguas) ===== */
.bulletin-page {
    --bulletin-blue: #006ee6;
    --bulletin-dark: #002856;
    --bulletin-hero: #0052b4;
    --bulletin-light: #E6F0FA;
    --bulletin-accent: #00A896;
    background: linear-gradient(180deg, #E6F0FA 0%, #f4f8fc 55%, #E6F0FA 100%);
    position: relative;
    overflow: hidden;
}
.bulletin-section {
    position: relative;
    z-index: 1;
    padding: 1.25rem 1.25rem 2.5rem;
}
@media (min-width: 768px) {
    .bulletin-section { padding: 1.5rem 1.5rem 3rem; }
}
.bulletin-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(1px);
}
.bulletin-orb--tr {
    top: 2rem;
    right: 8%;
    width: 7rem;
    height: 7rem;
    background: rgba(0, 110, 230, 0.1);
    filter: blur(28px);
}
.bulletin-orb--bl {
    bottom: 4rem;
    left: 6%;
    width: 5.5rem;
    height: 5.5rem;
    background: rgba(0, 168, 150, 0.12);
    filter: blur(22px);
}
.bulletin-shell {
    position: relative;
    z-index: 2;
    max-width: 72rem;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(197, 216, 239, 0.9);
    border-radius: 2rem;
    box-shadow: 0 20px 50px rgba(0, 38, 86, 0.08);
    padding: 1.5rem 1.25rem 1.75rem;
}
.bulletin-shell.max-w-3xl { max-width: 48rem; }
@media (min-width: 768px) {
    .bulletin-shell {
        border-radius: 2.5rem;
        padding: 2.25rem 2.35rem 2.5rem;
    }
}
.bulletin-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.35rem 1.75rem;
    margin-bottom: 1.85rem;
}
.bulletin-heading { min-width: 0; }
.bulletin-badge {
    display: inline-flex;
    align-items: center;
    background: #006ee6;
    color: #ffffff;
    font-family: Inter, sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.42rem 0.95rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 110, 230, 0.35);
}
.bulletin-title {
    margin: 0;
    color: #002856;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
}
@media (min-width: 768px) {
    .bulletin-title { font-size: 2.35rem; }
}
.bulletin-intro {
    margin: 0.55rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.55;
    max-width: 36rem;
}
.bulletin-heading .accent-bar {
    margin-top: 0.85rem;
}
.bulletin-filter {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 12rem;
}
.bulletin-filter label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
}
.bulletin-filter select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23002856' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.95rem center;
    border: 1px solid #c5d8ef;
    border-radius: 0.95rem;
    padding: 0.7rem 2.4rem 0.7rem 1rem;
    color: #002856;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 12rem;
    box-shadow: 0 6px 16px -10px rgba(0, 40, 86, 0.2);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.bulletin-filter select:hover {
    border-color: #006ee6;
}
.bulletin-filter select:focus {
    outline: none;
    border-color: #006ee6;
    box-shadow: 0 0 0 3px rgba(0, 110, 230, 0.18);
}
.bulletin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .bulletin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .bulletin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.65rem; }
}
.bulletin-card {
    background: #ffffff;
    border: 1px solid rgba(0, 40, 86, 0.08);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 40, 86, 0.12);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bulletin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -12px rgba(0, 40, 86, 0.2);
}
.bulletin-card-media {
    position: relative;
    margin: 0.7rem 0.7rem 0;
    border-radius: 1.15rem;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #002856;
}
.bulletin-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.bulletin-card:hover .bulletin-card-media img {
    transform: scale(1.04);
}
.bulletin-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 2.4rem;
    background: linear-gradient(155deg, #002856 0%, #0052b4 55%, #006ee6 100%);
}
.bulletin-month {
    position: absolute;
    left: 0.8rem;
    bottom: 0.8rem;
    background: #ffffff;
    color: #002856;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.34rem 0.8rem;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 40, 86, 0.16);
}
.bulletin-card-body {
    padding: 1rem 1.15rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}
.bulletin-card-body h2,
.bulletin-card-body h1 {
    margin: 0;
    color: #0052b4;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.3;
}
.bulletin-card-body p {
    margin: 0;
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bulletin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    margin-top: 0.65rem;
}
.bulletin-actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #006ee6;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}
.bulletin-actions a i {
    font-size: 0.82rem;
}
.bulletin-actions a:hover {
    color: #002856;
}
.bulletin-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2.5rem 1.25rem;
    color: #64748b;
}
.bulletin-empty i {
    font-size: 2rem;
    color: #006ee6;
    margin-bottom: 0.75rem;
    display: block;
}
.bulletin-wave {
    display: block;
    width: 100%;
    height: auto;
    min-height: 64px;
    object-fit: cover;
    object-position: bottom;
    pointer-events: none;
    user-select: none;
    margin-top: -2px;
}
@media (min-width: 768px) {
    .bulletin-wave { min-height: 120px; }
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: #a9c6ec; border-radius: 999px; }
::-webkit-scrollbar-track { background: #f0f4f9; }

/* Organigrama institucional (Directorio) */
.organigram-page {
    background: linear-gradient(180deg, #d8e5f3 0%, #edf3f9 50%, #dbe7f4 100%);
    padding: 20px 10px;
}
.organigram-page * {
    box-sizing: border-box;
    font-family: "Oswald", "Arial Narrow", sans-serif;
    text-transform: uppercase;
}
.organigram-container {
    width: 100%;
    max-width: 1180px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
    margin: 0 auto;
}
.organigram-container #svg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.organigram-container .main-title {
    color: #0b224e;
    font-size: 40px;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 1.5px;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff, 0px 3px 6px rgba(0, 0, 0, 0.2);
    margin: 0 0 25px;
    text-align: center;
    z-index: 3;
}
.organigram-container .node-box {
    background: linear-gradient(180deg, #183b6b 0%, #0a1b38 100%);
    color: #ffffff;
    border-radius: 12px;
    border: 2px solid #4a7bb0;
    box-shadow: inset 0px 1px 2px rgba(255, 255, 255, 0.4), 0px 4px 8px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 3;
}
.organigram-container .level-1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
    z-index: 3;
    width: 100%;
}
.organigram-container .box-ministro {
    width: 320px;
    max-width: 90%;
    height: 52px;
}
.organigram-container .box-ministro .text {
    font-size: 32px;
    font-weight: 700;
    font-style: italic;
    line-height: 1;
}
.organigram-container .person-name {
    color: #0b224e;
    font-size: 14px;
    font-weight: 700;
    font-style: italic;
    margin-top: 6px;
    text-align: center;
    position: relative;
    z-index: 3;
    text-shadow:
        -3px -3px 0 #d8e5f3, 3px -3px 0 #d8e5f3, -3px 3px 0 #d8e5f3, 3px 3px 0 #d8e5f3,
        -2px 0 0 #d8e5f3, 2px 0 0 #d8e5f3, 0 -2px 0 #d8e5f3, 0 2px 0 #d8e5f3,
        0px 0px 6px #d8e5f3;
}
.organigram-container .level-2-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}
.organigram-container .section-badge-center {
    background: #d8e5f3;
    color: #0b224e;
    font-size: 26px;
    font-weight: 700;
    font-style: italic;
    padding: 0 14px;
    margin-bottom: 30px;
    z-index: 3;
}
.organigram-container .viceministerios-grid {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    gap: 15px;
}
.organigram-container .v-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 310px;
    max-width: 100%;
}
.organigram-container .box-viceministerio {
    width: 100%;
    height: 60px;
    padding: 4px 10px;
}
.organigram-container .box-viceministerio .text {
    font-size: 12px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.2;
}
.organigram-container .level-3-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
}
.organigram-container .section-badge-right {
    background: #e2edf7;
    color: #0b224e;
    font-size: 26px;
    font-weight: 700;
    font-style: italic;
    padding: 0 12px;
    margin-right: 215px;
    margin-bottom: 30px;
    z-index: 3;
}
.organigram-container .entes-grid {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}
.organigram-container .ente-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 118px;
    position: relative;
}
.organigram-container .direccion-general-tag {
    position: absolute;
    top: -26px;
    left: -5px;
    color: #0b224e;
    font-size: 13px;
    font-weight: 700;
    font-style: italic;
    white-space: nowrap;
    z-index: 3;
    text-shadow:
        -3px -3px 0 #e2edf7, 3px -3px 0 #e2edf7, -3px 3px 0 #e2edf7, 3px 3px 0 #e2edf7,
        -2px 0 0 #e2edf7, 2px 0 0 #e2edf7, 0 -2px 0 #e2edf7, 0 2px 0 #e2edf7,
        0px 0px 6px #e2edf7;
}
.organigram-container .box-ente {
    width: 100%;
    height: 84px;
    padding: 6px 4px;
    border-radius: 10px;
}
.organigram-container .box-ente .text {
    font-size: 10px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.15;
}
.organigram-container .ente-column .person-name {
    font-size: 11.5px;
    line-height: 1.1;
    margin-top: 6px;
}
@media (max-width: 1024px) {
    .organigram-container .main-title { font-size: 32px; }
    .organigram-container .section-badge-center,
    .organigram-container .section-badge-right {
        font-size: 22px;
        margin-right: 0;
        text-align: center;
    }
    .organigram-container .level-3-container { align-items: center; }
    .organigram-container .viceministerios-grid {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    .organigram-container .entes-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px 15px;
        justify-items: center;
    }
    .organigram-container .ente-column { width: 100%; max-width: 200px; }
    .organigram-container .box-ente { height: 75px; }
    .organigram-container .direccion-general-tag { left: 50%; transform: translateX(-50%); }
}
@media (max-width: 600px) {
    .organigram-container .main-title { font-size: 24px; margin-bottom: 20px; }
    .organigram-container .box-ministro .text { font-size: 24px; }
    .organigram-container .section-badge-center,
    .organigram-container .section-badge-right { font-size: 18px; }
    .organigram-container .entes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .organigram-container .v-column,
    .organigram-container .ente-column { width: 100%; max-width: 280px; }
    .organigram-container .box-ente { height: auto; min-height: 65px; padding: 10px; }
    .organigram-container .box-ente .text { font-size: 11px; }
}

