body {
    background-color: #f8fafc;
    color: #172033;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    background: rgba(13, 31, 143, .94);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.page-loader.is-visible { opacity: 1; pointer-events: all; }

.page-loader__content {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #fff;
    font-weight: 600;
}

.announcement-ticker {
    display: flex;
    align-items: stretch;
    min-height: 3.25rem;
    color: #fff;
    background: var(--ig-primary-dark);
    border-bottom: 3px solid var(--ig-yellow);
    overflow: hidden;
}

.announcement-ticker__label {
    z-index: 1;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    padding: .75rem 1.25rem;
    color: var(--ig-black);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--ig-yellow);
}

.announcement-ticker__viewport { min-width: 0; overflow: hidden; }
.announcement-ticker__track { display: inline-flex; min-width: max-content; animation: announcement-scroll 32s linear infinite; }
.announcement-ticker__item { display: inline-flex; align-items: center; gap: .7rem; padding: .85rem 1.5rem; color: #fff; text-decoration: none; white-space: nowrap; }
.announcement-ticker__item:hover, .announcement-ticker__item:focus { color: var(--ig-yellow); background: rgba(255, 255, 255, .08); }
.announcement-ticker__item strong { font-size: .9rem; }

@keyframes announcement-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.announcement-detail { max-width: 920px; margin-inline: auto; }
.announcement-detail__image { width: 100%; max-height: 380px; object-fit: cover; }
.announcement-detail__content { color: var(--ig-ink); font-size: 1.05rem; line-height: 1.8; white-space: pre-line; }

.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1030;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .8rem 1rem;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    background: #159447;
    border: 3px solid #fff;
    border-radius: 999px;
    box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .22);
    transition: transform .2s ease, background-color .2s ease;
}

.whatsapp-float i { font-size: 1.35rem; }
.whatsapp-float:hover, .whatsapp-float:focus { color: #fff; background: #087f39; transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
    .announcement-ticker__track { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
    .page-loader { transition: none; }
    .page-loader .spinner-border { animation: none; }
}

.brand-mark {
    letter-spacing: 0.08em;
}

:root {
    --ig-primary: #172fc9;
    --ig-primary-dark: #0d1f8f;
    --ig-magenta: #d719c5;
    --ig-cyan: #18b8d2;
    --ig-yellow: #f1e900;
    --ig-black: #111111;
    --ig-success: #2f855a;
    --ig-warning: #b7791f;
    --ig-danger: #c53030;
    --ig-info: #2b6cb0;
    --ig-ink: #172033;
    --ig-muted: #64748b;
    --ig-border: #e2e8f0;
}

.text-primary { color: var(--ig-primary) !important; }
.btn-primary { background-color: var(--ig-primary); border-color: var(--ig-primary); }
.btn-primary:hover, .btn-primary:focus { background-color: var(--ig-primary-dark); border-color: var(--ig-primary-dark); }
.btn-outline-primary { color: var(--ig-primary); border-color: var(--ig-primary); }
.btn-outline-primary:hover, .btn-outline-primary:focus { background-color: var(--ig-primary); border-color: var(--ig-primary); }
.btn-dark { background-color: var(--ig-primary); border-color: var(--ig-primary); border-radius: 999px; }
.btn-dark:hover, .btn-dark:focus { background-color: var(--ig-primary-dark); border-color: var(--ig-primary-dark); }
.text-muted { color: var(--ig-muted) !important; }

.brand-logo {
    width: 138px;
    height: 64px;
    object-fit: contain;
    background-color: #fff;
}

.brand-logo-compact {
    width: 142px;
    height: 72px;
    object-fit: contain;
    background-color: #fff;
}

.brand-accent {
    border-bottom: 3px solid var(--ig-magenta);
}

.hero-cover {
    position: relative;
    min-height: min(72vh, 680px);
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: background-image .7s ease-in-out;
}

.hero-cover > .container-fluid { position: relative; z-index: 1; }

.hero-cover .col-lg-10,
.hero-cover .col-lg-7 {
    max-width: 760px;
    padding: 2rem;
    border: 2px solid var(--ig-yellow);
    border-left-style: solid;
    border-left-color: var(--ig-yellow) !important;
    border-left-width: 5px;
    border-radius: 1rem;
    background: rgba(8, 17, 45, .76);
    box-shadow: inset 5px 0 0 var(--ig-yellow), 0 1rem 2.5rem rgba(0, 0, 0, .18);
    backdrop-filter: blur(3px);
}

.hero-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .18);
}

.hero-carousel-controls {
    position: absolute;
    z-index: 2;
    right: 1.5rem;
    bottom: 1.5rem;
    display: flex;
    gap: .5rem;
}

.hero-carousel-controls button {
    width: .7rem;
    height: .7rem;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent;
}

.hero-carousel-controls button.is-active { background: var(--ig-yellow); }

.hero-cover + section .card {
    border: 2px solid var(--ig-primary) !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

.hero-cover + section .col-md-4:nth-child(2) .card { border-color: var(--ig-magenta) !important; }
.hero-cover + section .col-md-4:nth-child(3) .card { border-color: var(--ig-cyan) !important; }
.hero-cover + section .card:hover { transform: translateY(-3px); box-shadow: 0 .75rem 1.5rem rgba(23, 47, 201, .12) !important; }

.public-site .card {
    border: 2px solid var(--ig-primary) !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

.public-site .row > :nth-child(3n + 2) .card { border-color: var(--ig-magenta) !important; }
.public-site .row > :nth-child(3n) .card { border-color: var(--ig-cyan) !important; }
.public-site .card:hover { transform: translateY(-3px); box-shadow: 0 .75rem 1.5rem rgba(23, 47, 201, .12) !important; }

@media (prefers-reduced-motion: reduce) {
    .public-site .card { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-cover { transition: none; }
}

.sidebar-link { color: #cbd5e1; transition: background-color .15s ease, color .15s ease; }
.sidebar-link:hover, .sidebar-link:focus, .sidebar-link.active { color: #fff; background-color: rgba(255, 255, 255, .1); }
.sidebar-section { color: #94a3b8; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.kpi-icon { width: 2.75rem; height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; }
.empty-state { border: 1px dashed var(--ig-border); background: rgba(255, 255, 255, .55); }
.form-section-title { color: var(--ig-primary); letter-spacing: .02em; }
.action-bar { position: sticky; bottom: 0; z-index: 10; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--ig-border); }
@media (max-width: 575.98px) {
    .action-bar { margin-left: -1rem; margin-right: -1rem; padding-left: 1rem; padding-right: 1rem; }
    .hero-cover { min-height: 680px; }
    .hero-carousel-controls { right: 1rem; bottom: 1rem; }
    .hero-cover .col-lg-10,
    .hero-cover .col-lg-7 {
        padding: 1.25rem;
        border-width: 2px;
        border-left-width: 5px;
        border-left-color: var(--ig-yellow) !important;
        margin-left: .75rem;
        width: calc(100% - 1.5rem);
    }
    .whatsapp-float {
        right: .75rem;
        bottom: .75rem;
        width: 3.5rem;
        height: 3.5rem;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    .whatsapp-float span { display: none; }
}

