: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);
    --header-shadow: rgba(15, 23, 42, 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);
    --header-shadow: rgba(0, 0, 0, 0.35);
    --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,
input:focus,
select:focus,
textarea: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, border-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,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 9999px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    padding: 10px 24px;
    border: 2px solid var(--accent-color);
    background-color: var(--accent-color);
    color: #ffffff !important;
}

nav .btn-primary {
    min-width: 112px;
    text-align: center;
}

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

.btn-secondary,
.btn-ghost {
    padding: 10px 24px;
    border: 2px solid var(--border-color);
    background-color: transparent;
    color: var(--text-color);
}

.btn-secondary:hover,
.btn-ghost:hover {
    background-color: var(--text-color);
    color: var(--page-bg);
}

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

.theme-toggle:hover {
    background-color: transparent;
    color: var(--text-color);
}

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

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

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

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

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

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

.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;
}

.quote-page {
    padding: 80px 160px;
}

.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;
}

.quote-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
}

.quote-copy {
    padding-top: 0;
}

.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;
}

.quote-panel {
    border: none;
    border-radius: 0;
    background-color: transparent;
    overflow: visible;
    max-width: 760px;
}

.quote-form-shell,
.quote-success {
    padding: 0;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 13px;
    font-weight: 500;
}

.form-field span {
    color: var(--muted-color);
    font-weight: 400;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 2px solid var(--field-border);
    border-radius: 14px;
    background-color: var(--surface-bg);
    padding: 10px 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: var(--text-color);
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--muted-color);
    opacity: 0.9;
}

.form-field input,
.form-field select {
    min-height: 44px;
}

.form-field textarea {
    min-height: 96px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--accent-color);
}

.select-wrap {
    position: relative;
}

.select-wrap.is-open {
    z-index: 40;
}

.select-wrap.is-enhanced::after {
    display: none;
}

.select-wrap::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: var(--text-color);
    pointer-events: none;
    font-size: 14px;
}

.select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 40px;
    background-color: var(--surface-bg);
}

.select-wrap.is-enhanced select {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.custom-select-trigger {
    width: 100%;
    min-height: 44px;
    border: 2px solid var(--field-border);
    border-radius: 14px;
    background-color: var(--surface-bg);
    padding: 10px 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.custom-select-trigger.is-placeholder .custom-select-value {
    color: var(--muted-color);
}

.custom-select-trigger:focus-visible {
    outline: none;
}

.select-wrap.is-open .custom-select-trigger,
.select-wrap.is-enhanced:focus-within .custom-select-trigger {
    border-color: var(--accent-color);
}

.select-wrap.is-invalid .custom-select-trigger {
    border-color: #d14343;
}

.custom-select-value {
    display: block;
    flex: 1;
}

.custom-select-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-color);
    font-size: 14px;
    transition: transform 0.2s ease;
}

.select-wrap.is-open .custom-select-icon {
    transform: rotate(180deg);
}

.custom-select-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
    border: 2px solid var(--field-border);
    border-radius: 14px;
    background-color: var(--surface-bg);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    max-height: 240px;
    overflow-y: auto;
}

.custom-select-menu[hidden] {
    display: none !important;
}

.custom-select-option {
    width: 100%;
    border: none;
    border-radius: 10px;
    background-color: transparent;
    color: var(--text-color);
    padding: 10px 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.custom-select-option:hover,
.custom-select-option:focus-visible {
    background-color: var(--surface-alt);
    outline: none;
}

.custom-select-option.is-selected {
    background-color: var(--surface-alt);
    color: var(--text-color);
    font-weight: 500;
}

.form-helper,
.reply-note {
    font-size: 12px;
    line-height: 1.45;
    color: var(--muted-color);
}

.reply-note {
    margin-top: -2px;
}

.quote-form-status {
    min-height: 20px;
    font-size: 13px;
    line-height: 1.45;
    color: #1f6f43;
}

.quote-form-status.is-error {
    color: #c03636;
}

.form-actions {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
    flex: 0 0 auto;
    min-height: 46px;
    min-width: 152px;
    border-width: 0;
}

.quote-success {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.quote-success h2 {
    font-size: 28px;
    line-height: 1.1;
}

.quote-success p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted-color);
    max-width: 520px;
}

.success-tag {
    display: inline-flex;
    width: fit-content;
    padding: 7px 14px;
    border-radius: 9999px;
    background-color: var(--accent-color);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.success-home {
    width: fit-content;
    margin-top: 6px;
}

.is-hidden {
    display: none;
}

.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: 900px) {
    .quote-layout {
        grid-template-columns: 1fr;
    }

    .quote-copy {
        padding-top: 0;
    }
}

@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 {
        width: 40px;
        height: 40px;
    }

    .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 {
        width: 32px;
        height: 32px;
    }

    .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;
        border: none;
        border-radius: 9999px;
        padding: 6px 14px;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s ease;
    }

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

    .quote-page {
        padding: 50px 22px;
    }

    .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;
    }

    .quote-form-shell,
    .quote-success {
        padding: 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn-primary,
    .form-actions .btn-secondary {
        width: 100%;
    }
}

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

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

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