:root {
    color-scheme: light;
    --page-bg: #f9f9f9;
    --surface-bg: #ffffff;
    --surface-alt: #f0f0f0;
    --text-color: #000000;
    --muted-color: #555555;
    --border-color: #000000;
    --field-border: #d6d6d6;
    --header-border: rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(249, 249, 249, 0.92);
    --banner-bg: #000000;
    --banner-text: #ffffff;
    --accent-color: #0071e3;
    --accent-hover: #1a85f4;
    --overlay-bg: rgba(0, 0, 0, 0.6);
    --link-hover: #6b7280;
    --menu-active-bg: #000000;
    --menu-active-text: #ffffff;
    --toggle-hover-bg: #000000;
    --toggle-hover-text: #ffffff;
    --logo-filter: none;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --page-bg: #0f1115;
    --surface-bg: #171b22;
    --surface-alt: #202734;
    --text-color: #f3f6fb;
    --muted-color: #b8c0cc;
    --border-color: #a8b3c7;
    --field-border: #2c3442;
    --header-border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(15, 17, 21, 0.92);
    --banner-bg: #050608;
    --banner-text: #f3f6fb;
    --accent-color: #4b9dff;
    --accent-hover: #76b4ff;
    --overlay-bg: rgba(0, 0, 0, 0.76);
    --link-hover: #80b5ff;
    --menu-active-bg: #f3f6fb;
    --menu-active-text: #0f1115;
    --toggle-hover-bg: #f3f6fb;
    --toggle-hover-text: #0f1115;
    --logo-filter: brightness(0) invert(1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

a:focus,
button:focus {
    outline: none;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--page-bg);
    color: var(--text-color);
    min-height: 100vh;
    padding-top: var(--site-header-space, 0px);
    scroll-padding-top: var(--site-header-space, 0px);
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.modal-open {
    overflow: hidden;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1100;
    background-color: var(--page-bg);
    box-shadow: none;
    transition: background-color 0.3s ease;
}

.top-banner {
    background-color: var(--banner-bg);
    color: var(--banner-text);
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    padding: 12px 5%;
    font-size: 14px;
    font-weight: 400;
    transition: padding 0.3s ease, font-size 0.3s ease, gap 0.3s ease;
}

.top-banner a {
    color: var(--banner-text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.top-banner a:hover {
    color: var(--banner-text);
    opacity: 0.9;
}

.banner-contact {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.banner-contact-panel {
    position: absolute;
    top: 100%;
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
    background-color: var(--surface-bg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1200;
}

.banner-contact:hover .banner-contact-panel,
.banner-contact:focus-within .banner-contact-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.banner-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 9999px;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    opacity: 1 !important;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.banner-contact-btn:hover {
    opacity: 1 !important;
    filter: brightness(1.04);
}

.banner-contact-btn:active {
    transform: scale(0.97);
}

.banner-contact-whatsapp {
    background-color: #25D366;
}

.banner-contact-call {
    background-color: var(--accent-color);
}

.icon-switcher {
    position: relative;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.icon-switcher i {
    position: absolute;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease, color 0.3s ease;
    backface-visibility: hidden;
}

.icon-switcher .fa-phone {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.icon-switcher .fa-whatsapp {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    color: #25D366;
}

.icon-switcher.active .fa-phone {
    opacity: 0;
    transform: scale(0) rotate(180deg);
}

.icon-switcher.active .fa-whatsapp {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 5%;
    background-color: var(--nav-bg);
    border-bottom: none;
    backdrop-filter: blur(18px);
    transition: padding 0.3s ease, background-color 0.3s ease;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
    filter: var(--logo-filter);
    transition: height 0.3s ease, filter 0.3s ease;
}

.menu-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    list-style: none;
    gap: 32px;
    margin-left: 36px;
    margin-right: auto;
}

.menu-links li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 9999px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.menu-links li a:hover:not(.is-active):not([aria-current="page"]) {
    color: var(--link-hover);
}

.menu-links li a.is-active,
.menu-links li a[aria-current="page"] {
    background-color: transparent;
    color: var(--accent-color) !important;
    opacity: 1;
}

.menu-links li a.is-active:hover,
.menu-links li a[aria-current="page"]:hover {
    color: var(--accent-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: 2px solid var(--accent-color);
    border-radius: 9999px;
    background-color: var(--accent-color);
    color: #ffffff !important;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.theme-toggle,
.menu-toggle {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 9999px;
    background-color: transparent;
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease, transform 0.2s ease;
}

.theme-toggle:hover,
.menu-toggle:hover {
    color: var(--text-color);
}

.theme-toggle:active,
.menu-toggle:active {
    transform: scale(0.96);
}

.theme-toggle i,
.menu-toggle i {
    font-size: 16px;
}

.menu-toggle {
    display: none;
}

.site-header.is-scrolled .top-banner {
    padding: 8px 5%;
    font-size: 12px;
    gap: 18px;
}

.site-header.is-scrolled nav {
    padding: 14px 5%;
}

.site-header.is-scrolled .logo img {
    height: 32px;
}

.site-header.is-scrolled .btn-primary {
    padding: 8px 20px;
}

.site-header.is-scrolled .theme-toggle {
    width: 40px;
    height: 40px;
}

.policy-page {
    padding: 80px 160px 56px;
}

.policy-shell {
    max-width: 860px;
}

.services-shell {
    max-width: 1180px;
}

.page-title {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    font-size: 35px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-color);
    margin-bottom: 18px;
    letter-spacing: -1px;
}

.page-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 75%;
    height: 4px;
    background-color: var(--text-color);
    border-radius: 2px;
}

.policy-intro {
    font-size: 18px;
    line-height: 1.7;
    color: var(--muted-color);
    margin-bottom: 28px;
    max-width: 820px;
}

.policy-section + .policy-section {
    margin-top: 28px;
}

.policy-section h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.policy-section p,
.policy-section li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--muted-color);
}

.policy-section ul {
    padding-left: 20px;
}

.policy-section li + li {
    margin-top: 8px;
}

.service-grid {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 22px;
    background-color: var(--surface-bg);
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    overflow-wrap: anywhere;
    gap: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.service-card-media {
    width: clamp(54px, 5.5vw, 84px);
    height: clamp(54px, 5.5vw, 84px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.service-card-title {
    display: block;
}

.service-card:hover {
    background-color: var(--surface-alt);
    transform: translateY(-1px);
}

.service-card:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

@media (min-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.site-footer {
    padding: 28px 160px 32px;
    background-color: transparent;
    border: none;
    box-shadow: none;
    outline: none;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    list-style: none;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.footer-links::-webkit-scrollbar {
    display: none;
}

.footer-links a {
    color: var(--muted-color);
    text-decoration: none;
    font-size: 12px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--muted-color);
}

.footer-links a.is-active,
.footer-links a[aria-current="page"] {
    color: #0071e3;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    padding: 24px;
    background-color: var(--overlay-bg);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--surface-bg);
    width: min(100%, 360px);
    border-radius: 16px;
    border: 2px solid var(--border-color);
    padding: 28px 24px;
    text-align: center;
    transform: scale(0.92);
    transition: transform 0.25s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.modal-desc {
    font-size: 14px;
    color: var(--muted-color);
    margin-bottom: 24px;
    line-height: 1.45;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.modal-actions-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.btn-modal-half {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.btn-modal-whatsapp {
    background-color: #25D366;
    border-color: #25D366;
}

.btn-modal-whatsapp:hover {
    background-color: #20ba59;
    border-color: #20ba59;
}

.btn-modal-call {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-modal-call:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-modal-cancel {
    width: 100%;
    min-height: 48px;
    border-radius: 9999px;
    border: 2px solid var(--border-color);
    background-color: transparent;
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-modal-cancel:hover {
    background-color: var(--surface-alt);
}

@media (max-width: 768px) {
    .top-banner {
        justify-content: flex-end;
        gap: 16px;
        padding: 12px 20px;
        font-size: 18px;
        flex-wrap: nowrap;
        white-space: nowrap;
        overflow-x: auto;
    }

    .top-banner::-webkit-scrollbar {
        display: none;
    }

    .banner-contact-panel {
        display: none;
    }

    nav {
        flex-wrap: wrap;
        padding: 16px 20px 12px 20px;
        justify-content: space-between;
    }

    .logo {
        order: 1;
    }

    .nav-actions {
        order: 2;
        gap: 10px;
    }

    .nav-actions .btn-primary {
        padding: 8px 18px;
        font-size: 14px;
    }

    .theme-toggle,
    .menu-toggle {
        width: 40px;
        height: 40px;
    }

    .site-header.is-scrolled .top-banner {
        padding: 7px 16px;
        font-size: 12px;
        gap: 12px;
    }

    .site-header.is-scrolled nav {
        padding: 10px 16px 8px 16px;
    }

    .site-header.is-scrolled .logo img {
        height: 30px;
    }

    .site-header.is-scrolled .nav-actions .btn-primary {
        padding: 6px 14px;
        font-size: 13px;
    }

    .site-header.is-scrolled .theme-toggle,
    .site-header.is-scrolled .menu-toggle {
        display: inline-flex;
        width: 32px;
        height: 32px;
    }

    .site-header.is-scrolled .menu-links {
        display: none;
    }

    .site-header.is-scrolled.is-menu-open .menu-links {
        top: calc(100% + 6px);
        left: 16px;
        right: 16px;
        width: auto;
        margin-top: 0;
        padding: 10px;
        gap: 6px;
        position: absolute;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        border-radius: 20px;
        background-color: var(--surface-bg);
        z-index: 1110;
    }

    .site-header.is-scrolled.is-menu-open .menu-links li a {
        width: 100%;
        justify-content: flex-start;
        padding: 9px 12px;
        font-size: 14px;
        border: none;
    }

    .site-header.is-scrolled.is-menu-open .menu-links li a:hover {
        background-color: transparent;
        color: var(--text-color);
    }

    .site-header.is-scrolled.is-menu-open .menu-links li a.is-active,
    .site-header.is-scrolled.is-menu-open .menu-links li a[aria-current="page"],
    .site-header.is-scrolled.is-menu-open .menu-links li a.is-active:hover,
    .site-header.is-scrolled.is-menu-open .menu-links li a[aria-current="page"]:hover {
        background-color: transparent;
        color: var(--accent-color);
    }

    .menu-links {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: flex-start;
        margin-top: 10px;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
        border: none;
        gap: 8px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .menu-links li a {
        display: inline-block;
        font-size: 14px;
        font-weight: 500;
        padding: 6px 14px;
        border: none;
        border-radius: 9999px;
        transition: all 0.2s ease;
    }

    .menu-links li a:hover {
        background-color: transparent;
        color: var(--text-color);
    }

    .policy-page {
        padding: 50px 22px 36px;
    }

    .page-title {
        font-size: 24px;
    }

    .policy-intro {
        font-size: 17px;
    }

    .policy-section h2 {
        font-size: 20px;
    }

    .policy-section p,
    .policy-section li {
        font-size: 15px;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .service-card {
        padding: 14px;
        border-radius: 18px;
        font-size: 15px;
        gap: 10px;
    }

    .service-card-media {
        width: 52px;
        height: 52px;
    }

    .site-footer {
        padding: 24px 22px 28px;
    }

    .footer-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        white-space: normal;
        overflow-x: visible;
    }

    .footer-links a {
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .top-banner {
        font-size: 12px;
        gap: 12px;
    }

    .menu-links li a {
        font-size: 13px;
        padding: 5px 10px;
    }
}
