:root { color-scheme: light; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #f8fafc;
    -webkit-tap-highlight-color: rgba(57, 151, 252, 0.18);
}
main { overflow-x: hidden; }
section[id], main[id] { scroll-margin-top: 7rem; }
a, button, summary, input, select, textarea { touch-action: manipulation; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 2px solid #3997FC;
    outline-offset: 3px;
}
.skip-link {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 1rem);
    left: max(1rem, env(safe-area-inset-left));
    z-index: 200;
    background: #ffffff;
    color: #1E3F5E;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
    transform: translateY(-200%);
    transition: transform 0.2s ease;
    font-weight: 600;
}
.skip-link:focus-visible { transform: translateY(0); }
.safe-pad-x {
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
}
.safe-pad-top { padding-top: env(safe-area-inset-top); }
.safe-pad-bottom { padding-bottom: env(safe-area-inset-bottom); }
.mobile-drawer { overscroll-behavior: contain; }
.text-balanced { text-wrap: balance; }
.hero-pattern {
    background-image: radial-gradient(rgba(255,255,255,0.73) 2px, transparent 2px);
    background-size: 46px 46px;
}
.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 9999px;
    padding: 2px;
    gap: 0;
}
.lang-switcher__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.5rem;
    padding: 0 0.5rem;
    border-radius: 9999px;
    color: rgba(255,255,255,0.45);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
}
.lang-switcher__link:hover { color: rgba(255,255,255,0.8); }
.lang-switcher__link.is-active {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
}
.site-drawer {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
}
.site-drawer-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: rgba(0,0,0,0);
    transition: opacity 0.35s ease, background-color 0.35s ease;
}
.site-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(86vw, 28rem);
    background: #112435;
    border-left: 1px solid rgba(255,255,255,0.08);
    box-shadow: none;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    display: flex;
    flex-direction: column;
}
.site-drawer.is-open {
    pointer-events: auto;
}
.site-drawer.is-open .site-drawer-backdrop {
    opacity: 1;
    background: rgba(0,0,0,0.6);
}
.site-drawer.is-open .site-drawer-panel {
    transform: translateX(0);
}
.dot-pattern {
    background-image: radial-gradient(rgba(255,255,255,0.2) 2px, transparent 2px);
    background-size: 20px 20px;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-float { animation: float 5s ease-in-out infinite; }
.animate-float-delayed { animation: float 5s ease-in-out infinite; animation-delay: 2.5s; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-subtle::-webkit-scrollbar { width: 4px; height: 4px; }
.scrollbar-subtle::-webkit-scrollbar-track { background: transparent; }
.scrollbar-subtle::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 10px; }
.scrollbar-subtle::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }
.step-line::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50px;
    right: 50px;
    height: 2px;
    border-top: 2px dashed #e2e8f0;
    z-index: 0;
}
.edge-scroll { scroll-padding-left: 1.5rem; }
.floating-actions {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 70;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
}
.floating-action-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(14px);
    transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}
.floating-action-btn:hover { transform: translateY(-2px); }
.floating-action-btn--top {
    width: 3rem;
    height: 3rem;
    background: transparent;
    color: #cbd5e1;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    mix-blend-mode: difference;
}
.floating-action-btn--whatsapp {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #ffffff;
    border: none;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    backdrop-filter: none;
    padding: 0;
    overflow: hidden;
    transition: transform 0.2s ease;
}
.floating-action-btn--whatsapp:hover { transform: translateY(-2px); }
.floating-action-btn--whatsapp img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.floating-action-btn[hidden] { display: none !important; }
.article-body img {
    width: 100%;
    height: auto;
    display: block;
}
.article-body > *:first-child { margin-top: 0; }
.article-body > *:last-child { margin-bottom: 0; }
section.bg-navy,
section.bg-navy-alt {
    background-image:
        radial-gradient(circle at top right, rgba(57,151,252,0.20), transparent 38%),
        radial-gradient(circle at bottom left, rgba(152,188,98,0.16), transparent 42%);
    background-repeat: no-repeat;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (min-width: 1024px) {
    .site-drawer-panel {
        width: min(40vw, 30rem);
    }
}
@media (max-width: 767px) {
    .mobile-marquee {
        display: flex;
        width: 200%;
        animation: marquee 15s linear infinite;
    }
    .mobile-marquee-container {
        overflow: hidden;
        mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    }
}
@media (max-width: 1024px) {
    .step-line::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .mobile-marquee {
        animation: none !important;
        width: 100% !important;
    }
}
