:root {
    --blue: #7f1d3a;
    --blue-dark: #4a1024;
    --green: #14b8a6;
    --orange: #0f9f9a;
    --ink: #24121b;
    --muted: #6c5a63;
    --line: #e4cbd5;
    --soft: #e7f3f6;
    --page-bg: #e7f3f6;
    --page-bg-dark: #c9dde4;
    --white: #ffffff;
}

body {
    color: var(--ink);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--page-bg);
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

.container,
.container-fluid,
section,
header,
footer,
main {
    max-width: 100%;
}

.container {
    max-width: min(1180px, 82vw);
}

.preheader .container,
.site-header .container {
    max-width: min(1500px, 98vw);
}

.btn {
    overflow-wrap: anywhere;
    white-space: normal;
}

.btn-success {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

.btn-success:hover {
    background: #0f9f9a;
    border-color: #0f9f9a;
}

.btn-outline-primary {
    border-color: var(--blue);
    color: var(--blue);
}

.btn-outline-primary:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}

.btn-warning {
    background: var(--white);
    border-color: var(--green);
    color: var(--blue-dark);
}

.btn-warning:hover {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

.preheader {
    background: var(--blue-dark);
    color: var(--white);
    font-size: .9rem;
    padding: .55rem 0;
}

.preheader a,
.preheader i {
    color: #dff7ea;
}

.site-header {
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 10px 28px rgba(8, 35, 65, .08);
}

.brand-logo {
    height: 56px;
    object-fit: contain;
    width: 56px;
}

.brand-mark,
.regional-mark {
    align-items: center;
    background: linear-gradient(135deg, var(--blue), var(--green));
    border-radius: 8px;
    color: var(--white);
    display: inline-flex;
    font-size: 1.6rem;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.navbar-brand strong,
.navbar-brand small {
    display: block;
    line-height: 1.15;
}

.navbar-brand small {
    color: var(--green);
    font-weight: 700;
}

.navbar .nav-link {
    color: var(--ink);
    font-weight: 700;
    padding-left: .45rem;
    padding-right: .45rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--blue);
}

.header-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: .4rem;
    justify-content: flex-end;
}

.header-search {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(20, 184, 166, .28);
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(74, 16, 36, .08);
    display: flex;
    gap: .35rem;
    min-height: 36px;
    padding: .18rem .22rem .18rem .65rem;
}

.header-search i {
    color: var(--green);
}

.header-search input {
    border: 0;
    color: var(--ink);
    min-width: 120px;
    outline: 0;
}

.header-search button {
    background: var(--blue);
    border: 0;
    border-radius: 999px;
    color: var(--white);
    font-size: .84rem;
    font-weight: 800;
    padding: .38rem .68rem;
}

.header-actions .btn {
    align-items: center;
    display: inline-flex;
    gap: .35rem;
    font-size: .88rem;
    padding: .42rem .62rem;
    white-space: nowrap;
}

.mega-menu {
    gap: 0;
    min-width: min(1120px, 94vw);
    padding: 1.05rem;
}

.mega-menu.show {
    display: grid;
    grid-template-columns: minmax(245px, .9fr) minmax(320px, 1.12fr) minmax(360px, 1.25fr);
    align-items: start;
}

.mega-menu h6 {
    color: var(--blue);
    font-weight: 800;
    margin: .35rem .85rem .65rem;
    padding-bottom: .45rem;
    border-bottom: 1px solid var(--line);
}

.mega-menu > li {
    min-width: 0;
    padding: 0 .85rem;
}

.mega-menu > li + li {
    border-left: 1px solid rgba(127, 29, 58, .13);
}

.dropdown-menu {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(8, 35, 65, .16);
}

.dropdown-item {
    align-items: center;
    border-radius: 6px;
    display: flex;
    gap: .55rem;
    font-weight: 700;
    line-height: 1.22;
    margin: .12rem 0;
    min-height: 36px;
    padding: .46rem .65rem;
    width: auto;
}

.dropdown-item i {
    color: var(--green);
    flex: 0 0 1.2rem;
    font-size: 1rem;
    width: 1.2rem;
}

.mega-menu .dropdown-item.ps-4 {
    padding-left: 2.15rem !important;
}

.mega-menu .menu-strong {
    font-weight: 800;
}

.mega-menu .menu-child {
    color: #4f3945;
    font-weight: 500;
}

.mega-menu .menu-child i {
    color: rgba(20, 184, 166, .78);
}

.dropdown-item:hover {
    background: #eef8f3;
    color: var(--blue-dark);
}

.hero-section .carousel-item {
    height: min(680px, 78vh);
    min-height: 520px;
}

.hero-section img,
.campaign-modal img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(5, 28, 56, .82), rgba(5, 28, 56, .28));
    inset: 0;
    position: absolute;
}

.hero-copy {
    color: var(--white);
    left: 50%;
    max-width: 1180px;
    position: absolute;
    top: 48%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.hero-copy h1 {
    font-size: clamp(2.25rem, 5vw, 4.8rem);
    font-weight: 900;
    line-height: 1.02;
    max-width: 840px;
}

.hero-copy p {
    font-size: 1.2rem;
    max-width: 650px;
}

.section-kicker {
    color: var(--orange);
    display: inline-block;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.section-heading {
    margin-bottom: 1.4rem;
}

.section-heading h2 {
    color: var(--blue-dark);
    font-size: 1.85rem;
    font-weight: 900;
    margin: .15rem 0 0;
}

.recommended-section,
.content-section {
    background: var(--white);
}

.recommended-grid,
.direct-grid,
.health-grid,
.social-grid,
.notice-list,
.media-grid {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.recommended-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.recommended-card,
.direct-card,
.social-card {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    display: flex;
    font-weight: 800;
    gap: .65rem;
    min-height: 86px;
    min-width: 0;
    padding: .85rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.recommended-card span,
.direct-card span,
.social-card span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.direct-button {
    background: var(--white);
    cursor: pointer;
    font: inherit;
    width: 100%;
    text-align: left;
}

.priority-card,
.app-access-card,
.mail-access-card,
.sis-access-card {
    background: linear-gradient(135deg, #f7fbff, #eef8f3);
    border-color: rgba(11, 92, 171, .22);
}

.priority-card {
    background: linear-gradient(135deg, #ffffff, #f8edf2);
    border-color: rgba(127, 29, 58, .22);
}

.mail-access-card {
    background: linear-gradient(135deg, #fff7ec, #eef8f3);
}

.sis-access-card {
    background: linear-gradient(135deg, #fff7fb, #e8fffb);
}

.cmn-access-card {
    background: linear-gradient(135deg, #ffffff, #eef8f8);
    border-color: rgba(20, 184, 166, .28);
}

.recommended-card:hover,
.direct-card:hover,
.health-card:hover,
.vertical-card:hover {
    border-color: rgba(22, 155, 98, .45);
    box-shadow: 0 14px 32px rgba(8, 35, 65, .11);
    transform: translateY(-3px);
}

.recommended-card i,
.direct-card i,
.social-card i {
    color: var(--green);
    flex: 0 0 auto;
    font-size: 1.65rem;
}

.main-band {
    background:
        radial-gradient(circle at 18% 0%, rgba(20, 184, 166, .18), transparent 28%),
        linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg-dark) 100%);
}

.portal-main-grid {
    align-items: start;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
    max-width: 100%;
    overflow: visible;
}

.portal-main-content {
    display: grid;
    gap: 1.5rem;
    min-width: 0;
}

.content-section,
.aside-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    min-width: 0;
    padding: 1.4rem;
}

.media-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}

.video-panel,
.banner-panel,
.notice-list article,
.health-card,
.vertical-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.video-thumbs-marquee {
    border-top: 1px solid var(--line);
    overflow: hidden;
    padding: .85rem;
    position: relative;
}

.video-thumbs-marquee::before,
.video-thumbs-marquee::after {
    content: "";
    pointer-events: none;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 34px;
    z-index: 2;
}

.video-thumbs-marquee::before {
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0));
    left: 0;
}

.video-thumbs-marquee::after {
    background: linear-gradient(270deg, #ffffff, rgba(255, 255, 255, 0));
    right: 0;
}

.video-thumbs-track {
    display: flex;
    gap: .75rem;
    width: max-content;
    animation: videoThumbSlide 42s linear infinite;
}

.video-thumbs-marquee:hover .video-thumbs-track {
    animation-play-state: paused;
}

.video-thumb {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    cursor: pointer;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    text-align: left;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    width: 185px;
}

.video-thumb:hover,
.video-thumb.active {
    border-color: var(--green);
    box-shadow: 0 10px 22px rgba(74, 16, 36, .12);
    transform: translateY(-2px);
}

.video-thumb span {
    display: block;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.18;
    min-height: 48px;
    padding: .55rem;
}

.video-frame {
    display: block;
    height: 92px;
    min-height: 0 !important;
    padding: 0 !important;
    position: relative;
}

.video-frame img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.video-frame i {
    align-items: center;
    background: rgba(127, 29, 58, .9);
    border: 2px solid rgba(255, 255, 255, .85);
    border-radius: 999px;
    color: #ffffff;
    display: flex;
    font-size: 1.35rem;
    height: 42px;
    justify-content: center;
    left: 50%;
    padding-left: 2px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
}

@keyframes videoThumbSlide {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-6 * 197px)); }
}

.video-panel h3,
.banner-panel h3,
.notice-list h3,
.health-card h3,
.vertical-card h3 {
    font-size: 1.05rem;
    font-weight: 900;
}

.banner-panel img,
.health-card img,
.vertical-card img {
    height: 190px;
    object-fit: cover;
    width: 100%;
}

.banner-panel div,
.notice-list article,
.health-card div,
.vertical-card div {
    padding: 1rem;
}

.dynamic-banner {
    background: var(--blue-dark);
    min-height: 415px;
    position: relative;
}

.dynamic-banner .carousel-inner,
.dynamic-banner .carousel-item {
    height: 100%;
    min-height: 415px;
    padding: 0;
}

.dynamic-banner .carousel-item::after {
    background: linear-gradient(0deg, rgba(5, 22, 42, .92), rgba(5, 22, 42, .18));
    content: "";
    inset: 0;
    position: absolute;
}

.dynamic-banner img {
    height: 415px;
    transform: scale(1.04);
}

.dynamic-banner .active img {
    animation: bannerZoom 7s ease both;
}

.banner-copy {
    bottom: 0;
    color: var(--white);
    left: 0;
    padding: 1.4rem;
    position: absolute;
    right: 0;
    z-index: 2;
}

.banner-copy h3 {
    font-size: 1.45rem;
}

.banner-copy p {
    color: rgba(255, 255, 255, .88);
}

.banner-pulse {
    align-items: center;
    animation: pulseSignal 1.8s ease-in-out infinite;
    background: var(--orange);
    border-radius: 999px;
    color: var(--blue-dark);
    display: flex;
    height: 48px;
    justify-content: center;
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 48px;
    z-index: 3;
}

@keyframes bannerZoom {
    from { transform: scale(1.04); }
    to { transform: scale(1.13); }
}

@keyframes pulseSignal {
    0%, 100% { box-shadow: 0 0 0 0 rgba(242, 157, 53, .45); transform: scale(1); }
    50% { box-shadow: 0 0 0 14px rgba(242, 157, 53, 0); transform: scale(1.06); }
}

.notice-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.notice-list span {
    color: var(--orange);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.direct-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.health-card {
    background: var(--white);
}

.health-grid {
    display: flex;
    gap: 1rem;
    max-width: 100%;
    overflow: hidden;
    padding: .25rem;
}

.health-card {
    flex: 0 0 280px;
    animation: healthSlide 54s linear infinite;
    transform-style: preserve-3d;
}

.health-grid:hover .health-card {
    animation-play-state: paused;
}

.health-card:hover {
    transform: rotateY(360deg) translateY(-3px);
    transition: transform .8s ease, box-shadow .2s ease, border-color .2s ease;
}

@keyframes healthSlide {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-17 * 296px)); }
}

.health-card p {
    color: var(--muted);
    margin-bottom: .8rem;
}

.institutional-aside {
    display: grid;
    gap: 1.5rem;
    min-width: 0;
    position: sticky;
    top: 96px;
}

.aside-panel {
    background: var(--white);
}

.aside-panel h2 {
    color: var(--blue-dark);
    font-size: 1.25rem;
    font-weight: 900;
}

.vertical-marquee {
    max-height: 276px;
    overflow: hidden;
    position: relative;
}

.vertical-marquee::before,
.vertical-marquee::after {
    content: "";
    height: 34px;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    z-index: 2;
}

.vertical-marquee::before {
    background: linear-gradient(180deg, var(--white), rgba(255, 255, 255, 0));
    top: 0;
}

.vertical-marquee::after {
    background: linear-gradient(0deg, var(--white), rgba(255, 255, 255, 0));
    bottom: 0;
}

.vertical-track {
    display: grid;
    gap: .75rem;
    animation: verticalMarquee 34s linear infinite;
}

.vertical-track.reverse {
    animation: verticalMarqueeReverse 38s linear infinite;
}

.vertical-marquee:hover .vertical-track {
    animation-play-state: paused;
}

.institution-logo {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    display: grid;
    gap: .65rem;
    grid-template-columns: 64px minmax(0, 1fr);
    min-height: 82px;
    padding: .75rem;
}

.institution-logo span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.institution-logo img {
    max-height: 48px;
    max-width: 64px;
    object-fit: contain;
}

.vertical-card + .vertical-card {
    margin-top: 1rem;
}

.vertical-card {
    background: var(--white);
}

@keyframes verticalMarquee {
    from { transform: translateY(0); }
    to { transform: translateY(-54%); }
}

@keyframes verticalMarqueeReverse {
    from { transform: translateY(-54%); }
    to { transform: translateY(0); }
}

.social-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.social-card {
    color: var(--white);
    justify-content: center;
}

.social-card i {
    color: var(--white);
}

.facebook { background: #1877f2; }
.tiktok { background: #111827; }
.youtube { background: #ff0033; }
.instagram { background: #c13584; }

.prefooter {
    background: #08233f;
    color: var(--white);
    padding: 3rem 0;
}

.prefooter .container {
    max-width: min(1500px, 98vw);
}

.prefooter-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(270px, 1.2fr) minmax(250px, 1fr) minmax(220px, .82fr) minmax(330px, 1.18fr);
}

.prefooter-col {
    border-left: 1px solid rgba(255, 255, 255, .18);
    min-width: 0;
    padding-left: 1.45rem;
}

.prefooter h2 {
    color: #dff7ea;
    font-size: 1.25rem;
    font-weight: 900;
}

.prefooter h3 {
    color: var(--orange);
    font-size: 1rem;
    font-weight: 900;
}

.prefooter a {
    color: var(--white);
    display: block;
    margin-bottom: .65rem;
}

.prefooter i {
    color: #ff7a00;
    margin-right: .35rem;
}

.footer-brand {
    display: flex;
    gap: .8rem;
}

.footer-social {
    display: flex;
    gap: .8rem;
}

.footer-social a {
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border-radius: 8px;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.footer-tramite-btn {
    background: #ffb000;
    border-color: #ffb000;
    color: #3a0d1d !important;
    font-weight: 900;
}

.footer-tramite-btn i {
    color: #3a0d1d;
}

.footer-tramite-btn:hover {
    background: var(--green);
    border-color: var(--green);
    color: var(--white) !important;
}

.footer-tramite-btn:hover i {
    color: var(--white);
}

.footer-tramite-btn:active {
    background: #ff7a00 !important;
    border-color: #ff7a00 !important;
    color: #3a0d1d !important;
}

.map-frame iframe {
    border: 0;
    border-radius: 8px;
    height: 220px;
    width: 100%;
}

.footer-final {
    background: #05162a;
    color: rgba(255, 255, 255, .86);
    padding: 1rem 0;
}

.footer-inline {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    justify-content: center;
    text-align: center;
}

.footer-inline span + span::before {
    color: rgba(255, 255, 255, .4);
    content: "|";
    margin-right: .65rem;
}

.campaign-modal .carousel-item {
    height: min(620px, 70vh);
}

.campaign-timer {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: .9rem;
    gap: .65rem;
}

.timer-ring {
    align-items: center;
    background: #eef8f3;
    border: 2px solid rgba(22, 155, 98, .28);
    border-radius: 999px;
    color: var(--green);
    display: inline-flex;
    font-weight: 900;
    height: 46px;
    justify-content: center;
    min-width: 46px;
}

.campaign-caption {
    background: linear-gradient(0deg, rgba(5, 28, 56, .82), transparent);
    bottom: 0;
    color: var(--white);
    left: 0;
    padding: 4rem 2rem 2rem;
    position: absolute;
    right: 0;
}

.campaign-caption h2 {
    font-size: clamp(1.8rem, 4vw, 3.4rem);
    font-weight: 900;
}

.health-modal-header {
    align-items: center;
    background: #f8fbfd;
}

.regional-logo {
    height: 58px;
    object-fit: contain;
    width: 88px;
}

.health-modal-header h2 {
    color: var(--blue-dark);
    font-size: 1.35rem;
    font-weight: 900;
    margin: 0;
}

.health-modal-header p {
    color: var(--green);
    font-weight: 800;
    margin: 0;
}

.health-modal-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr 1fr;
}

.health-modal-grid img {
    border-radius: 8px;
    height: 360px;
    object-fit: cover;
    width: 100%;
}

.health-detail-list p {
    border-bottom: 1px solid var(--line);
    margin: 0;
    padding: .75rem 0;
}

.health-detail-list span {
    color: var(--muted);
    display: block;
    font-size: .86rem;
}

.care-modal-header {
    background: linear-gradient(135deg, #f7fbff, #eef8f3);
}

.apps-modal-header {
    background: linear-gradient(135deg, #f7fbff, #fff7ec);
}

.apps-modal-header h2 {
    color: var(--blue-dark);
    font-weight: 900;
}

.apps-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-system-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.app-system-card:hover {
    border-color: rgba(22, 155, 98, .45);
    box-shadow: 0 16px 34px rgba(8, 35, 65, .13);
    transform: translateY(-4px);
}

.app-system-card img {
    height: 190px;
    object-fit: cover;
    width: 100%;
}

.app-system-card div {
    padding: 1rem;
}

.app-system-card i {
    color: var(--green);
    font-size: 1.8rem;
}

.app-system-card h3 {
    color: var(--blue-dark);
    font-size: 1.15rem;
    font-weight: 900;
    margin-top: .4rem;
}

.app-system-card p {
    color: var(--muted);
    margin-bottom: .8rem;
}

.app-system-card span {
    color: var(--orange);
    font-weight: 900;
}

.care-modal-header h2 {
    color: var(--blue-dark);
    font-weight: 900;
}

.care-program-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
}

.care-program-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.care-program-card:hover {
    border-color: rgba(11, 92, 171, .35);
    box-shadow: 0 14px 30px rgba(8, 35, 65, .12);
    transform: translateY(-4px);
}

.care-program-card img {
    height: 145px;
    object-fit: cover;
    width: 100%;
}

.care-program-card span {
    color: var(--orange);
    display: block;
    font-weight: 900;
    padding: .9rem 1rem 0;
}

.care-program-card h3 {
    color: var(--blue-dark);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.25;
    min-height: 70px;
    padding: .2rem 1rem 1rem;
}

@media (max-width: 1199px) {
    .recommended-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .prefooter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mega-menu.show {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .container {
        max-width: 92vw;
    }

    .portal-main-grid,
    .media-grid,
    .prefooter-grid,
    .health-modal-grid {
        grid-template-columns: 1fr;
    }

    .institutional-aside {
        position: static;
    }

    .recommended-grid,
    .direct-grid,
    .notice-list,
    .social-grid,
    .apps-grid,
    .header-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 575px) {
    .container {
        max-width: 94vw;
    }

    .hero-section .carousel-item {
        min-height: 560px;
    }

    .hero-copy {
        top: 52%;
    }

    .recommended-grid,
    .direct-grid,
    .notice-list,
    .social-grid,
    .apps-grid,
    .content-section,
    .aside-panel {
        padding: 1rem;
    }
}

/* ==========================================================================\n   Rediseño visual institucional v4\n   Mantiene la arquitectura y rutas; moderniza proporciones, color e interfaz.\n   ========================================================================== */
:root {
    --primary-950: #073c3b;
    --primary-900: #084b49;
    --primary-800: #075c5a;
    --primary-700: #006666;
    --primary-600: #0b7976;
    --primary-500: #13918c;
    --gold: #EFBF04;
    --gold-soft: #fff5c7;
    --ink: #172927;
    --muted: #687a77;
    --line: #dce8e6;
    --soft: #f5f8f7;
    --page-bg: #f7f9f8;
    --page-bg-dark: #edf2f1;
    --white: #ffffff;
    --blue: var(--primary-700);
    --blue-dark: var(--primary-950);
    --green: var(--primary-600);
    --orange: #c79700;
}

body {
    background: var(--page-bg);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
}

.container {
    width: 95%;
    max-width: 1580px;
}

.preheader .container,
.site-header .container {
    width: 96%;
    max-width: 1640px;
}

.preheader {
    background: linear-gradient(90deg, var(--primary-950), var(--primary-800));
    border-bottom: 2px solid rgba(239, 191, 4, .85);
    padding: .48rem 0;
}

.site-header {
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(7, 60, 59, .08);
}

.navbar {
    min-height: 84px;
}

.brand-logo {
    height: 62px;
    width: 62px;
}

.navbar-brand strong {
    color: var(--primary-950);
    font-size: 1.04rem;
    letter-spacing: -.01em;
}

.navbar-brand small {
    color: var(--primary-600);
    font-size: .82rem;
}

.navbar .nav-link {
    align-items: center;
    border-radius: 10px;
    display: inline-flex;
    gap: .38rem;
    font-size: .93rem;
    padding: .62rem .66rem;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.navbar .nav-link i {
    color: var(--primary-600);
    font-size: .94rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    background: #eff7f5;
    color: var(--primary-950);
}

.header-search {
    border-color: #d9e7e4;
    box-shadow: none;
}

.header-search:focus-within {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(19, 145, 140, .10);
}

.header-search button,
.btn-outline-primary:hover {
    background: var(--primary-800);
    border-color: var(--primary-800);
}

.btn-success {
    background: var(--primary-700);
    border-color: var(--primary-700);
}

.btn-success:hover {
    background: var(--primary-900);
    border-color: var(--primary-900);
}

.btn-warning {
    background: var(--gold-soft);
    border-color: var(--gold);
    color: var(--primary-950);
}

.dropdown-menu {
    border: 1px solid rgba(7, 92, 90, .08);
    border-radius: 14px;
    box-shadow: 0 22px 55px rgba(15, 58, 55, .14);
}

.dropdown-item {
    border-radius: 9px;
}

.dropdown-item:hover {
    background: #eef7f5;
}

/* Carrusel principal alineado al ancho general */
.hero-section {
    background: var(--page-bg);
    padding: 18px 0 0;
}

.hero-section > .carousel {
    border-radius: 22px;
    box-shadow: 0 22px 55px rgba(7, 60, 59, .16);
    margin-inline: auto;
    max-width: 1580px;
    overflow: hidden;
    width: 95%;
}

.hero-section .carousel-item {
    height: clamp(430px, 58vw, 610px);
    min-height: 430px;
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(4, 42, 40, .86) 0%, rgba(4, 42, 40, .56) 48%, rgba(4, 42, 40, .14) 100%);
}

.hero-copy {
    left: 50%;
    max-width: 1450px;
    top: 49%;
    width: 92%;
}

.hero-copy .section-kicker {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 999px;
    color: #fff2a8;
    letter-spacing: .08em;
    margin-bottom: .8rem;
    padding: .45rem .8rem;
}

.hero-copy h1 {
    font-size: clamp(2.25rem, 4.3vw, 4.65rem);
    letter-spacing: -.045em;
    line-height: 1.02;
    margin-bottom: 1rem;
    max-width: 920px;
    text-shadow: 0 4px 24px rgba(0,0,0,.18);
}

.hero-copy p {
    color: rgba(255,255,255,.92);
    font-size: clamp(1rem, 1.5vw, 1.22rem);
    margin-bottom: 1.35rem;
    max-width: 720px;
}

.hero-copy .btn {
    border-radius: 10px;
    font-size: .96rem;
    font-weight: 700;
    padding: .72rem 1rem;
}

.carousel-indicators [data-bs-target] {
    border: 0;
    border-radius: 999px;
    height: 5px;
    opacity: .55;
    width: 32px;
}

.carousel-indicators .active {
    background-color: var(--gold);
    opacity: 1;
    width: 48px;
}

/* Barra de accesos rápidos superpuesta */
.quick-access-wrap {
    position: relative;
    z-index: 5;
}

.quick-access-wrap .container {
    margin-top: -34px;
}

.quick-access-bar {
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(7, 92, 90, .09);
    border-radius: 18px;
    box-shadow: 0 16px 45px rgba(7, 60, 59, .13);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: hidden;
}

.quick-access-item {
    align-items: center;
    color: var(--ink);
    display: grid;
    gap: .72rem;
    grid-template-columns: auto 1fr auto;
    min-height: 92px;
    padding: 1rem 1.15rem;
    position: relative;
    transition: background-color .18s ease, transform .18s ease;
}

.quick-access-item + .quick-access-item {
    border-left: 1px solid var(--line);
}

.quick-access-item:hover {
    background: #f0f8f6;
    color: var(--primary-950);
}

.quick-icon {
    align-items: center;
    background: linear-gradient(145deg, #ecf7f5, #ffffff);
    border: 1px solid #d9ebe8;
    border-radius: 13px;
    color: var(--primary-700);
    display: inline-flex;
    font-size: 1.35rem;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.quick-access-item strong,
.quick-access-item small {
    display: block;
}

.quick-access-item strong {
    color: var(--primary-950);
    font-size: .94rem;
    line-height: 1.2;
}

.quick-access-item small {
    color: var(--muted);
    font-size: .75rem;
    margin-top: .18rem;
}

.quick-arrow {
    color: #a3b6b3;
    font-size: .78rem;
}

/* Secciones, encabezados y tarjetas */
.recommended-section,
.main-band {
    background: transparent;
}

.recommended-section {
    padding-top: 4.8rem !important;
}

.section-heading {
    margin-bottom: 1.8rem;
    max-width: 760px;
}

.section-heading .section-kicker {
    color: #9b7600;
    letter-spacing: .1em;
}

.section-heading h2 {
    color: var(--primary-950);
    font-size: clamp(1.75rem, 2.5vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin-top: .28rem;
}

.section-heading h2::after {
    background: linear-gradient(90deg, var(--gold), rgba(239,191,4,0));
    border-radius: 99px;
    content: "";
    display: block;
    height: 4px;
    margin-top: .7rem;
    width: 76px;
}

.recommended-grid {
    gap: 1rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.recommended-card {
    background: #fff;
    border: 1px solid #dfe9e7;
    border-radius: 16px;
    box-shadow: 0 8px 26px rgba(7, 60, 59, .055);
    min-height: 132px;
    padding: 1.2rem 1rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.recommended-card i {
    align-items: center;
    background: #edf7f5;
    border-radius: 12px;
    color: var(--primary-700);
    display: inline-flex;
    font-size: 1.45rem;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.recommended-card span {
    color: var(--primary-950);
    font-weight: 750;
}

.recommended-card:hover {
    border-color: rgba(0, 102, 102, .26);
    box-shadow: 0 16px 38px rgba(7, 60, 59, .11);
    transform: translateY(-4px);
}

.content-section,
.aside-panel,
.video-panel,
.banner-panel {
    border-color: rgba(7,92,90,.08) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 32px rgba(7, 60, 59, .055) !important;
}

.main-band {
    padding-top: 1rem !important;
}

.prefooter {
    background: linear-gradient(135deg, var(--primary-950), #075f5c);
}

.footer-final {
    background: #062f2e;
    border-top: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 1399px) {
    .recommended-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .quick-access-bar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .quick-access-item:nth-child(4) {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .quick-access-item:nth-child(5) {
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 1199px) {
    .hero-section > .carousel,
    .container {
        width: 94%;
    }

    .quick-access-wrap .container {
        margin-top: 18px;
    }

    .quick-access-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-access-item:nth-child(n) {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .quick-access-item:nth-child(1),
    .quick-access-item:nth-child(2) {
        border-top: 0;
    }

    .quick-access-item:nth-child(even) {
        border-left: 1px solid var(--line);
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding-top: 10px;
    }

    .hero-section > .carousel {
        border-radius: 15px;
        width: 96%;
    }

    .hero-section .carousel-item {
        height: 540px;
        min-height: 540px;
    }

    .hero-copy {
        width: 88%;
    }

    .hero-copy h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .quick-access-bar,
    .recommended-grid {
        grid-template-columns: 1fr;
    }

    .quick-access-item:nth-child(n) {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .quick-access-item:first-child {
        border-top: 0;
    }

    .quick-access-item {
        min-height: 78px;
    }

    .recommended-section {
        padding-top: 2.6rem !important;
    }
}

/* ==========================================================
   IDENTIDAD V5 — DORADO METÁLICO / LUZ EN MOVIMIENTO
   ========================================================== */
:root {
    --gold-950: #5f4300;
    --gold-900: #7a5700;
    --gold-800: #9b7000;
    --gold-700: #b98900;
    --gold-600: #d7a900;
    --gold-500: #efbf04;
    --gold-400: #f8d34a;
    --gold-300: #ffe57d;
    --gold-200: #fff0ad;
    --gold-100: #fff8dc;
    --gold-metal: linear-gradient(115deg,
        #765300 0%,
        #b88400 18%,
        #efbf04 36%,
        #fff2a6 49%,
        #dcae00 61%,
        #f5cf3b 78%,
        #8b6300 100%);
    --gold-metal-soft: linear-gradient(135deg,
        #fff9e7 0%,
        #ffefad 28%,
        #e9ba17 52%,
        #fff4c3 72%,
        #c99500 100%);
    --gold-shadow: 0 8px 24px rgba(174, 125, 0, .22);
}

body {
    background: #ffffff;
}

/* Franja institucional superior: detalle dorado continuo */
.preheader {
    border-bottom: 0;
    position: relative;
    overflow: hidden;
}

.preheader::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--gold-metal);
    background-size: 220% 100%;
    animation: goldFlow 7s linear infinite;
}

/* Navegación: activo elegante con línea de oro */
.navbar .nav-link {
    position: relative;
    overflow: hidden;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: .18rem;
    height: 2px;
    border-radius: 99px;
    background: var(--gold-metal);
    transition: left .2s ease, right .2s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    left: .65rem;
    right: .65rem;
}

.navbar .nav-link:hover i,
.navbar .nav-link.active i {
    color: var(--gold-700);
}

/* Botón dorado metálico — Correo / acciones secundarias destacadas */
.btn-warning {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--gold-metal);
    background-size: 180% 180%;
    border: 1px solid rgba(124, 88, 0, .40);
    color: #3d2c00;
    box-shadow: 0 6px 18px rgba(174, 125, 0, .18), inset 0 1px 0 rgba(255,255,255,.72);
    font-weight: 800;
    text-shadow: 0 1px 0 rgba(255,255,255,.42);
    animation: goldFlow 8s ease-in-out infinite;
}

.btn-warning::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -120%;
    left: -45%;
    width: 22%;
    height: 330%;
    transform: rotate(22deg);
    background: linear-gradient(90deg,
        transparent,
        rgba(255,255,255,.12),
        rgba(255,255,255,.82),
        rgba(255,255,255,.16),
        transparent);
    filter: blur(.5px);
    animation: goldShine 5.6s ease-in-out infinite;
}

.btn-warning:hover {
    background: var(--gold-metal);
    background-size: 180% 180%;
    border-color: var(--gold-800);
    color: #2f2100;
    box-shadow: 0 9px 26px rgba(174, 125, 0, .30), inset 0 1px 0 rgba(255,255,255,.86);
    transform: translateY(-1px);
}

/* Kicker dorado con acabado metálico */
.section-heading .section-kicker,
.hero-copy .section-kicker {
    font-weight: 850;
}

.section-heading .section-kicker {
    background: var(--gold-metal);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: goldFlow 8s linear infinite;
}

/* Línea dorada bajo títulos con reflejo diagonal */
.section-heading h2::after {
    position: relative;
    overflow: hidden;
    width: 92px;
    height: 5px;
    background: var(--gold-metal);
    background-size: 210% 100%;
    box-shadow: 0 3px 10px rgba(196, 145, 0, .20);
    animation: goldFlow 7s linear infinite;
}

/* Indicadores del carrusel: oro pulido */
.carousel-indicators [data-bs-target] {
    background: rgba(255,255,255,.62);
    box-shadow: 0 1px 5px rgba(0,0,0,.18);
}

.carousel-indicators .active {
    background: var(--gold-metal);
    background-size: 200% 100%;
    box-shadow: 0 0 0 1px rgba(255,241,166,.35), 0 3px 12px rgba(216,167,0,.42);
    animation: goldFlow 5s linear infinite;
}

/* Accesos rápidos: iconos con aro dorado y brillo en hover */
.quick-icon {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #fffdf7, #fff8df);
    border-color: rgba(198, 149, 0, .34);
    color: var(--primary-800);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.85), 0 5px 14px rgba(168,126,0,.08);
}

.quick-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--gold-metal);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: .72;
}

.quick-icon::after {
    content: "";
    position: absolute;
    top: -80%;
    left: -55%;
    width: 30%;
    height: 260%;
    transform: rotate(25deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.82), transparent);
    transition: left .6s ease;
}

.quick-access-item:hover .quick-icon::after {
    left: 125%;
}

.quick-access-item:hover .quick-icon {
    color: var(--gold-900);
    box-shadow: var(--gold-shadow);
}

.quick-access-item:hover .quick-arrow {
    color: var(--gold-700);
    transform: translateX(3px);
}

.quick-arrow {
    transition: color .2s ease, transform .2s ease;
}

/* Tarjetas recomendadas: fino borde dorado superior + barrido de luz */
.recommended-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.recommended-card::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    border-radius: 0 0 99px 99px;
    background: var(--gold-metal);
    background-size: 220% 100%;
    opacity: .55;
    animation: goldFlow 8s linear infinite;
}

.recommended-card::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: -120%;
    left: -38%;
    width: 18%;
    height: 330%;
    transform: rotate(22deg);
    background: linear-gradient(90deg,
        transparent,
        rgba(255,238,159,.08),
        rgba(255,231,115,.35),
        rgba(255,255,255,.58),
        rgba(255,231,115,.22),
        transparent);
    opacity: 0;
    pointer-events: none;
}

.recommended-card > * {
    position: relative;
    z-index: 1;
}

.recommended-card i {
    background: linear-gradient(145deg, #fffaf0, #fff3c1);
    border: 1px solid rgba(202, 151, 0, .22);
    color: var(--primary-800);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.92);
}

.recommended-card:hover {
    border-color: rgba(190, 140, 0, .34);
    box-shadow: 0 18px 42px rgba(7,60,59,.10), 0 6px 20px rgba(183,137,0,.08);
}

.recommended-card:hover::before {
    opacity: 1;
}

.recommended-card:hover::after {
    opacity: 1;
    animation: cardGoldSweep 1.1s ease forwards;
}

.recommended-card:hover i {
    color: var(--gold-900);
    box-shadow: 0 7px 18px rgba(188,141,0,.14), inset 0 1px 0 rgba(255,255,255,.95);
}

/* Bloques de contenido: acento institucional fino */
.content-section,
.aside-panel,
.video-panel,
.banner-panel {
    position: relative;
    overflow: hidden;
}

.content-section::before,
.aside-panel::before,
.video-panel::before,
.banner-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--gold-800) 18%,
        var(--gold-300) 50%,
        var(--gold-700) 82%,
        transparent 100%);
    opacity: .62;
}

/* Footer: remate dorado que separa la información institucional */
.prefooter {
    position: relative;
    overflow: hidden;
}

.prefooter::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: var(--gold-metal);
    background-size: 220% 100%;
    animation: goldFlow 8s linear infinite;
}

.prefooter h2,
.prefooter h3 {
    text-shadow: 0 1px 10px rgba(0,0,0,.10);
}

.prefooter i,
.footer-social i {
    color: var(--gold-300);
}

.footer-social a:hover {
    border-color: rgba(255,224,108,.62);
    box-shadow: 0 0 18px rgba(239,191,4,.20);
}

/* Animaciones metálicas */
@keyframes goldFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes goldShine {
    0%, 60% { left: -45%; opacity: 0; }
    66% { opacity: .78; }
    82% { left: 125%; opacity: .9; }
    100% { left: 125%; opacity: 0; }
}

@keyframes cardGoldSweep {
    0% { left: -38%; }
    100% { left: 125%; }
}

/* Respeto a preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .preheader::after,
    .btn-warning,
    .btn-warning::after,
    .section-heading .section-kicker,
    .section-heading h2::after,
    .carousel-indicators .active,
    .recommended-card::before,
    .recommended-card:hover::after,
    .prefooter::before {
        animation: none !important;
    }
}

/* =========================================================
   V6 · IDENTIDAD VISUAL INSTITUCIONAL
   Verde petróleo profundo + blanco + dorado metálico
   ========================================================= */
:root {
    --petrol-1000: #002f2f;
    --petrol-950: #003a3a;
    --petrol-900: #004747;
    --petrol-800: #005656;
    --petrol-700: #006666;
    --petrol-600: #087878;
    --petrol-500: #15908d;
    --paper: #ffffff;
    --paper-soft: #f7faf9;
    --paper-green: #f0f6f5;
    --gold-deep: #8b6300;
    --gold-mid: #c99700;
    --gold-main: #efbf04;
    --gold-bright: #ffd95a;
    --gold-glow: #fff3ae;
    --gold-pale: #fff9df;
    --text-deep: #19302e;
    --text-soft: #657a77;
    --border-soft: #dbe7e5;
}

body {
    background: var(--paper);
    color: var(--text-deep);
}

/* Utilidad metálica compartida */
@keyframes ue413GoldSweep {
    0%, 64% { transform: translateX(-180%) skewX(-22deg); opacity: 0; }
    70% { opacity: .16; }
    78% { opacity: .92; }
    88% { opacity: .18; }
    100% { transform: translateX(520%) skewX(-22deg); opacity: 0; }
}

@keyframes ue413GoldGlow {
    0%, 100% { filter: brightness(1) saturate(1); }
    50% { filter: brightness(1.16) saturate(1.08); }
}

/* Cabecera superior: institucional y sólida */
.preheader {
    background:
        radial-gradient(circle at 18% 0%, rgba(21,144,141,.18), transparent 30%),
        linear-gradient(100deg, var(--petrol-1000), var(--petrol-900) 55%, var(--petrol-800));
    border-bottom: 0;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,.08);
    color: rgba(255,255,255,.94);
    position: relative;
}

.preheader::after {
    background: linear-gradient(90deg,
        var(--gold-deep), var(--gold-main) 22%, var(--gold-glow) 48%,
        var(--gold-bright) 62%, var(--gold-mid));
    bottom: 0;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    right: 0;
}

.preheader a,
.preheader i {
    color: var(--gold-glow);
}

/* Navegación principal: blanca con remate de oro */
.site-header {
    background: rgba(255,255,255,.985);
    border-bottom: 1px solid rgba(0,71,71,.08);
    box-shadow: 0 10px 28px rgba(0,55,55,.08);
    position: relative;
}

.site-header::after {
    background: linear-gradient(90deg, transparent 1%, var(--gold-deep) 12%, var(--gold-main) 38%, var(--gold-glow) 50%, var(--gold-main) 62%, var(--gold-deep) 88%, transparent 99%);
    bottom: -1px;
    content: "";
    height: 2px;
    left: 0;
    opacity: .78;
    position: absolute;
    width: 100%;
}

.navbar-brand strong { color: var(--petrol-950); }
.navbar-brand small { color: var(--petrol-700); }

.navbar .nav-link {
    color: var(--petrol-950);
    position: relative;
}

.navbar .nav-link i { color: var(--gold-mid); }

.navbar .nav-link::after {
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright), var(--gold-deep));
    border-radius: 99px;
    bottom: .28rem;
    content: "";
    height: 2px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%) scaleX(0);
    transition: transform .22s ease;
    width: calc(100% - 1.2rem);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    background: var(--paper-green);
    color: var(--petrol-900);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { transform: translateX(-50%) scaleX(1); }

.header-search {
    background: var(--paper);
    border: 1px solid rgba(0,102,102,.22);
}
.header-search i { color: var(--gold-mid); }
.header-search button {
    background: linear-gradient(135deg, var(--petrol-900), var(--petrol-700));
    box-shadow: 0 5px 14px rgba(0,71,71,.16);
}

/* Botón dorado metálico reutilizable */
.btn-warning,
.gold-metal-button {
    background: linear-gradient(118deg,
        var(--gold-deep) 0%,
        var(--gold-mid) 18%,
        var(--gold-main) 36%,
        var(--gold-glow) 49%,
        var(--gold-bright) 57%,
        var(--gold-main) 72%,
        var(--gold-deep) 100%);
    border: 1px solid #a77700;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.62), 0 6px 16px rgba(139,99,0,.18);
    color: var(--petrol-1000);
    overflow: hidden;
    position: relative;
    text-shadow: 0 1px 0 rgba(255,255,255,.4);
}

.btn-warning::after,
.gold-metal-button::after {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.82), transparent);
    content: "";
    height: 180%;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: -40%;
    transform: translateX(-180%) skewX(-22deg);
    width: 18%;
    animation: ue413GoldSweep 5.8s ease-in-out infinite;
}

.btn-warning:hover {
    color: var(--petrol-1000);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, var(--petrol-900), var(--petrol-700));
    border-color: var(--petrol-800);
    box-shadow: 0 7px 18px rgba(0,71,71,.18);
}
.btn-success:hover {
    background: linear-gradient(135deg, var(--petrol-1000), var(--petrol-800));
    border-color: var(--petrol-900);
}

.btn-outline-primary {
    border-color: var(--petrol-700);
    color: var(--petrol-800);
}
.btn-outline-primary:hover {
    background: var(--petrol-800);
    border-color: var(--petrol-800);
}

/* Mega menú */
.dropdown-menu {
    border: 1px solid rgba(0,102,102,.10);
    box-shadow: 0 24px 58px rgba(0,53,53,.16);
}
.mega-menu h6 {
    color: var(--petrol-900);
    border-bottom-color: rgba(239,191,4,.38);
}
.dropdown-item i { color: var(--gold-mid); }
.dropdown-item:hover {
    background: linear-gradient(90deg, var(--gold-pale), var(--paper-green));
    color: var(--petrol-950);
}

/* Hero: marco institucional verde + oro */
.hero-section {
    background: var(--paper);
    padding-top: 24px;
}

.hero-section > .carousel {
    border: 1px solid rgba(0,71,71,.14);
    box-shadow: 0 22px 58px rgba(0,55,55,.18);
    position: relative;
}

.hero-section > .carousel::before {
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-main), var(--gold-glow), var(--gold-main), var(--gold-deep));
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 9;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(0,47,47,.94) 0%, rgba(0,58,58,.79) 38%, rgba(0,71,71,.48) 65%, rgba(0,71,71,.10) 100%),
        linear-gradient(0deg, rgba(0,40,40,.38), transparent 42%);
}

.hero-copy .section-kicker {
    background: rgba(0,47,47,.62);
    border: 1px solid rgba(255,217,90,.58);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 8px 28px rgba(0,0,0,.08);
    color: var(--gold-glow);
    position: relative;
    overflow: hidden;
}
.hero-copy .section-kicker::after {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.62), transparent);
    content: "";
    height: 180%;
    left: 0;
    position: absolute;
    top: -40%;
    width: 16%;
    animation: ue413GoldSweep 7s ease-in-out infinite;
}

.hero-copy h1 { color: #fff; }
.hero-copy p { color: rgba(255,255,255,.92); }

.hero-copy .btn-light {
    background: rgba(255,255,255,.95);
    border-color: #fff;
    color: var(--petrol-950);
}
.hero-copy .btn-light:hover {
    background: var(--gold-pale);
    border-color: var(--gold-bright);
}

.carousel-indicators [data-bs-target] { background-color: rgba(255,255,255,.72); }
.carousel-indicators .active {
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-glow), var(--gold-main));
    box-shadow: 0 0 14px rgba(239,191,4,.48);
}

/* Accesos rápidos: banda verde petróleo, iconos oro */
.quick-access-bar {
    background:
        radial-gradient(circle at 12% 12%, rgba(21,144,141,.20), transparent 25%),
        linear-gradient(110deg, var(--petrol-1000), var(--petrol-900) 52%, var(--petrol-800));
    border: 1px solid rgba(255,217,90,.36);
    box-shadow: 0 18px 46px rgba(0,55,55,.22);
    overflow: hidden;
    position: relative;
}

.quick-access-bar::before {
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-main), var(--gold-glow), var(--gold-main), var(--gold-deep));
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.quick-access-item {
    color: rgba(255,255,255,.95);
    z-index: 1;
}
.quick-access-item + .quick-access-item { border-left-color: rgba(255,255,255,.11); }
.quick-access-item small { color: rgba(255,255,255,.67); }
.quick-access-item:hover {
    background: rgba(255,255,255,.07);
    color: #fff;
}
.quick-access-item:hover small { color: rgba(255,255,255,.83); }
.quick-icon {
    background: linear-gradient(145deg, rgba(255,243,174,.13), rgba(239,191,4,.07));
    border: 1px solid rgba(255,217,90,.42);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 6px 18px rgba(0,0,0,.10);
    color: var(--gold-bright);
}
.quick-arrow { color: var(--gold-main); }
.quick-access-item:hover .quick-icon {
    background: linear-gradient(135deg, var(--gold-deep), var(--gold-main) 48%, var(--gold-glow));
    color: var(--petrol-1000);
    animation: ue413GoldGlow 1.5s ease-in-out infinite;
}

/* Fondo y ritmo de secciones */
.recommended-section {
    background: var(--paper);
    padding-top: 5.2rem !important;
}
.main-band {
    background: linear-gradient(180deg, var(--paper-soft), #fff 30%, #fff 70%, var(--paper-soft));
    border-top: 1px solid rgba(0,102,102,.07);
}
.content-section,
.aside-panel {
    background: var(--paper);
    border-color: var(--border-soft);
}

/* Títulos: verde fuerte + pequeña firma dorada */
.section-heading {
    margin-bottom: 1.75rem;
    position: relative;
}
.section-heading h2,
.content-section > h2,
.aside-panel > h2 {
    color: var(--petrol-950);
}
.section-heading h2::after,
.content-section > h2::after,
.aside-panel > h2::after {
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-main), var(--gold-glow), var(--gold-main));
    border-radius: 99px;
    content: "";
    display: block;
    height: 3px;
    margin-top: .55rem;
    max-width: 92px;
    width: 22%;
}
.section-kicker {
    color: var(--gold-mid);
}

/* Tarjetas: blanco, verde en estructura, oro en acento */
.recommended-card,
.direct-card,
.social-card,
.video-panel,
.banner-panel,
.notice-list,
.health-card,
.vertical-card,
.app-system-card,
.care-program-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    box-shadow: 0 8px 26px rgba(0,55,55,.07);
    position: relative;
}

.recommended-card::before,
.direct-card::before,
.health-card::before,
.vertical-card::before,
.app-system-card::before {
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-main), var(--gold-glow), var(--gold-main), var(--gold-deep));
    content: "";
    height: 3px;
    left: 0;
    opacity: .9;
    position: absolute;
    top: 0;
    width: 100%;
}

.recommended-card i,
.direct-card i,
.social-card i,
.notice-list i {
    color: var(--gold-mid);
}

.recommended-card:hover,
.direct-card:hover,
.health-card:hover,
.vertical-card:hover,
.app-system-card:hover {
    border-color: rgba(239,191,4,.48);
    box-shadow: 0 16px 38px rgba(0,71,71,.13);
    transform: translateY(-4px);
}

.priority-card,
.app-access-card,
.mail-access-card,
.sis-access-card,
.cmn-access-card {
    background: linear-gradient(145deg, var(--paper), var(--paper-green));
    border-color: rgba(0,102,102,.15);
}

/* Paneles destacados en verde petróleo */
.aside-panel h2,
.video-panel h3,
.banner-panel h3,
.notice-list h3,
.health-card h3,
.vertical-card h3 {
    color: var(--petrol-900);
}

.direct-button {
    background: linear-gradient(135deg, var(--petrol-900), var(--petrol-700));
    color: #fff;
}
.direct-button:hover { color: var(--gold-glow); }

/* Prefooter y footer: cierre sólido verde + oro */
.prefooter {
    background:
        radial-gradient(circle at 14% 15%, rgba(21,144,141,.18), transparent 28%),
        linear-gradient(115deg, var(--petrol-1000), var(--petrol-900) 50%, var(--petrol-800));
    border-top: 0;
    color: rgba(255,255,255,.88);
    position: relative;
}
.prefooter::before {
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-main), var(--gold-glow), var(--gold-main), var(--gold-deep));
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}
.prefooter h2,
.prefooter h3 { color: #fff; }
.prefooter a { color: rgba(255,255,255,.78); }
.prefooter a:hover { color: var(--gold-glow); }
.prefooter i { color: var(--gold-main); }

.footer-social a {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,217,90,.24);
    color: var(--gold-bright);
}
.footer-social a:hover {
    background: linear-gradient(135deg, var(--gold-deep), var(--gold-main), var(--gold-glow));
    color: var(--petrol-1000);
}

.footer-tramite-btn {
    background: linear-gradient(120deg, var(--gold-deep), var(--gold-main) 35%, var(--gold-glow) 52%, var(--gold-main) 70%, var(--gold-deep));
    border-color: var(--gold-mid);
    color: var(--petrol-1000);
    overflow: hidden;
    position: relative;
}
.footer-tramite-btn::after {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.80), transparent);
    content: "";
    height: 180%;
    left: 0;
    position: absolute;
    top: -40%;
    width: 16%;
    animation: ue413GoldSweep 6.4s ease-in-out infinite;
}

.footer-final {
    background: #002929;
    border-top: 1px solid rgba(255,255,255,.07);
    color: rgba(255,255,255,.72);
}

/* Modal y formularios siguen la misma identidad */
.modal-header {
    border-bottom-color: rgba(239,191,4,.30);
}
.modal-title { color: var(--petrol-950); }
.timer-ring {
    border-color: var(--gold-main);
    color: var(--petrol-900);
}

/* Responsive: conservar jerarquía sin exceso visual */
@media (max-width: 1199.98px) {
    .quick-access-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick-access-item + .quick-access-item { border-left-color: rgba(255,255,255,.10); }
}

@media (max-width: 767.98px) {
    .hero-section { padding-top: 10px; }
    .hero-section > .carousel { width: 96%; border-radius: 14px; }
    .quick-access-wrap .container { margin-top: -18px; }
    .quick-access-bar { grid-template-columns: 1fr; border-radius: 14px; }
    .quick-access-item + .quick-access-item { border-left: 0; border-top: 1px solid rgba(255,255,255,.10); }
}

@media (prefers-reduced-motion: reduce) {
    .btn-warning::after,
    .gold-metal-button::after,
    .hero-copy .section-kicker::after,
    .footer-tramite-btn::after,
    .quick-access-item:hover .quick-icon {
        animation: none !important;
    }
}

/* =========================================================
   UE413 v7 — Ajustes cromáticos solicitados
   1) Enlaces recomendados: verde claro + iconografía dorada
   2) Accesos directos: sin filo dorado + pasteles por función
   3) Redes sociales: fondo de marca + iconografía/texto blanco
   ========================================================= */

/* Enlaces recomendados: verde claro institucional */
.recommended-card {
    background: linear-gradient(145deg, #f2fbf7 0%, #e7f6ef 100%) !important;
    border-color: #cfe8dd !important;
    box-shadow: 0 8px 24px rgba(0, 79, 79, .07) !important;
}
.recommended-card::before {
    background: linear-gradient(90deg, #b88900, #efbf04, #ffe071, #efbf04, #9f7300) !important;
}
.recommended-card i {
    background: rgba(255, 248, 218, .92) !important;
    border-color: rgba(239, 191, 4, .38) !important;
    color: #d69d00 !important;
}
.recommended-card:hover {
    background: linear-gradient(145deg, #eaf8f2 0%, #ddf1e8 100%) !important;
}

/* Accesos directos: quitar completamente el filo dorado superior */
.direct-card::before {
    content: none !important;
    display: none !important;
}
.direct-card,
.direct-card.priority-card,
.direct-card.mail-access-card,
.direct-card.sis-access-card,
.direct-card.cmn-access-card,
.direct-card.app-access-card,
.direct-card.direct-button {
    border-width: 1px !important;
    box-shadow: 0 6px 18px rgba(0, 53, 53, .055) !important;
    color: var(--ink) !important;
}
.direct-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 53, 53, .09) !important;
}

/* Paleta pastel por acceso: fondo suave + icono de origen más intenso */
.direct-grid .direct-card:nth-child(1)  { background: #fff8e7 !important; border-color: #f4dfac !important; }
.direct-grid .direct-card:nth-child(1) i  { color: #d79500 !important; }
.direct-grid .direct-card:nth-child(2)  { background: #eef7ff !important; border-color: #cfe4f8 !important; }
.direct-grid .direct-card:nth-child(2) i  { color: #348bd3 !important; }
.direct-grid .direct-card:nth-child(3)  { background: #fff0f3 !important; border-color: #f6ced8 !important; }
.direct-grid .direct-card:nth-child(3) i  { color: #e83e68 !important; }
.direct-grid .direct-card:nth-child(4)  { background: #f0f9ef !important; border-color: #d2ead0 !important; }
.direct-grid .direct-card:nth-child(4) i  { color: #55b83d !important; }
.direct-grid .direct-card:nth-child(5)  { background: #f7f1ff !important; border-color: #e1d5f2 !important; }
.direct-grid .direct-card:nth-child(5) i  { color: #8c4fc1 !important; }
.direct-grid .direct-card:nth-child(6)  { background: #eafafa !important; border-color: #c9eaea !important; }
.direct-grid .direct-card:nth-child(6) i  { color: #0ea5a3 !important; }
.direct-grid .direct-card:nth-child(7)  { background: #fff4ed !important; border-color: #f3d7c5 !important; }
.direct-grid .direct-card:nth-child(7) i  { color: #ef8b2c !important; }
.direct-grid .direct-card:nth-child(8)  { background: #f3f1fb !important; border-color: #ddd8ee !important; }
.direct-grid .direct-card:nth-child(8) i  { color: #7361a8 !important; }
.direct-grid .direct-card:nth-child(9)  { background: #fff8e8 !important; border-color: #eedfb4 !important; }
.direct-grid .direct-card:nth-child(9) i  { color: #d89a00 !important; }
.direct-grid .direct-card:nth-child(10) { background: #eefafa !important; border-color: #cce8e6 !important; }
.direct-grid .direct-card:nth-child(10) i { color: #13a5a0 !important; }
.direct-grid .direct-card:nth-child(11) { background: #fff0f3 !important; border-color: #f4cfd8 !important; }
.direct-grid .direct-card:nth-child(11) i { color: #ed426d !important; }
.direct-grid .direct-card:nth-child(12) { background: #f0faef !important; border-color: #d2ead0 !important; }
.direct-grid .direct-card:nth-child(12) i { color: #49ad37 !important; }
.direct-grid .direct-card:nth-child(13) { background: #edf7ff !important; border-color: #cee2f5 !important; }
.direct-grid .direct-card:nth-child(13) i { color: #2f88d2 !important; }
.direct-grid .direct-card:nth-child(14) { background: #fff5ec !important; border-color: #f0dac5 !important; }
.direct-grid .direct-card:nth-child(14) i { color: #e28716 !important; }
.direct-grid .direct-card:nth-child(15) { background: #f6f0ff !important; border-color: #dfd2f1 !important; }
.direct-grid .direct-card:nth-child(15) i { color: #8750bd !important; }
.direct-grid .direct-card:nth-child(16) { background: #fff0f3 !important; border-color: #f4cfd8 !important; }
.direct-grid .direct-card:nth-child(16) i { color: #e83e68 !important; }
.direct-grid .direct-card:nth-child(17) { background: #fff8e7 !important; border-color: #f1dfb1 !important; }
.direct-grid .direct-card:nth-child(17) i { color: #d79500 !important; }
.direct-grid .direct-card:nth-child(18) { background: #eff9f3 !important; border-color: #d1e9da !important; }
.direct-grid .direct-card:nth-child(18) i { color: #2eaf69 !important; }

/* Mantener el texto de accesos directos oscuro y legible */
.direct-grid .direct-card span {
    color: #173333 !important;
}

/* Redes sociales: color oficial en el card + icono/texto blanco */
.social-card,
.social-card i,
.social-card span {
    color: #fff !important;
}
.social-card.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #1266d6 100%) !important;
    border-color: #1877f2 !important;
}
.social-card.tiktok {
    background: linear-gradient(135deg, #111827 0%, #050505 100%) !important;
    border-color: #111827 !important;
}
.social-card.youtube {
    background: linear-gradient(135deg, #ff0033 0%, #e60023 100%) !important;
    border-color: #ff0033 !important;
}
.social-card.instagram {
    background: linear-gradient(135deg, #c13584 0%, #9b2caf 100%) !important;
    border-color: #c13584 !important;
}
.social-card:hover {
    filter: brightness(1.05);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .14) !important;
    transform: translateY(-3px);
}


/* =========================================================
   UE413 v8 — Corrección de contraste en superficies oscuras
   ========================================================= */

/* Carrusel principal: títulos siempre blancos sobre overlay oscuro. */
.hero-section .hero-copy h1,
.hero-section .hero-copy h2,
.hero-section .hero-copy h3,
.hero-section .carousel-caption h1,
.hero-section .carousel-caption h2,
.hero-section .carousel-caption h3 {
    color: #ffffff !important;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .42);
}

/* Mantener subtítulos/descripciones del carrusel claramente legibles. */
.hero-section .hero-copy p,
.hero-section .carousel-caption p {
    color: rgba(255, 255, 255, .94) !important;
}

/* Barra verde de accesos rápidos: título principal blanco. */
.quick-access-bar .quick-access-item strong {
    color: #ffffff !important;
}

/* Descripción secundaria más suave, pero legible. */
.quick-access-bar .quick-access-item small {
    color: rgba(255, 255, 255, .76) !important;
}

/* En hover no volver a heredar el verde oscuro de reglas anteriores. */
.quick-access-bar .quick-access-item:hover strong {
    color: #ffffff !important;
}
.quick-access-bar .quick-access-item:hover small {
    color: rgba(255, 255, 255, .90) !important;
}
