/* ============================================
   PRIMUS MORTGAGE — Powered by Coast2Coast
   Gold & Black Immersive Experience
============================================ */

:root {
    --black: #09090E;
    --black-2: #14110A;
    --black-3: #1c1914;
    --gold-light: #F8EDBE;
    --gold-bright: #E7C766;
    --gold: #C9A84C;
    --gold-dark: #9A7B30;
    --gold-deep: #6E5520;
    --silver: #F5F0E2;
    --text: #F5F0E2;
    --text-dim: #B8AE92;
    --radius: 14px;
    --ease: cubic-bezier(.2,.8,.2,1);
    --metal-text: linear-gradient(180deg,#FBF1C6 0%,#E7C766 38%,#C9A84C 56%,#9A7B30 100%);
    --metal-surface: linear-gradient(180deg,#F8EDBE 0%,#E0BC55 42%,#B8923C 54%,#E7C766 78%,#C9A84C 100%);
    --metal-line: linear-gradient(120deg,#8B7434 0%,#F8EDBE 28%,#C9A84C 52%,#E7C766 74%,#8B7434 100%);
    /* v2 gold crystal glass system */
    --card-bg: linear-gradient(155deg, rgba(74,61,30,.26) 0%, rgba(30,25,13,.12) 52%, rgba(86,70,34,.20) 100%);
    --glass-blur: blur(30px) saturate(150%);
    --gold-border: rgba(201,168,76,.42);
    --gold-ghost: rgba(231,199,102,.45);
    --gold-glow: rgba(201,168,76,.55);
}

@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes primus-rotate { to { --angle: 360deg; } }

* { margin: 0; padding: 0; box-sizing: border-box; }

/* hidden attribute must always win over display:flex/grid rules */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 130px; } /* nav fijo mide ~121px */

html { overflow-x: clip; }
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--black);
    color: var(--text);
    line-height: 1.6;
    /* clip (not hidden): stops horizontal scroll WITHOUT making body a scroll
       container — 'hidden' breaks position:fixed descendants on iOS Safari */
    overflow-x: clip;
    min-height: 100vh;
    /* clear the fixed rate bar pinned to the bottom of the screen */
    padding-bottom: calc(48px + env(safe-area-inset-bottom));
}

::selection { background: var(--gold); color: var(--black); }

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

em {
    font-style: italic;
    background: var(--metal-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgba(0,0,0,.4));
}

/* Gold placeholders — never gray (v2 rule 4) */
input::placeholder,
textarea::placeholder {
    color: var(--gold-ghost);
    font-style: italic;
    opacity: 1;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ========== BACKGROUND ========== */
.gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    pointer-events: none;
    z-index: -1;
}
.orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--gold-dark), transparent 70%);
    top: -10%; left: -15%;
    animation: drift1 25s ease-in-out infinite;
}
.orb-2 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--gold-deep), transparent 70%);
    bottom: -20%; right: -20%;
    animation: drift2 30s ease-in-out infinite;
}

@keyframes drift1 {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(80px, 60px) scale(1.15); }
}
@keyframes drift2 {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(-100px, -80px) scale(0.9); }
}

/* ========== NAV — flat full-width bar (matches primuscregroup.com) ========== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    width: 100%;
    /* frosted glass — subtle, elegant; not full transparent */
    background: rgba(9,9,14,0.38);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid rgba(201,168,76,0.14);
}
.nav-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;   /* logo centered, like primuscregroup.com */
    max-width: 1120px;         /* icons sit inset from the edge, like primuscregroup */
    margin: 0 auto;
    padding: 20px 20px;        /* 20 + 80px logo + 20 = 120px header (exact) */
}
.nav-brand { display: inline-flex; align-items: center; }
.nav-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(201,168,76,0.4));
}
.brand {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}
.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(201,168,76,0.35));
}
.brand-crown {
    font-size: 1.6rem;
    background: var(--metal-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 8px rgba(201,168,76,0.35));
}
.brand-text { white-space: nowrap; }
.brand-text em {
    font-size: 0.9em;
    margin-left: 4px;
}

/* Header title label — discreet, recedes behind the ticker (no flat gold) */
.report-tag {
    gap: 0;
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    white-space: nowrap;
    color: var(--text-dim);
    opacity: 0.8;
    transition: opacity .3s var(--ease), color .3s var(--ease);
}
.report-tag:hover { opacity: 1; color: var(--gold-bright); }

/* Live rate ticker */
.nav-rates {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    overflow: hidden;
}
.rates-updated {
    flex-shrink: 0;
    display: flex; align-items: center; gap: 6px;
    font-family: 'Orbitron', sans-serif;
    font-size: 8.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-bright);
    white-space: nowrap;
}
.rates-updated::before {
    content: '';
    width: 7px; height: 7px; border-radius: 50%;
    background: #2FE07A;
    box-shadow: 0 0 8px rgba(47,224,122,.95), 0 0 2px #2FE07A;
    animation: ratePulse 1.6s ease-in-out infinite;
}
@keyframes ratePulse { 0%,100%{opacity:1;} 50%{opacity:.25;} }

.rates-marquee {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    position: relative;
    -webkit-mask: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
    mask: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}
.rates-track {
    display: flex;
    width: max-content;
    animation: marq 38s linear infinite;
}
.rates-marquee:hover .rates-track { animation-play-state: paused; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .rates-track { animation: none; } }

.rate-chip {
    position: relative; overflow: hidden; --hot: 0;
    display: flex; align-items: center; gap: 9px;
    margin-right: 10px; padding: 8px 14px;
    border-radius: 8px; flex-shrink: 0; white-space: nowrap;
    background: var(--card-bg);
    border: 1px solid var(--gold-border);
    box-shadow: inset 0 1px 0 rgba(248,237,190,.18);
}
.rate-chip::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    z-index: 0; pointer-events: none;
    opacity: var(--hot);
    background: var(--metal-surface);
}
.rate-chip > * { position: relative; z-index: 1; }
.cp-name {
    font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .03em;
    color: color-mix(in srgb, #0a0a0a calc(var(--hot)*100%), var(--text));
}
.cp-sep {
    width: 1px; height: 13px;
    background: color-mix(in srgb, rgba(10,10,10,.55) calc(var(--hot)*100%), rgba(201,168,76,.3));
}
.cp-from {
    font-family: 'Orbitron', sans-serif; font-size: 7px; letter-spacing: .14em; text-transform: uppercase;
    color: color-mix(in srgb, #0a0a0a calc(var(--hot)*100%), var(--text-dim));
}
.cp-num {
    font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 15px; line-height: 1; font-variant-numeric: tabular-nums;
    color: color-mix(in srgb, #0a0a0a calc(var(--hot)*100%), #E7C766);
}
.cp-num .pct { font-size: 10px; }

/* Right-side actions */
.nav-actions {
    display: flex; align-items: center; gap: 12px;
    flex-shrink: 0; margin-left: auto;
}
.nav-cta {
    padding: 10px 20px;
    background: var(--metal-surface);
    color: var(--black) !important;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(201,168,76,0.28), inset 0 1px 0 rgba(255,255,255,0.4);
    transition: all .3s var(--ease);
}
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201,168,76,0.5);
}

/* Right-side controls — hamburger + search (like primuscregroup.com) */
.nav-right {
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 36px;   /* ~same spacing between icons as primuscregroup */
}
.nav-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    padding: 0;
    background: none; border: none; cursor: pointer;
    transition: filter .25s var(--ease);
}
.nav-search svg { width: 26px; height: 26px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.nav-search:hover svg { filter: drop-shadow(0 0 7px var(--gold-glow)); }

.menu-toggle {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 0;
    background: none; border: none; cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 24px; height: 2px;
    border-radius: 2px;
    background: var(--metal-line);   /* metallic sheen, not flat gold */
    filter: drop-shadow(0 1px 1px rgba(0,0,0,.45));
    transition: transform .3s var(--ease), opacity .3s var(--ease), filter .25s var(--ease);
}
.menu-toggle:hover span,
.menu-toggle[aria-expanded="true"] span {
    filter: drop-shadow(0 0 6px var(--gold-glow));
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hamburger menu panel + backdrop */
.menu-backdrop {
    position: fixed;
    top: var(--nav-h, 121px); bottom: var(--bar-h, 46px); left: 0; right: 0;
    z-index: 129;
    background: rgba(0,0,0,0.55);
    opacity: 0; pointer-events: none;
    transition: opacity .35s var(--ease);
}
.menu-backdrop.open { opacity: 1; pointer-events: auto; }
.menu-panel {
    position: fixed;
    /* REGLA DURA: el menú JAMÁS sale por encima del header — nace bajo el nav
       y muere sobre la cinta de tasas (mismas vars vivas que las tools). */
    top: var(--nav-h, 121px);
    bottom: var(--bar-h, 46px);
    right: 0;
    z-index: 130;
    /* ancho mínimo que no recorta los labels de TOOLS (verificado ES/EN + hover) */
    width: min(425px, 92vw);
    height: auto;
    padding: 28px 26px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    /* v2: cristal dorado translúcido sobre el negro (nunca panel plano) */
    background:
        linear-gradient(155deg, rgba(74,61,30,.30) 0%, rgba(24,20,12,.20) 52%, rgba(86,70,34,.24) 100%),
        rgba(10,9,8,0.93);
    backdrop-filter: blur(28px) saturate(150%);
    -webkit-backdrop-filter: blur(28px) saturate(150%);
    border-left: 1px solid var(--gold-border);
    box-shadow: inset 0 1px 0 rgba(248,237,190,.22), -24px 0 70px rgba(0,0,0,0.65);
    transform: translateX(100%);
    transition: transform .45s var(--ease);
}
.menu-panel.open { transform: translateX(0); }
.menu-links {
    list-style: none;
    display: flex; flex-direction: column; gap: 4px;
}
.menu-links a {
    position: relative;
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text);
    padding: 15px 12px 15px 20px;
    border-radius: 10px;
    transition: padding-left .25s var(--ease);
}
.menu-links a::before {   /* metallic active accent — never flat gold */
    content: '';
    position: absolute;
    left: 6px; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 0;
    border-radius: 2px;
    background: var(--metal-surface);
    transition: height .25s var(--ease);
}
.menu-links a:hover,
.menu-links a.active {
    padding-left: 26px;
    background: var(--metal-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.menu-links a:hover::before,
.menu-links a.active::before { height: 56%; }

/* ========== RATE BAR — fixed to the bottom of the SCREEN (always visible) ========== */
.rate-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 95;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 16px calc(7px + env(safe-area-inset-bottom));
    background: rgba(9,9,14,0.86);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-top: 1px solid var(--gold-border);
    box-shadow: 0 -8px 26px rgba(0,0,0,0.45);
}

/* ========== UNIFORM CONTAINER HEIGHT — every top-level section is one full screen ========== */
.team,
.programs-cta,
.stats-band,
.services,
.calculator,
.process,
.testimonials,
.contact {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ========== MEET OUR MLOs — team section (cloned from primuscregroup frontend) ========== */
.team {
    background: #08080C;
    border-top: 1px solid var(--gold-border);
    border-bottom: 1px solid var(--gold-border);
    padding: 132px 0 112px;   /* breathing room above the kicker + below the CTA */
}
.team-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}
.team-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.team-tag::before { content: ''; width: 30px; height: 1px; background: var(--metal-line); }
.team-tag span {
    background: var(--metal-text);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
}
.team-title {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-weight: 400;
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--silver);
    margin-bottom: 16px;
}
.team-title .accent {
    font-style: italic;
    font-weight: 500;
    background: var(--metal-text);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,.5));
}
.team-sub {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1.25rem;
    color: #B8BCC8;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}
.mlo-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gold-border);
    transition: transform .5s cubic-bezier(.2,.9,.3,1.4), border-color .4s;
}
.mlo-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.mlo-card::before, .mlo-card::after {
    content: ''; position: absolute; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, #F0D87C, transparent);
    pointer-events: none; z-index: 2;
}
.mlo-card::before { top: 0; left: -100%; animation: borderTopRight 6s linear infinite; }
.mlo-card::after { bottom: 0; right: -100%; animation: borderBottomLeft 6s linear infinite; }
@keyframes borderTopRight { to { left: 100%; } }
@keyframes borderBottomLeft { to { right: 100%; } }
@media (prefers-reduced-motion: reduce) { .mlo-card::before, .mlo-card::after { animation: none; } }
.mlo-photo {
    position: relative;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: radial-gradient(120% 80% at 50% 30%, rgba(74,61,30,.35), rgba(12,11,10,.9) 70%);
    display: flex; align-items: center; justify-content: center;
}
.mlo-photo img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(.88) saturate(1.08);
    transition: filter .6s, transform .8s;
}
.mlo-card:hover .mlo-photo img { filter: brightness(1) saturate(1.15); transform: scale(1.04); }
.mlo-crest { width: 42%; opacity: .5; transition: opacity .4s; }
.mlo-crest svg { width: 100%; height: auto; display: block; }
.mlo-card:hover .mlo-crest { opacity: .7; }
.mlo-info {
    position: absolute; inset-inline: 0; bottom: 0;
    padding: 52px 20px 22px;
    background: linear-gradient(180deg, transparent 0%, rgba(3,3,5,0.92) 55%, rgba(3,3,5,0.98) 100%);
    z-index: 1;
}
.mlo-role {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
    margin-bottom: 7px;
}
.mlo-role .metal {
    background: var(--metal-text);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
}
.mlo-name {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-weight: 500; font-size: 24px; line-height: 1.15; letter-spacing: -0.01em;
    color: var(--silver);
}
.mlo-nmls {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10.5px; letter-spacing: 0.14em;
    color: var(--text-dim); margin-top: 6px;
}
.team-cta { margin-top: 44px; text-align: center; }
@media (max-width: 760px) {
    .team-grid { grid-template-columns: 1fr; max-width: 360px; }
}

/* ========== UNIFORM TYPOGRAPHY — Cormorant serif titles + JetBrains Mono kickers (all containers) ========== */
.section-head h2,
.calc-intro h2,
.contact-info h2 {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-weight: 400;
    text-transform: none;
    letter-spacing: -0.015em;
    line-height: 1.05;
}
.card h3,
.step-content h3,
.form-success h3 {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}
/* Unify old numeral+pill kickers to the dash + mono style (like team/programs) */
.sec-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.sec-kicker::before {
    content: '';
    width: 30px; height: 1px;
    background: var(--metal-line);
    flex-shrink: 0;
}
.sec-index { display: none; }   /* drop the big numeral */
.sec-kicker .eyebrow {          /* higher specificity so it beats the original pill */
    padding: 0;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    background: var(--metal-text);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
}

/* ========== SECTION DIVIDER — thin line + subtle traveling neon ========== */
.divider {
    position: relative;
    width: 100%;
    height: 1px;
    background: rgba(201,168,76,0.12);
    overflow: hidden;
    z-index: 1;
}
.divider::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: -26%;
    width: 26%;
    background: linear-gradient(90deg, transparent, var(--gold-bright) 50%, transparent);
    filter: drop-shadow(0 0 5px var(--gold-glow));
    animation: dividerTravel 6.5s linear infinite;
}
@keyframes dividerTravel {
    0% { left: -26%; }
    100% { left: 100%; }
}
@media (prefers-reduced-motion: reduce) { .divider::before { animation: none; } }

/* ========== VIDEO INTRO (first container) ========== */
.video-hero {
    position: relative;
    width: 100%;
    height: 100vh; height: 100svh;
    overflow: hidden;
    background: #000;
}
.video-hero-media {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.1) saturate(1.16) brightness(1.06);   /* cinematic grade */
}
.video-hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* cinematic vignette + bottom fade */
    background:
        radial-gradient(ellipse at 50% 44%, transparent 26%, rgba(3,3,5,0.4) 66%, rgba(3,3,5,0.7) 92%),
        linear-gradient(180deg, transparent 58%, var(--black) 100%);
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;   /* exact match to primuscregroup.com's first container */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px 28px 110px;
    overflow: hidden;
}
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.35;
    filter: saturate(1.1) contrast(1.05);
}
.hero-video:not([src])[src=""],
.hero-video:empty { display: none; }
.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.9;
    /* cinematic grade — like the RE frontend videos */
    filter: contrast(1.1) saturate(1.16) brightness(1.08);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    /* cinematic vignette (clear center → dark edges) + bottom fade */
    background:
        radial-gradient(ellipse at 50% 42%, transparent 26%, rgba(3,3,5,0.42) 66%, rgba(3,3,5,0.7) 92%),
        linear-gradient(180deg, transparent 56%, var(--black) 100%);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(201,168,76,0.1), transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(138,99,18,0.15), transparent 60%);
    z-index: -1;
}
.shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(201,168,76,0.05) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: shimmer 8s linear infinite;
    pointer-events: none;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.hero-content {
    text-align: center;
    max-width: 960px;
    position: relative;
    z-index: 2;
}

.hero-logo {
    position: fixed;
    top: 98px;
    left: 50%;
    width: 100px; height: 100px;
    margin: 0;
    z-index: 90;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}
.hero-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 15px 45px rgba(201,168,76,0.45)) drop-shadow(0 0 30px rgba(201,168,76,0.25));
}
@keyframes float {
    0%,100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -10px); }
}
.logo-shine {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(201,168,76,0.35), transparent 60%);
    filter: blur(20px);
    animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
    0%,100% { opacity: 0.4; transform: scale(0.95); }
    50% { opacity: 0.8; transform: scale(1.05); }
}
.crown-wrap {
    position: relative;
    width: 100%; height: 100%;
    filter: drop-shadow(0 8px 30px rgba(201,168,76,0.4));
}
.crown-svg {
    width: 100%; height: 100%;
    animation: gentle-rock 5s ease-in-out infinite;
}
@keyframes gentle-rock {
    0%,100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

.hero-tag {
    display: inline-block;
    padding: 6px 18px;
    margin-bottom: 18px;
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 100px;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(201,168,76,0.05);
}
.hero-tag strong {
    color: var(--silver);
    font-weight: 600;
}

.hero-title {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: clamp(2.9rem, 7.2vw, 5rem);
    font-weight: 400;
    text-transform: none;
    letter-spacing: -0.02em;
    line-height: 1.02;
    margin-bottom: 22px;
    /* full metallic gold — PRIMUS */
    background: var(--metal-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 14px rgba(0,0,0,0.6)) drop-shadow(0 0 24px rgba(201,168,76,0.18));
}
.hero-title .line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: reveal-up 1s var(--ease) forwards;
}
.hero-title .line:nth-child(2) { animation-delay: 0.2s; }

@keyframes reveal-up {
    to { opacity: 1; transform: translateY(0); }
}

.hero-title .accent {
    font-style: italic;
    font-weight: 500;
    color: var(--silver);
    -webkit-text-fill-color: var(--silver);   /* white, overrides the gold clip */
}

.hero-sub {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    font-weight: 400;
    color: #B8BCC8;
    letter-spacing: 0.01em;
    line-height: 1.5;
    max-width: none;
    white-space: nowrap;   /* one line */
    margin: 0 auto 44px;
    opacity: 0;
    animation: reveal-up 1s var(--ease) 0.4s forwards;
}
@media (max-width: 760px) {
    .hero-sub { white-space: normal; max-width: 440px; font-size: 1.1rem; }
}

.hero-cta {
    display: flex; gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0;
    opacity: 0;
    animation: reveal-up 1s var(--ease) 0.6s forwards;
}

/* Luxe button — cloned from primuscregroup.com (sharp, transparent, hairline gold) */
.btn-luxe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 34px;
    border: 1px solid rgba(201,168,76,0.32);
    border-radius: 0;
    background: transparent;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-luxe span {   /* metallic gold text — PRIMUS */
    background: var(--metal-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.btn-luxe:hover {
    border-color: var(--gold);
    background: rgba(201,168,76,0.08);
    box-shadow: 0 0 26px rgba(201,168,76,0.16), inset 0 0 22px rgba(201,168,76,0.05);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all .35s var(--ease);
    position: relative;
    overflow: hidden;
}
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
    background: var(--metal-surface);
    color: var(--black);
    box-shadow: 0 10px 30px rgba(201,168,76,0.25), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 20%, rgba(255,255,255,0.4) 50%, transparent 80%);
    transform: translateX(-100%);
    transition: transform .6s var(--ease);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(201,168,76,0.45), inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn-primary:hover::before { transform: translateX(100%); }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(201,168,76,0.4);
}
.btn-ghost:hover {
    background: rgba(201,168,76,0.08);
    border-color: var(--gold);
    color: var(--gold);
}
.btn-block { width: 100%; }

/* ========== STATS ========== */
/* Programs CTA band — cloned from primuscregroup's section (kicker + luxe button) */
.programs-cta {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 34px;
    text-align: center;
    padding: 110px 28px;
}
.programs-video {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.9;
    filter: contrast(1.08) saturate(1.12) brightness(1.04);   /* cinematic grade */
}
.programs-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /* stronger central scrim so the gold kicker + button read over the video's own gold "APPROVED" text */
    background:
        radial-gradient(ellipse at 50% 50%, rgba(3,3,5,0.6) 0%, rgba(3,3,5,0.42) 40%, rgba(3,3,5,0.55) 70%, rgba(3,3,5,0.85) 95%),
        linear-gradient(180deg, rgba(9,9,14,0.45) 0%, rgba(9,9,14,0.2) 45%, rgba(9,9,14,0.6) 100%);
}
.programs-cta .prog-kicker,
.programs-cta .btn-luxe { position: relative; z-index: 2; }
.programs-cta .prog-kicker { filter: drop-shadow(0 1px 8px rgba(0,0,0,0.9)); }
/* Dark frosted-glass button with gold letters — elegant over the video */
.programs-cta .btn-luxe {
    background: rgba(9,9,14,0.55);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-color: rgba(201,168,76,0.45);
    box-shadow: 0 6px 26px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.programs-cta .btn-luxe:hover {
    background: rgba(9,9,14,0.62);
    border-color: rgba(201,168,76,0.75);
    box-shadow: 0 0 26px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,0.08);
}
.programs-cta .btn-luxe span { filter: drop-shadow(0 1px 6px rgba(0,0,0,0.85)); }

/* Hero "Apply Now" — same dark frosted-glass + gold letters as the programs button */
.hero-cta .btn-luxe {
    background: rgba(9,9,14,0.55);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-color: rgba(201,168,76,0.45);
    box-shadow: 0 6px 26px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.hero-cta .btn-luxe:hover {
    background: rgba(9,9,14,0.62);
    border-color: rgba(201,168,76,0.75);
    box-shadow: 0 0 26px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,0.08);
}
.hero-cta .btn-luxe span { filter: drop-shadow(0 1px 6px rgba(0,0,0,0.85)); }
.scroll-cue { z-index: 3; }   /* keep the scroll cue above section video/overlay */
.prog-kicker {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    background: var(--metal-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.prog-kicker::before {
    content: '';
    width: 36px; height: 1px;
    background: var(--metal-line);
    flex-shrink: 0;
}

/* Stats band */
.stats-band {
    position: relative;
    padding: 72px 0;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 940px;
    margin: 0 auto;
    padding: 30px 0;
    border-top: 1px solid rgba(201,168,76,0.15);
    border-bottom: 1px solid rgba(201,168,76,0.15);
}
.stat { text-align: center; }
.stat-num {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 900;
    background: var(--metal-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-label {
    font-size: 0.82rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Scroll cue — cloned from primuscregroup.com (bottom-right, "SCROLL" + line) */
.scroll-cue {
    position: absolute;
    right: 32px;
    bottom: calc(64px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color .3s var(--ease);
}
.scroll-cue span:not(.scroll-line) {   /* metallic gold — PRIMUS */
    background: var(--metal-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.scroll-line {
    position: relative;
    width: 1px;
    height: 46px;
    overflow: hidden;
    background: linear-gradient(to bottom, rgba(201,168,76,0.35), rgba(201,168,76,0));
}
.scroll-line::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 45%;
    background: linear-gradient(to bottom, var(--gold-bright), transparent);
    animation: scrollCue 2.1s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes scrollCue {
    0% { transform: translateY(-100%); opacity: 0; }
    35% { opacity: 1; }
    100% { transform: translateY(230%); opacity: 0; }
}
@media (max-width: 760px) { .scroll-cue { display: none; } }

/* ========== SECTION HEADS ========== */
.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}
.eyebrow {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 18px;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 100px;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}
/* Indexed section kicker (canonical customer-page vocabulary) */
.sec-kicker {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.sec-index {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 1.9rem;
    line-height: 1;
    background: var(--metal-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgba(0,0,0,.4));
    letter-spacing: 0.02em;
}
.sec-kicker .eyebrow { margin-bottom: 0; }

.section-head h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 18px;
}
.section-head p {
    color: var(--text-dim);
    font-size: 1.05rem;
}

/* ========== REVEAL ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== SERVICES ========== */
.services {
    padding: 92px 0;
    position: relative;
}
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.card {
    position: relative;
    padding: 38px 30px;
    background: var(--card-bg);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: inset 0 1px 0 rgba(248,237,190,.28), 0 6px 22px rgba(0,0,0,0.4);
    transition: all .5s var(--ease);
    overflow: hidden;
    transform-style: preserve-3d;
}
.card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(201,168,76,0.15), transparent 40%);
    opacity: 0;
    transition: opacity .4s var(--ease);
    pointer-events: none;
}
.card:hover {
    transform: translateY(-8px);
    border-color: rgba(201,168,76,0.4);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,168,76,0.2);
}
.card:hover .card-glow { opacity: 1; }

/* ========== V2 GOLD CRYSTAL GLINT (shared) ========== */
.card, .step-content, .contact-list li, .calc-highlight, .calc-card, .contact-form {
    position: relative;
    overflow: hidden;
}
.card::after, .step-content::after, .contact-list li::after,
.calc-highlight::after, .calc-card::after, .contact-form::after {
    content: '';
    position: absolute;
    top: -40%; left: -30%;
    width: 80%; height: 180%;
    background: linear-gradient(115deg, transparent 0%, rgba(248,237,190,.07) 42%, rgba(255,250,230,.16) 50%, rgba(248,237,190,.05) 58%, transparent 100%);
    transform: rotate(8deg);
    pointer-events: none;
    opacity: .6;
    z-index: 0;
    transition: opacity .3s var(--ease);
}
.card > *, .step-content > *, .contact-list li > *,
.calc-highlight > *, .calc-card > *, .contact-form > * {
    position: relative;
    z-index: 1;
}
.card:hover::after, .calc-card:hover::after, .contact-form:hover::after,
.step-content:hover::after, .contact-list li:hover::after { opacity: 1; }

/* ========== V2 TRAVELING NEON BORDER (hero-weight surfaces only) ========== */
.calc-card, .contact-form {
    isolation: isolate;
}
.calc-card::before, .contact-form::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.6px;
    background: conic-gradient(from var(--angle,0deg), transparent 0%, transparent 66%,
        var(--gold-deep) 76%, var(--gold) 84%, var(--gold-light) 90%, var(--gold-bright) 95%, var(--gold-deep) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: primus-rotate 4.4s linear infinite;
    pointer-events: none;
    z-index: 3;
}
@supports not (background: conic-gradient(from 0deg, red, blue)) {
    .calc-card::before, .contact-form::before {
        background: linear-gradient(135deg, transparent, var(--gold) 50%, transparent);
    }
}

.card-icon {
    width: 60px; height: 60px;
    margin-bottom: 24px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(138,99,18,0.1));
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 14px;
    color: var(--gold);
    transition: all .4s var(--ease);
}
.card:hover .card-icon {
    background: var(--metal-surface);
    color: var(--black);
    transform: scale(1.05);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--gold-light);
}
.card p {
    color: var(--text-dim);
    margin-bottom: 20px;
    font-size: 0.96rem;
}
.card-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.card-list li {
    position: relative;
    padding-left: 22px;
    font-size: 0.9rem;
    color: var(--text);
}
.card-list li::before {
    content: '♛';
    position: absolute;
    left: 0;
    color: var(--gold);
}

/* ========== CALCULATOR ========== */
.calculator {
    padding: 92px 0;
    position: relative;
}
.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}
.calc-intro h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 20px 0 18px;
}
.calc-intro p {
    color: var(--text-dim);
    margin-bottom: 30px;
}
.calc-highlight {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--gold-border);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(248,237,190,.24);
}
.calc-badge {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    background: var(--metal-surface);
    border-radius: 12px;
    flex-shrink: 0;
}
.calc-highlight strong {
    display: block;
    color: var(--gold-light);
    margin-bottom: 2px;
}
.calc-highlight span {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.calc-card {
    padding: 36px;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(248,237,190,.28);
}
.calc-result {
    text-align: center;
    padding: 24px 0 28px;
    border-bottom: 1px solid rgba(201,168,76,0.15);
    margin-bottom: 28px;
}
.calc-label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 8px;
}
.calc-amount {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 900;
    background: var(--metal-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
    transition: all .3s var(--ease);
}
.calc-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}
.calc-breakdown > div {
    padding: 14px 10px;
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.calc-breakdown span {
    font-size: 0.72rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.calc-breakdown strong {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    color: var(--gold);
}

.calc-controls { margin-bottom: 28px; }

.field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}
.field label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: var(--text-dim);
    font-weight: 500;
}
.field label span {
    font-family: 'Orbitron', sans-serif;
    color: var(--gold);
    font-size: 0.95rem;
}

/* Range */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(201,168,76,0.15);
    border-radius: 100px;
    outline: none;
    cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px; height: 22px;
    background: var(--metal-surface);
    border: 2px solid var(--black);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 0 0 4px rgba(201,168,76,0.2), 0 4px 12px rgba(201,168,76,0.4);
    transition: all .2s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(201,168,76,0.25), 0 6px 20px rgba(201,168,76,0.5);
}
input[type="range"]::-moz-range-thumb {
    width: 22px; height: 22px;
    background: var(--metal-surface);
    border: 2px solid var(--black);
    border-radius: 50%;
    cursor: grab;
}

.term-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.term-btn {
    padding: 12px;
    background: rgba(201,168,76,0.06);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 10px;
    color: var(--text-dim);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all .3s var(--ease);
}
.term-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.term-btn.active {
    background: var(--metal-surface);
    border-color: var(--gold);
    color: var(--black);
    box-shadow: 0 6px 20px rgba(201,168,76,0.3);
}

/* Form inputs */
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 12px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;   /* 16px min prevents iOS focus-zoom */
    transition: all .3s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(201,168,76,0.04);
    box-shadow: 0 0 0 4px rgba(201,168,76,0.1);
}
.field textarea { resize: vertical; min-height: 100px; font-family: 'DM Sans', sans-serif; }
.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath fill='%23C9A84C' d='M7 8L0 0h14z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 42px;
}

/* ========== PROCESS TIMELINE ========== */
.process {
    padding: 92px 0;
    position: relative;
}
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 0;
}
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, rgba(201,168,76,0.4), rgba(201,168,76,0.4), transparent);
    transform: translateX(-50%);
}
.step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 50px;
    padding: 0 20px;
}
.step:nth-child(even) { flex-direction: row-reverse; }
.step:nth-child(even) .step-content { text-align: right; }
.step-num {
    flex-shrink: 0;
    width: 72px; height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--black-2), var(--black-3));
    border: 2px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    box-shadow: 0 0 0 6px var(--black), 0 10px 30px rgba(201,168,76,0.2);
    position: relative;
    z-index: 2;
    transition: all .4s var(--ease);
}
.step.visible .step-num {
    background: var(--metal-surface);
    color: var(--black);
    transform: scale(1.05);
}
.step-content {
    flex: 1;
    padding: 22px 28px;
    background: var(--card-bg);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: inset 0 1px 0 rgba(248,237,190,.24);
    transition: all .4s var(--ease);
}
.step:hover .step-content {
    border-color: rgba(201,168,76,0.4);
    transform: translateY(-3px);
}
.step-content h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
    color: var(--gold-light);
}
.step-content p {
    color: var(--text-dim);
    font-size: 0.96rem;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
    padding: 92px 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.08), transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(138,99,18,0.08), transparent 50%);
}
/* ===== Reviews marquee — cloned from primuscregroup.com (infinite horizontal scroll) ===== */
.testi-marquee {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.testi-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: testiScroll 70s linear infinite;
    will-change: transform;
}
.testi-marquee:hover .testi-track { animation-play-state: paused; }
@keyframes testiScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.testi-card {
    position: relative;
    isolation: isolate;
    flex: 0 0 auto;
    width: min(380px, 82vw);
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px 30px;
    text-align: left;
    background: linear-gradient(rgba(13,13,20,0.7), rgba(13,13,20,0.4));
    border: 1px solid rgba(201,168,76,0.12);
    border-radius: 0;
}
/* subtle traveling neon border */
.testi-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--angle,0deg), transparent 0%, transparent 72%,
        var(--gold-deep) 82%, var(--gold) 89%, var(--gold-light) 95%, var(--gold-deep) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: primus-rotate 6.5s linear infinite;
    opacity: 0.55;
    pointer-events: none;
    z-index: 2;
}
@supports not (background: conic-gradient(from 0deg, red, blue)) {
    .testi-card::before { background: linear-gradient(135deg, transparent, var(--gold) 50%, transparent); }
}
/* metallic-gold stars (PRIMUS identity, never flat) */
.testi-card .stars {
    font-size: 0.85rem;
    letter-spacing: 0.28em;
    background: var(--metal-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 6px rgba(201,168,76,0.3));
}
.testi-rated {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin: -6px 0 0;
}
.testi-card blockquote {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.22rem;
    line-height: 1.5;
    color: var(--text);
    margin: 0;
}
.testi-foot {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(201,168,76,0.14);
}
.testi-foot strong {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    font-size: 1.5rem;
    letter-spacing: -0.005em;
    color: var(--text);
    margin-bottom: 5px;
}
.testi-foot span {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-dim);
}
@media (prefers-reduced-motion: reduce) {
    .testi-track { animation: none; }
}

/* ========== CONTACT ========== */
.contact {
    padding: 92px 0;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}
.contact-info h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 20px 0 18px;
}
.contact-info > p {
    color: var(--text-dim);
    margin-bottom: 36px;
}
.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.contact-list li {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--gold-border);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(248,237,190,.2);
    transition: all .3s var(--ease);
}
.contact-list li:hover {
    border-color: rgba(201,168,76,0.35);
    transform: translateX(4px);
}
.c-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(138,99,18,0.1));
    border: 1px solid var(--gold-border);
    border-radius: 12px;
    flex-shrink: 0;
}
.c-icon svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; }
.calc-badge svg { width: 24px; height: 24px; stroke: #2A2208; fill: none; }
.contact-list strong {
    display: block;
    color: var(--gold-light);
    font-size: 0.92rem;
    margin-bottom: 2px;
}
.contact-list span {
    color: var(--text-dim);
    font-size: 0.95rem;
}
.contact-list span a {
    color: inherit;
    text-decoration: none;
    transition: color .25s var(--ease);
}
.contact-list span a:hover { color: var(--gold-light); }

.contact-form {
    position: relative;
    padding: 36px;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(248,237,190,.28);
}
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-fine {
    margin-top: 14px;
    font-size: 0.78rem;
    color: var(--text-dim);
    text-align: center;
}
.form-success {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: linear-gradient(145deg, rgba(28,25,20,0.98), rgba(15,13,11,0.98));
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s var(--ease);
}
.form-success.show {
    opacity: 1;
    pointer-events: auto;
}
.success-crown {
    font-size: 4rem;
    background: var(--metal-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 18px;
    animation: pulse 2s ease-in-out infinite;
}
.form-success h3 {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 10px;
}
.form-success p {
    color: var(--text-dim);
    max-width: 400px;
}

/* ========== FOOTER ========== */
.footer {
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.6));
    padding: 80px 0 30px;
    border-top: 1px solid rgba(201,168,76,0.15);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}
.footer-brand {
    font-size: 1.4rem;
    margin-bottom: 16px;
}
.footer-tag {
    color: var(--gold);
    font-size: 0.92rem;
    margin-bottom: 16px;
}
.footer-fine {
    color: var(--text-dim);
    font-size: 0.82rem;
    max-width: 400px;
    line-height: 1.6;
}
.footer h4 {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}
.footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer ul a {
    color: var(--text-dim);
    font-size: 0.92rem;
    transition: color .3s var(--ease);
}
.footer ul a:hover { color: var(--gold); }
.footer-bottom {
    padding-top: 30px;
    text-align: center;
    border-top: 1px solid rgba(201,168,76,0.1);
    color: var(--text-dim);
    font-size: 0.82rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
    .calc-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .nav-inner { padding: 16px 18px; }
    .nav-logo { height: 64px; }
    .hero { padding-top: 132px; }
}
@media (max-width: 520px) {
    .nav-logo { height: 56px; }
    .rate-chip { padding: 6px 12px; }
    .cp-name { font-size: 10.5px; }
    .cp-num { font-size: 14px; }
    .hero { padding-top: 118px; }
}

@media (max-width: 720px) {
    .step, .step:nth-child(even) { flex-direction: column; text-align: center; }
    .step:nth-child(even) .step-content { text-align: center; }
    .timeline-line { left: 36px; }
    .step { flex-direction: row; padding-left: 0; }
    .step .step-content { text-align: left; }
    .step:nth-child(even) { flex-direction: row; }
    .step:nth-child(even) .step-content { text-align: left; }

    .field-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .calc-breakdown { grid-template-columns: 1fr; }
    .hero-stats { padding: 20px 0; gap: 16px; }
    .services, .calculator, .process, .testimonials, .contact { padding: 80px 0; }
}

/* ============================================
   LOAN PROGRAMS SHOWROOM (embedded tool)
============================================ */

/* Hamburger: tools group label */
.menu-group-label {
    margin: 22px 0 6px 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.menu-group-label::after {
    content: '';
    display: block;
    width: 34px; height: 1px;
    margin-top: 8px;
    background: var(--metal-line);
}

/* Full-screen embedded landing — covers nav (100), menu (99) and rate bar (95). */
.lp-landing {
    position: fixed;
    /* REGLA DURA (Yude 2026-07-25): el header y la cinta de tasas SIEMPRE
       visibles — toda herramienta vive ENTRE ellos, nunca los tapa. Las
       alturas reales las mide script.js en --nav-h / --bar-h. */
    top: var(--nav-h, 121px);
    bottom: var(--bar-h, 46px);
    left: 0; right: 0;
    z-index: 120;
    background:
        radial-gradient(1200px 800px at 18% -5%, rgba(201,168,76,.07), transparent 58%),
        radial-gradient(900px 700px at 88% 20%, rgba(201,168,76,.05), transparent 55%),
        var(--black);
}
.lp-scroll {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: calc(26px + env(safe-area-inset-top)) 0 calc(60px + env(safe-area-inset-bottom));
}
.lp-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    padding: 10px 0;
    min-height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    transition: color .2s ease;
}
.lp-back svg { transition: transform .2s ease; }
.lp-back:hover { color: var(--gold-bright); }
.lp-back:hover svg { transform: translateX(-3px); }

/* Landing hero — cloned composition from the Loan Showroom original */
.lp-hero { text-align: center; padding-bottom: 34px; }
.lp-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.lp-badge {
    padding: 7px 15px;
    border: 1px solid rgba(201,168,76,.38);
    border-radius: 100px;
    background: rgba(9,9,14,.4);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-bright);
}
.lp-badge-dim { color: var(--text-dim); border-color: rgba(201,168,76,.2); }
.lp-badge-live { display: inline-flex; align-items: center; gap: 8px; }
.lp-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--metal-surface);
    box-shadow: 0 0 8px var(--gold-glow);
    animation: lp-pulse 1.8s ease-in-out infinite;
}
@keyframes lp-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.lp-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: clamp(2.1rem, 5.4vw, 3.4rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--metal-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgba(0,0,0,.4));
    margin-bottom: 14px;
}
.lp-sub {
    font-size: 1.05rem;
    color: var(--text-dim);
    max-width: 560px;
    margin: 0 auto;
}

/* Live program search (hero) */
.lp-search-wrap { display: flex; justify-content: center; margin-top: 26px; }
.lp-search {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(520px, 100%);
    padding: 0 20px;
    min-height: 52px;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--gold-border);
    border-radius: 100px;
    box-shadow: inset 0 1px 0 rgba(248,237,190,.24), 0 6px 22px rgba(0,0,0,.35);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.lp-search svg { color: var(--gold-bright); flex-shrink: 0; }
.lp-search:focus-within { border-color: var(--gold); box-shadow: inset 0 1px 0 rgba(248,237,190,.3), 0 0 0 3px var(--gold-glow); }
.lp-search-input {
    flex: 1;
    min-width: 0;
    padding: 14px 0;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;   /* prevents iOS auto-zoom */
    color: var(--text);
}
.lp-search-input::placeholder { color: var(--gold-ghost); font-style: italic; }
.lp-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* "Take the Guide" teaser band */
.lp-guide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
    margin-bottom: 34px;
    padding: 20px 24px;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(248,237,190,.28), 0 6px 22px rgba(0,0,0,.4);
}
.lp-guide-left { display: flex; align-items: center; gap: 16px; }
.lp-guide-logo {
    width: 54px; height: 54px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--gold-border);
    background: rgba(9,9,14,.5);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.lp-guide-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.lp-guide-t { font-family: 'Orbitron', sans-serif; font-weight: 600; font-size: 0.98rem; }
.lp-guide-s { font-size: 0.85rem; color: var(--text-dim); margin-top: 3px; }
.lp-guide-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    min-height: 44px;
    border: none;
    border-radius: 100px;
    background: var(--metal-surface);
    background-size: 200% 100%;
    color: #2A2208;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.45);
    transition: background-position .6s ease, box-shadow .2s ease;
}
.lp-guide-btn:hover { background-position: 100% 50%; box-shadow: 0 0 22px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,.5); }

/* Guide wizard modal — layered above the landing content */
.lp-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(5,5,9,.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.lp-modal {
    position: relative;
    width: min(480px, 100%);
    max-height: calc(100svh - 36px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 30px 26px 26px;
    background: var(--black-2);
    border: 1px solid var(--gold-border);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(248,237,190,.28), 0 20px 60px rgba(0,0,0,.6);
}
.lp-modal-x { position: absolute; top: 14px; right: 14px; }

/* Wizard internals */
.lpg-bar { height: 2px; background: rgba(255,255,255,.08); border-radius: 100px; margin-bottom: 8px; }
.lpg-fill { height: 100%; background: var(--metal-surface); border-radius: 100px; transition: width .3s ease; }
.lpg-step {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 22px;
}
.lpg-q {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.22rem;
    line-height: 1.4;
    background: var(--metal-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgba(0,0,0,.4));
    margin-bottom: 22px;
}
.lpg-opts { display: flex; flex-direction: column; gap: 10px; }
.lpg-opt {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    min-height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(201,168,76,.18);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    text-align: left;
    transition: background .15s ease, border-color .15s ease;
}
.lpg-opt:hover { background: rgba(201,168,76,.08); border-color: var(--gold); }
.lpg-opt-l { font-weight: 700; font-size: 0.9rem; }
.lpg-opt-s { font-size: 0.78rem; color: var(--text-dim); margin-top: 2px; }
.lpg-opt svg { margin-left: auto; flex-shrink: 0; opacity: .35; }
.lpg-result { text-align: center; padding: 6px 0; }
.lpg-result-k {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.64rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}
.lpg-result-name {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    background: var(--metal-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgba(0,0,0,.4));
    margin-bottom: 8px;
}
.lpg-result-sub { font-size: 0.9rem; color: var(--text-dim); line-height: 1.55; margin-bottom: 16px; }
.lpg-result-chips { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.lpg-view {
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    min-height: 44px;
    border: none;
    border-radius: 8px;
    background: var(--metal-surface);
    color: #2A2208;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.45);
    margin-bottom: 12px;
}
.lpg-restart {
    width: 100%;
    padding: 11px 20px;
    min-height: 44px;
    background: transparent;
    border: 1px solid rgba(201,168,76,.25);
    border-radius: 100px;
    color: var(--text-dim);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}
.lpg-restart:hover { border-color: var(--gold); color: var(--gold-bright); }

/* Selector grid — 9 gold-crystal program cards */
.lp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}
.lp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px 22px;
    background: var(--card-bg);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: inset 0 1px 0 rgba(248,237,190,.28), 0 6px 22px rgba(0,0,0,0.4);
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: var(--text);
    transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
    min-height: 44px;
}
.lp-card::after {   /* specular glint */
    content: '';
    position: absolute;
    top: -40%; left: -30%;
    width: 80%; height: 180%;
    background: linear-gradient(115deg, transparent 0%, rgba(248,237,190,.10) 42%, rgba(255,250,230,.20) 50%, rgba(248,237,190,.08) 58%, transparent 100%);
    transform: rotate(8deg);
    pointer-events: none;
    opacity: .6;
    transition: opacity .3s ease;
}
.lp-card > * { position: relative; z-index: 1; }
.lp-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: inset 0 1px 0 rgba(248,237,190,.4), 0 10px 30px rgba(0,0,0,.5), 0 0 18px var(--gold-glow);
}
.lp-card:hover::after { opacity: 1; }
.lp-card.active { border-color: var(--gold); box-shadow: inset 0 1px 0 rgba(248,237,190,.42), 0 0 22px var(--gold-glow); }
.lp-card.active::before {   /* metallic active accent bar */
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 3px;
    background: var(--metal-surface);
    z-index: 2;
}
.lp-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.lp-card-name {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.06rem;
    letter-spacing: 0.03em;
    background: var(--metal-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgba(0,0,0,.4));
}
.lp-tag {
    flex-shrink: 0;
    padding: 4px 11px;
    border-radius: 100px;
    background: var(--metal-surface);
    color: #2A2208;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 1px 6px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.4);
}
.lp-card-sub {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
    flex: 1;
}
.lp-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.lp-chip {
    padding: 4px 10px;
    border: 1px solid rgba(201,168,76,.28);
    border-radius: 100px;
    background: rgba(201,168,76,.08);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: var(--gold-bright);
    white-space: nowrap;
}

/* Detail panel — key surface: traveling neon border */
.lp-detail {
    position: relative;
    isolation: isolate;
    margin-top: 34px;
    padding: 40px 36px;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    overflow: hidden;
    scroll-margin-top: 110px;
}
.lp-detail::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1.6px;
    background: conic-gradient(from var(--angle, 0deg), transparent 0%, transparent 66%,
        var(--gold-deep) 76%, var(--gold) 84%, var(--gold-light) 90%, var(--gold-bright) 95%, var(--gold-deep) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: primus-rotate 4.4s linear infinite;
    pointer-events: none;   /* neon border must never eat taps */
}
@supports not (background: conic-gradient(from 0deg, red, blue)) {
    .lp-detail::before { background: linear-gradient(135deg, transparent, var(--gold) 50%, transparent); }
}
.lp-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.lp-detail-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 3.4vw, 2.1rem);
    letter-spacing: 0.02em;
    background: var(--metal-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgba(0,0,0,.4));
}
.lp-detail-sub {
    font-size: 1.02rem;
    color: var(--text-dim);
    margin-bottom: 28px;
    max-width: 640px;
}
.lp-close {
    flex-shrink: 0;
    width: 44px; height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--gold-border);
    border-radius: 10px;
    background: transparent;
    color: var(--gold-bright);
    font-size: 1.1rem;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}
.lp-close:hover { border-color: var(--gold); background: rgba(201,168,76,.1); }

.lp-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
    margin-bottom: 28px;
}
.lp-col {
    padding: 22px 20px;
    background: linear-gradient(160deg, rgba(44,37,18,.20) 0%, rgba(18,15,9,.10) 100%);
    border: 1px solid rgba(201,168,76,.22);
    border-radius: 12px;
}
.lp-col h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}
.lp-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.lp-col li {
    position: relative;
    padding-left: 18px;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.45;
}
.lp-col li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.52em;
    width: 7px; height: 7px;
    border-radius: 2px;
    transform: rotate(45deg);
    background: var(--metal-surface);
}

/* FAQs — native accordion */
.lp-faqs { margin-bottom: 30px; }
.lp-faqs h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}
.lp-faq {
    border: 1px solid rgba(201,168,76,.2);
    border-radius: 10px;
    margin-bottom: 8px;
    background: rgba(9,9,14,.35);
    overflow: hidden;
}
.lp-faq summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    min-height: 44px;
    font-weight: 600;
    font-size: 0.93rem;
    cursor: pointer;
    transition: color .2s ease;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
    content: '+';
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--gold-bright);
    transition: transform .25s var(--ease);
}
.lp-faq[open] summary::after { transform: rotate(45deg); }
.lp-faq[open] summary { color: var(--gold-bright); }
.lp-faq p { padding: 0 18px 15px; font-size: 0.89rem; color: var(--text-dim); line-height: 1.55; }

.lp-cta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.lp-cta-note { font-size: 0.82rem; color: var(--text-dim); }

@media (max-width: 700px) {
    .lp-guide { flex-direction: column; align-items: flex-start; }
    .lp-guide-btn { width: 100%; justify-content: center; }
    .lp-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .lp-card { padding: 18px 16px; }
    .lp-card-sub { display: none; }   /* compact selector on phones — detail carries the copy */
    .lp-card-chips { display: none; }
    .lp-detail { padding: 28px 20px; }
}
@media (max-width: 380px) {
    .lp-grid { grid-template-columns: 1fr; }
}

/* Buying Power landing (A2) — site-level fit only, the audited calculator block
   is untouched. The site's global h2 = Orbitron (wider than the .com's font),
   so the nowrap "BUYING - POWER" title needs a viewport clamp to never clip
   inside the panel on phones. Wins over the calc's 820px media rule (2 ids). */
#buying-power #primusPrequal h2 {
    font-size: clamp(19px, 6.4vw, 36px) !important;
}

/* ── Buying Power results gate (lead capture, 2026-07-24) ─────────────────
   Step 4 queda en blur hasta capturar el lead; el modal es la única llave.
   El blur vive en clases (no inline) para no tocar el bloque auditado. */
.bp-gated {
    filter: blur(16px) saturate(.85);
    pointer-events: none;
    user-select: none;
    transition: filter .5s var(--ease);
}

.bp-gate-modal {
    position: fixed;
    inset: 0;
    z-index: 130; /* sobre la landing (120); el modal Calendly del calc va aparte (9999) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(5, 5, 10, .82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.bp-gate-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    width: 100%;
    max-width: 430px;
    max-height: 90svh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 30px 26px 24px;
    background:
        radial-gradient(600px 300px at 20% -10%, rgba(201,168,76,.10), transparent 60%),
        #101019;
    border: 1px solid var(--gold-border);
    box-shadow: inset 0 1px 0 rgba(248,237,190,.22), 0 24px 80px rgba(0,0,0,.6);
}
/* traveling neon — superficie hero-weight (regla 8): es LA llave de los resultados */
.bp-gate-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1.6px;
    background: conic-gradient(from var(--angle,0deg), transparent 0%, transparent 66%,
        var(--gold-deep) 76%, var(--gold) 84%, var(--gold-light) 90%, var(--gold-bright) 95%, var(--gold-deep) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: primus-rotate 4.4s linear infinite;
    pointer-events: none; /* obligatorio: sin esto congela los inputs de la card */
}
@supports not (background: conic-gradient(from 0deg, red, blue)) {
    .bp-gate-card::before { background: linear-gradient(135deg, transparent, var(--gold) 50%, transparent); }
}
.bp-gate-card > * { position: relative; z-index: 1; }

.bp-gate-x {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-dim);
    font-size: 15px;
    transition: color .2s ease;
}
.bp-gate-x:hover { color: var(--gold-bright); }

.bp-gate-kicker {
    font-family: 'Orbitron', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 8px;
}
.bp-gate-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.28rem;
    letter-spacing: .02em;
    color: var(--text);
    margin: 0 0 6px;
}
.bp-gate-sub {
    font-size: .92rem;
    line-height: 1.5;
    color: var(--text-dim);
    margin: 0 0 16px;
}
.bp-gate-form input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;
    color: var(--text);
    padding: 12px;
    font-size: 16px; /* iOS: <16px dispara auto-zoom */
    font-family: 'DM Sans', sans-serif;
    outline: none;
    margin-bottom: 10px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.bp-gate-form input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,.14);
}
.bp-gate-form input.bp-gate-warn { border-color: rgba(201,168,76,.55); }
.bp-gate-err {
    color: var(--gold);
    font-size: 12.5px;
    line-height: 1.4;
    min-height: 17px;
    margin-bottom: 8px;
}
.bp-gate-go {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 14px 0;
    min-height: 44px;
    cursor: pointer;
    background: var(--metal-surface);
    color: #2A2208;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.45);
    transition: box-shadow .2s ease, transform .14s ease;
}
.bp-gate-go:hover { box-shadow: 0 0 22px rgba(201,168,76,.45), inset 0 1px 0 rgba(255,255,255,.5); transform: translateY(-1px); }
.bp-gate-go:disabled { opacity: .55; cursor: wait; transform: none; }
.bp-gate-note {
    text-align: center;
    font-size: 11.5px;
    color: var(--text-dim);
    opacity: .8;
    margin: 12px 0 0;
}

/* Error visible del form de contacto — un fallo de envío nunca se disfraza de éxito */
.form-error {
    color: var(--gold);
    font-size: 13px;
    line-height: 1.45;
    min-height: 0;
    margin: 10px 0 0;
}
.form-error:not(:empty) { margin-bottom: 4px; }

/* ── Guide tool landings (A7/A8): barra Back + iframe same-origin ── */
.tool-landing:not([hidden]) { display: flex; flex-direction: column; }
.tool-bar {
    display: flex;
    align-items: center;
    padding: calc(8px + env(safe-area-inset-top)) 22px 8px;
    border-bottom: 1px solid rgba(201,168,76,.18);
    background: var(--black);
    flex: 0 0 auto;
}
.tool-bar .lp-back { margin-bottom: 0; padding: 6px 0; }
.tool-frame {
    flex: 1 1 auto;
    width: 100%;
    border: 0;
    background: #060608;
}

/* ── Pill de idioma ES|EN (patrón de las guías del eCard) ── */
.lang-pill {
    display: flex;
    gap: 2px;
    border: 1px solid var(--gold-border);
    border-radius: 999px;
    padding: 2px;
    background: rgba(9, 9, 14, .55);
}
.lang-pill button {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    padding: 5px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: color .2s ease;
    min-height: 0;
}
.lang-pill button:hover { color: var(--gold-bright); }
.lang-pill button.on {
    background: var(--metal-surface);
    color: #2A2208;
}
@media (max-width: 520px) {
    .lang-pill button { padding: 4px 8px; font-size: 9.5px; }
}

/* Línea de compliance NMLS del footer */
.footer-nmls {
    margin-top: 10px;
    font-size: 0.72rem;
    letter-spacing: .02em;
    color: var(--text-dim);
    opacity: .75;
    line-height: 1.5;
}

/* TOOLS: nombres largos — tipografía más compacta y wrap limpio */
.menu-tools a {
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    line-height: 1.35;
    overflow-wrap: break-word;
}

/* ══════════ SMART SEARCH — consola clonada de la web RE (lupita del header) ══════════
   Reglas extraídas 1:1 del bundle de primus-cre-frontend. El bloque de vars de abajo
   es el puente al tema del RE (valores reales del bundle). */
#smart-search-overlay {
    --color-bg-deep: #030305;
    --color-border: #c9a84c4d;
    --color-border-faint: #c9a84c1f;
    --color-gold: #c9a84c;
    --color-text: #f5f5f0;
    --color-text-dim: #7a7a82;
    --font-sans: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
    --font-serif: 'Cormorant Garamond', ui-serif, Georgia, serif;
}
@keyframes smartSpin{to{transform:rotate(360deg)}}
@keyframes smartFadeIn{0%{opacity:0}to{opacity:1}}
@keyframes smartPanelIn{0%{opacity:0;transform:translateY(16px)scale(.985)}to{opacity:1;transform:translateY(0)scale(1)}}
@keyframes borderTopRight{to{left:100%}}
@keyframes borderBottomLeft{to{right:100%}}
}#smart-search-overlay[hidden]{display:none}
#smart-search-overlay{z-index:9999;justify-content:center;align-items:center;padding:24px;animation:.25s ease-out both smartFadeIn;display:flex;position:fixed;inset:0}
#smart-search-overlay .smart-search-backdrop{-webkit-backdrop-filter:blur(20px)saturate(140%);background:#030305e0;position:absolute;inset:0}
#smart-search-overlay .smart-search-panel{background:var(--color-bg-deep);border:1px solid var(--color-border);isolation:isolate;flex-direction:column;width:100%;max-width:1200px;height:min(92vh,920px);animation:.4s cubic-bezier(.2,.9,.3,1) both smartPanelIn;display:flex;position:relative;overflow:hidden;box-shadow:0 30px 80px #000000bf,inset 0 1px #c9a84c2e}
#smart-search-overlay .smart-search-panel:before,#smart-search-overlay .smart-search-panel:after{content:"";filter:drop-shadow(0 0 7px #f0d87c8c);pointer-events:none;z-index:4;background:linear-gradient(90deg,#0000 22%,#f0d87cf2 50%,#0000 78%);width:100%;height:1px;position:absolute}
#smart-search-overlay .smart-search-panel:before{animation:4.5s linear infinite borderTopRight;top:0;left:-100%}
#smart-search-overlay .smart-search-panel:after{animation:4.5s linear infinite borderBottomLeft;bottom:0;right:-100%}
#smart-search-overlay .smart-search-close{z-index:5;-webkit-backdrop-filter:blur(8px);border:1px solid var(--color-border-faint);width:38px;height:38px;color:var(--color-text-dim);cursor:pointer;background:#030305c7;justify-content:center;align-items:center;font-size:18px;line-height:1;transition:border-color .25s,color .25s,background .25s;display:inline-flex;position:absolute;top:16px;right:16px}
#smart-search-overlay .smart-search-close:hover{border-color:var(--color-gold);color:var(--color-text);background:#c9a84c1f}
.smart-search-header{border-bottom:1px solid var(--color-border-faint);background:radial-gradient(at 50% 0,#c9a84c14,#0000 70%);flex:none;padding:56px 48px 32px;position:relative}
.smart-search-eyebrow{text-align:center;font-family:var(--font-sans);letter-spacing:.28em;text-transform:uppercase;color:var(--color-text-dim);margin-bottom:14px;font-size:11px}
.smart-search-eyebrow span{color:#0000;background:linear-gradient(135deg,#fbefb7 0%,#f0d87c 35%,#c9a84c 55%,#6b5a24 85%,#c9a84c 100%);-webkit-background-clip:text;background-clip:text}
.smart-search-title{text-align:center;font-family:var(--font-serif);color:var(--color-text);margin-bottom:28px;font-size:clamp(28px,4.2vw,42px);font-style:italic;font-weight:400;line-height:1.1}
.smart-search-accent{color:#0000;background:linear-gradient(135deg,#fbefb7 0%,#f0d87c 35%,#c9a84c 55%,#6b5a24 85%,#c9a84c 100%);-webkit-background-clip:text;background-clip:text;margin-top:6px;font-size:.65em;display:block}
.smart-search-input-wrap{border:1px solid var(--color-border);background:#03030599;align-items:stretch;max-width:720px;margin:0 auto;transition:border-color .25s;display:flex;position:relative}
.smart-search-input-wrap:focus-within{border-color:#c9a84c8c}
.smart-search-input-icon{color:var(--color-text-dim);pointer-events:none;position:absolute;top:50%;left:14px;transform:translateY(-50%)}
#smart-search-input{color:var(--color-text);font-family:var(--font-sans);background:0 0;border:0;outline:0;flex:auto;padding:16px 16px 16px 44px;font-size:16px}
#smart-search-input::placeholder{color:var(--color-text-dim);font-style:italic}
.smart-search-submit{color:#0a0a0e;font-family:var(--font-sans);letter-spacing:.22em;text-transform:uppercase;cursor:pointer;background:linear-gradient(135deg,#fbefb7 0%,#f0d87c 35%,#c9a84c 55%,#6b5a24 100%);border:0;flex:none;padding:0 26px;font-size:12px;font-weight:600;transition:filter .25s}
.smart-search-submit:hover{filter:brightness(1.08)}
.smart-search-submit[disabled]{opacity:.5;cursor:not-allowed}
.smart-search-examples{flex-wrap:wrap;justify-content:center;gap:8px;max-width:720px;margin:18px auto 0;padding:0;list-style:none;display:flex}
.smart-search-examples button{border:1px solid var(--color-border-faint);color:var(--color-text-dim);font-family:var(--font-sans);letter-spacing:.12em;text-transform:uppercase;cursor:pointer;background:0 0;padding:7px 14px;font-size:11px;transition:border-color .25s,color .25s,background .25s}
.smart-search-examples button:hover{border-color:var(--color-gold);color:var(--color-text);background:#c9a84c14}
.smart-search-results{scrollbar-width:thin;scrollbar-color:#c9a84c66 transparent;flex:auto;padding:32px 48px;overflow-y:auto}
.smart-search-results::-webkit-scrollbar{width:6px}
.smart-search-results::-webkit-scrollbar-thumb{background:#c9a84c59}
.smart-search-empty,.smart-search-loading,.smart-search-error{text-align:center;color:var(--color-text-dim);font-family:var(--font-sans);padding:60px 20px;font-size:14px}
.smart-search-error{color:#d68b8b}
.smart-search-spinner{border:2px solid #c9a84c33;border-top-color:var(--color-gold);border-radius:50%;width:32px;height:32px;margin:0 auto 16px;animation:.8s linear infinite smartSpin}
.smart-search-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px;display:grid}
.smart-search-card{background:var(--color-bg-deep);border:1px solid var(--color-border-faint);isolation:isolate;color:var(--color-text);text-decoration:none;transition:border-color .35s,transform .35s,box-shadow .35s;display:block;position:relative;overflow:hidden}
.smart-search-card:hover{border-color:var(--color-gold);transform:translateY(-2px);box-shadow:0 14px 36px #00000080,0 0 0 1px #c9a84c40}
.smart-search-card-media{aspect-ratio:4/3;background:#0a0a0e;position:relative;overflow:hidden}
.smart-search-card-media img{object-fit:cover;width:100%;height:100%;transition:transform .9s cubic-bezier(.2,.9,.3,1)}
.smart-search-card:hover .smart-search-card-media img{transform:scale(1.06)}
.smart-search-card-media:after{content:"";pointer-events:none;background:linear-gradient(#0000 50%,#030305c7 100%);position:absolute;inset:0}
.smart-search-card-price{z-index:1;-webkit-backdrop-filter:blur(8px);font-family:var(--font-sans);letter-spacing:.04em;color:#0000;background:#0303058c linear-gradient(135deg,#fbefb7 0%,#f0d87c 35%,#c9a84c 55%,#6b5a24 100%);-webkit-background-clip:text;background-clip:text;border:1px solid #c9a84c59;padding:6px 12px;font-size:13px;font-weight:600;position:absolute;bottom:12px;left:12px}
.smart-search-card-body{padding:14px 16px 16px}
.smart-search-card-addr{font-family:var(--font-serif);color:var(--color-text);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-bottom:4px;font-size:16px;font-style:italic;line-height:1.3;display:-webkit-box;overflow:hidden}
.smart-search-card-meta{font-family:var(--font-sans);letter-spacing:.14em;text-transform:uppercase;color:var(--color-text-dim);flex-wrap:wrap;gap:12px;font-size:11px;display:flex}
.smart-search-footer{border-top:1px solid var(--color-border-faint);text-align:center;margin-top:28px;padding-top:22px}
.smart-search-viewall{font-family:var(--font-sans);letter-spacing:.22em;text-transform:uppercase;border:1px solid var(--color-border);color:var(--color-text);align-items:center;gap:10px;padding:12px 22px;font-size:12px;text-decoration:none;transition:border-color .25s,background .25s;display:inline-flex}
.smart-search-viewall:hover{border-color:var(--color-gold);background:#c9a84c14}
@media (max-width:720px){#smart-search-overlay{padding:0}}
@media (max-width:720px){#smart-search-overlay .smart-search-panel{border:0;max-width:100%;height:100dvh;max-height:100dvh}}
@media (max-width:720px){.smart-search-header{padding:56px 20px 22px}}
@media (max-width:720px){.smart-search-title{margin-bottom:22px;font-size:26px}}
@media (max-width:720px){.smart-search-input-wrap{flex-direction:column}}
@media (max-width:720px){#smart-search-input{padding:14px 14px 14px 44px;font-size:16px}}
@media (max-width:720px){.smart-search-submit{border-top:1px solid var(--color-border-faint);padding:14px 18px}}
@media (max-width:720px){.smart-search-results{padding:22px 16px}}
@media (max-width:720px){.smart-search-grid{grid-template-columns:1fr 1fr;gap:12px}}
@media (max-width:720px){.smart-search-card-addr{font-size:14px}}
@media (max-width:640px){.listings-grid .smart-search-card-addr{font-size:14px}}
.agent-listings-cta-row .btn-gold-cta.agent-smart-search-cta{align-self:center;margin-top:0;padding:15px 30px}
/* ══════════ PROPERTY GATE — clonado de la web RE (captura antes de abrir ficha) ══════════ */
#pg-overlay {
    --color-bg-deep: #030305;
    --color-border: #c9a84c4d;
    --color-border-faint: #c9a84c1f;
    --color-gold: #c9a84c;
    --color-text: #f5f5f0;
    --color-text-dim: #7a7a82;
    --font-sans: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
    --font-serif: 'Cormorant Garamond', ui-serif, Georgia, serif;
}
#pg-overlay[hidden]{display:none}
#pg-overlay{z-index:10000;justify-content:center;align-items:center;padding:22px;animation:.25s ease-out both smartFadeIn;display:flex;position:fixed;inset:0}
#pg-overlay .pg-backdrop{-webkit-backdrop-filter:blur(20px)saturate(140%);background:#030305eb;position:absolute;inset:0}
.pg-panel{background:var(--color-bg-deep);border:1px solid var(--color-border);isolation:isolate;width:100%;max-width:460px;padding:40px 32px 28px;animation:.4s cubic-bezier(.2,.9,.3,1) both smartPanelIn;position:relative;overflow:hidden;box-shadow:0 30px 80px #000c,inset 0 1px #c9a84c33}
.pg-panel:before,.pg-panel:after{content:"";filter:drop-shadow(0 0 7px #f0d87c8c);pointer-events:none;z-index:3;background:linear-gradient(90deg,#0000 22%,#f0d87cf2 50%,#0000 78%);width:100%;height:1px;position:absolute}
.pg-panel:before{animation:4.5s linear infinite borderTopRight;top:0;left:-100%}
.pg-panel:after{animation:4.5s linear infinite borderBottomLeft;bottom:0;right:-100%}
.pg-close{z-index:5;-webkit-backdrop-filter:blur(8px);border:1px solid var(--color-border-faint);width:36px;height:36px;color:var(--color-text-dim);cursor:pointer;background:#030305c7;justify-content:center;align-items:center;font-size:22px;line-height:1;transition:border-color .25s,color .25s,background .25s;display:inline-flex;position:absolute;top:12px;right:12px}
.pg-close:hover{border-color:var(--color-gold);color:var(--color-text);background:#c9a84c1f}
.pg-header{text-align:center;margin-bottom:22px}
.pg-eyebrow{font-family:var(--font-sans);letter-spacing:.28em;text-transform:uppercase;color:var(--color-text-dim);margin-bottom:10px;font-size:10px}
.pg-eyebrow span{color:#0000;background:linear-gradient(135deg,#fbefb7 0%,#f0d87c 35%,#c9a84c 55%,#6b5a24 85%,#c9a84c 100%);-webkit-background-clip:text;background-clip:text}
.pg-title{font-family:var(--font-serif);color:var(--color-text);margin-bottom:10px;font-size:clamp(22px,3.6vw,28px);font-style:italic;font-weight:400;line-height:1.15}
.pg-accent{color:#0000;background:linear-gradient(135deg,#fbefb7 0%,#f0d87c 35%,#c9a84c 55%,#6b5a24 100%);-webkit-background-clip:text;background-clip:text;font-size:.8em}
.pg-sub{font-family:var(--font-sans);color:var(--color-text-dim);font-size:13px;line-height:1.5}
.pg-fields{flex-direction:column;gap:12px;margin-bottom:18px;display:flex}
.pg-field{flex-direction:column;gap:4px;display:flex}
.pg-field-label{font-family:var(--font-sans);letter-spacing:.22em;text-transform:uppercase;color:var(--color-text-dim);font-size:10px}
.pg-field input{border:1px solid var(--color-border);color:var(--color-text);font-family:var(--font-sans);background:#03030580;outline:none;padding:12px 14px;font-size:15px;transition:border-color .25s}
.pg-field input:focus{border-color:#c9a84c8c}
.pg-field input::placeholder{color:var(--color-text-dim)}
.pg-submit{color:#0a0a0e;width:100%;font-family:var(--font-sans);letter-spacing:.24em;text-transform:uppercase;cursor:pointer;background:linear-gradient(135deg,#fbefb7 0%,#f0d87c 35%,#c9a84c 55%,#6b5a24 100%);border:0;padding:16px 22px;font-size:12px;font-weight:700;transition:filter .25s}
.pg-submit:hover{filter:brightness(1.08)}
.pg-submit[disabled]{opacity:.55;cursor:wait}
.pg-status{font-family:var(--font-sans);text-align:center;color:#d68b8b;margin-top:12px;font-size:12px}
.pg-status[data-ok="1"]{color:var(--color-gold)}
.pg-note{text-align:center;font-family:var(--font-sans);letter-spacing:.12em;color:var(--color-text-dim);margin-top:14px;font-size:10px}
.pg-panel .cf-turnstile{display:none}
@media (max-width:480px){#pg-overlay{padding:0}}
@media (max-width:480px){.pg-panel{width:100%;max-width:100%;min-height:100dvh;padding:80px 22px 32px}}
.cf-turnstile,.bp-turnstile-wrap .cf-turnstile,.pg-panel .cf-turnstile{opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important;position:absolute!important;top:auto!important;left:-9999px!important;overflow:hidden!important}
/* Capas: consola (121) < ficha (123) < gate (124) < menú (130) < pill idioma (10005) */
#smart-search-overlay { z-index: 121 !important; }
#pg-overlay { z-index: 124; }
#property-view { z-index: 123; }
#property-view .tool-bar { position: relative; z-index: 1; }

/* Salida del property gate: cerrar SIN abrir la propiedad (la ficha queda bloqueada) */
.pg-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text-dim, #7a7a82);
    font-size: 16px;
    transition: color .2s ease;
}
.pg-close:hover { color: var(--gold-bright); }

/* ── REGLAS DURAS header/cinta + pill de idioma flotante (2026-07-25) ── */
/* La consola de búsqueda también vive entre header y cinta */
#smart-search-overlay { top: var(--nav-h, 121px); bottom: var(--bar-h, 46px); }
/* El iframe de las tool-landings llena el hueco disponible */
.tool-landing:not([hidden]) { display: flex; flex-direction: column; }

/* Selector de idioma FLOTANTE: abajo-izquierda, sobre la cinta de tasas.
   z sobre TODO (tools, consola, gate, ficha) — usable en cualquier contexto. */
.lang-pill {
    position: fixed;
    left: 14px;
    bottom: calc(max(var(--bar-h, 46px), env(safe-area-inset-bottom)) + 12px);
    z-index: 10005;
    box-shadow: 0 6px 22px rgba(0,0,0,.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ══════ Menú principal v2 — cristal, hairline metálica, glint y cascada ══════ */
/* Hairline metálica viva en el borde izquierdo del panel */
.menu-panel::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 1.5px;
    background: var(--metal-line);
    opacity: .85;
    pointer-events: none;
}
/* Destello especular que BARRE el panel una vez al abrir */
.menu-panel::after {
    content: '';
    position: absolute;
    top: -30%; left: -70%;
    width: 55%; height: 160%;
    transform: rotate(12deg);
    background: linear-gradient(105deg, transparent 0%, rgba(248,237,190,.06) 42%, rgba(255,250,230,.14) 50%, rgba(248,237,190,.05) 58%, transparent 100%);
    opacity: 0;
    pointer-events: none;
}
.menu-panel.open::after { animation: menuGlint 1.1s ease .25s 1 both; }
@keyframes menuGlint { 0% { opacity: 0; left: -70%; } 25% { opacity: 1; } 100% { opacity: 0; left: 120%; } }

/* Cascada de entrada de los links al abrir */
.menu-panel .menu-links li,
.menu-panel .menu-group-label {
    opacity: 0;
    transform: translateX(26px);
    transition: opacity .5s ease, transform .5s var(--ease);
}
.menu-panel.open .menu-links li,
.menu-panel.open .menu-group-label { opacity: 1; transform: translateX(0); }
.menu-panel.open .menu-links:not(.menu-tools) li:nth-child(1) { transition-delay: .06s }
.menu-panel.open .menu-links:not(.menu-tools) li:nth-child(2) { transition-delay: .10s }
.menu-panel.open .menu-links:not(.menu-tools) li:nth-child(3) { transition-delay: .14s }
.menu-panel.open .menu-links:not(.menu-tools) li:nth-child(4) { transition-delay: .18s }
.menu-panel.open .menu-links:not(.menu-tools) li:nth-child(5) { transition-delay: .22s }
.menu-panel.open .menu-links:not(.menu-tools) li:nth-child(6) { transition-delay: .26s }
.menu-panel.open .menu-group-label { transition-delay: .30s }
.menu-panel.open .menu-tools li:nth-child(1) { transition-delay: .34s }
.menu-panel.open .menu-tools li:nth-child(2) { transition-delay: .37s }
.menu-panel.open .menu-tools li:nth-child(3) { transition-delay: .40s }
.menu-panel.open .menu-tools li:nth-child(4) { transition-delay: .43s }
.menu-panel.open .menu-tools li:nth-child(5) { transition-delay: .46s }
.menu-panel.open .menu-tools li:nth-child(6) { transition-delay: .49s }
.menu-panel.open .menu-tools li:nth-child(7) { transition-delay: .52s }
.menu-panel.open .menu-tools li:nth-child(8) { transition-delay: .55s }
.menu-panel.open .menu-tools li:nth-child(9) { transition-delay: .58s }

/* Grupo TOOLS: kicker metálico con línea */
.menu-panel .menu-group-label {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--metal-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: .3em;
}
.menu-panel .menu-group-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--metal-line);
    opacity: .5;
}
/* Tools: diamante dorado como bullet + micro-desplazamiento al hover */
.menu-tools a { position: relative; transition: padding-left .25s var(--ease), color .2s ease; }
.menu-tools a::after {
    content: '';
    position: absolute;
    left: 4px; top: 50%;
    width: 6px; height: 6px;
    transform: translateY(-50%) rotate(45deg) scale(0);
    background: linear-gradient(180deg, #F8EDBE, #C9A84C 70%, #9A7B30);
    box-shadow: 0 0 8px rgba(201,168,76,.6);
    transition: transform .25s var(--ease);
}
.menu-tools a:hover::after, .menu-tools a.active::after { transform: translateY(-50%) rotate(45deg) scale(1); }
/* Backdrop con tinte cálido */
.menu-backdrop { background: radial-gradient(900px 600px at 85% 30%, rgba(201,168,76,.08), transparent 60%), rgba(0,0,0,0.6); }
@media (prefers-reduced-motion: reduce) {
    .menu-panel .menu-links li, .menu-panel .menu-group-label { opacity: 1; transform: none; transition: none; }
    .menu-panel.open::after { animation: none; }
}

/* Separadores del menú: línea fina con chispa de neón que viaja SIN FIN.
   Sutil: 1px, base tenue; la chispa recorre y re-entra en loop continuo.
   Desfases negativos por item para que las chispas no vayan sincronizadas. */
.menu-panel .menu-links li { position: relative; }
.menu-panel .menu-links li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 6px; right: 10px; bottom: 0;
    height: 1px;
    background:
        linear-gradient(90deg, transparent, rgba(248,237,190,.55) 45%, rgba(255,250,230,.8) 50%, rgba(248,237,190,.55) 55%, transparent) no-repeat -35% 0 / 28% 100%,
        linear-gradient(90deg, transparent 0%, rgba(201,168,76,.13) 10%, rgba(201,168,76,.13) 90%, transparent 100%);
    animation: menuLineFlow 5.6s linear infinite;
    pointer-events: none;
}
@keyframes menuLineFlow {
    0%   { background-position: -35% 0, 0 0; }
    100% { background-position: 135% 0, 0 0; }
}
.menu-panel .menu-links li:nth-child(2)::after { animation-delay: -0.8s; }
.menu-panel .menu-links li:nth-child(3)::after { animation-delay: -1.6s; }
.menu-panel .menu-links li:nth-child(4)::after { animation-delay: -2.4s; }
.menu-panel .menu-links li:nth-child(5)::after { animation-delay: -3.2s; }
.menu-panel .menu-links li:nth-child(6)::after { animation-delay: -4.0s; }
.menu-panel .menu-links li:nth-child(7)::after { animation-delay: -4.8s; }
.menu-panel .menu-links li:nth-child(8)::after { animation-delay: -5.4s; }
.menu-panel .menu-links li:nth-child(9)::after { animation-delay: -2.0s; }
@media (prefers-reduced-motion: reduce) {
    .menu-panel .menu-links li:not(:last-child)::after { animation: none; background:
        linear-gradient(90deg, transparent 0%, rgba(201,168,76,.13) 10%, rgba(201,168,76,.13) 90%, transparent 100%); }
}
