html {
    overflow-x: hidden;
    overflow-x: clip;
    width: 100%;
}

body {
    overflow-x: hidden;
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
}

main {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-dark {
    background: rgba(29, 58, 69, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
    position: relative;
    color: #faf6ef;
}

.nav-link:hover {
    color: #1c88bb;
}

#main-nav.scrolled .nav-link {
    color: #1d3a45;
}

#main-nav.scrolled .nav-link:hover {
    color: #1c88bb;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #1c88bb;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mesh-bg {
    background: linear-gradient(-45deg, #1d3a45, #f8fafb, #1c88bb, #a1c297);
    background-size: 400% 400%;
    animation: mesh 15s ease infinite;
}

.btn-magnetic {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-magnetic:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(28, 136, 187, 0.4);
}

.btn-magnetic:active {
    transform: translateY(-1px);
}

.btn-magnetic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s;
}

.btn-magnetic:hover::before {
    left: 100%;
}

section {
    scroll-margin-top: 76px;
}

@media (min-width: 768px) {
    section {
        scroll-margin-top: 88px;
    }
}

@media (min-width: 1280px) {
    section {
        scroll-margin-top: 108px;
    }
}

#main-nav {
    overflow-x: clip;
    max-width: 100vw;
}

.nav-shell {
    position: relative;
    z-index: 2;
    min-height: 3.75rem;
    overflow: visible;
}

.nav-logo-wrap {
    position: relative;
    z-index: 1;
}

.nav-logo {
    height: 3.75rem;
    width: auto;
    max-width: 100%;
}

@media (min-width: 640px) {
    .nav-logo {
        height: 4.5rem;
    }
}

@media (min-width: 768px) {
    .nav-shell {
        min-height: 4.25rem;
    }

    .nav-logo {
        height: 5rem;
    }
}

@media (min-width: 1024px) {
    .nav-logo {
        height: 5.75rem;
    }
}

@media (min-width: 1280px) {
    .nav-logo {
        height: 8rem;
    }
}

@media (min-width: 1536px) {
    .nav-logo {
        height: 9rem;
    }
}

.nav-actions {
    position: relative;
    z-index: 3;
}

#main-nav.scrolled {
    background: rgba(248, 250, 251, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

#main-nav.scrolled .nav-shell {
    min-height: 3.5rem;
}

@media (min-width: 768px) {
    #main-nav.scrolled .nav-shell {
        min-height: 4rem;
    }
}

#main-nav.scrolled .nav-logo {
    height: 3.25rem;
}

@media (min-width: 640px) {
    #main-nav.scrolled .nav-logo {
        height: 3.5rem;
    }
}

@media (min-width: 768px) {
    #main-nav.scrolled .nav-logo {
        height: 3.75rem;
    }
}

@media (min-width: 1024px) {
    #main-nav.scrolled .nav-logo {
        height: 4.5rem;
    }
}

@media (min-width: 1280px) {
    #main-nav.scrolled .nav-logo {
        height: 6rem;
    }
}

@media (min-width: 1536px) {
    #main-nav.scrolled .nav-logo {
        height: 6.75rem;
    }
}

.mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: rgba(29, 58, 69, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.mobile-menu-btn .material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-size: 1.5rem;
    line-height: 1;
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
    pointer-events: none;
}

#main-nav.scrolled .mobile-menu-btn,
body.page-admin .mobile-menu-btn {
    background: #ffffff;
    border-color: rgba(28, 136, 187, 0.35);
    color: #1d3a45;
    box-shadow: 0 2px 10px rgba(29, 58, 69, 0.08);
}

.mobile-menu-btn.is-open {
    background: #1c88bb;
    border-color: #1c88bb;
    color: #ffffff;
}

#main-nav.scrolled .mobile-menu-btn.is-open {
    background: #1c88bb;
    border-color: #1c88bb;
    color: #ffffff;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    visibility: hidden;
    overflow: hidden;
    max-width: 100vw;
}

.mobile-menu.is-open {
    pointer-events: auto;
    visibility: visible;
}

.mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(29, 58, 69, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu.is-open .mobile-menu__backdrop {
    opacity: 1;
}

.mobile-menu__panel {
    --panel-width: min(88vw, 20rem);
    position: fixed;
    top: 0;
    right: calc(-1 * var(--panel-width));
    width: var(--panel-width);
    height: 100%;
    padding: 4.75rem 1.25rem 1.5rem;
    background: #f8fafb;
    box-shadow: -12px 0 40px rgba(29, 58, 69, 0.18);
    transition: right 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    will-change: right;
}

.mobile-menu.is-open .mobile-menu__panel {
    right: 0;
}

.mobile-menu-btn__icon--close {
    display: none;
}

.mobile-menu-btn.is-open .mobile-menu-btn__icon--open {
    display: none;
}

.mobile-menu-btn.is-open .mobile-menu-btn__icon--close {
    display: inline-flex;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
}

.mobile-menu__link {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    font-family: Manrope, sans-serif;
    font-weight: 700;
    color: #1d3a45;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-menu__link:hover,
.mobile-menu__link:focus-visible {
    background: rgba(28, 136, 187, 0.1);
    color: #1c88bb;
}

.mobile-menu__cta {
    box-shadow: 0 12px 24px -14px rgba(28, 136, 187, 0.65);
}

.site-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

@media (min-width: 768px) {
    .site-section {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

@media (min-width: 1024px) {
    .site-section {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }
}

.hero-decor {
    display: none;
}

@media (min-width: 768px) {
    .hero-decor {
        display: block;
    }
}

.post-content {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.post-content img,
.post-content iframe,
.post-content video {
    max-width: 100%;
    height: auto;
}

#modal-content {
    max-height: min(92vh, 52rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.whatsapp-float {
    bottom: max(1rem, env(safe-area-inset-bottom));
    right: max(1rem, env(safe-area-inset-right));
    width: 3.5rem;
    height: 3.5rem;
}

@media (min-width: 768px) {
    .whatsapp-float {
        bottom: 2rem;
        right: 2rem;
        width: 4rem;
        height: 4rem;
    }
}

.whatsapp-float__tooltip {
    display: none;
}

@media (min-width: 768px) {
    .whatsapp-float__tooltip {
        display: block;
    }
}

body.mobile-menu-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    footer {
        padding-bottom: 5.5rem;
    }

    .blog-hero {
        border-radius: 1.5rem;
    }

    .blog-card,
    .blog-featured,
    .mv-card,
    .service-card {
        border-radius: 1.5rem;
    }

    .service-card__body,
    .mv-card {
        padding: 1.5rem;
    }

    .team-card {
        padding: 1.5rem;
    }

    .contact-panel {
        border-radius: 1.75rem !important;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.85rem !important;
        font-size: 0.85rem;
    }

    .admin-thumb {
        width: 3.5rem;
        height: 2.5rem;
    }
}

#main-nav.nav-is-compact {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
    #main-nav.nav-is-compact {
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }
}

@media (min-width: 1280px) {
    #main-nav.nav-is-compact {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
}

#main-nav.scrolled .nav-cta {
    box-shadow: 0 10px 24px -12px rgba(28, 136, 187, 0.55);
}

body.page-admin #main-nav {
    background: rgba(248, 250, 251, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

body.page-admin #main-nav .nav-link {
    color: #1d3a45;
}

body.page-admin #main-nav .nav-link:hover {
    color: #1c88bb;
}

.hero-badge {
    color: #faf6ef;
    background: rgba(29, 58, 69, 0.55);
    border-color: rgba(255, 255, 255, 0.28);
}

.hero-badge-wrap {
    padding-top: 0.5rem;
}

@media (min-width: 1024px) {
    .hero-badge-wrap {
        padding-right: 2rem;
    }
}

.btn-outline-light {
    color: #faf6ef;
    background: rgba(29, 58, 69, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.55);
}

.btn-outline-light:hover {
    color: #ffffff;
    background: rgba(28, 136, 187, 0.92);
    border-color: rgba(255, 255, 255, 0.45);
}

@keyframes float-soft {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.animate-float-soft {
    animation: float-soft 5s ease-in-out infinite;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    max-width: 100%;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.blog-hero {
    position: relative;
    overflow: hidden;
    border-radius: 2.5rem;
    background: linear-gradient(135deg, rgba(29, 58, 69, 0.96), rgba(28, 136, 187, 0.88));
    color: #ffffff;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.35;
}

.blog-featured {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    border-radius: 2rem;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(194, 199, 203, 0.35);
    box-shadow: 0 24px 60px -32px rgba(29, 58, 69, 0.45);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.blog-featured:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px -28px rgba(28, 136, 187, 0.35);
}

@media (min-width: 1024px) {
    .blog-featured {
        grid-template-columns: 1.1fr 1fr;
    }
}

.blog-card {
    border-radius: 2rem;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(194, 199, 203, 0.35);
    box-shadow: 0 18px 45px -30px rgba(29, 58, 69, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px -28px rgba(28, 136, 187, 0.35);
}

.blog-card__media {
    position: relative;
    height: 16rem;
    overflow: hidden;
}

.blog-card__media img,
.blog-featured__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.blog-card:hover .blog-card__media img,
.blog-featured:hover .blog-featured__media img {
    transform: scale(1.06);
}

.blog-featured__media {
    min-height: 18rem;
}

.blog-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(194, 199, 203, 0.45);
    background: #ffffff;
    color: #1d3a45;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.25s ease;
}

.blog-filter:hover,
.blog-filter.is-active {
    color: #ffffff;
    background: #1c88bb;
    border-color: #1c88bb;
}

.admin-table th,
.admin-table td {
    vertical-align: middle;
}

.admin-thumb {
    width: 4.5rem;
    height: 3rem;
    border-radius: 0.75rem;
    object-fit: cover;
    border: 1px solid rgba(194, 199, 203, 0.45);
}

.admin-preview {
    width: 100%;
    max-height: 14rem;
    object-fit: cover;
    border-radius: 1rem;
    border: 1px solid rgba(194, 199, 203, 0.45);
    display: none;
}

.admin-preview.is-visible {
    display: block;
}

input:focus,
select:focus {
    border-color: #1c88bb !important;
    box-shadow: 0 0 0 4px rgba(28, 136, 187, 0.1) !important;
}

.subtle-grid {
    background-image: radial-gradient(#1c88bb 0.5px, transparent 0.5px);
    background-size: 40px 40px;
    opacity: 0.03;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #1c88bb;
}

.stat-pill {
    padding: 1rem 1rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
    .stat-pill {
        padding: 1.25rem 1.5rem;
    }
}

.stat-pill__value {
    display: block;
    font-family: Manrope, sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .stat-pill__value {
        font-size: 1.75rem;
    }
}

.stat-pill__label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.62rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

@media (min-width: 768px) {
    .stat-pill__label {
        font-size: 0.72rem;
        letter-spacing: 0.08em;
    }
}

.mv-card {
    height: 100%;
    padding: 2.5rem;
    border-radius: 2rem;
    background: #ffffff;
    border: 1px solid rgba(194, 199, 203, 0.35);
    box-shadow: 0 20px 50px -30px rgba(29, 58, 69, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.mv-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px -28px rgba(28, 136, 187, 0.35);
}

.mv-card__icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.value-card {
    padding: 2rem;
    border-radius: 1.5rem;
    background: #f8fafb;
    border: 1px solid rgba(194, 199, 203, 0.35);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-4px);
    border-color: rgba(28, 136, 187, 0.35);
    box-shadow: 0 18px 40px -24px rgba(28, 136, 187, 0.45);
}

.value-card__icon {
    font-size: 2rem;
    color: #1c88bb;
    margin-bottom: 1rem;
}

.team-card {
    padding: 2rem;
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
}

.team-card__badge {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1d3a45;
    background: #a1c297;
}

.service-card {
    display: flex;
    flex-direction: column;
    border-radius: 2rem;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(194, 199, 203, 0.35);
    box-shadow: 0 18px 45px -30px rgba(29, 58, 69, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px -28px rgba(28, 136, 187, 0.35);
}

.service-card__media {
    height: 12rem;
    overflow: hidden;
}

.service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-card__media img {
    transform: scale(1.06);
}

.service-card__body {
    padding: 2rem;
}

.service-card__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #1c88bb;
    transition: gap 0.3s ease, color 0.3s ease;
}

.service-card__link:hover {
    gap: 0.85rem;
    color: #1d3a45;
}

.contact-panel {
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateX(4px);
}

@media (max-width: 639px) {
    .contact-item {
        font-size: 0.9rem;
        padding: 0.85rem 1rem;
    }

    .contact-item span:not(.material-symbols-outlined) {
        overflow-wrap: anywhere;
    }
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    color: #1d3a45;
    font-family: Manrope, sans-serif;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.post-content p {
    margin-bottom: 1rem;
}

.post-content ul,
.post-content ol {
    margin: 1rem 0 1rem 1.25rem;
}

.post-content a {
    color: #1c88bb;
    text-decoration: underline;
}