/* 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); }

.page-hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(0, 163, 224, 0.28), transparent 32%),
        linear-gradient(135deg, #0A2540 0%, #00529B 58%, #00A3E0 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;
}

.organigrama-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: 24px;
    padding: 20px;
    max-width: 640px;
    margin: 0 auto;
}
.organigrama-card img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 560px;
    margin: 0 auto;
}

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

.breadcrumb a { transition: color .2s ease; }
.breadcrumb a:hover { color: #00A3E0; }

.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, #00529B, #00A3E0);
}

.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; }

/* 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; }
}

/* Filtros y paginación de listados (prensa, boletines) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.news-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.85rem 1rem;
    padding: 1.15rem 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(0, 40, 86, 0.08);
    border-radius: 1.35rem;
    box-shadow: 0 10px 30px -12px rgba(0, 40, 86, 0.12);
    margin-bottom: 0.5rem;
}
.news-toolbar-search {
    position: relative;
    flex: 1 1 14rem;
    min-width: min(100%, 14rem);
}
.news-toolbar-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.85rem;
    pointer-events: none;
}
.news-toolbar-input {
    width: 100%;
    border: 1px solid #c5d8ef;
    border-radius: 0.95rem;
    padding: 0.72rem 1rem 0.72rem 2.45rem;
    color: #002856;
    font-size: 0.9rem;
    font-weight: 500;
    background: #fff;
    box-shadow: 0 6px 16px -10px rgba(0, 40, 86, 0.15);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.news-toolbar-input:focus {
    outline: none;
    border-color: #006ee6;
    box-shadow: 0 0 0 3px rgba(0, 110, 230, 0.18);
}
.news-toolbar-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 9.5rem;
}
.news-toolbar-field label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
}
.news-toolbar-field 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: 9.5rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.news-toolbar-field select:hover,
.news-toolbar-field select:focus {
    border-color: #006ee6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 110, 230, 0.18);
}
.news-toolbar-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: none;
    border-radius: 999px;
    padding: 0.72rem 1.2rem;
    background: linear-gradient(135deg, #0052b4, #006ee6);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    cursor: pointer;
    box-shadow: 0 8px 20px -8px rgba(0, 110, 230, 0.55);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-toolbar-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -8px rgba(0, 110, 230, 0.6);
}
.news-toolbar-clear {
    display: inline-flex;
    align-items: center;
    padding: 0.72rem 0.35rem;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}
.news-toolbar-clear:hover {
    color: #006ee6;
    text-decoration: underline;
}
.news-results-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-top: 1.25rem;
}
.news-results-count {
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
}

.list-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 2.5rem;
}
.list-pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: #e6f0fa;
    color: #002856;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.list-pagination-btn:hover {
    background: #006ee6;
    color: #fff;
}
.list-pagination-btn.is-disabled,
.list-pagination-page.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}
button.list-pagination-btn,
button.list-pagination-page {
    border: 0;
    cursor: pointer;
    font: inherit;
}
button.list-pagination-btn:disabled,
button.list-pagination-page:disabled {
    cursor: default;
}
.list-pagination-pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}
.list-pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    height: 2.1rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #002856;
    text-decoration: none;
    background: #f1f5f9;
    transition: background 0.2s ease, color 0.2s ease;
}
.list-pagination-page:hover {
    background: #dbeafe;
    color: #0052b4;
}
.list-pagination-page.is-current {
    background: #006ee6;
    color: #fff;
}
.list-pagination-ellipsis {
    color: #94a3b8;
    font-weight: 700;
    padding: 0 0.15rem;
}
.list-pagination-summary {
    margin: 0.75rem 0 0;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
}

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

