/* Estilos públicos globales (extraídos de layouts/public.blade.php) */

    :root {
        --bg: #f3f2ef;
        --surface: #ffffff;
        --surface-2: #ffffff;
        --ink: #1d2226;
        --muted: #666666;
        --accent: #5e6b75;
        --accent-dark: #4b5560;
        --brand: #0A66C2;
        --brand-soft: #E8F3FF;
        --border: #e0dfdc;
    }
    * { box-sizing: border-box; }
    body {
        margin: 0;
        font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
        background: var(--bg);
        color: var(--ink);
        line-height: 1.5;
    }
    body.home-page {
        overflow-x: clip;
    }
    a { color: var(--brand); text-decoration: none; }
    a:hover { text-decoration: underline; }
    a:focus-visible,
    button:focus-visible,
    input:focus-visible {
        outline: 2px solid #2F678F;
        outline-offset: 2px;
    }
    .skip-link {
        position: absolute;
        left: -9999px;
        top: 8px;
        background: #2F678F;
        color: #fff;
        border-radius: 8px;
        padding: 8px 12px;
        z-index: 50;
        font-size: 13px;
        font-weight: 700;
    }
    .skip-link:focus {
        left: 8px;
    }
    .container { width: min(1140px, 94vw); margin: 0 auto; }
    .topbar {
        border-bottom: 1px solid var(--border);
        background: #ffffff;
        position: sticky;
        top: 0;
        z-index: 20;
        overflow: visible;
    }
    .topbar-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 10px 0;
    }
    .brand-link {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
    }
    .brand-link:hover {
        text-decoration: none;
    }
    .brand-logo {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
        filter: brightness(0) saturate(100%) invert(18%) sepia(23%) saturate(1196%) hue-rotate(177deg) brightness(90%) contrast(90%);
    }
    .brand-text {
        font-weight: 700;
        letter-spacing: .02em;
        color: #2F678F;
        font-size: 1.08rem;
    }
    .main-nav {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
    }
    .nav-link {
        display: inline-flex;
        align-items: center;
        min-height: 36px;
        padding: 0 10px;
        border-radius: 9px;
        font-weight: 600;
        color: #666666;
        text-decoration: none;
        white-space: nowrap;
    }
    .nav-link:hover {
        text-decoration: none;
        background: #f3f2ef;
    }
    .nav-link.is-active {
        background: #eef3f8;
        color: #1d2226;
    }
    .topbar-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .topbar-search-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--border);
        background: #fff;
        border-radius: 9px;
        min-height: 38px;
        min-width: 40px;
        padding: 0 10px;
        font: inherit;
        color: #666;
        cursor: pointer;
    }
    .topbar-search-toggle svg {
        width: 16px;
        height: 16px;
        fill: currentColor;
    }
    .topbar-search-panel {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: max(3vw, calc((100vw - 1140px) / 2));
        z-index: 30;
        width: min(560px, 94vw);
        border: 1px solid var(--border);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 18px 34px rgba(15, 30, 51, 0.18);
    }
    .topbar-search-panel.is-open {
        display: block;
    }
    .topbar-search-panel-inner {
        width: 100%;
        margin: 0;
        padding: 10px;
    }
    .topbar-search {
        display: flex;
        align-items: center;
        gap: 8px;
        width: min(520px, 100%);
    }
    .topbar-search input {
        width: 100%;
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 9px 12px;
        font: inherit;
        background: #fff;
        color: var(--ink);
    }
    .topbar-search button {
        border: 1px solid #0A66C2;
        border-radius: 10px;
        min-height: 38px;
        min-width: 44px;
        padding: 0 12px;
        font: inherit;
        font-weight: 700;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #0A66C2;
        color: #fff;
        cursor: pointer;
    }
    .topbar-menu-toggle {
        display: none;
        border: 1px solid var(--border);
        background: #fff;
        border-radius: 9px;
        min-height: 38px;
        min-width: 40px;
        padding: 0 10px;
        font: inherit;
        color: #666;
        cursor: pointer;
    }
    .account-menu {
        position: relative;
    }
    .account-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border: 1px solid var(--border);
        background: #fff;
        border-radius: 999px;
        min-height: 36px;
        padding: 0 12px;
        font-size: 12px;
        font-weight: 700;
        color: #334b68;
        cursor: pointer;
    }
    .account-avatar {
        width: 22px;
        height: 22px;
        border-radius: 999px;
        display: inline-grid;
        place-items: center;
        background: #e4edf9;
        color: #294d79;
        font-size: 11px;
        font-weight: 700;
    }
    .account-label {
        max-width: 130px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .account-dropdown {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        min-width: 240px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 18px 34px rgba(15, 30, 51, 0.18);
        display: none;
        z-index: 35;
        overflow: hidden;
    }
    .account-dropdown.is-open {
        display: block;
    }
    .account-dropdown-head {
        padding: 10px 12px;
        border-bottom: 1px solid #e4eaf3;
        background: #f6f9fd;
        color: #41566f;
        font-size: 12px;
    }
    .account-dropdown-links {
        display: grid;
        gap: 0;
    }
    .account-dropdown-links a,
    .account-dropdown-links button {
        border: 0;
        border-top: 1px solid #eef2f8;
        background: #fff;
        color: #2e4563;
        text-align: left;
        font: inherit;
        font-size: 13px;
        padding: 10px 12px;
        text-decoration: none;
        cursor: pointer;
        width: 100%;
    }
    .account-dropdown-links a:first-child {
        border-top: 0;
    }
    .account-dropdown-links a:hover,
    .account-dropdown-links button:hover {
        background: #eef4fd;
        text-decoration: none;
    }
    .topbar-role-label {
        font-size: 12px;
        color: #607087;
    }
    .topbar-role-select {
        width: 100%;
        min-height: 32px;
        border: 1px solid #d7dfeb;
        border-radius: 8px;
        padding: 0 8px;
        margin: 4px 0 6px;
    }
    .mobile-role-form {
        display: grid;
        gap: 6px;
    }
    .mobile-role-select {
        min-height: 34px;
        border: 1px solid #d7dfeb;
        border-radius: 8px;
        padding: 0 8px;
    }
    .pill {
        display: inline-flex;
        align-items: center;
        border: 1px solid var(--border);
        background: var(--surface);
        border-radius: 999px;
        min-height: 36px;
        padding: 0 12px;
        font-size: 12px;
        font-weight: 600;
        color: var(--muted);
        text-decoration: none;
    }
    .pill:hover {
        text-decoration: none;
        border-color: #c4cfdf;
    }
    .pill.is-primary {
        border-color: #0A66C2;
        background: #0A66C2;
        color: #fff;
    }
    .topbar-panel-link {
        position: relative;
    }
    .topbar-activity-dot {
        width: 9px;
        height: 9px;
        border-radius: 999px;
        background: #e03131;
        border: 1px solid rgba(255, 255, 255, 0.95);
        margin-left: 8px;
        flex: 0 0 auto;
        box-shadow: 0 0 0 1px rgba(224, 49, 49, 0.2);
    }
    .sr-only {
        position: absolute !important;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;
        white-space: nowrap;
    }
    .mobile-menu {
        display: none;
        border-top: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.97);
    }
    .mobile-menu-inner {
        width: min(1140px, 94vw);
        margin: 0 auto;
        padding: 12px 0 14px;
        display: grid;
        gap: 10px;
    }
    .mobile-nav-links {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
    }
    .mobile-nav-links .nav-link {
        min-height: 40px;
        border: 1px solid var(--border);
        background: #fff;
        border-radius: 10px;
        justify-content: center;
    }
    .mobile-account-links {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }
    .mobile-menu.is-open {
        display: block;
    }
    .hero {
        margin: 26px 0;
        border-radius: 18px;
        padding: 30px;
        background: linear-gradient(145deg, #2b4569 0%, #3d5e8e 100%);
        color: #ecf1f9;
    }
    .hero h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 4vw, 2.9rem); line-height: 1.1; }
    .hero p { margin: 0; max-width: 720px; color: #d7e1f1; }
    .province-page-hero {
        min-height: 220px;
        border-radius: 16px;
        padding: 28px 24px;
        position: relative;
        background-image: var(--province-hero-image, url('../images/hero/hero-portada.webp'));
        background-size: cover;
        background-position: center;
        color: #fff;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        overflow: hidden;
        box-shadow: inset 0 -70px 90px rgba(8, 17, 31, 0.45), 0 10px 24px rgba(24, 39, 62, 0.18);
    }
    .province-page-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(11, 24, 42, 0.18) 0%, rgba(9, 20, 35, 0.72) 100%);
        z-index: 1;
    }
    .province-page-hero-bg-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }
    .province-page-hero-copy {
        max-width: 880px;
        position: relative;
        z-index: 2;
    }
    .ficha-cover-meta.province-hero-meta {
        margin-top: 0;
        margin-left: 16px;
        flex-shrink: 0;
        position: relative;
        z-index: 2;
    }
    .section .province-page-hero h1 {
        margin: 0;
        font-size: clamp(2.6rem, 3vw, 3rem);
        line-height: 1.08;
        color: #fff;
        text-shadow: 0 1px 1px rgba(7, 15, 29, 0.5);
    }
    .province-page-hero p {
        margin: 8px 0 0;
        color: #d9e6fa;
        font-size: clamp(.98rem, 1.2vw, 1.13rem);
        max-width: 760px;
    }
    .province-hero-search {
        margin-top: 18px;
        width: min(740px, 100%);
    }
    .provincial-step-separator {
        height: 2px;
        margin: 20px 0;
        border-radius: 999px;
        background: linear-gradient(
            90deg,
            rgba(31, 58, 87, 0) 5%,
            rgba(31, 58, 87, 1) 50%,
            rgba(31, 58, 87, 0) 95%
        );
    }
    .province-city-tags {
        margin: 0 0 40px;
        gap: 7px;
    }
    .province-city-tags.ficha-cover-meta .pill {
        border-color: #0A66C2;
        background: #0A66C2;
        color: #f2f7ff;
        font-size: 1rem;
    }
    .province-city-tags.ficha-cover-meta .pill:hover {
        background: #004182;
        border-color: #004182;
        color: #fff;
    }
    .province-city-tags.ficha-cover-meta .pill.is-active {
        border-color: #004182;
        background: #004182;
        color: #fff;
    }
    .section { margin: 28px 0; }
    .section h2, .section h1 { margin: 0 0 10px; font-size: clamp(1.6rem, 3vw, 2rem); }
    .muted { color: var(--muted); margin: 0 0 16px; }
    .u-m-0 { margin: 0; }
    .u-mt-0 { margin-top: 0; }
    .u-mt-4 { margin-top: 4px; }
    .u-mt-8 { margin-top: 8px; }
    .u-mt-10 { margin-top: 10px; }
    .u-mt-12 { margin-top: 12px; }
    .u-mt-18 { margin-top: 18px; }
    .u-mt-20 { margin-top: 20px; }
    .u-mb-0 { margin-bottom: 0; }
    .u-mb-6 { margin-bottom: 6px; }
    .u-mb-8 { margin-bottom: 8px; }
    .u-mb-12 { margin-bottom: 12px; }
    .u-mb-14 { margin-bottom: 14px; }
    .u-text-center { text-align: center; }
    .u-max-w-700 { max-width: 700px; }
    .u-grid { display: grid; }
    .u-grid-gap-4 { gap: 4px; }
    .u-grid-gap-6 { gap: 6px; }
    .u-grid-gap-10 { gap: 10px; }
    .u-fieldset-reset {
        margin: 0;
        padding: 0;
        border: 0;
    }
    .is-hidden { display: none; }
    .grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
    .ficha-grid {
        column-gap: 16px;
        row-gap: 40px;
        padding-top: 34px;
    }
    .card {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 18px;
        box-shadow: 0 10px 26px rgba(31, 53, 88, 0.05);
    }
    .card h3 { margin: 0 0 8px; font-size: 1.06rem; }
    .card p { margin: 8px 0; color: var(--muted); }
    .ficha-list-card {
        display: flex;
        flex-direction: column;
        height: 100%;
        position: relative;
        padding-top: 40px;
        overflow: visible;
    }
    .ficha-list-card-link {
        display: flex;
        flex-direction: column;
        height: 100%;
        color: inherit;
        text-decoration: none;
    }
    .ficha-list-card-link:hover {
        text-decoration: none;
    }
    .ficha-list-card-link:focus-visible {
        outline: 2px solid #2F678F;
        outline-offset: 4px;
        border-radius: 12px;
    }
    .ficha-list-logo-wrap {
        position: absolute;
        left: 50%;
        top: 0;
        transform: translate(-50%, -50%);
        display: inline-flex;
        text-decoration: none;
        z-index: 2;
    }
    .ficha-list-logo-box,
    .ficha-list-logo-placeholder {
        width: 58px;
        height: 58px;
        border-radius: 11px;
        flex-shrink: 0;
    }
    .ficha-list-logo-box {
        background: linear-gradient(155deg, #B6C5D5 0%, #7C91A9 100%);
        border: 1px solid rgba(111, 133, 164, 0.95);
        padding: 5px;
        display: grid;
        place-items: center;
        overflow: hidden;
        box-shadow:
            inset 0 0 0 1px rgba(233, 241, 252, 0.5),
            0 8px 14px rgba(14, 35, 68, 0.2);
    }
    .ficha-list-body {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .ficha-list-logo-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        display: block;
        filter:
            drop-shadow(0 1px 0 rgba(244, 248, 255, 0.25))
            drop-shadow(0 2px 2px rgba(3, 10, 21, 0.45));
    }
    .ficha-list-logo-placeholder {
        background: #ffffff;
        color: #2F678F;
        display: grid;
        place-items: center;
        font-size: 1.24rem;
        font-weight: 700;
        border: 1px solid #d6e0ee;
    }
    .ficha-list-title {
        margin: 0 0 6px;
        font-size: 1rem;
        line-height: 1.3;
        min-height: calc(1.3em * 2);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-align: center;
    }
    .ficha-list-summary {
        line-height: 1.45;
        min-height: calc(1.45em * 2);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-top: 2px;
    }
    .ficha-list-footer-pills {
        margin-top: auto;
        padding-top: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    .ficha-list-pill {
        min-height: 30px;
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
    }
    .ficha-list-pill-count strong {
        font-weight: 700;
    }
    .ficha-list-pill-location {
        margin-left: auto;
        max-width: 62%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .property-list-card {
        padding: 0;
        overflow: hidden;
    }
    .property-list-card-link {
        display: flex;
        flex-direction: column;
        height: 100%;
        color: inherit;
        text-decoration: none;
    }
    .property-list-card-link:hover {
        text-decoration: none;
    }
    .property-list-card-link:focus-visible {
        outline: 2px solid #2F678F;
        outline-offset: -2px;
    }
    .property-list-card .ficha-list-body {
        padding: 14px 16px 16px;
    }
    .property-list-card .ficha-list-body h3 {
        min-height: calc(1.3em * 2);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.3;
    }
    .property-list-description {
        min-height: calc(1.45em * 2);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.45;
    }
    .property-list-card .ficha-list-footer-pills {
        margin-top: 12px;
        padding-top: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        visibility: visible;
    }
    .property-list-card .ficha-list-pill {
        border-color: #d6e2f1;
        background: #f6f9fd;
        color: #2e4f71;
    }
    .property-list-media-wrap {
        display: block;
        position: relative;
    }
    .property-list-media {
        width: 100%;
        height: 160px;
        object-fit: cover;
        display: block;
        border-bottom: 1px solid #d7e1f1;
        background: #f3f5f8;
    }
    .property-list-media-placeholder {
        background: linear-gradient(155deg, #dbe7f4 0%, #bacde2 100%);
        display: grid;
        place-items: center;
    }
    .property-list-media-icon {
        width: 34px;
        height: 34px;
        fill: #2f678f;
        opacity: 0.85;
    }
    .property-list-price-pill {
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 2;
        min-height: 30px;
        padding: 0 10px;
        border-color: rgba(10, 29, 52, 0.28);
        background: rgba(22, 42, 66, 0.82);
        color: #ffffff;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        box-shadow: 0 4px 12px rgba(12, 23, 38, 0.22);
        font-weight: 700;
        font-size: 1.3rem;
        letter-spacing: 0.01em;
    }
    @media (min-width: 900px) {
        .ficha-list-card {
            padding-top: 46px;
        }
        .ficha-list-logo-box,
        .ficha-list-logo-placeholder {
            width: 66px;
            height: 66px;
            border-radius: 12px;
        }
        .ficha-list-title {
            font-size: 1.06rem;
        }
        .ficha-list-summary {
            min-height: calc(1.45em * 3);
            -webkit-line-clamp: 3;
        }
        .ficha-grid {
            row-gap: 44px;
            padding-top: 38px;
        }
        .property-list-media {
            height: 172px;
        }
        .property-list-card .ficha-list-body {
            padding: 16px 18px 18px;
        }
        .property-list-price-pill {
            top: 12px;
            left: 12px;
        }
    }
    .is-hidden {
        display: none !important;
    }
    .stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: 20px;
        max-width: 420px;
    }
    .stats .card strong { display: block; font-size: 1.6rem; line-height: 1; }
    .breadcrumbs { margin: 16px 0; font-size: 14px; color: var(--muted); }
    .breadcrumbs a { color: inherit; }
    .breadcrumbs-right { text-align: right; }
    .filters {
        margin: 18px 0 20px;
        padding: 14px;
        border-radius: 14px;
        background: var(--surface);
        border: 1px solid var(--border);
    }
    .filters-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }
    .filters input, .filters select {
        width: 100%;
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 8px 10px;
        font: inherit;
        background: #fff;
        color: var(--ink);
    }
    .filters-actions {
        margin-top: 10px;
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }
    .fichas-discreet-hint {
        margin: 10px 0 24px;
        font-size: .92rem;
        color: var(--muted);
    }
    .fichas-discreet-hint a {
        color: inherit;
        text-decoration: underline;
        text-underline-offset: 2px;
    }
    .btn {
        border: 1px solid var(--brand);
        background: var(--brand);
        color: #fff;
        border-radius: 8px;
        padding: 8px 12px;
        font: inherit;
        cursor: pointer;
    }
    .btn:hover,
    .btn:focus {
        background: #004182;
        border-color: #004182;
        text-decoration: none;
    }
    .btn-secondary {
        background: #fff;
        color: var(--ink);
        border-color: var(--border);
    }
    .btn-secondary:hover,
    .btn-secondary:focus {
        background: #fff;
        color: var(--ink);
        border-color: var(--border);
    }
    .pagination {
        margin: 24px 0 40px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .pagination a, .pagination span {
        border: 1px solid var(--border);
        background: var(--surface);
        padding: 7px 11px;
        border-radius: 8px;
        font-size: 14px;
    }
    .pagination .current { background: var(--brand-soft); border-color: #bdd0ef; color: #2F678F; }
    .pagination.is-hidden-by-load-more {
        display: none;
    }
    .load-more-wrap {
        margin: 14px 0 24px;
        display: flex;
        justify-content: center;
    }
    .load-more-wrap[hidden] {
        display: none !important;
    }
    .load-more-wrap .btn[disabled] {
        opacity: .7;
        cursor: wait;
    }
    .province-mass-contact-wrap {
        display: flex;
        justify-content: flex-end;
        margin: 10px 0 14px;
    }
    .province-mass-contact-card {
        margin: 0;
        text-decoration: none;
        text-align: center;
        background: #eef2f6;
        border: 1px solid #cad4e2;
        color: #1f3a57;
        box-shadow: none;
        padding: 18px 16px;
        display: grid;
        gap: 8px;
    }
    .province-mass-contact-card--compact {
        width: min(360px, 100%);
    }
    .province-mass-contact-card h2 {
        font-size: 1.25rem;
        margin: 0 0 6px;
        color: #1f3a57;
    }
    .province-mass-contact-card p {
        margin: 0;
        color: #3f5671;
    }
    .province-mass-contact-card .btn {
        background: #fff;
        color: #1f3a57;
        border-color: #c8d4e4;
    }
    .province-mass-contact-card .btn:hover,
    .province-mass-contact-card .btn:focus {
        background: #f8fbff;
        color: #1f3a57;
        border-color: #b9cbe2;
    }
    .province-agency-cta {
        text-align: center;
        padding: 22px 20px;
        color: #eff5ff;
        background: linear-gradient(125deg, #1e3558 0%, #2b4975 50%, #1a2f4f 100%);
        border-color: #223d61;
    }
    .province-agency-cta h2 {
        margin: 0;
        color: #fff;
    }
    .province-agency-cta p {
        margin: 10px auto 24px;
        max-width: min(90%, 920px);
        color: #d5e2f7;
    }
    .province-agency-cta .btn,
    .province-agency-cta .btn:focus {
        background: #fff;
        color: var(--ink);
        border-color: var(--border);
        text-decoration: none;
    }
    .province-agency-cta .btn:hover {
        background: var(--brand-soft);
        color: var(--brand);
        border-color: #BDD0EF;
    }
    .matrix-province-groups {
        display: grid;
        gap: 28px;
    }
    .matrix-province-group {
        display: grid;
        gap: 10px;
    }
    .matrix-province-group .matrix-province-title {
        margin: 0;
        font-size: clamp(1.2rem, 1.8vw, 1.35rem);
        font-weight: 800;
        line-height: 1.2;
        color: var(--brand);
        display: flex;
        align-items: baseline;
        gap: 8px;
        padding-bottom: 6px;
        border-bottom: 1px solid #dbe4f2;
    }
    .matrix-province-group .matrix-province-title .muted {
        margin: 0;
        font-size: .92rem;
        color: #4f6988;
    }
    footer {
        border-top: 1px solid var(--border);
        margin-top: 35px;
        padding: 28px 0 18px;
        color: var(--muted);
        font-size: 14px;
        background: #fff;
    }
    .footer-grid {
        display: grid;
        grid-template-columns: 2.1fr 1fr 1fr;
        gap: 18px;
    }
    .footer-brand {
        display: grid;
        gap: 8px;
    }
    .footer-brand .brand-link {
        width: fit-content;
    }
    .footer-brand p {
        margin: 0;
        max-width: 480px;
        line-height: 1.45;
    }
    .footer-col h2 {
        margin: 0 0 8px;
        font-size: .95rem;
        color: #1d2226;
    }
    .footer-links {
        display: grid;
        gap: 7px;
    }
    .footer-links a {
        color: #666;
        text-decoration: none;
        width: fit-content;
    }
    .footer-links a:hover {
        text-decoration: underline;
    }
    .footer-note {
        margin-top: 16px;
        padding: 12px 0;
        min-height: 48px;
        display: flex;
        align-items: center;
        border-top: 1px solid var(--border);
        font-size: 12px;
        line-height: 1.35;
        color: #666;
    }
    .cookie-banner {
        position: fixed;
        left: 50%;
        bottom: 16px;
        transform: translateX(-50%);
        width: min(920px, 94vw);
        background: #ffffff;
        color: #445a74;
        border: 1px solid #D9E0E8;
        border-radius: 14px;
        box-shadow: 0 18px 34px rgba(31, 53, 88, 0.18);
        z-index: 70;
        padding: 14px 16px;
    }
    .cookie-banner[hidden] {
        display: none !important;
    }
    .cookie-banner-inner {
        display: grid;
        gap: 12px;
    }
    .cookie-banner p {
        margin: 0;
        font-size: 14px;
        line-height: 1.45;
        color: #516884;
    }
    .cookie-banner a {
        color: #2f4d72;
        text-decoration: underline;
    }
    .cookie-banner-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .cookie-banner-btn {
        border: 1px solid #c9d4e5;
        background: #f7faff;
        color: #2c4668;
        border-radius: 10px;
        min-height: 38px;
        padding: 0 12px;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
    }
    .cookie-banner-btn.is-primary {
        background: #E8F1F8;
        border-color: #bdd0ef;
        color: #2F678F;
    }
    .cookie-banner-btn:hover {
        background: #E8F1F8;
        text-decoration: none;
    }

    body.home-page .topbar {
        background: #ffffff;
        border-bottom-color: var(--border);
    }
    body.home-page .brand-text { color: #2F678F; }
    body.home-page .topbar-menu-toggle {
        border-color: var(--border);
        background: #fff;
        color: #666;
    }
    body.home-page .topbar-search-toggle {
        border-color: var(--border);
        background: #fff;
        color: #666;
    }
    body.home-page .account-toggle {
        border-color: var(--border);
        background: #fff;
        color: #334b68;
    }
    body.home-page .account-avatar {
        background: #e4edf9;
        color: #294d79;
    }
    body.home-page .account-dropdown {
        background: #fff;
        border-color: var(--border);
        box-shadow: 0 18px 34px rgba(15, 30, 51, 0.18);
    }
    body.home-page .account-dropdown-head {
        background: #f6f9fd;
        border-bottom-color: #e4eaf3;
        color: #41566f;
    }
    body.home-page .account-dropdown-links a,
    body.home-page .account-dropdown-links button {
        background: #fff;
        border-top-color: #eef2f8;
        color: #2e4563;
    }
    body.home-page .account-dropdown-links a:hover,
    body.home-page .account-dropdown-links button:hover {
        background: #eef4fd;
    }
    body.home-page .topbar-search-panel {
        background: rgba(255, 255, 255, 0.98);
        border-color: var(--border);
        box-shadow: 0 18px 34px rgba(15, 30, 51, 0.18);
    }
    body.home-page .topbar-search input {
        border-color: var(--border);
        background: #fff;
    }
    body.home-page .nav-link {
        color: #666666;
    }
    body.home-page .nav-link:hover {
        background: #f3f2ef;
    }
    body.home-page .nav-link.is-active {
        background: #eef3f8;
        color: #1d2226;
    }
    body.home-page .topbar-search input {
        border-color: var(--border);
        background: #fff;
    }
    body.home-page .mobile-menu {
        background: rgba(255, 255, 255, 0.97);
        border-top-color: var(--border);
    }
    body.home-page .mobile-nav-links .nav-link {
        border-color: var(--border);
        background: #fff;
        color: #666666;
    }
    body.home-page .topbar .pill {
        border-color: var(--border);
        background: var(--surface);
        color: var(--muted);
    }
    body.home-page .topbar .pill.is-primary {
        border-color: var(--brand);
        background: var(--brand);
        color: #fff;
    }
    body.home-page .topbar .pill.is-primary:hover {
        background: #004182;
        border-color: #004182;
    }
    body.home-page .topbar .pill:hover {
        background: #fff;
        border-color: #c4cfdf;
    }
    .home-hero {
        width: 100vw;
        width: 100dvw;
        max-width: 100dvw;
        margin: 0 0 22px;
        left: 50%;
        transform: translateX(-50%);
        min-height: 560px;
        border-radius: 0;
        background-image:
            linear-gradient(90deg, rgba(6, 16, 33, 0.7) 0%, rgba(9, 24, 46, 0.58) 36%, rgba(9, 24, 46, 0.2) 62%, rgba(7, 18, 36, 0.45) 100%),
            linear-gradient(180deg, rgba(7, 16, 32, 0.06) 0%, rgba(7, 16, 32, 0.5) 100%),
            url('../images/hero/hero-portada.webp');
        background-size: cover;
        background-position: center right;
        color: #fff;
        display: flex;
        align-items: center;
        overflow: hidden;
        position: relative;
    }
    .home-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            radial-gradient(circle at 82% 8%, rgba(255, 186, 110, 0.2), transparent 24%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 35%),
            linear-gradient(180deg, transparent 50%, rgba(8, 18, 35, 0.4) 100%);
        pointer-events: none;
    }
    .home-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, transparent 0%, rgba(5, 14, 29, 0.22) 100%);
        pointer-events: none;
    }
    .home-hero-inner {
        width: min(1280px, 94vw);
        margin: 0 auto;
        padding: 74px 22px 54px 22px;
        position: relative;
        z-index: 1;
        display: block;
    }
    .home-hero-copy {
        max-width: 980px;
    }
    .home-hero h1 {
        margin: 0;
        font-size: clamp(2.35rem, 4.3vw, 4.4rem);
        line-height: 1.05;
        font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
        font-weight: 700;
        letter-spacing: -0.012em;
        text-shadow: 0 2px 10px rgba(8, 17, 34, 0.4);
        white-space: nowrap;
    }
    .home-hero h1 span {
        display: block;
    }
    .home-hero p {
        margin: 20px 0 24px;
        max-width: 750px;
        color: #d4dff0;
        font-size: clamp(1rem, 1.35vw, 1.5rem);
        line-height: 1.35;
        letter-spacing: -0.01em;
        font-weight: 500;
    }
    .home-search {
        display: flex;
        width: min(780px, 100%);
        gap: 10px;
    }
    .home-search input {
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.42);
        padding: 14px 24px;
        font-size: clamp(1rem, 1.15vw, 1.25rem);
        background: rgba(255, 255, 255, 0.95);
        color: #1f2f47;
        flex: 1;
    }
    .home-search input::placeholder {
        color: #8b95a6;
        font-weight: 500;
    }
    .home-search button {
        border: 1px solid #0A66C2;
        border-radius: 12px;
        min-width: 180px;
        font-weight: 700;
        color: #fff;
        background: #0A66C2;
        cursor: pointer;
        font-size: clamp(1rem, 1.1vw, 1.18rem);
    }
    .home-hero-foot {
        margin-top: 14px;
        color: #d1ddef;
        font-size: clamp(.97rem, 1vw, 1.05rem);
        font-weight: 700;
    }
    .home-hero-map {
        display: none;
    }
    .home-map-shape {
        display: none;
    }
    .home-section {
        margin: 30px 0 24px;
        background: #ffffff;
        border: 1px solid #d9e0ec;
        border-radius: 14px;
        padding: 20px;
    }
    .home-section h2 {
        margin: 0 0 8px;
        text-align: left;
        font-size: clamp(1.5rem, 2vw, 1.9rem);
        color: #2a3c5d;
        font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
    }
    .home-section-lead {
        margin: 0 0 8px;
        font-size: 14px;
        color: #61748d;
    }
    .home-province-grid {
        margin-top: 14px;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }
    .home-province-card {
        border-radius: 10px;
        border: 1px solid #d4ddea;
        min-height: 80px;
        padding: 10px 11px;
        position: relative;
        overflow: hidden;
        color: #2a3d5e;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        text-decoration: none;
        background: #fff;
        box-shadow: 0 2px 6px rgba(19, 34, 55, 0.04);
    }
    .home-province-card-bg-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }
    .home-province-card.is-with-image {
        color: #fff;
        border-color: rgba(255, 255, 255, 0.5);
        background: #1e334e;
        box-shadow: inset 0 -40px 60px rgba(10, 20, 35, 0.44), 0 6px 16px rgba(20, 35, 57, 0.14);
    }
    .home-province-card.is-with-image::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(17, 29, 48, 0.12) 0%, rgba(17, 29, 48, 0.68) 100%);
        z-index: 1;
    }
    .home-province-card span,
    .home-province-card strong {
        position: relative;
        z-index: 2;
    }
    .home-province-card strong {
        font-size: 1.7rem;
        line-height: .95;
        margin-bottom: 4px;
        font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
        font-weight: 700;
    }
    .home-province-card span {
        font-size: .82rem;
        color: #6c8098;
        font-weight: 600;
    }
    .home-province-card.is-with-image span { color: #e7effb; }
    .home-cta-link {
        text-align: center;
        margin-top: 12px;
    }
    .home-cta-link--spaced {
        margin-top: 35px;
    }
    .home-cta-link a {
        color: #334155;
        font-weight: 700;
    }
    .home-cta-link .btn,
    .home-cta-link .btn:hover,
    .home-cta-link .btn:focus {
        color: #fff;
        text-decoration: none;
    }
    .home-value {
        margin: 30px 0 24px;
        display: grid;
        grid-template-columns: 1.35fr .65fr;
        gap: 14px;
        align-items: stretch;
    }
    .home-value-copy {
        background: #ffffff;
        border: 1px solid #D9E0E8;
        border-radius: 12px;
        padding: 18px;
    }
    .home-value-copy h2 {
        margin: 0;
        font-size: 1.85rem;
        color: #243856;
    }
    .home-value-copy p {
        margin: 6px 0 12px;
        color: #677b93;
    }
    .home-value-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }
    .home-value-card {
        background: #fff;
        border: 1px solid #d9e1ed;
        border-radius: 10px;
        padding: 11px;
    }
    .home-value-card h3 {
        margin: 0 0 6px;
        font-size: .94rem;
        color: #2f4667;
    }
    .home-value-card p {
        margin: 0;
        font-size: .82rem;
        color: #6b7d93;
        line-height: 1.35;
    }
    .home-value-aside {
        background: #ffffff;
        border: 1px solid #D9E0E8;
        border-radius: 12px;
        padding: 14px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 10px;
        height: 100%;
    }
    .home-metric {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #4d637f;
        font-size: .95rem;
        background: #fff;
        border: 1px solid #dae2ef;
        border-radius: 10px;
        padding: 10px;
        flex: 1;
    }
    .home-metric strong {
        font-size: 1.5rem;
        line-height: 1;
        color: #2F678F;
    }
    .home-feature-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 6px;
    }
    .home-feature-head h2 {
        margin: 0;
    }
    .home-feature-head a {
        font-size: .9rem;
        font-weight: 700;
        color: #334155;
    }
    .home-featured-grid {
        margin-top: 12px;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 10px;
        row-gap: 44px;
    }
    .home-agency-banner {
        margin: 30px 0 0;
        border-radius: 18px;
        padding: 28px 20px;
        text-align: center;
        color: #eff5ff;
        background: linear-gradient(125deg, #1e3558 0%, #2b4975 50%, #1a2f4f 100%);
    }
    .home-agency-banner h2 {
        margin: 0;
        color: #fff;
        font-size: clamp(1.7rem, 2.8vw, 2.3rem);
        font-family: Georgia, "Times New Roman", serif;
    }
    .home-agency-banner p {
        margin: 10px auto 16px;
        max-width: 650px;
        color: #d5e2f7;
    }
    .home-banner-actions {
        display: flex;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    .home-banner-actions .btn {
        min-width: 180px;
        font-weight: 700;
        text-align: center;
        display: inline-block;
        text-decoration: none;
    }
    .home-banner-actions .btn.btn-secondary,
    .home-banner-actions .btn.btn-secondary:focus {
        background: #fff;
        color: var(--ink);
        border-color: var(--border);
        text-decoration: none;
    }
    .home-banner-actions .btn.btn-secondary:hover {
        background: var(--brand-soft);
        color: var(--brand);
        border-color: #BDD0EF;
        text-decoration: none;
    }
    .ficha-page {
        margin: 22px 0 10px;
    }
    .section.section-no-top {
        margin-top: 0;
    }
    .turnstile-helper-text {
        margin: 10px 0 0;
    }
    .form-error-top-spacing {
        margin-top: 10px;
    }
    .ficha-contact-form.u-grid {
        margin: 0;
    }
    .auth-login-form {
        width: min(50%, 860px);
        margin-inline: auto;
    }
    .auth-login-form .btn {
        width: 100%;
        min-height: 42px;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        font-weight: 700;
    }
    .auth-register-form {
        width: min(92%, 860px);
        margin-inline: auto;
    }
    .auth-section-title {
        margin: 0 0 8px;
        color: #2d4768;
        font-size: 1.08rem;
    }
    .auth-invite-wrap {
        padding: 24px 0 40px;
    }
    .auth-invite-card {
        max-width: 640px;
        margin: 0 auto;
        display: grid;
        gap: 12px;
    }
    .auth-invite-form {
        display: grid;
        gap: 10px;
    }
    .ficha-cover {
        --ficha-brand-size: 94px;
        border-radius: 16px;
        overflow: hidden;
        position: relative;
        background-image:
            linear-gradient(180deg, rgba(11, 24, 42, 0.18) 0%, rgba(9, 20, 35, 0.72) 100%),
            var(--ficha-cover-image, url('../images/hero/hero-portada.webp'));
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        color: #fff;
        box-shadow: inset 0 -70px 90px rgba(8, 17, 31, 0.45), 0 10px 24px rgba(24, 39, 62, 0.18);
    }
    .ficha-cover.has-bg-image {
        background-image: none;
        background-color: #243c5a;
    }
    .ficha-cover.has-bg-image::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(11, 24, 42, 0.18) 0%, rgba(9, 20, 35, 0.72) 100%);
        z-index: 1;
    }
    .ficha-cover-bg-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }
    .ficha-cover-content {
        padding: 20px;
        position: relative;
        z-index: 2;
    }
    .provincial-step-card {
        margin-bottom: 12px;
    }
    .provincial-step-card.is-ghosted {
        opacity: .65;
        background: #f7f9fc;
    }
    .provincial-step-card.is-complete {
        opacity: .92;
    }
    .provincial-step-actions {
        margin-top: 12px;
        display: grid;
        gap: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }
    .provincial-step-actions .btn {
        width: 50%;
        justify-self: center;
        text-align: center;
    }
    .provincial-upsell-wrap {
        margin-top: 18px;
        padding-top: 6px;
        display: flex;
        justify-content: flex-end;
    }
    .provincial-upsell-card {
        width: 50%;
    }
    .ficha-cover-head {
        display: flex;
        gap: 16px;
        align-items: center;
    }
    .ficha-logo-placeholder {
        width: var(--ficha-brand-size);
        height: var(--ficha-brand-size);
        border-radius: 14px;
        background: #ffffff;
        color: #2F678F;
        display: grid;
        place-items: center;
        font-size: 2rem;
        font-weight: 700;
        border: 1px solid rgba(255, 255, 255, 0.44);
        flex-shrink: 0;
    }
    .ficha-logo-box {
        width: var(--ficha-brand-size);
        height: var(--ficha-brand-size);
        border-radius: 14px;
        background: linear-gradient(155deg, #B6C5D5 0%, #7C91A9 100%);
        border: 1px solid rgba(111, 133, 164, 0.95);
        padding: 8px;
        flex-shrink: 0;
        display: grid;
        place-items: center;
        overflow: hidden;
        box-shadow:
            inset 0 0 0 1px rgba(233, 241, 252, 0.5),
            0 10px 20px rgba(14, 35, 68, 0.2);
    }
    .ficha-logo-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        display: block;
        filter:
            drop-shadow(0 1px 0 rgba(244, 248, 255, 0.35))
            drop-shadow(0 2px 2px rgba(3, 10, 21, 0.6));
    }
    .ficha-cover h1 {
        margin: 0;
        font-size: clamp(1.8rem, 3.2vw, 2.8rem);
        line-height: 1.08;
    }
    .ficha-cover-subtitle {
        margin: 6px 0 0;
        color: #dce7f7;
        font-size: 1.14rem;
    }
    .ficha-cover-meta {
        margin-top: 40px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .ficha-cover-meta .pill {
        border-color: rgba(221, 235, 255, 0.32);
        background: rgba(12, 28, 50, 0.36);
        color: #ecf3ff;
        font-size: 1.3rem;
    }
    .ficha-cover-meta .pill-verified {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: var(--ficha-brand-size);
        min-width: var(--ficha-brand-size);
        padding: 0;
        position: relative;
        cursor: default;
    }
    .ficha-cover-meta .pill-verified-icon {
        width: 18px;
        height: 18px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #1e78ff;
        color: #fff;
        font-size: 12px;
        font-weight: 800;
        line-height: 1;
        box-shadow: 0 1px 2px rgba(2, 10, 23, 0.32);
    }
    .ficha-cover-meta .pill-verified::after {
        content: attr(data-tooltip);
        position: absolute;
        left: 0;
        top: auto;
        bottom: calc(100% + 5px);
        transform: none;
        padding: 6px 10px;
        border-radius: 8px;
        border: 1px solid rgba(221, 235, 255, 0.36);
        background: rgba(6, 16, 31, 0.95);
        color: #eff5ff;
        font-size: 0.82rem;
        font-weight: 600;
        line-height: 1.2;
        max-width: none;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .18s ease, visibility .18s ease;
        z-index: 3;
    }
    .ficha-cover-meta .pill-verified:hover::after,
    .ficha-cover-meta .pill-verified:focus-visible::after,
    .ficha-cover-meta .pill-verified:active::after {
        opacity: 1;
        visibility: visible;
    }
    .ficha-cover-meta-location {
        margin-left: auto;
        display: inline-flex;
        align-items: center;
        gap: .42em;
    }
    .ficha-cover-meta-separator {
        line-height: 1;
        opacity: .92;
    }
    .ficha-cover-meta-location a {
        color: inherit;
        text-decoration: none;
        font-weight: 700;
    }
    .ficha-cover-meta-location a:hover,
    .ficha-cover-meta-location a:focus-visible {
        text-decoration: underline;
        text-underline-offset: 2px;
    }
    .ficha-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 16px;
        margin-top: 16px;
        align-items: start;
    }
    .ficha-main .section {
        margin: 0 0 16px;
    }
    .ficha-main .section:last-child {
        margin-bottom: 0;
    }
    .ficha-services-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .ficha-services-card {
        padding: 14px;
    }
    .ficha-service-item {
        display: flex;
        align-items: center;
        min-height: 30px;
        padding: 2px 0;
        color: #2b4363;
        font-size: 1rem;
        font-weight: 600;
    }
    .ficha-service-item::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: #2f678f;
        margin-right: 10px;
        flex-shrink: 0;
    }
    .ficha-map-canvas {
        min-height: 260px;
        border-radius: 10px;
        border: 1px solid #D9E0E8;
        overflow: hidden;
        background: #dfe8f4;
    }
    .ficha-map-fallback {
        margin: 10px 0 0;
        font-size: .9rem;
        text-align: center;
    }
    .province-map-canvas {
        margin-top: 12px;
        min-height: 360px;
        border-radius: 10px;
        border: 1px solid #D9E0E8;
        overflow: hidden;
        background: #dfe8f4;
    }
    .province-map-fallback {
        margin: 10px 0 0;
        font-size: .9rem;
        text-align: center;
    }
    .leaflet-container {
        width: 100%;
        min-height: 260px;
    }
    .ficha-aside {
        display: grid;
        gap: 12px;
        position: sticky;
        top: 86px;
    }
    .ficha-aside-card h2 {
        margin: 0 0 10px;
        font-size: 1.34rem;
    }
    .ficha-meta-row {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin: 9px 0;
    }
    .ficha-inline-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #eff4fc;
        color: #1f4f85;
        border: 1px solid #d6e2f2;
        flex-shrink: 0;
    }
    .ficha-inline-icon svg {
        width: 15px;
        height: 15px;
        fill: currentColor;
    }
    .ficha-link-row {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 7px 8px;
        border-radius: 10px;
        border: 1px solid #dce6f3;
        background: #f8fbff;
        color: #28507c;
        font-weight: 600;
    }
    .ficha-link-row:hover {
        text-decoration: none;
        background: #eef5ff;
        border-color: #c7d9ef;
        color: #1f466f;
    }
    .ficha-aside-card p {
        margin: 8px 0;
    }
    .ficha-contact-form {
        display: grid;
        gap: 8px;
    }
    .ficha-contact-form label {
        font-size: .88rem;
        font-weight: 700;
        color: #334155;
    }
    .ficha-contact-form input,
    .ficha-contact-form select,
    .ficha-contact-form textarea {
        width: 100%;
        border: 1px solid #cfdbeb;
        border-radius: 10px;
        padding: 10px 11px;
        font: inherit;
        color: var(--ink);
        background: #fff;
    }
    .ficha-contact-form textarea {
        resize: vertical;
        min-height: 110px;
    }
    .ficha-contact-form .btn {
        min-height: 44px;
        padding: 0 16px;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .auth-account-choice-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 10px;
    }
    .auth-account-choice {
        display: flex;
        flex-direction: column;
        position: relative;
        border: 1px solid #d7e2f0;
        border-radius: 10px;
        padding: 10px;
        padding-bottom: 42px;
        min-height: 148px;
        background: #f8fbff;
        cursor: pointer;
        transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
    }
    .auth-account-choice:hover {
        border-color: #b7cde7;
        background: #f1f7ff;
    }
    .auth-account-choice.is-selected {
        border-color: #0a66c2;
        box-shadow: 0 0 0 2px rgba(10, 102, 194, .14);
        background: #edf5ff;
    }
    .auth-account-choice input[type="radio"] {
        margin-right: 6px;
    }
    .auth-account-choice strong {
        color: #334155;
        display: block;
    }
    .auth-account-choice span {
        display: block;
        color: #5d6f85;
        font-size: .92rem;
        margin-top: 4px;
    }
    .auth-account-choice-price {
        display: inline-flex;
        position: absolute;
        right: 10px;
        bottom: 10px;
        font-weight: 700;
        color: #1f4f85;
        background: #e7f0ff;
        border: 1px solid #c7d9ef;
        border-radius: 999px;
        padding: 3px 10px;
        font-size: .78rem;
        letter-spacing: .01em;
    }
    .auth-account-detail {
        border: 1px solid #d7e2f0;
        border-radius: 12px;
        background: #f8fbff;
        padding: 12px;
        margin: 0 0 10px;
    }
    .auth-account-detail-kicker {
        margin: 0 0 8px;
        font-weight: 700;
        color: #1f4f85;
        font-size: .92rem;
        text-transform: uppercase;
        letter-spacing: .02em;
    }
    .auth-account-detail-description {
        margin: 0 0 10px;
        color: #334155;
    }
    .auth-account-detail-list {
        margin: 0;
        padding-left: 18px;
        color: #4e6078;
        display: grid;
        gap: 5px;
        font-size: .92rem;
    }
    .ficha-form-success,
    .ficha-form-error {
        border-radius: 10px;
        padding: 9px 10px;
        margin: 0 0 10px;
        font-size: .92rem;
    }
    .ficha-form-success {
        background: #edf8ef;
        border: 1px solid #b9dfbf;
        color: #2c6a3a;
    }
    .ficha-form-error {
        background: #fff0ef;
        border: 1px solid #e8c2bf;
        color: #8c3232;
    }
    .ficha-aside-card .btn {
        margin-top: 8px;
        width: 100%;
        text-align: center;
        display: inline-block;
    }
    .group-brand-link {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 6px;
        border: 1px solid #dce6f3;
        border-radius: 10px;
        background: #f8fbff;
        color: #28507c;
        text-decoration: none;
    }
    .group-brand-link:hover,
    .group-brand-link:focus-visible {
        text-decoration: none;
        border-color: #c7d9ef;
        background: #eef5ff;
        color: #1f466f;
    }
    .group-brand-logo,
    .group-brand-initial {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        border: 1px solid #d1deee;
        background: #fff;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    .group-brand-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }
    .group-brand-logo.is-hidden,
    .group-brand-initial.is-hidden {
        display: none;
    }
    .group-brand-initial {
        color: #2a4d75;
        font-weight: 700;
        font-size: 1rem;
    }
    .group-brand-name {
        color: inherit;
        font-weight: 700;
        line-height: 1.3;
    }
    .ficha-claim-card {
        background: linear-gradient(180deg, #f6f0df 0%, #f1e8d0 100%);
        border: 1px solid #d6b24a;
    }
    .ficha-claim-card h2 {
        color: #8b4f12;
        font-size: 1.34rem;
    }
    .ficha-claim-card p {
        color: #9a5d1e;
        font-weight: 400;
        line-height: 1.45;
        margin: 0 0 14px;
    }
    .ficha-claim-actions {
        display: grid;
        gap: 8px;
    }
    .btn.ficha-claim-btn {
        background: linear-gradient(180deg, #f1c800 0%, #d8ac00 100%);
        border-color: #c49a00;
        color: #fff;
        font-weight: 800;
    }
    .btn.ficha-claim-btn:hover {
        background: linear-gradient(180deg, #e0b900 0%, #c99d00 100%);
        border-color: #b88f00;
        color: #fff;
    }
    .btn.btn-secondary.ficha-claim-login {
        border-color: #cfb16a;
        background: rgba(255, 255, 255, 0.62);
        color: #8b5b11;
        font-weight: 700;
    }
    .btn.btn-secondary.ficha-claim-login:hover {
        background: rgba(255, 255, 255, 0.8);
        border-color: #c5a350;
        color: #7a4f0b;
    }
    .ficha-claim-page-card {
        width: min(720px, 100%);
        margin: 0 auto;
    }
    .ficha-claim-page-card h1 {
        margin: 0 0 12px;
    }

    @media (max-width: 1020px) {
        .home-hero-inner {
            padding: 50px 18px 34px 18px;
        }
        .home-hero-copy {
            max-width: none;
        }
        .home-hero h1 {
            font-size: clamp(1.1rem, 5vw, 2.6rem);
            white-space: nowrap;
        }
        .home-hero p {
            font-size: clamp(.95rem, 2.45vw, 1.2rem);
        }
        .home-search input {
            font-size: clamp(.95rem, 2.15vw, 1.05rem);
        }
        .home-search button {
            min-width: 150px;
            font-size: clamp(.95rem, 2.3vw, 1.05rem);
        }
        .home-province-grid,
        .home-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .home-value {
            grid-template-columns: 1fr;
        }
        .home-value-grid {
            grid-template-columns: 1fr;
        }
        .ficha-layout {
            grid-template-columns: 1fr;
        }
        .ficha-aside {
            position: static;
        }
    }
    @media (max-width: 900px) {
        .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .footer-grid {
            grid-template-columns: 1fr;
        }
    }
    @media (max-width: 640px) {
        .main-nav {
            display: none;
        }
        .topbar-menu-toggle {
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .topbar-actions {
            margin-left: auto;
        }
        .topbar-search-panel {
            top: calc(100% + 6px);
            right: 3vw;
            left: 3vw;
            width: auto;
        }
        .topbar-actions .pill {
            display: none;
        }
        .account-menu {
            display: none;
        }
        .hero { padding: 20px; border-radius: 14px; }
        .province-page-hero {
            min-height: 190px;
            padding: 20px 14px;
            border-radius: 12px;
            flex-direction: column;
            align-items: flex-start;
            justify-content: flex-end;
            gap: 10px;
        }
        .section .province-page-hero h1 {
            font-size: clamp(1.45rem, 7.4vw, 1.95rem);
        }
        .ficha-cover-meta-location {
            margin-left: 0;
        }
        .province-page-hero p {
            font-size: .97rem;
        }
        .ficha-cover-meta.province-hero-meta {
            margin-left: 0;
        }
        .filters-grid { grid-template-columns: 1fr; }
        .grid, .stats { grid-template-columns: 1fr; }
        .card { padding: 14px; }
        .home-hero {
            border-radius: 0;
            min-height: 430px;
            background-position: 63% center;
        }
        .home-hero-inner { padding: 34px 12px 24px 12px; }
        .home-search {
            display: grid;
            grid-template-columns: 1fr;
            gap: 8px;
        }
        .home-search input {
            border-radius: 10px;
            border-right: 1px solid rgba(255, 255, 255, 0.42);
            padding: 12px 14px;
        }
        .home-search button {
            border-radius: 10px;
            min-width: 0;
        }
        .home-search button { min-height: 44px; }
        .home-feature-head {
            flex-direction: column;
            align-items: flex-start;
        }
        .home-section { padding: 16px; border-radius: 12px; }
        .home-province-grid,
        .home-featured-grid { grid-template-columns: 1fr; }
        .ficha-cover-content {
            padding: 18px 14px;
        }
        .ficha-cover {
            --ficha-brand-size: 78px;
        }
        .ficha-cover-head {
            flex-direction: column;
            align-items: flex-start;
        }
        .ficha-list-logo-box,
        .ficha-list-logo-placeholder {
            width: 58px;
            height: 58px;
        }
        .ficha-logo-placeholder {
            border-radius: 12px;
        }
        .ficha-logo-box {
            border-radius: 12px;
            padding: 6px;
        }
        .ficha-services-grid {
            grid-template-columns: 1fr;
        }
        .auth-login-form {
            width: min(92%, 860px);
        }
        .provincial-step-actions {
            grid-template-columns: 1fr;
        }
        .provincial-upsell-wrap {
            justify-content: stretch;
        }
        .provincial-upsell-card {
            width: 100%;
        }
        .auth-account-choice-grid {
            grid-template-columns: 1fr;
        }
        .cookie-banner {
            bottom: 10px;
            padding: 12px;
        }
        .cookie-banner-actions {
            display: grid;
            grid-template-columns: 1fr;
        }
    }
