/* ==========================================================================
   InmoCapMed · Landing premium
   --------------------------------------------------------------------------
   Hoja aislada: todas las reglas están bajo .home-page o usan el prefijo
   home-. No altera dashboards, formularios, CRM ni paneles existentes.
   ========================================================================== */

.home-page {
    --home-navy: var(--home-secondary, #071a2f);
    --home-navy-2: #0b223c;
    --home-navy-3: #102e4e;
    --home-blue: var(--home-primary, #1f6feb);
    --home-blue-bright: #4e9bff;
    --home-gold: #c8a24b;
    --home-gold-bright: #e2bd69;
    --home-gold-soft: #f8f0dc;
    --home-ink: #102033;
    --home-muted: #607086;
    --home-line: #dce4ec;
    --home-surface: #f4f7fa;
    --home-white: #ffffff;
    --home-green: #33a776;
    --home-shadow: 0 24px 70px rgba(7, 26, 47, .12);
    --home-shadow-soft: 0 12px 36px rgba(7, 26, 47, .08);
    --home-radius: 28px;
    --home-radius-sm: 17px;
    --home-shell: 1240px;
    --home-header: 84px;

    margin: 0;
    min-width: 320px;
    overflow-x: clip;
    background: var(--home-white);
    color: var(--home-ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

.home-page *,
.home-page *::before,
.home-page *::after { box-sizing: border-box; }

.home-page img { display: block; max-width: 100%; }
.home-page a { color: inherit; }
.home-page a:hover { text-decoration: none; }
.home-page button,
.home-page input,
.home-page select { font: inherit; }
.home-page ::selection { background: var(--home-gold); color: var(--home-navy); }

.home-page :focus-visible {
    outline: 3px solid var(--home-gold-bright);
    outline-offset: 4px;
    border-radius: 6px;
}

.home-shell {
    width: min(calc(100% - 48px), var(--home-shell));
    margin-inline: auto;
}

.home-skip {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    translate: 0 -160%;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--home-gold);
    color: var(--home-navy);
    font-weight: 750;
    transition: translate .2s ease;
}
.home-skip:focus { translate: 0 0; }

.home-progress {
    position: fixed;
    z-index: 120;
    inset: 0 0 auto;
    height: 2px;
    pointer-events: none;
}
.home-progress span {
    display: block;
    width: var(--scroll-progress, 0%);
    height: 100%;
    background: linear-gradient(90deg, var(--home-gold), var(--home-blue-bright));
    box-shadow: 0 0 12px rgba(226, 189, 105, .7);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.home-header {
    position: fixed;
    z-index: 110;
    inset: 0 0 auto;
    height: var(--home-header);
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    color: #fff;
    transition: height .3s ease, background .3s ease, box-shadow .3s ease,
        border-color .3s ease, backdrop-filter .3s ease;
}
.home-header.is-scrolled {
    height: 70px;
    background: rgba(7, 26, 47, .89);
    border-color: rgba(255, 255, 255, .12);
    box-shadow: 0 12px 38px rgba(4, 16, 29, .19);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
}
.home-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 30px;
}
.home-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
    color: #fff;
    text-decoration: none;
}
.home-brand__mark {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .17);
}
.home-brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.home-brand__fallback {
    width: 41px;
    height: 41px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--home-gold-bright), var(--home-gold));
    color: var(--home-navy);
}
.home-brand__name {
    max-width: 210px;
    overflow: hidden;
    color: #fff;
    font-size: 17px;
    font-weight: 730;
    letter-spacing: -.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.2vw, 34px);
    margin-inline: auto;
}
.home-nav a,
.home-link-login,
.home-lang {
    position: relative;
    color: rgba(255, 255, 255, .76);
    font-size: 13px;
    font-weight: 620;
    text-decoration: none;
    transition: color .2s ease;
}
.home-nav a::after {
    content: "";
    position: absolute;
    inset: auto 0 -9px;
    height: 1px;
    background: var(--home-gold-bright);
    scale: 0 1;
    transform-origin: right;
    transition: scale .25s ease;
}
.home-nav a:hover,
.home-link-login:hover,
.home-lang:hover { color: #fff; }
.home-nav a:hover::after { scale: 1 1; transform-origin: left; }
.home-header__actions { display: flex; align-items: center; gap: 17px; flex: 0 0 auto; }
.home-lang {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    font-size: 10px;
    letter-spacing: .06em;
}
.home-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
}
.home-menu-toggle span {
    display: block;
    height: 1.5px;
    margin: 5px 0;
    border-radius: 2px;
    background: currentColor;
    transition: transform .25s ease, opacity .2s ease;
}
.home-header.menu-open .home-menu-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.home-header.menu-open .home-menu-toggle span:nth-child(2) { opacity: 0; }
.home-header.menu-open .home-menu-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.home-mobile-menu {
    position: absolute;
    top: calc(100% + 1px);
    left: 16px;
    right: 16px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: rgba(7, 26, 47, .97);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
    backdrop-filter: blur(20px);
    transform-origin: top;
}
.home-mobile-menu[hidden] { display: none; }
.home-mobile-menu.is-entering { animation: homeMenuIn .25s ease both; }
.home-mobile-menu nav { display: grid; }
.home-mobile-menu nav a {
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .88);
    font-size: 15px;
    font-weight: 650;
}
.home-mobile-menu__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
@keyframes homeMenuIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 730;
    letter-spacing: -.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .22s ease, background .22s ease, border-color .22s ease,
        color .22s ease, box-shadow .22s ease;
}
.home-button:hover { transform: translateY(-2px); }
.home-button:active { transform: translateY(0) scale(.98); }
.home-button > .icon:last-child { transform: rotate(180deg); transition: transform .22s ease; }
.home-button:hover > .icon:last-child { transform: rotate(180deg) translateX(-3px); }
.home-button--sm { min-height: 40px; padding: 8px 16px; border-radius: 11px; font-size: 12px; }
.home-button--lg { min-height: 54px; padding: 14px 23px; border-radius: 15px; font-size: 14px; }
.home-button--gold {
    background: linear-gradient(135deg, var(--home-gold-bright), var(--home-gold));
    color: var(--home-navy);
    box-shadow: 0 12px 32px rgba(200, 162, 75, .26), inset 0 1px rgba(255, 255, 255, .45);
}
.home-button--gold:hover { box-shadow: 0 17px 38px rgba(200, 162, 75, .35), inset 0 1px rgba(255, 255, 255, .5); }
.home-button--glass {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .07);
    color: #fff;
    box-shadow: inset 0 1px rgba(255, 255, 255, .06);
    backdrop-filter: blur(9px);
}
.home-button--glass:hover { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .12); }
.home-button--outline { border-color: rgba(255, 255, 255, .23); color: #fff; background: transparent; }
.home-button--navy { background: var(--home-navy); color: #fff; box-shadow: 0 12px 28px rgba(7, 26, 47, .17); }
.home-button--navy:hover { background: var(--home-navy-3); box-shadow: 0 16px 34px rgba(7, 26, 47, .22); }
.home-button--block { width: 100%; }
.home-button__play {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    font-size: 7px;
    padding-left: 1px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.home-hero {
    position: relative;
    min-height: 870px;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 70% 18%, rgba(53, 116, 180, .31), transparent 28%),
        radial-gradient(circle at 15% 85%, rgba(200, 162, 75, .09), transparent 25%),
        linear-gradient(145deg, #061526 0%, var(--home-navy) 48%, #0d2946 100%);
    color: #fff;
}
.home-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .23;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");
    pointer-events: none;
}
.home-hero::after {
    content: "";
    position: absolute;
    z-index: 3;
    inset: auto 0 0;
    height: 170px;
    background: linear-gradient(to bottom, transparent, rgba(4, 15, 27, .22));
    pointer-events: none;
}
.home-hero__ambient { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.home-orb { position: absolute; border-radius: 50%; filter: blur(4px); opacity: .5; }
.home-orb--one {
    width: 430px; height: 430px; top: 90px; right: -170px;
    background: radial-gradient(circle at 40% 40%, rgba(78, 155, 255, .28), transparent 67%);
    animation: homeOrb 10s ease-in-out infinite alternate;
}
.home-orb--two {
    width: 340px; height: 340px; bottom: 80px; left: -170px;
    background: radial-gradient(circle at 55% 45%, rgba(226, 189, 105, .18), transparent 68%);
    animation: homeOrb 12s ease-in-out -4s infinite alternate-reverse;
}
@keyframes homeOrb { to { transform: translate3d(35px, -24px, 0) scale(1.08); } }
.home-grid-light {
    position: absolute;
    left: 50%;
    bottom: -220px;
    width: 980px;
    height: 700px;
    background-image:
        linear-gradient(rgba(105, 164, 220, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(105, 164, 220, .12) 1px, transparent 1px);
    background-size: 54px 54px;
    transform: translateX(-8%) perspective(520px) rotateX(66deg) rotateZ(-4deg);
    mask-image: linear-gradient(to bottom, transparent 3%, #000 35%, transparent 84%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 3%, #000 35%, transparent 84%);
}
.home-hero__grid {
    position: relative;
    z-index: 5;
    display: grid;
    /* La columna visual recibe algo más de ancho para que la escena se vea
       grande sin necesidad de desbordar su contenedor. */
    grid-template-columns: minmax(0, .89fr) minmax(520px, 1.11fr);
    align-items: center;
    gap: clamp(26px, 4.4vw, 68px);
    min-height: 735px;
    padding-top: var(--home-header);
}
.home-hero__content { padding: 48px 0 38px; }
.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 23px;
    padding: 7px 13px 7px 9px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 999px;
    background: rgba(255, 255, 255, .055);
    color: rgba(255, 255, 255, .78);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}
.home-eyebrow__pulse {
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(200, 162, 75, .15);
}
.home-eyebrow__pulse::before,
.home-eyebrow__pulse::after {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: var(--home-gold-bright);
}
.home-eyebrow__pulse::after { inset: 3px; border: 1px solid var(--home-gold-bright); background: transparent; animation: homePulse 2s ease-out infinite; }
@keyframes homePulse { 80%, 100% { transform: scale(1.7); opacity: 0; } }
.home-hero h1 {
    max-width: 720px;
    margin: 0;
    color: #fff;
    font-size: clamp(46px, 4.65vw, 75px);
    font-weight: 680;
    line-height: .98;
    letter-spacing: -.062em;
    text-wrap: balance;
}
.home-hero h1 span {
    display: block;
    padding-bottom: .09em;
    color: transparent;
    background: linear-gradient(100deg, #f4dda7 3%, var(--home-gold-bright) 48%, #b9892f 95%);
    -webkit-background-clip: text;
    background-clip: text;
}
.home-hero__lead {
    max-width: 610px;
    margin: 25px 0 0;
    color: rgba(231, 239, 247, .73);
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.65;
    text-wrap: balance;
}
.home-hero__buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 33px; }
.home-hero__assurance { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.home-hero__assurance span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(231, 239, 247, .61);
    font-size: 11px;
    font-weight: 610;
}
.home-hero__assurance .icon { color: var(--home-gold-bright); }

/* Hero visual */
.home-hero__visual {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --pointer-x: 0px;
    --pointer-y: 0px;
    position: relative;
    width: 100%;
    height: 570px;
    perspective: 1100px;
    transform-style: preserve-3d;
    contain: layout style;
}
.home-visual__halo {
    position: absolute;
    inset: 8% 4% 6% 7%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(51, 118, 181, .24) 0%, rgba(21, 68, 109, .08) 46%, transparent 71%);
    filter: blur(3px);
    transform: translate3d(calc(var(--pointer-x) * -.18), calc(var(--pointer-y) * -.18), -20px);
    transition: transform .15s linear;
}
.home-visual__orbit {
    position: absolute;
    border: 1px solid rgba(121, 172, 220, .12);
    border-radius: 50%;
    transform-style: preserve-3d;
}
.home-visual__orbit--one { inset: 7% 2% 9% 6%; transform: rotateX(67deg) rotateZ(-14deg); }
.home-visual__orbit--two { inset: 18% 16% 21% 19%; transform: rotateX(68deg) rotateZ(28deg); border-color: rgba(226, 189, 105, .13); }
.home-visual__orbit::after {
    content: "";
    position: absolute;
    width: 7px; height: 7px; top: 15%; left: 9%;
    border-radius: 50%;
    background: var(--home-gold-bright);
    box-shadow: 0 0 18px var(--home-gold);
    animation: homeOrbitNode 8s linear infinite;
}
@keyframes homeOrbitNode { 50% { offset-distance: 55%; } }
.home-city {
    position: absolute;
    left: 50%;
    top: 49%;
    width: 475px;
    height: 360px;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%) rotateX(58deg) rotateZ(-37deg) rotateY(var(--tilt-y));
    transition: transform .15s linear;
}
.home-city__ground {
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(137, 184, 226, .22);
    border-radius: 42px;
    background:
        linear-gradient(rgba(112, 165, 214, .11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(112, 165, 214, .11) 1px, transparent 1px),
        linear-gradient(135deg, rgba(17, 56, 91, .88), rgba(5, 27, 47, .9));
    background-size: 31px 31px, 31px 31px, 100% 100%;
    box-shadow: 0 35px 90px rgba(0, 0, 0, .35), inset 0 0 55px rgba(42, 107, 166, .11);
    transform: translateZ(0);
}
.home-city__road { position: absolute; background: rgba(165, 200, 231, .06); }
.home-city__road--a { left: 45%; top: 0; bottom: 0; width: 42px; }
.home-city__road--b { left: 0; right: 0; top: 54%; height: 36px; }
.home-city__node {
    position: absolute;
    width: 8px; height: 8px;
    border: 2px solid rgba(226, 189, 105, .8);
    border-radius: 50%;
    background: var(--home-navy);
    box-shadow: 0 0 18px rgba(226, 189, 105, .45);
}
.home-city__node--a { left: 15%; top: 19%; }
.home-city__node--b { right: 12%; top: 49%; }
.home-city__node--c { left: 48%; bottom: 11%; }
.home-building {
    --building-w: 94px;
    --building-h: 190px;
    --building-d: 42px;
    position: absolute;
    width: var(--building-w);
    height: var(--building-h);
    transform-style: preserve-3d;
    transform-origin: 50% 100%;
    transform: rotateX(-90deg) translateZ(1px);
    animation: homeBuildingFloat 5s ease-in-out infinite alternate;
}
@keyframes homeBuildingFloat { to { translate: 0 -2px; } }
.home-building__front,
.home-building__side,
.home-building__roof { position: absolute; transform-style: preserve-3d; }
.home-building__front {
    inset: 0;
    overflow: hidden;
    border: 1px solid rgba(119, 172, 220, .22);
    border-radius: 5px 5px 1px 1px;
    background: linear-gradient(155deg, #153957 0%, #0a2137 74%);
    box-shadow: inset 0 0 35px rgba(70, 144, 208, .08);
    transform: translateZ(calc(var(--building-d) / 2));
}
.home-building__side {
    top: 0;
    right: calc(var(--building-d) / -2);
    width: var(--building-d);
    height: 100%;
    border: 1px solid rgba(92, 145, 190, .18);
    background: linear-gradient(180deg, #0b2742, #06192b);
    transform: rotateY(90deg);
}
.home-building__roof {
    top: calc(var(--building-d) / -2);
    left: 0;
    width: 100%;
    height: var(--building-d);
    border: 1px solid rgba(159, 198, 230, .2);
    background: linear-gradient(140deg, #21496b, #0e2d49);
    transform: rotateX(90deg);
}
.home-building__roof span {
    position: absolute;
    inset: 28% 36%;
    border: 1px solid rgba(226, 189, 105, .55);
    background: rgba(200, 162, 75, .18);
}
.home-building__brand {
    display: block;
    max-width: 80%;
    margin: 15px auto 0;
    overflow: hidden;
    color: rgba(255, 255, 255, .75);
    font-size: 6px;
    font-weight: 750;
    letter-spacing: .08em;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}
.home-building__windows {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px 8px;
    padding: 15px 14px;
}
.home-building__windows i {
    height: 10px;
    border: 1px solid rgba(117, 174, 220, .11);
    border-radius: 1px;
    background: rgba(94, 154, 207, .13);
    box-shadow: inset 0 0 5px rgba(120, 185, 239, .08);
}
.home-building__windows i:nth-child(4n + 2),
.home-building__windows i:nth-child(7n) {
    background: rgba(226, 189, 105, .68);
    box-shadow: 0 0 9px rgba(226, 189, 105, .24);
}
.home-building__windows--side { grid-template-columns: repeat(2, 1fr); padding-inline: 7px; }
.home-building--main { left: 190px; top: 65px; --building-w: 112px; --building-h: 255px; --building-d: 53px; z-index: 4; animation-delay: -.7s; }
.home-building--left { left: 76px; top: 147px; --building-w: 83px; --building-h: 138px; --building-d: 42px; z-index: 2; animation-delay: -2s; }
.home-building--right { right: 45px; top: 160px; --building-w: 89px; --building-h: 121px; --building-d: 42px; z-index: 3; animation-delay: -3.1s; }
.home-building--gold { right: 84px; top: 94px; --building-w: 76px; --building-h: 168px; --building-d: 39px; z-index: 3; animation-delay: -1.2s; }
.home-building--gold .home-building__front { background: linear-gradient(155deg, #ad8438, #6c4d1b); border-color: rgba(255, 230, 170, .3); }
.home-building--gold .home-building__side { background: linear-gradient(180deg, #7e5b22, #4c3514); }
.home-building--gold .home-building__roof { background: linear-gradient(140deg, #d3ae5d, #806028); }
.home-building--gold .home-building__windows i { background: rgba(255, 245, 210, .25); }
.home-float-card {
    position: absolute;
    z-index: 9;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 174px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    background: rgba(11, 34, 60, .77);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .26), inset 0 1px rgba(255, 255, 255, .08);
    backdrop-filter: blur(16px) saturate(125%);
    transform: translate3d(calc(var(--pointer-x) * var(--depth, .3)), calc(var(--pointer-y) * var(--depth, .3)), 0);
    transition: transform .15s linear;
    animation: homeCardFloat 4s ease-in-out infinite alternate;
}
@keyframes homeCardFloat { to { margin-top: -7px; } }
.home-float-card--lead { --depth: -.32; top: 13%; left: -1%; animation-delay: -1s; }
.home-float-card--property { --depth: .27; top: 35%; right: -1%; animation-delay: -2.3s; }
.home-float-card--automation { --depth: -.22; left: 8%; bottom: 11%; animation-delay: -.2s; }
.home-float-card__icon {
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: rgba(78, 155, 255, .16);
    color: #78b7ff;
}
.home-float-card__icon--gold { background: rgba(226, 189, 105, .14); color: var(--home-gold-bright); }
.home-float-card__icon--green { background: rgba(51, 167, 118, .15); color: #57d49d; }
.home-float-card small,
.home-float-card strong { display: block; white-space: nowrap; }
.home-float-card small { color: rgba(224, 235, 245, .51); font-size: 8px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
.home-float-card strong { margin-top: 1px; color: #fff; font-size: 11px; font-weight: 690; }
.home-float-card > i { width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: var(--home-blue-bright); box-shadow: 0 0 10px var(--home-blue-bright); }
.home-float-card__check { margin-left: auto; color: #57d49d; font-size: 13px; font-weight: 800; }
.home-visual__status {
    position: absolute;
    z-index: 10;
    right: 9%;
    bottom: 4%;
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(222, 235, 246, .55);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.home-visual__status span { width: 6px; height: 6px; border-radius: 50%; background: #57d49d; box-shadow: 0 0 12px #57d49d; }

.home-hero__proof {
    position: relative;
    z-index: 6;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
}
.home-hero__proof > div {
    display: grid;
    grid-template-columns: 37px 1fr;
    grid-template-rows: auto auto;
    column-gap: 11px;
    padding: 24px clamp(12px, 2vw, 28px);
    border-right: 1px solid rgba(255, 255, 255, .08);
}
.home-hero__proof > div:first-child { padding-left: 0; }
.home-hero__proof > div:last-child { border-right: 0; padding-right: 0; }
.home-hero__proof > div > span {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 37px; height: 37px;
    border: 1px solid rgba(226, 189, 105, .2);
    border-radius: 11px;
    color: var(--home-gold-bright);
    background: rgba(226, 189, 105, .06);
}
.home-hero__proof strong { color: #f6f9fc; font-size: 12px; font-weight: 680; }
.home-hero__proof small { color: rgba(224, 235, 245, .45); font-size: 9px; letter-spacing: .03em; }

/* --------------------------------------------------------------------------
   Shared section language
   -------------------------------------------------------------------------- */
.home-section { position: relative; padding: 120px 0; }
.home-section__head { max-width: 760px; margin: 0 auto 58px; text-align: center; }
.home-section__head h2,
.home-experience__copy h2,
.home-automation__copy h2,
.home-insights__copy h2,
.home-final h2 {
    margin: 0;
    color: var(--home-ink);
    font-size: clamp(36px, 4.1vw, 59px);
    font-weight: 670;
    line-height: 1.03;
    letter-spacing: -.052em;
    text-wrap: balance;
}
.home-section__head > p,
.home-experience__copy > p,
.home-automation__copy > p,
.home-insights__copy > p {
    margin: 23px 0 0;
    color: var(--home-muted);
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.7;
    text-wrap: balance;
}
.home-section__head--split {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .65fr);
    align-items: end;
    gap: 50px;
    text-align: left;
}
.home-section__head--split > p { margin-bottom: 4px; }
.home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 17px;
    color: #9a742b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.home-kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.home-kicker--light { color: var(--home-gold-bright); }
.home-icon-box {
    display: grid;
    place-items: center;
    width: 45px; height: 45px;
    border: 1px solid #d9e5f1;
    border-radius: 14px;
    background: #eef5fc;
    color: var(--home-blue);
    transition: transform .3s ease, background .3s ease;
}
.home-icon-box--gold { border-color: #eadcb9; background: var(--home-gold-soft); color: #9a742b; }
.home-icon-box--green { border-color: #cae8dc; background: #e9f7f1; color: var(--home-green); }

/* --------------------------------------------------------------------------
   Bento capabilities
   -------------------------------------------------------------------------- */
.home-capabilities { background: #fff; }
.home-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
}
.home-bento__item {
    position: relative;
    min-height: 285px;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--home-line);
    border-radius: var(--home-radius);
    background: var(--home-surface);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, border-color .35s ease;
}
.home-bento__item::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--hover-x, 80%) var(--hover-y, 10%), rgba(78, 155, 255, .12), transparent 33%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
.home-bento__item:hover {
    border-color: #ccd9e6;
    box-shadow: var(--home-shadow-soft);
    transform: translateY(-6px);
}
.home-bento__item:hover::after { opacity: 1; }
.home-bento__item:hover .home-icon-box { transform: rotate(-6deg) scale(1.06); }
.home-bento__item h3 { margin: 20px 0 8px; color: var(--home-ink); font-size: 21px; font-weight: 680; letter-spacing: -.025em; }
.home-bento__item p { max-width: 410px; margin: 0; color: var(--home-muted); font-size: 14px; line-height: 1.65; }
.home-bento__number { position: absolute; top: 29px; right: 29px; color: #a3afbc; font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.home-bento__item--capture { grid-column: span 7; min-height: 350px; background: linear-gradient(145deg, #f6f9fc, #edf3f8); }
.home-bento__item--properties { grid-column: span 5; min-height: 350px; background: linear-gradient(145deg, #0c243e, #07192c); border-color: #163858; }
.home-bento__item--properties h3 { color: #fff; }
.home-bento__item--properties p { color: rgba(225, 235, 244, .57); }
.home-bento__item--properties .home-bento__number { color: rgba(255, 255, 255, .32); }
.home-bento__item--agenda,
.home-bento__item--team,
.home-bento__item--sales,
.home-bento__item--reports { grid-column: span 3; }
.home-mini-leads {
    position: absolute;
    right: 25px;
    bottom: 23px;
    width: min(52%, 330px);
    display: grid;
    gap: 8px;
    transform: rotate(-2deg);
}
.home-mini-leads > span {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid #d9e2eb;
    border-radius: 12px;
    background: rgba(255, 255, 255, .89);
    box-shadow: 0 9px 24px rgba(16, 32, 51, .08);
}
.home-mini-leads > span:nth-child(2) { transform: translateX(-20px); }
.home-avatar-dot {
    display: grid;
    place-items: center;
    width: 31px; height: 31px;
    border-radius: 10px;
    background: #e5f1ff;
    color: var(--home-blue);
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
}
.home-avatar-dot--gold { background: #f8efd8; color: #987025; }
.home-avatar-dot--green { background: #e4f5ed; color: var(--home-green); }
.home-mini-leads b { overflow: hidden; color: var(--home-ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.home-mini-leads em { padding: 3px 6px; border-radius: 99px; background: #eef5fc; color: var(--home-blue); font-size: 7px; font-style: normal; font-weight: 750; }
.home-property-stack { position: absolute; right: -24px; bottom: -27px; width: 72%; height: 65%; perspective: 700px; }
.home-property-stack div {
    position: absolute;
    width: 190px; height: 122px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background:
        linear-gradient(155deg, transparent 42%, rgba(7, 25, 44, .6) 43%),
        linear-gradient(135deg, #c3d8e7, #799db7);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .24);
    transform: rotateY(-15deg) rotateX(9deg) rotateZ(-5deg);
}
.home-property-stack div::before { content: ""; position: absolute; left: 25px; bottom: 20px; width: 95px; height: 55px; background: #f1f4f6; clip-path: polygon(0 35%, 48% 0, 100% 34%, 100% 100%, 0 100%); box-shadow: inset -18px -8px #d0dce3; }
.home-property-stack div:nth-child(1) { right: 6px; bottom: 18px; z-index: 3; }
.home-property-stack div:nth-child(2) { right: 41px; bottom: 53px; opacity: .66; z-index: 2; }
.home-property-stack div:nth-child(3) { right: 76px; bottom: 88px; opacity: .32; z-index: 1; }
.home-agenda-strip { display: grid; gap: 7px; margin-top: 23px; }
.home-agenda-strip span { display: grid; grid-template-columns: 47px 1fr; align-items: center; gap: 9px; }
.home-agenda-strip small { color: #8997a7; font-size: 8px; }
.home-agenda-strip i { height: 5px; border-radius: 5px; background: #dae6f1; }
.home-agenda-strip span:nth-child(1) i { width: 84%; background: linear-gradient(90deg, var(--home-blue), #9dcbff); }
.home-agenda-strip span:nth-child(2) i { width: 55%; background: linear-gradient(90deg, var(--home-gold), #ead18e); }
.home-agenda-strip span:nth-child(3) i { width: 70%; background: linear-gradient(90deg, var(--home-green), #8cdbbc); }
.home-team-row { display: flex; margin-top: 27px; padding-left: 8px; }
.home-team-row i {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    margin-left: -8px;
    border: 3px solid var(--home-surface);
    border-radius: 50%;
    background: var(--home-navy);
    color: #fff;
    font-size: 9px;
    font-style: normal;
    font-weight: 760;
}
.home-team-row i:nth-child(2) { background: var(--home-gold); color: var(--home-navy); }
.home-team-row i:nth-child(3) { background: var(--home-blue); }
.home-team-row i:nth-child(4) { background: #e6edf4; color: var(--home-muted); }
.home-sales-line { height: 67px; display: flex; align-items: end; gap: 7px; margin-top: 18px; }
.home-sales-line span { flex: 1; height: var(--h); min-width: 6px; border-radius: 5px 5px 2px 2px; background: linear-gradient(to top, var(--home-green), #91d7ba); }
.home-sales-line span:nth-child(1) { --h: 24%; }.home-sales-line span:nth-child(2) { --h: 43%; }.home-sales-line span:nth-child(3) { --h: 36%; }.home-sales-line span:nth-child(4) { --h: 64%; }.home-sales-line span:nth-child(5) { --h: 54%; }.home-sales-line span:nth-child(6) { --h: 88%; }
.home-donut { width: 76px; height: 76px; margin-top: 22px; border-radius: 50%; background: conic-gradient(var(--home-gold) 0 68%, #e3e9ef 68% 100%); display: grid; place-items: center; }
.home-donut::before { content: ""; position: absolute; width: 53px; height: 53px; border-radius: 50%; background: var(--home-surface); }
.home-donut span { position: relative; z-index: 1; font-size: 12px; font-weight: 800; }

/* --------------------------------------------------------------------------
   CRM experience mockup
   -------------------------------------------------------------------------- */
.home-experience { overflow: hidden; background: linear-gradient(180deg, #f4f7fa 0%, #eef3f7 100%); }
.home-experience::before { content: ""; position: absolute; left: -190px; top: 20%; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(78, 155, 255, .1), transparent 68%); }
.home-experience__grid { display: grid; grid-template-columns: minmax(330px, .72fr) minmax(570px, 1.28fr); align-items: center; gap: clamp(50px, 7vw, 105px); }
.home-experience__copy > p { max-width: 500px; }
.home-check-list { display: grid; gap: 17px; margin: 30px 0 0; padding: 0; list-style: none; }
.home-check-list li { display: grid; grid-template-columns: 27px 1fr; gap: 11px; align-items: start; }
.home-check-list li > .icon { width: 27px; height: 27px; padding: 6px; border-radius: 50%; background: #e6f4ed; color: var(--home-green); }
.home-check-list li span { color: var(--home-muted); font-size: 13px; }
.home-check-list li strong { display: block; margin-bottom: 1px; color: var(--home-ink); font-size: 14px; }
.home-text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 29px; color: var(--home-blue); font-size: 13px; font-weight: 760; }
.home-text-link .icon { transform: rotate(180deg); transition: transform .2s ease; }
.home-text-link:hover .icon { transform: rotate(180deg) translateX(-4px); }
.home-crm-mockup {
    --mock-rotate-x: 0deg;
    --mock-rotate-y: 0deg;
    position: relative;
    min-width: 0;
    border: 1px solid #d5dfe8;
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 38px 90px rgba(13, 40, 65, .16), 0 4px 12px rgba(13, 40, 65, .06);
    transform: perspective(1000px) rotateX(var(--mock-rotate-x)) rotateY(var(--mock-rotate-y));
    transform-style: preserve-3d;
    transition: transform .18s linear;
}
.home-crm-mockup::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 7% -5% -8% 7%;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(200, 162, 75, .16), rgba(31, 111, 235, .12));
    filter: blur(20px);
}
.home-mockup__bar { height: 49px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid #e5ebf1; color: #8995a2; font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.home-mockup__dots { display: flex; gap: 5px; }
.home-mockup__dots i { width: 7px; height: 7px; border-radius: 50%; background: #dce3e9; }
.home-mockup__dots i:nth-child(1) { background: #de806f; }.home-mockup__dots i:nth-child(2) { background: #d7b860; }.home-mockup__dots i:nth-child(3) { background: #6bb994; }
.home-mockup__search { justify-self: end; display: flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 7px; background: #f3f6f8; }
.home-mockup__body { display: grid; grid-template-columns: 58px 1fr; min-height: 375px; }
.home-mockup__sidebar { display: grid; align-content: start; justify-items: center; gap: 18px; padding-top: 29px; border-right: 1px solid #e7edf2; background: #f9fbfc; border-radius: 0 0 0 23px; }
.home-mockup__sidebar i { width: 17px; height: 4px; border-radius: 4px; background: #d8e0e7; }
.home-mockup__sidebar i.is-active { width: 27px; height: 27px; margin-top: -11px; border-radius: 8px; background: var(--home-navy); box-shadow: 0 7px 13px rgba(7, 26, 47, .15); }
.home-mockup__content { min-width: 0; padding: 22px; }
.home-mockup__heading { display: flex; align-items: center; justify-content: space-between; }
.home-mockup__heading small, .home-mockup__heading strong { display: block; }
.home-mockup__heading small { color: #9aa5b0; font-size: 7px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.home-mockup__heading strong { margin-top: 3px; color: var(--home-ink); font-size: 15px; }
.home-mockup__heading b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--home-navy); color: #fff; font-size: 15px; font-weight: 400; }
.home-pipeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.home-pipeline__column { min-width: 0; padding: 10px; border-radius: 12px; background: #f5f7f9; }
.home-pipeline__title { display: flex; align-items: center; gap: 5px; color: #697787; font-size: 7px; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; }
.home-pipeline__title i { width: 5px; height: 5px; border-radius: 50%; background: var(--home-blue); }
.home-pipeline__title--gold i { background: var(--home-gold); }.home-pipeline__title--green i { background: var(--home-green); }
.home-pipeline__title b { margin-left: auto; color: #9da8b3; }
.home-pipeline article { display: grid; grid-template-columns: 25px 1fr; gap: 7px; align-items: center; min-width: 0; margin-top: 9px; padding: 9px 8px; border: 1px solid #e1e7ec; border-radius: 9px; background: #fff; box-shadow: 0 4px 10px rgba(17, 39, 62, .03); }
.home-pipeline article.is-highlight { border-color: #c9dfd4; box-shadow: 0 5px 14px rgba(51, 167, 118, .08); }
.home-pipeline article > em { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; background: #e8f2fc; color: var(--home-blue); font-size: 7px; font-style: normal; font-weight: 780; }
.home-pipeline article strong,
.home-pipeline article small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-pipeline article strong { color: #2e4053; font-size: 7.5px; }
.home-pipeline article small { margin-top: 2px; color: #9aa5af; font-size: 6.5px; }
.home-mockup__footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 17px; padding-top: 13px; border-top: 1px solid #edf1f4; color: #98a3ad; font-size: 7px; }
.home-mockup__footer span { display: flex; align-items: center; gap: 5px; }
.home-mockup__footer i { width: 5px; height: 5px; border-radius: 50%; background: var(--home-green); box-shadow: 0 0 6px rgba(51, 167, 118, .4); }
.home-mockup__badge { position: absolute; right: -28px; bottom: 39px; display: flex; align-items: center; gap: 6px; padding: 9px 12px; border: 1px solid rgba(255, 255, 255, .9); border-radius: 11px; background: rgba(255, 255, 255, .87); color: #667588; font-size: 8px; font-weight: 700; box-shadow: 0 13px 34px rgba(9, 37, 62, .14); backdrop-filter: blur(12px); transform: translateZ(36px); }
.home-mockup__badge .icon { color: var(--home-gold); }

/* --------------------------------------------------------------------------
   Property showcase
   -------------------------------------------------------------------------- */
.home-properties-showcase { background: #fff; }
.home-property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.home-listing { overflow: hidden; border: 1px solid var(--home-line); border-radius: 24px; background: #fff; box-shadow: 0 12px 40px rgba(17, 40, 64, .07); transition: transform .35s ease, box-shadow .35s ease; }
.home-listing:hover { transform: translateY(-8px); box-shadow: 0 28px 55px rgba(17, 40, 64, .13); }
.home-listing--raised { transform: translateY(-20px); }
.home-listing--raised:hover { transform: translateY(-28px); }
.home-listing__visual { position: relative; height: 230px; overflow: hidden; background: #dce9f3; }
.home-listing__visual::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, rgba(6, 25, 43, .2)); }
.home-listing__status { position: absolute; z-index: 5; left: 17px; top: 16px; padding: 5px 9px; border: 1px solid rgba(255, 255, 255, .65); border-radius: 99px; background: rgba(255, 255, 255, .79); color: var(--home-navy); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(10px); }
/* Fotografías de la vitrina de inmuebles. La primera declaración es el PNG
   original (respaldo para navegadores sin WebP); la segunda entrega la misma
   imagen en WebP, que pesa unas diez veces menos: las tres fotos bajan de
   7,4 MB a 779 KB en total. */
.home-listing__visual--urban {
    background-image: url("../img/Piso-luminoso-en-el-centro-Madrid-Chamberí.png");
    background-image: image-set(
        url("../img/Piso-luminoso-en-el-centro-Madrid-Chamberí.webp") type("image/webp"),
        url("../img/Piso-luminoso-en-el-centro-Madrid-Chamberí.png") type("image/png")
    );
    background-size: cover;
}
.home-listing__visual--villa {
    background-image: url("../img/Chalet-Vivienda-con-jardín-y-piscina-Valencia-El-Vedat.png");
    background-image: image-set(
        url("../img/Chalet-Vivienda-con-jardín-y-piscina-Valencia-El-Vedat.webp") type("image/webp"),
        url("../img/Chalet-Vivienda-con-jardín-y-piscina-Valencia-El-Vedat.png") type("image/png")
    );
    background-size: cover;
}
.home-listing__visual--coast {
    background-image: url("../img/Ático-con-vistas-al-mar-Alicante-Centro.png");
    background-image: image-set(
        url("../img/Ático-con-vistas-al-mar-Alicante-Centro.webp") type("image/webp"),
        url("../img/Ático-con-vistas-al-mar-Alicante-Centro.png") type("image/png")
    );
    background-size: cover;
}
.home-listing__body { padding: 20px 21px 22px; }
.home-listing__type { color: #987126; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.home-listing h3 { margin: 5px 0 4px; color: var(--home-ink); font-size: 17px; letter-spacing: -.025em; }
.home-listing__body > p { display: flex; align-items: center; gap: 5px; margin: 0; color: var(--home-muted); font-size: 11px; }
.home-listing__specs { display: flex; gap: 9px; margin: 17px 0 12px; padding-top: 13px; border-top: 1px solid #e9edf1; }
.home-listing__specs span { padding-right: 9px; border-right: 1px solid #e1e7ec; color: #69798a; font-size: 10px; }
.home-listing__specs span:last-child { border-right: 0; }
.home-listing__body > strong { color: var(--home-ink); font-size: 18px; letter-spacing: -.025em; }
.home-demo-note { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 34px 0 0; color: #8b98a6; font-size: 10px; }

/* --------------------------------------------------------------------------
   Automation flow
   -------------------------------------------------------------------------- */
.home-automation { overflow: hidden; background: linear-gradient(142deg, #061525 0%, #0a2139 55%, #0d2e4d 100%); color: #fff; }
.home-automation__mesh { position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(91, 145, 193, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(91, 145, 193, .12) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(circle at 70% 50%, #000, transparent 63%); }
.home-automation__grid { position: relative; display: grid; grid-template-columns: minmax(350px, .75fr) minmax(530px, 1.25fr); align-items: center; gap: clamp(60px, 9vw, 130px); }
.home-automation__copy h2 { color: #fff; }
.home-automation__copy > p { color: rgba(225, 235, 244, .62); }
.home-no-ai { display: grid; grid-template-columns: 39px 1fr; gap: 11px; align-items: center; margin-top: 30px; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; background: rgba(255, 255, 255, .045); }
.home-no-ai > .icon { width: 39px; height: 39px; padding: 10px; border-radius: 12px; background: rgba(226, 189, 105, .1); color: var(--home-gold-bright); }
.home-no-ai strong, .home-no-ai span { display: block; }
.home-no-ai strong { color: #fff; font-size: 12px; }.home-no-ai span { color: rgba(225, 235, 244, .49); font-size: 10px; }
.home-flow { position: relative; display: grid; gap: 13px; max-width: 570px; padding: 26px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 28px; background: rgba(255, 255, 255, .035); box-shadow: 0 30px 80px rgba(0, 0, 0, .23); backdrop-filter: blur(12px); }
.home-flow__rail { position: absolute; z-index: 0; top: 40px; bottom: 40px; left: 48px; width: 1px; overflow: hidden; background: rgba(117, 171, 216, .2); }
.home-flow__rail i { display: block; width: 100%; height: 28%; background: linear-gradient(transparent, var(--home-gold-bright), transparent); animation: homeFlow 3.2s linear infinite; }
@keyframes homeFlow { from { transform: translateY(-110%); } to { transform: translateY(470%); } }
.home-flow__node { position: relative; z-index: 1; display: grid; grid-template-columns: 43px 1fr auto; align-items: center; gap: 12px; min-height: 69px; padding: 12px 15px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; background: rgba(9, 34, 58, .86); box-shadow: 0 11px 24px rgba(0, 0, 0, .14); }
.home-flow__node:hover { border-color: rgba(226, 189, 105, .3); }
.home-flow__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(78, 155, 255, .12); color: #76b6ff; }
.home-flow__icon--gold { background: rgba(226, 189, 105, .12); color: var(--home-gold-bright); }
.home-flow__icon--green { background: rgba(87, 212, 157, .11); color: #57d49d; }
.home-flow__node small, .home-flow__node strong { display: block; }
.home-flow__node small { color: rgba(225, 235, 244, .38); font-size: 7px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.home-flow__node strong { margin-top: 2px; color: #f7fafc; font-size: 11px; font-weight: 670; }
.home-flow__node em { padding: 4px 7px; border-radius: 99px; background: rgba(255, 255, 255, .06); color: rgba(225, 235, 244, .57); font-size: 8px; font-style: normal; font-weight: 730; }
.home-flow__node--condition { margin-left: 38px; }
.home-flow__node--success { margin-left: 38px; border-color: rgba(87, 212, 157, .18); }
.home-flow__branch { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-left: 38px; }
.home-flow__node--small { grid-template-columns: 39px 1fr; min-height: 63px; padding: 10px 12px; }
.home-flow__node--small .home-flow__icon { width: 34px; height: 34px; }

/* --------------------------------------------------------------------------
   Insights
   -------------------------------------------------------------------------- */
.home-insights { overflow: hidden; background: #f4f7fa; }
.home-insights__grid { display: grid; grid-template-columns: minmax(530px, 1.15fr) minmax(340px, .85fr); align-items: center; gap: clamp(55px, 8vw, 115px); }
.home-insights__dashboard { position: relative; min-width: 0; padding: 25px; border: 1px solid #d9e2e9; border-radius: 26px; background: #fff; box-shadow: var(--home-shadow); }
.home-insights__dashboard::before { content: ""; position: absolute; z-index: -1; inset: 10% -6% -7% 11%; border-radius: 30px; background: linear-gradient(135deg, rgba(31, 111, 235, .13), rgba(200, 162, 75, .15)); filter: blur(22px); }
.home-insights__top { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.home-insights__top small, .home-insights__top strong { display: block; }
.home-insights__top small { color: #9aa5af; font-size: 8px; font-weight: 760; letter-spacing: .09em; text-transform: uppercase; }
.home-insights__top strong { margin-top: 2px; color: var(--home-ink); font-size: 16px; }
.home-insights__period { padding: 6px 10px; border: 1px solid #e1e7ec; border-radius: 9px; color: #7a8795; font-size: 8px; }
.home-insights__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.home-insights__stats > span { padding: 13px; border-radius: 13px; background: #f5f8fa; }
.home-insights__stats small, .home-insights__stats strong, .home-insights__stats em { display: block; }
.home-insights__stats small { color: #8995a1; font-size: 7px; font-weight: 650; }.home-insights__stats strong { margin-top: 4px; color: var(--home-ink); font-size: 20px; line-height: 1.2; }.home-insights__stats em { margin-top: 4px; color: var(--home-green); font-size: 7px; font-style: normal; font-weight: 750; }
.home-chart { position: relative; height: 165px; margin-top: 16px; overflow: hidden; border: 1px solid #e8edf1; border-radius: 14px; background: repeating-linear-gradient(to bottom, transparent 0 39px, #edf1f4 40px), linear-gradient(#fff, #fbfcfd); }
.home-chart::after { content: ""; position: absolute; inset: 25px 18px 24px; background: linear-gradient(165deg, transparent 0 54%, rgba(31,111,235,.1) 55% 100%); clip-path: polygon(0 78%, 17% 59%, 34% 65%, 51% 39%, 68% 46%, 84% 18%, 100% 10%, 100% 100%, 0 100%); }
.home-chart__line { position: absolute; z-index: 2; inset: 25px 18px 24px; clip-path: polygon(0 76%, 17% 57%, 34% 63%, 51% 37%, 68% 44%, 84% 16%, 100% 8%, 100% 12%, 84% 20%, 68% 48%, 51% 41%, 34% 67%, 17% 61%, 0 80%); background: var(--home-blue); }
.home-chart i { position: absolute; z-index: 3; left: var(--x); top: var(--y); width: 7px; height: 7px; border: 2px solid var(--home-blue); border-radius: 50%; background: #fff; }
.home-chart b { position: relative; z-index: 4; display: inline-block; width: 24%; padding: 143px 0 0; color: #a4aeb8; font-size: 6px; font-weight: 650; text-align: center; }
.home-insights__activity { display: grid; grid-template-columns: 34px 1fr; gap: 9px; align-items: center; margin-top: 13px; padding: 10px 11px; border-radius: 11px; background: #f4f8f6; }
.home-insights__activity > i { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: #dff1e9; color: var(--home-green); font-size: 10px; font-style: normal; font-weight: 800; }
.home-insights__activity strong, .home-insights__activity small { display: block; }.home-insights__activity strong { color: #34495d; font-size: 8px; }.home-insights__activity small { color: #8a97a4; font-size: 7px; }
.home-benefits { display: grid; gap: 18px; margin-top: 30px; }
.home-benefits article { display: grid; grid-template-columns: 39px 1fr; gap: 12px; align-items: start; }
.home-benefits article > span { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid #dae5ee; border-radius: 12px; background: #fff; color: var(--home-blue); box-shadow: 0 6px 14px rgba(12, 43, 68, .05); }
.home-benefits h3 { margin: 0 0 3px; color: var(--home-ink); font-size: 14px; }
.home-benefits p { margin: 0; color: var(--home-muted); font-size: 12px; line-height: 1.55; }

/* --------------------------------------------------------------------------
   Dynamic pricing
   -------------------------------------------------------------------------- */
.home-pricing { background: #fff; }
.home-pricing__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; align-items: stretch; }
.home-plan { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; padding: 30px; border: 1px solid var(--home-line); border-radius: var(--home-radius); background: #fff; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.home-plan:hover { z-index: 2; transform: translateY(-8px); border-color: #cddae6; box-shadow: var(--home-shadow); }
.home-plan--featured { border-color: rgba(200, 162, 75, .55); background: linear-gradient(160deg, #fffdf8, #fff); box-shadow: 0 18px 50px rgba(116, 83, 20, .1); }
.home-plan__glow { position: absolute; right: -70px; top: -80px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(226, 189, 105, .27), transparent 68%); }
.home-plan__head { position: relative; padding-right: 40px; }
.home-plan__index { position: absolute; right: -1px; top: 2px; color: #a5b0ba; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.home-plan h3 { margin: 0; color: var(--home-ink); font-size: 22px; font-weight: 690; letter-spacing: -.035em; }
.home-plan__head p { min-height: 48px; margin: 8px 0 0; color: var(--home-muted); font-size: 12px; line-height: 1.55; }
.home-plan__price { display: flex; align-items: baseline; gap: 6px; margin-top: 27px; }
.home-plan__price strong { color: var(--home-ink); font-size: clamp(29px, 2.7vw, 40px); font-weight: 710; line-height: 1; letter-spacing: -.055em; }
.home-plan__price span { color: #83909d; font-size: 10px; }
.home-plan__yearly { margin: 9px 0 0; color: #84919e; font-size: 10px; }
.home-plan__divider { height: 1px; margin: 22px 0; background: #e7ecf0; }
.home-plan ul { display: grid; gap: 9px; margin: 0 0 27px; padding: 0; list-style: none; }
.home-plan li { display: grid; grid-template-columns: 19px 1fr; align-items: start; gap: 7px; color: #5f6f80; font-size: 11px; }
.home-plan li .icon { width: 19px; height: 19px; padding: 4px; border-radius: 50%; background: #e7f5ee; color: var(--home-green); }
/* Última línea: "y N más". Se distingue del resto sin llamar la atención. */
.home-plan li.plan-more { color: #8394a5; }
.home-plan li.plan-more .icon { background: #eef1f5; color: #8394a5; }
.home-plan .home-button { margin-top: auto; }

/* Llamada a la acción del plan: rótulo e icono en blanco.
   El icono es un SVG con stroke="currentColor", así que basta con fijar el
   color del botón para que ambos queden en blanco.

   El degradado dorado de este botón se asienta respecto al de la portada: con
   el dorado claro, el texto blanco de 13 px se quedaba en 2,4:1. El contraste
   se mide sobre el extremo MÁS CLARO del degradado, que es el caso peor:
   #8f6c1c da 4,85:1 con texto blanco (AA para texto normal). El estado hover
   no aclara el fondo, solo eleva la sombra, para no perder ese contraste. */
.home-plan .home-button,
.home-plan .home-button .icon { color: #fff; }
.home-plan .home-button--gold {
    background: linear-gradient(135deg, #8f6c1c, #7a5c16);
    box-shadow: 0 12px 30px rgba(122, 92, 22, .3), inset 0 1px rgba(255, 255, 255, .18);
}
.home-plan .home-button--gold:hover {
    background: linear-gradient(135deg, #8f6c1c, #7a5c16);
    box-shadow: 0 17px 38px rgba(122, 92, 22, .38), inset 0 1px rgba(255, 255, 255, .22);
}
.home-pricing__note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 28px 0 0; color: #8a97a4 ; font-size: 10px; }
.home-pricing__empty { max-width: 520px; margin: 0 auto; padding: 40px; border: 1px dashed #d3dde6; border-radius: 20px; color: var(--home-muted); text-align: center; }
.home-pricing__empty .icon { color: var(--home-gold); }

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
.home-final { position: relative; overflow: hidden; padding: 112px 0; isolation: isolate; background: linear-gradient(135deg, #061525, #0c2b49); color: #fff; }
.home-final::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .2; background-image: linear-gradient(rgba(113, 168, 215, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(113, 168, 215, .13) 1px, transparent 1px); background-size: 58px 58px; mask-image: radial-gradient(circle at center, #000, transparent 68%); }
.home-final__orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(5px); }
.home-final__orb--one { width: 380px; height: 380px; right: -100px; top: -190px; background: radial-gradient(circle, rgba(78, 155, 255, .22), transparent 68%); }
.home-final__orb--two { width: 280px; height: 280px; left: -100px; bottom: -160px; background: radial-gradient(circle, rgba(226, 189, 105, .18), transparent 68%); }
.home-final__inner { position: relative; max-width: 870px; text-align: center; }
.home-final h2 { color: #fff; font-size: clamp(41px, 5.1vw, 69px); }
.home-final p { max-width: 590px; margin: 22px auto 0; color: rgba(226, 235, 244, .61); font-size: 17px; }
.home-final__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 31px; }
.home-final__line { position: absolute; left: 50%; bottom: -54px; width: 250px; height: 1px; background: linear-gradient(90deg, transparent, rgba(226, 189, 105, .4), transparent); transform: translateX(-50%); }
.home-final__line span { position: absolute; left: 50%; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--home-gold-bright); box-shadow: 0 0 15px rgba(226, 189, 105, .8); animation: homeLineNode 4s ease-in-out infinite alternate; }
@keyframes homeLineNode { from { transform: translateX(-110px); } to { transform: translateX(103px); } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.home-footer { padding: 68px 0 24px; background: #04111f; color: rgba(222, 233, 243, .57); }
.home-footer__grid { display: grid; grid-template-columns: 1.55fr repeat(3, 1fr); gap: 55px; padding-bottom: 54px; }
.home-brand--footer { width: max-content; }
.home-footer__brand > p { max-width: 300px; margin: 19px 0 9px; color: rgba(222, 233, 243, .6); font-size: 12px; line-height: 1.65; }
.home-footer__brand > span { color: rgba(222, 233, 243, .33); font-size: 9px; }
.home-footer__links { display: grid; align-content: start; gap: 9px; }
.home-footer__links strong,
.home-footer__status > strong { margin-bottom: 6px; color: #f1f5f8; font-size: 10px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.home-footer__links a { width: max-content; max-width: 100%; color: rgba(222, 233, 243, .49); font-size: 11px; transition: color .2s ease, transform .2s ease; }
.home-footer__links a:hover { color: var(--home-gold-bright); transform: translateX(3px); }
.home-footer__status { display: flex; flex-direction: column; align-items: flex-start; }
.home-footer__status > span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(87, 212, 157, .13); border-radius: 99px; background: rgba(87, 212, 157, .05); color: #75c9a3; font-size: 9px; font-weight: 650; }
.home-footer__status > span i { width: 6px; height: 6px; border-radius: 50%; background: #57d49d; box-shadow: 0 0 9px rgba(87, 212, 157, .6); }
.home-footer__status small { max-width: 180px; margin-top: 10px; color: rgba(222, 233, 243, .32); font-size: 9px; line-height: 1.6; }
/* Información legal del pie: una debajo de otra, nunca en fila, y con el
   mismo lenguaje visual que el resto de enlaces del pie. */
.home-footer__legal { display: grid; justify-items: start; gap: 9px; margin-top: 14px; }
.home-footer__legal a {
    width: max-content;
    max-width: 100%;
    color: rgba(222, 233, 243, .49);
    font-size: 11px;
    line-height: 1.55;
    transition: color .2s ease, transform .2s ease;
}
.home-footer__legal a:hover,
.home-footer__legal a:focus-visible { color: var(--home-gold-bright); transform: translateX(3px); }
.home-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); color: rgba(222, 233, 243, .32); font-size: 9px; }
.home-footer__language { display: flex; align-items: center; gap: 8px; }
.home-footer__language a { color: rgba(222, 233, 243, .4); font-weight: 750; }.home-footer__language a.is-active { color: var(--home-gold-bright); }.home-footer__language i { width: 1px; height: 10px; background: rgba(255, 255, 255, .15); }

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */
.js .home-page [data-reveal] { opacity: 0; transition: opacity .7s ease, transform .8s cubic-bezier(.2, .75, .25, 1); }
.js .home-page [data-reveal="up"] { transform: translate3d(0, 28px, 0); }
/* Las variantes laterales también entran en vertical. Motivo: estos bloques
   ocupan todo el ancho de su columna, así que cualquier desplazamiento
   horizontal sobresale del contenedor mientras el elemento no ha aparecido y
   ensancha el documento (aparecía scroll horizontal de ~34 px en todos los
   anchos). Se corrige el origen en lugar de recortarlo con overflow. */
.js .home-page [data-reveal="left"] { transform: translate3d(0, 24px, 0); }
.js .home-page [data-reveal="right"] { transform: translate3d(0, 32px, 0); }
.js .home-page [data-reveal="scale"] { transform: scale(.95); }
.js .home-page [data-reveal].is-visible { opacity: 1; transform: none; }
.js .home-page [data-reveal-delay="1"] { transition-delay: .08s; }
.js .home-page [data-reveal-delay="2"] { transition-delay: .16s; }
.js .home-page [data-reveal-delay="3"] { transition-delay: .24s; }

/* ==========================================================================
   Responsive · deliberately tuned at requested viewport widths
   ========================================================================== */

/* 1600 / 1440 */
@media (min-width: 1441px) {
    .home-page { --home-shell: 1320px; }
    .home-hero { min-height: 920px; }
    .home-hero__grid { min-height: 785px; grid-template-columns: minmax(0, .87fr) minmax(620px, 1.13fr); }
    .home-hero__visual { height: 620px; }
    .home-city { scale: 1.08; }
}

/* 1280 */
@media (max-width: 1280px) {
    .home-page { --home-shell: 1150px; }
    .home-hero__grid { grid-template-columns: minmax(0, .92fr) minmax(495px, 1.08fr); gap: 28px; }
    .home-city { scale: .92; }
    .home-hero__visual { height: 535px; }
    .home-float-card--property { right: 0; }
    .home-float-card--lead { left: 0; }
    .home-section { padding: 105px 0; }
    .home-experience__grid { grid-template-columns: minmax(320px, .72fr) minmax(520px, 1.28fr); gap: 58px; }
}

/* 1080 / 1024 */
@media (max-width: 1080px) {
    .home-page { --home-header: 74px; }
    .home-shell { width: min(calc(100% - 38px), var(--home-shell)); }
    .home-brand__name { max-width: 145px; }
    .home-nav { gap: 18px; }
    .home-header__actions { gap: 12px; }
    .home-link-login { display: none; }
    .home-hero { min-height: 820px; }
    .home-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(425px, .9fr); min-height: 670px; }
    .home-hero h1 { font-size: clamp(43px, 5.3vw, 59px); }
    .home-city { scale: .8; }
    .home-hero__visual { height: 490px; }
    .home-float-card { scale: .88; }
    .home-float-card--lead { left: -6%; }.home-float-card--property { right: -5%; }
    .home-hero__proof > div { padding-inline: 13px; }
    .home-bento__item--capture { grid-column: span 7; }.home-bento__item--properties { grid-column: span 5; }
    .home-experience__grid,
    .home-insights__grid { grid-template-columns: 1fr; }
    .home-experience__copy,
    .home-insights__copy { max-width: 690px; }
    .home-crm-mockup,
    .home-insights__dashboard { width: min(100%, 760px); margin-inline: auto; }
    .home-insights__dashboard { order: 2; }
    .home-insights__copy { order: 1; }
    .home-automation__grid { grid-template-columns: minmax(320px, .8fr) minmax(480px, 1.2fr); gap: 48px; }
    .home-footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
}

/* 900 */
@media (max-width: 900px) {
    .home-nav,
    .home-header__actions { display: none; }
    .home-menu-toggle { display: block; }
    .home-header { height: 72px; }
    .home-header.is-scrolled { height: 66px; }
    .home-hero { min-height: 1130px; }
    .home-hero__grid { grid-template-columns: 1fr; align-content: start; gap: 0; padding-top: 112px; text-align: center; }
    .home-hero__content { width: min(100%, 710px); margin-inline: auto; padding: 40px 0 0; }
    .home-hero h1 { max-width: 710px; margin-inline: auto; font-size: clamp(50px, 8vw, 68px); }
    .home-hero__lead { margin-inline: auto; }
    .home-hero__buttons,
    .home-hero__assurance { justify-content: center; }
    .home-hero__visual { width: min(100%, 660px); height: 530px; margin: 4px auto 0; }
    .home-city { scale: .9; }
    .home-float-card--lead { left: 3%; }.home-float-card--property { right: 2%; }.home-float-card--automation { left: 10%; }
    .home-hero__proof { grid-template-columns: repeat(2, 1fr); }
    .home-hero__proof > div:nth-child(2) { border-right: 0; }
    .home-hero__proof > div:nth-child(-n + 2) { border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .home-hero__proof > div:first-child,
    .home-hero__proof > div:last-child { padding-inline: 18px; }
    .home-section { padding: 90px 0; }
    .home-bento__item--capture,
    .home-bento__item--properties { grid-column: span 12; }
    .home-bento__item--agenda,
    .home-bento__item--team,
    .home-bento__item--sales,
    .home-bento__item--reports { grid-column: span 6; }
    .home-mini-leads { width: 46%; }
    .home-automation__grid { grid-template-columns: 1fr; }
    .home-automation__copy { max-width: 680px; }
    .home-flow { width: min(100%, 650px); margin-inline: auto; }
    .home-section__head--split { grid-template-columns: 1fr; gap: 17px; }
    .home-section__head--split > p { margin-top: 0; }
    .home-property-grid { gap: 13px; }
    .home-listing__visual { height: 195px; }
    .home-listing__body { padding: 17px; }
    .home-listing h3 { font-size: 15px; }
    .home-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
    .home-footer__status { grid-column: 2 / 4; }
}

/* 761 */
@media (max-width: 761px) {
    .home-shell { width: min(calc(100% - 30px), var(--home-shell)); }
    .home-brand__mark { width: 39px; height: 39px; border-radius: 11px; }
    .home-brand__name { font-size: 15px; }
    .home-hero { min-height: 1050px; }
    .home-hero__grid { padding-top: 90px; }
    .home-hero__content { padding-top: 38px; }
    .home-hero h1 { font-size: clamp(43px, 10vw, 60px); }
    .home-hero__lead { max-width: 580px; font-size: 16px; }
    .home-hero__visual { height: 470px; }
    .home-city { scale: .78; }
    .home-float-card { scale: .79; }
    .home-float-card--lead { left: -4%; top: 12%; }.home-float-card--property { right: -4%; top: 38%; }.home-float-card--automation { left: 4%; bottom: 6%; }
    .home-visual__status { right: 2%; }
    .home-section { padding: 80px 0; }
    .home-section__head { margin-bottom: 42px; }
    .home-section__head h2,
    .home-experience__copy h2,
    .home-automation__copy h2,
    .home-insights__copy h2 { font-size: clamp(34px, 7.2vw, 48px); }
    .home-bento { gap: 13px; }
    .home-bento__item { padding: 24px; border-radius: 22px; }
    .home-bento__item--agenda,
    .home-bento__item--team,
    .home-bento__item--sales,
    .home-bento__item--reports { grid-column: span 12; min-height: 245px; }
    .home-bento__item--sales { grid-column: span 12; }
    .home-experience__grid,
    .home-insights__grid { gap: 55px; }
    .home-crm-mockup { overflow: hidden; }
    .home-mockup__body { grid-template-columns: 47px minmax(0, 1fr); min-height: 350px; }
    .home-mockup__content { padding: 17px; overflow-x: auto; }
    .home-pipeline { min-width: 440px; }
    .home-mockup__badge { right: 10px; bottom: 14px; }
    .home-property-grid { grid-template-columns: 1fr; gap: 18px; }
    .home-listing,
    .home-listing--raised { display: grid; grid-template-columns: .9fr 1.1fr; transform: none; }
    .home-listing:hover,
    .home-listing--raised:hover { transform: translateY(-4px); }
    .home-listing__visual { height: 100%; min-height: 235px; }
    .home-automation__grid { gap: 46px; }
    .home-insights__dashboard { padding: 19px; }
    .home-plan { padding: 25px; }
    .home-final { padding: 88px 0; }
    .home-final h2 { font-size: clamp(38px, 9vw, 56px); }
    .home-footer__grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 25px; }
}

/* 600 */
@media (max-width: 600px) {
    .home-hero { min-height: 975px; }
    .home-hero h1 { font-size: clamp(40px, 11.5vw, 54px); }
    .home-eyebrow { font-size: 9px; }
    .home-hero__buttons { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .home-hero__buttons .home-button { padding-inline: 12px; }
    .home-hero__assurance { gap: 10px 15px; }
    .home-hero__visual { height: 415px; margin-top: 13px; }
    .home-city { scale: .67; }
    .home-float-card { scale: .69; }
    .home-float-card--lead { left: -10%; }.home-float-card--property { right: -10%; }.home-float-card--automation { left: -3%; }
    .home-visual__orbit--one { inset: 4% -4% 7%; }
    .home-hero__proof { width: 100%; grid-template-columns: repeat(2, 1fr); }
    .home-hero__proof > div { padding: 16px 10px !important; }
    .home-hero__proof strong { font-size: 10px; }.home-hero__proof small { font-size: 8px; }
    .home-bento__item--capture { min-height: 420px; }
    .home-mini-leads { left: 24px; right: 24px; width: auto; }
    .home-property-stack { width: 82%; }
    .home-listing,
    .home-listing--raised { display: block; }
    .home-listing__visual { min-height: 220px; }
    .home-flow { padding: 18px; }
    .home-flow__node--condition,
    .home-flow__node--success,
    .home-flow__branch { margin-left: 25px; }
    .home-flow__rail { left: 38px; }
    .home-flow__branch { grid-template-columns: 1fr; }
    .home-insights__stats { grid-template-columns: 1fr 1fr; }
    .home-insights__stats > span:last-child { grid-column: 1 / -1; }
    .home-chart { height: 145px; }
    .home-chart b { padding-top: 123px; }
    .home-footer { padding-top: 52px; }
    .home-footer__grid { grid-template-columns: 1fr 1fr; gap: 38px 22px; }
    .home-footer__brand { grid-column: 1 / -1; }
    .home-footer__status { grid-column: 1 / -1; }
    .home-footer__bottom { align-items: flex-start; flex-direction: column; }
}

/* 480 */
@media (max-width: 480px) {
    .home-shell { width: min(calc(100% - 24px), var(--home-shell)); }
    .home-header__inner { gap: 12px; }
    .home-brand__name { max-width: 165px; }
    .home-mobile-menu { left: 10px; right: 10px; }
    .home-mobile-menu__actions { grid-template-columns: 1fr; }
    .home-hero { min-height: 940px; }
    .home-hero__grid { padding-top: 80px; }
    .home-hero__content { padding-top: 32px; }
    .home-hero h1 { font-size: clamp(37px, 11.6vw, 48px); line-height: 1.01; }
    .home-hero__lead { margin-top: 20px; font-size: 14px; }
    .home-hero__buttons { grid-template-columns: 1fr; margin-top: 26px; }
    .home-hero__buttons .home-button { width: 100%; }
    .home-hero__assurance span { font-size: 9px; }
    .home-hero__visual { height: 370px; }
    .home-city { scale: .56; }
    .home-float-card { scale: .62; }
    .home-float-card--lead { left: -17%; top: 10%; }.home-float-card--property { right: -17%; top: 34%; }.home-float-card--automation { left: -9%; bottom: 4%; }
    .home-visual__status { display: none; }
    .home-hero__proof { margin-top: 0; }
    .home-hero__proof > div { grid-template-columns: 31px 1fr; column-gap: 7px; }
    .home-hero__proof > div > span { width: 31px; height: 31px; }
    .home-section { padding: 68px 0; }
    .home-section__head h2,
    .home-experience__copy h2,
    .home-automation__copy h2,
    .home-insights__copy h2 { font-size: 34px; }
    .home-section__head > p,
    .home-experience__copy > p,
    .home-automation__copy > p,
    .home-insights__copy > p { margin-top: 17px; font-size: 14px; }
    .home-bento__item { min-height: 250px; padding: 21px; }
    .home-bento__item--capture { min-height: 425px; }
    .home-bento__item--properties { min-height: 390px; }
    .home-mini-leads { left: 20px; right: 20px; bottom: 19px; }
    .home-mini-leads > span { grid-template-columns: 30px minmax(0, 1fr); }
    .home-mini-leads em { display: none; }
    .home-property-stack { right: -55px; width: 105%; }
    .home-mockup__bar { grid-template-columns: 1fr auto; }
    .home-mockup__bar > span:nth-child(2) { display: none; }
    .home-mockup__body { grid-template-columns: 38px minmax(0, 1fr); }
    .home-mockup__content { padding: 14px; }
    .home-mockup__sidebar { gap: 14px; }
    .home-mockup__badge { display: none; }
    .home-listing__visual { min-height: 205px; }
    .home-flow { padding: 13px; border-radius: 21px; }
    .home-flow__node { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; padding: 9px; }
    .home-flow__node--condition,
    .home-flow__node--success,
    .home-flow__branch { margin-left: 17px; }
    .home-flow__rail { left: 30px; }
    .home-flow__node em { font-size: 7px; }
    .home-insights__dashboard { padding: 14px; }
    .home-insights__stats strong { font-size: 17px; }
    .home-chart { height: 125px; }
    .home-chart b { padding-top: 105px; }
    .home-final { padding: 75px 0; }
    .home-final h2 { font-size: 37px; }
    .home-final p { font-size: 14px; }
    .home-final__actions { display: grid; }
    .home-plan { padding: 22px; }
}

/* 400 / 360 */
@media (max-width: 400px) {
    .home-brand__name { max-width: 145px; font-size: 14px; }
    .home-brand__mark { width: 37px; height: 37px; }
    .home-menu-toggle { width: 40px; height: 40px; padding: 9px; }
    .home-hero { min-height: 925px; }
    .home-hero h1 { font-size: 37px; line-height: 1.055; }
    .home-hero__visual { height: 345px; }
    .home-city { scale: .5; }
    .home-float-card { scale: .56; }
    .home-float-card--lead { left: -22%; }.home-float-card--property { right: -23%; }.home-float-card--automation { left: -15%; }
    .home-hero__proof strong { font-size: 9px; }.home-hero__proof small { font-size: 7px; }
    .home-hero__proof > div > span { display: none; }
    .home-hero__proof > div { grid-template-columns: 1fr; }
    .home-bento__item h3 { font-size: 19px; }
    .home-bento__item p { font-size: 13px; }
    .home-pipeline { min-width: 405px; }
    .home-insights__top { align-items: flex-start; }
    .home-insights__period { font-size: 7px; }
    .home-footer__grid { grid-template-columns: 1fr; }
    .home-footer__brand,
    .home-footer__status { grid-column: 1; }
}

@media (max-width: 360px) {
    .home-shell { width: calc(100% - 20px); }
    .home-brand__name { max-width: 125px; }
    .home-hero h1 { font-size: 34px; line-height: 1.06; }
    .home-hero__lead { font-size: 13px; }
    .home-hero__visual { height: 325px; }
    .home-city { scale: .46; }
    .home-float-card { scale: .51; }
    .home-float-card--lead { left: -27%; }.home-float-card--property { right: -29%; }.home-float-card--automation { left: -20%; }
    .home-section__head h2,
    .home-experience__copy h2,
    .home-automation__copy h2,
    .home-insights__copy h2 { font-size: 31px; }
    .home-flow__node strong { font-size: 10px; }
    .home-flow__icon { width: 34px; height: 34px; }
}

/* --------------------------------------------------------------------------
   Reduced motion & input capabilities
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .home-page *,
    .home-page *::before,
    .home-page *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .js .home-page [data-reveal] { opacity: 1; transform: none; }
    .home-city,
    .home-float-card,
    .home-crm-mockup { transform: none !important; }
}

@media (hover: none), (pointer: coarse) {
    .home-bento__item:hover,
    .home-listing:hover,
    .home-listing--raised:hover,
    .home-plan:hover { transform: none; }
    .home-hero__visual { --pointer-x: 0px !important; --pointer-y: 0px !important; }
}

@media print {
    .home-header,
    .home-progress,
    .home-hero__visual,
    .home-final,
    .home-footer { display: none !important; }
    .home-hero { min-height: auto; padding: 40px 0; color: #000; background: #fff; }
    .home-hero h1 { color: #000; }
    .home-hero h1 span { color: #000; -webkit-text-fill-color: initial; }
    .home-section { padding: 35px 0; }
}


/* ==========================================================================
   BLOQUE DE CONTACTO Y REDES SOCIALES DEL PIE
   Añadido para el formulario de la portada y los enlaces sociales que
   gestiona el Super Administrador.

   La rejilla de dos columnas se convierte en una sola cuando deja de
   caber, en el mismo punto que el resto de rejillas de esta hoja.
   ========================================================================== */

.home-contact {
    background: var(--home-surface);
    border-top: 1px solid var(--home-line);
}

.home-contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 48px;
    align-items: start;
}

.home-contact__copy h2 { margin: 12px 0 14px; }
.home-contact__copy > p {
    color: var(--home-muted);
    font-size: 17px;
    line-height: 1.65;
    margin: 0 0 26px;
}

/* --------------------------------------------------------------
   Datos de contacto
   -------------------------------------------------------------- */
.home-contact__facts {
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
    display: grid;
    gap: 16px;
}
.home-contact__facts > li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}
.home-contact__facts > li > span:last-child {
    display: block;
    min-width: 0;
    color: var(--home-muted);
    font-size: 14.5px;
    line-height: 1.6;
}
.home-contact__facts strong {
    display: block;
    color: var(--home-ink);
    font-size: 15px;
    margin-bottom: 2px;
}
.home-contact__facts a { color: var(--home-blue); font-weight: 600; }
.home-contact__facts a:hover { text-decoration: underline; }

.home-contact__social { display: grid; gap: 10px; }
.home-contact__social > strong { color: var(--home-ink); font-size: 14px; }

/* --------------------------------------------------------------
   Formulario
   -------------------------------------------------------------- */
.home-contact__form-wrap {
    background: var(--home-white);
    border: 1px solid var(--home-line);
    border-radius: var(--home-radius);
    box-shadow: var(--home-shadow-soft);
    padding: 30px;
    min-width: 0;
}

.home-form { display: grid; gap: 16px; }

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

/* El campo trampa no se pinta nunca. Se saca del flujo en lugar de usar
   display:none porque algunos robots tratan lo oculto como sospechoso, y
   asi el campo sigue siendo rellenable por ellos. Para una persona es
   inalcanzable: esta fuera de la pantalla y sin recorrido de teclado. */
.home-form__trap {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.home-field { display: grid; gap: 7px; min-width: 0; }
.home-field > label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--home-ink);
}
.home-field > label > span { color: var(--home-blue); }

.home-field input[type="text"],
.home-field input[type="email"],
.home-field input[type="tel"],
.home-field select,
.home-field textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px 13px;
    font: inherit;
    font-size: 15px;
    color: var(--home-ink);
    background: var(--home-white);
    border: 1px solid var(--home-line);
    border-radius: 12px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.home-field textarea { resize: vertical; min-height: 118px; line-height: 1.6; }

.home-field input:focus,
.home-field select:focus,
.home-field textarea:focus {
    outline: none;
    border-color: var(--home-blue);
    box-shadow: 0 0 0 3px rgba(31, 111, 235, .14);
}

.home-field > small { color: var(--home-muted); font-size: 12.5px; }

/* Casilla de consentimiento: el texto se reparte a la derecha y no
   empuja la casilla. */
.home-field--check {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
}
.home-field--check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--home-blue);
    flex: 0 0 auto;
}
.home-field--check > label {
    font-weight: 400;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--home-muted);
}
.home-field--check > label a { color: var(--home-blue); text-decoration: underline; }

.home-form__note {
    margin: 0;
    color: var(--home-muted);
    font-size: 12.5px;
    text-align: center;
}

/* --------------------------------------------------------------
   Aviso de resultado del envio
   -------------------------------------------------------------- */
.home-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 18px;
    padding: 13px 15px;
    border-radius: 14px;
    font-size: 14.5px;
    line-height: 1.55;
    border: 1px solid transparent;
}
.home-note > span { min-width: 0; }
.home-note--ok {
    background: rgba(51, 167, 118, .1);
    border-color: rgba(51, 167, 118, .32);
    color: #1d6b4b;
}
.home-note--error {
    background: rgba(214, 69, 69, .09);
    border-color: rgba(214, 69, 69, .3);
    color: #97282a;
}

/* --------------------------------------------------------------
   Redes sociales del pie
   El pie va sobre fondo oscuro, así que estos iconos llevan su propio
   contraste en lugar de heredar el de la lista del panel.
   -------------------------------------------------------------- */
.home-footer__social { margin-top: 18px; }

.home-social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}
.home-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .78);
    transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.home-social a:hover,
.home-social a:focus-visible {
    color: var(--home-navy);
    background: var(--home-gold-bright);
    border-color: var(--home-gold-bright);
    transform: translateY(-2px);
}

/* En el bloque de contacto, que va sobre fondo claro. */
.home-contact__social .home-social a {
    border-color: var(--home-line);
    background: var(--home-white);
    color: var(--home-muted);
}
.home-contact__social .home-social a:hover,
.home-contact__social .home-social a:focus-visible {
    color: var(--home-white);
    background: var(--home-blue);
    border-color: var(--home-blue);
}

/* Texto que puede ser muy largo (un correo) sin romper la caja. */
.home-footer__links a.text-break,
.home-contact__facts a.text-break {
    overflow-wrap: break-word;
    word-break: normal;
}

/* ==========================================================================
   RESPONSIVE DEL BLOQUE DE CONTACTO
   Se siguen los mismos anchos que el resto de la portada.
   ========================================================================== */

/* 1280px: se estrecha el hueco entre columnas antes de partirlas. */
@media (max-width: 1280px) {
    .home-contact__grid { gap: 36px; }
    .home-contact__form-wrap { padding: 26px; }
}

/* 1080px: portatiles pequeños. */
@media (max-width: 1080px) {
    .home-contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; }
    .home-contact__copy > p { font-size: 16px; }
}

/* 900px: ya no caben dos columnas con el formulario cómodo. */
@media (max-width: 900px) {
    .home-contact__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .home-contact__form-wrap { padding: 24px; }
}

/* 761px: tabletas verticales y moviles grandes. */
@media (max-width: 761px) {
    .home-contact__facts { gap: 14px; }
    .home-form { gap: 14px; }
    .home-form__row { gap: 14px; }
}

/* 600px: los dos campos por fila pasan a uno. */
@media (max-width: 600px) {
    .home-form__row { grid-template-columns: minmax(0, 1fr); }
    .home-contact__form-wrap { padding: 20px; border-radius: var(--home-radius-sm); }
    .home-contact__copy > p { margin-bottom: 22px; }
    .home-field textarea { min-height: 104px; }
}

/* 480px: moviles corrientes. */
@media (max-width: 480px) {
    .home-contact__form-wrap { padding: 17px; }
    .home-field input[type="text"],
    .home-field input[type="email"],
    .home-field input[type="tel"],
    .home-field select,
    .home-field textarea { padding: 11px 12px; font-size: 14.5px; }
    .home-contact__facts > li { gap: 11px; }
    .home-social a { width: 36px; height: 36px; }
    .home-note { padding: 11px 13px; font-size: 13.5px; }
}

/* 400px: el icono de cada dato de contacto se reduce para que el texto
   mantenga su ancho de lectura. */
@media (max-width: 400px) {
    .home-contact__form-wrap { padding: 14px; }
    .home-contact__copy > p { font-size: 15px; }
    .home-contact__facts > li { grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
    .home-contact__facts > li > span:last-child { font-size: 13.5px; }
    .home-field > label { font-size: 13px; }
    .home-field--check > label { font-size: 12.5px; }
    .home-social { gap: 7px; }
    .home-social a { width: 34px; height: 34px; }
    .home-form__note { font-size: 11.5px; }
}

/* 360px: el ancho mas estrecho que se contempla. Los datos de contacto
   pasan a una sola columna: con el icono al lado no quedaria ancho de
   lectura suficiente. */
@media (max-width: 360px) {
    .home-contact__facts > li { grid-template-columns: minmax(0, 1fr); gap: 7px; }
    .home-field input[type="text"],
    .home-field input[type="email"],
    .home-field input[type="tel"],
    .home-field select,
    .home-field textarea { padding: 10px 11px; font-size: 14px; }
    .home-field textarea { min-height: 96px; }
    .home-social a { width: 32px; height: 32px; }
}


/* ==========================================================================
   HERO 3D BASADO EN LA IMAGEN ORIGINAL
   --------------------------------------------------------------------------
   La imagen proporcionada es el único contenido visual. La profundidad no
   se finge con ilustraciones nuevas: se repiten regiones recortadas de la
   misma imagen (arquitectura, tarjetas y marca) en planos Z independientes.
   El navegador reutiliza el bitmap ya descargado y solo anima transformaciones
   aceleradas por GPU.
   ========================================================================== */

.home-hero__visual {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --pointer-x: 0px;
    --pointer-y: 0px;
    --scene-scale: 1;
    isolation: isolate;
    /* Sin `paint`: ese valor recortaba la escena y las sombras contra la caja
       del contenedor, que es la causa real de que la imagen apareciera
       cortada en 1440/1600 y en 1024/1080. Se conserva la contención de
       layout y estilo, que no recorta nada. */
    contain: layout style;
    perspective: 1200px;
    transform-style: preserve-3d;
}

/* Halo trasero: movimiento mínimo, correspondiente al plano más lejano. */
.home-hero__visual .home-visual__halo {
    z-index: 0;
    inset: 13% 0 9%;
    border-radius: 48%;
    background:
        radial-gradient(ellipse at 52% 58%, rgba(226, 189, 105, .24) 0%, rgba(200, 162, 75, .1) 31%, transparent 67%),
        radial-gradient(ellipse at 52% 48%, rgba(56, 132, 204, .18), transparent 72%);
    filter: blur(16px);
    opacity: .82;
    transform: translate3d(var(--halo-x, 0), var(--halo-y, 0), -45px) scale(.92);
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .7s ease;
}

.home-visual__light {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    pointer-events: none;
    /* `screen` con opacidad alta lavaba los detalles de la imagen. Con una
       intensidad menor la iluminación sigue presente y los datos, gráficos y
       tarjetas se leen con claridad. */
    mix-blend-mode: screen;
    opacity: .38;
    filter: blur(12px);
}
.home-visual__light--warm {
    width: 36%;
    aspect-ratio: 1;
    left: 27%;
    bottom: 9%;
    background: radial-gradient(circle, rgba(255, 197, 91, .34), transparent 68%);
    transform: translate3d(var(--light-warm-x, 0), var(--light-warm-y, 0), -12px);
}
.home-visual__light--cool {
    width: 28%;
    aspect-ratio: 1;
    right: 4%;
    top: 17%;
    background: radial-gradient(circle, rgba(89, 158, 222, .22), transparent 70%);
    transform: translate3d(var(--light-cool-x, 0), var(--light-cool-y, 0), -18px);
}

/* El plano completo gira como una cámara, nunca más de 2°/3°. */
.home-visual-scene {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    /* Nunca más ancha que su contenedor: así la composición completa queda
       dentro del Hero en cualquier ancho. El segundo límite evita mostrar el
       bitmap (1024 px) por encima de su resolución nativa, que es lo que
       restaba nitidez. */
    width: min(100%, 812px);
    aspect-ratio: 1024 / 577;
    transform-style: preserve-3d;
    transform-origin: 50% 62%;
    transform:
        translate3d(-50%, -50%, 0)
        rotateX(var(--tilt-x))
        rotateY(var(--tilt-y))
        scale3d(var(--scene-scale), var(--scene-scale), 1);
    transition: transform .32s cubic-bezier(.2, .7, .2, 1);
    will-change: auto;
}

/* will-change solo mientras el puntero está sobre la escena. */
.home-hero__visual.is-interacting .home-visual-scene { will-change: transform; }

.home-visual-stage {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    animation: homeHeroStageFloat 7.6s ease-in-out -2.1s infinite alternate;
}
@keyframes homeHeroStageFloat {
    from { translate: 0 2px; }
    to { translate: 0 -3px; }
}

.home-visual-media {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: block;
    transform-style: preserve-3d;
    transform: translate3d(0, 0, 0);
    transform-origin: 50% 68%;
}
.home-visual-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    /* Una sola sombra definida en lugar de dos superpuestas: el contacto con
       el suelo lo aporta .home-visual-shadow, así que apilar difuminados solo
       restaba definición a los bordes de los edificios y las tarjetas. */
    filter: drop-shadow(0 22px 26px rgba(4, 16, 29, .3));
    backface-visibility: hidden;
    user-select: none;
    pointer-events: none;
}

/* Sombra de contacto bajo la plataforma: da peso a la escena en lugar de
   hacer que flote sin lógica. */
.home-visual-shadow {
    position: absolute;
    z-index: 0;
    left: 7%;
    right: 5%;
    bottom: -1%;
    height: 15%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0, 0, 0, .5), rgba(0, 0, 0, .12) 48%, transparent 73%);
    filter: blur(13px);
    opacity: .72;
    transform: translate3d(var(--shadow-x, 0), var(--shadow-y, 0), -30px) scaleX(.93);
    pointer-events: none;
}

/* Cada capa usa la propia imagen WebP, recortada con clip-path. El PNG base
   sigue debajo como fallback y evita huecos durante el movimiento. Son cuatro
   superficies: arquitectura y tres grupos de tarjetas. */
.home-visual-depth {
    --layer-x: 0px;
    --layer-y: 0px;
    --layer-z: 12px;
    position: absolute;
    z-index: 5;
    inset: 0;
    /* PNG garantiza la profundidad en navegadores sin WebP; image-set
       reutiliza el WebP optimizado en navegadores actuales. */
    background: url("../img/hero-inmocapmed.png") center / 100% 100% no-repeat;
    background-image: image-set(
        url("../img/hero-inmocapmed.webp") type("image/webp"),
        url("../img/hero-inmocapmed.png") type("image/png")
    );
    pointer-events: none;
    transform-style: preserve-3d;
    transform: translate3d(var(--layer-x), var(--layer-y), var(--layer-z));
    backface-visibility: hidden;
    animation: homeHeroLayerFloat 6.7s ease-in-out infinite alternate;
}
@keyframes homeHeroLayerFloat {
    from { translate: 0 1px; }
    to { translate: 0 -3px; }
}

/* Edificios, vegetación, piscina y plataforma: plano intermedio. */
.home-visual-depth--architecture {
    --layer-z: 15px;
    clip-path: polygon(28% 27%, 78% 25%, 95% 91%, 5% 96%, 8% 64%);
    filter: drop-shadow(0 11px 10px rgba(0, 0, 0, .12));
    animation-duration: 8.1s;
    animation-delay: -4.4s;
}

/* Tarjetas izquierdas: movimiento opuesto y muy leve. */
.home-visual-depth--cards-left {
    --layer-z: 23px;
    clip-path: polygon(7% 27%, 40% 28%, 40% 78%, 7% 78%);
    filter: drop-shadow(0 8px 9px rgba(0, 0, 0, .14));
    animation-duration: 6.2s;
    animation-delay: -1.6s;
}

/* Tarjeta de inmueble y estadística superior. */
.home-visual-depth--cards-top {
    --layer-z: 28px;
    clip-path: polygon(45% 4%, 84% 5%, 85% 48%, 45% 48%);
    filter: drop-shadow(0 8px 11px rgba(0, 0, 0, .15));
    animation-duration: 7.4s;
    animation-delay: -3.1s;
}

/* Panel de ventajas de la derecha: el plano más próximo. */
.home-visual-depth--cards-right {
    --layer-z: 32px;
    clip-path: polygon(78% 14%, 100% 15%, 100% 56%, 78% 56%);
    filter: drop-shadow(0 9px 12px rgba(0, 0, 0, .17));
    animation-duration: 6.9s;
    animation-delay: -.8s;
}

/* Reflejo breve de entrada. No se mantiene animando permanentemente. */
.home-visual-reflection {
    position: absolute;
    z-index: 8;
    inset: 8% 7% 5%;
    overflow: hidden;
    clip-path: polygon(7% 13%, 94% 8%, 98% 92%, 5% 95%);
    pointer-events: none;
    opacity: 0;
}
.home-visual-reflection::before {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -22%;
    width: 18%;
    background: linear-gradient(90deg, transparent, rgba(255, 244, 210, .15), transparent);
    filter: blur(5px);
    transform: skewX(-14deg) translate3d(-160%, 0, 0);
}
.home-hero__visual.is-visible .home-visual-reflection {
    animation: homeHeroReflectionVisibility 2s ease 1s 1 both;
}
.home-hero__visual.is-visible .home-visual-reflection::before {
    animation: homeHeroReflection 2s cubic-bezier(.2, .65, .2, 1) 1s 1 both;
}
@keyframes homeHeroReflectionVisibility {
    0%, 100% { opacity: 0; }
    22%, 72% { opacity: 1; }
}
@keyframes homeHeroReflection {
    from { transform: skewX(-14deg) translate3d(-160%, 0, 0); }
    to { transform: skewX(-14deg) translate3d(760%, 0, 0); }
}

/* Partículas mínimas de luz, sin glow invasivo. */
.home-visual-spark {
    position: absolute;
    z-index: 2;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 224, 152, .82);
    box-shadow: 0 0 11px rgba(226, 189, 105, .68);
    pointer-events: none;
    animation: homeHeroSpark 6.4s ease-in-out infinite alternate;
}
.home-visual-spark--one { left: 20%; top: 26%; animation-delay: -2.2s; }
.home-visual-spark--two { right: 13%; bottom: 23%; width: 3px; height: 3px; animation-delay: -4.7s; }
@keyframes homeHeroSpark {
    from { opacity: .18; translate: 0 3px; }
    to { opacity: .74; translate: 0 -4px; }
}

/* Entrada escalonada: imagen, arquitectura, tarjetas, marca e iluminación. */
.js .home-hero__visual .home-visual-media,
.js .home-hero__visual .home-visual-depth,
.js .home-hero__visual .home-visual__light,
.js .home-hero__visual .home-visual__halo {
    opacity: 0;
    transition:
        opacity .75s ease,
        transform .9s cubic-bezier(.2, .72, .2, 1),
        filter .9s ease;
}
.js .home-hero__visual .home-visual-media {
    transform: translate3d(0, 13px, -15px) scale(.975);
    filter: blur(3px);
}
.js .home-hero__visual .home-visual-depth {
    transform: translate3d(var(--layer-x), calc(var(--layer-y) + 10px), var(--layer-z)) scale(.985);
    filter: blur(2px);
}
.js .home-hero__visual.is-visible .home-visual-media {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: none;
    transition-delay: .08s;
}
.js .home-hero__visual.is-visible .home-visual-depth {
    opacity: 1;
    transform: translate3d(var(--layer-x), var(--layer-y), var(--layer-z)) scale(1);
    filter: none;
}
.js .home-hero__visual.is-visible .home-visual-depth--architecture { transition-delay: .18s; }
.js .home-hero__visual.is-visible .home-visual-depth--cards-left { transition-delay: .28s; }
.js .home-hero__visual.is-visible .home-visual-depth--cards-top { transition-delay: .36s; }
.js .home-hero__visual.is-visible .home-visual-depth--cards-right { transition-delay: .44s; }
.js .home-hero__visual.is-visible .home-visual__light { opacity: .38; transition-delay: .48s; }
.js .home-hero__visual.is-visible .home-visual__halo { opacity: .82; transition-delay: .12s; }

/* 1920 / 1600 / 1440: aprovecha el espacio extra sin superar la resolución
   útil del bitmap. */
@media (min-width: 1441px) {
    .home-visual-scene { width: min(100%, 1000px); }
}

/* 1280 */
@media (max-width: 1280px) {
    .home-visual-scene { width: min(100%, 720px); }
}

/* 1080 / 1024 */
@media (max-width: 1080px) {
    /* La escena se ajusta al ancho real de su columna: no se recorta ni
       depende de ocultar píxeles en portátiles de 1024/1080. */
    .home-visual-scene { width: 100%; }
    .home-visual-depth--cards-right { --layer-z: 27px; }
}

/* 900: texto arriba y escena debajo. */
@media (max-width: 900px) {
    .home-visual-scene { width: min(100%, 680px); top: 49%; }
    .home-hero__visual .home-visual__halo { inset: 15% 3% 11%; }
}

/* 761: menos profundidad y menos desplazamiento, sin cortar tarjetas. */
@media (max-width: 761px) {
    .home-visual-scene { width: 100%; }
    .home-visual-depth--architecture { --layer-z: 10px; }
    .home-visual-depth--cards-left,
    .home-visual-depth--cards-top { --layer-z: 16px; }
    .home-visual-depth--cards-right { --layer-z: 19px; }
    .home-visual__light--cool { right: 9%; }
}

/* 600: conserva la proporción completa de la imagen. */
@media (max-width: 600px) {
    .home-visual-scene { width: 100%; top: 48%; }
    .home-hero__visual .home-visual__halo { inset: 18% 1% 13%; filter: blur(12px); }
    .home-visual-spark--one { left: 13%; top: 23%; }
    .home-visual-spark--two { right: 8%; bottom: 24%; }
}

/* 480 */
@media (max-width: 480px) {
    .home-hero__visual { height: 340px; }
    .home-visual-scene { width: 100%; top: 47%; }
    .home-visual-media img {
        filter: drop-shadow(0 20px 20px rgba(0, 0, 0, .25));
    }
    .home-visual-depth--architecture { --layer-z: 7px; }
    .home-visual-depth--cards-left,
    .home-visual-depth--cards-top,
    .home-visual-depth--cards-right { --layer-z: 10px; }
}

/* 400 */
@media (max-width: 400px) {
    .home-hero__visual { height: 305px; }
    .home-visual-scene { width: 100%; top: 46%; }
    .home-visual__light { opacity: .34; }
    .home-visual-spark { display: none; }
}

/* 360 */
@media (max-width: 360px) {
    .home-hero__visual { height: 280px; }
    .home-visual-scene { top: 45%; }
    .home-hero__visual .home-visual__halo { inset: 20% 0 15%; }
}

/* Accesibilidad: se conserva la composición y solo se eliminan movimientos,
   parallax, blur de entrada y reflejo. */
@media (prefers-reduced-motion: reduce) {
    .home-visual-scene {
        transform: translate3d(-50%, -50%, 0) !important;
        transition: none !important;
    }
    .home-visual-stage,
    .home-visual-depth,
    .home-visual-spark,
    .home-visual-reflection,
    .home-visual-reflection::before {
        animation: none !important;
        translate: none !important;
    }
    .js .home-hero__visual .home-visual-media,
    .js .home-hero__visual .home-visual-depth,
    .js .home-hero__visual .home-visual__light,
    .js .home-hero__visual .home-visual__halo {
        opacity: 1;
        filter: none;
        transition: none;
    }
    .js .home-hero__visual .home-visual-media { transform: translate3d(0, 0, 0); }
    .js .home-hero__visual .home-visual-depth {
        transform: translate3d(0, 0, var(--layer-z));
    }
    .home-visual-reflection { display: none; }
}

/* En dispositivos táctiles no hay parallax ni flotación permanente: se
   conserva la profundidad visual de la imagen, pero no se consume batería
   animando una escena que no responde al puntero. */
@media (hover: none), (pointer: coarse) {
    .home-visual-scene {
        --scene-scale: 1;
        transform: translate3d(-50%, -50%, 0) !important;
    }
    .home-visual-stage,
    .home-visual-depth,
    .home-visual-spark {
        animation: none !important;
        translate: none !important;
    }
    .home-visual-depth { --layer-x: 0px !important; --layer-y: 0px !important; }
    .home-visual-reflection { display: none; }
    .home-visual-spark { opacity: .35; }
}

/* ===============================================================
   SECCIONES NUEVAS DE LA PORTADA
   Centro de marketing, ventajas y redes sociales. Se apoyan en las
   piezas que ya existen (.home-section, .home-shell, .home-kicker,
   .home-icon-box) y no tocan el hero, la navegación ni el pie.
   =============================================================== */

/* --- Centro de marketing ------------------------------------- */
.home-mk { background: var(--home-surface); }
.home-mk__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.home-mk__card {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 30px 27px;
    background: #fff;
    border: 1px solid var(--home-line);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(7, 26, 47, .05);
}
.home-mk__card h3 { margin: 0; font-size: 17px; line-height: 1.3; color: var(--home-ink); }
.home-mk__card > p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--home-muted); }
.home-mk__list { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.home-mk__list li {
    display: grid;
    grid-template-columns: 17px 1fr;
    align-items: start;
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.6;
    color: #4d5f74;
}
.home-mk__list .icon { margin-top: 2px; color: var(--home-green); }
.home-mk__note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    max-width: 760px;
    margin: 30px auto 0;
    padding: 15px 19px;
    background: #fff;
    border: 1px solid var(--home-line);
    border-left: 3px solid var(--home-gold);
    border-radius: 14px;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--home-muted);
}
.home-mk__note .icon { flex: 0 0 auto; margin-top: 2px; color: var(--home-gold); }

/* --- Ventajas ------------------------------------------------- */
.home-adv__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 26px;
}
.home-adv__item {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: start;
    gap: 14px;
    padding: 22px 22px 22px 20px;
    border: 1px solid var(--home-line);
    border-radius: 18px;
    background: #fff;
}
.home-adv__icon {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border-radius: 13px;
    background: #eef5fc;
    color: var(--home-blue, #1f6feb);
}
.home-adv__item h3 { margin: 0 0 5px; font-size: 15.5px; line-height: 1.3; color: var(--home-ink); }
.home-adv__item p { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--home-muted); }

/* --- Redes sociales ------------------------------------------ */
.home-follow { padding: 84px 0; background: var(--home-surface); }
.home-follow__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.home-follow__copy { max-width: 560px; }
.home-follow__copy h2 { margin: 9px 0 10px; font-size: clamp(22px, 2.4vw, 31px); line-height: 1.2; color: var(--home-ink); }
.home-follow__copy p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--home-muted); }
.home-follow__list { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.home-follow__list a {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    border: 1px solid var(--home-line);
    border-radius: 16px;
    background: #fff;
    color: var(--home-navy);
    transition: transform .25s ease, border-color .25s ease, color .25s ease;
}
.home-follow__list a:hover {
    transform: translateY(-3px);
    border-color: var(--home-gold);
    color: var(--home-gold);
    text-decoration: none;
}
.home-follow__list a:focus-visible { outline: 3px solid var(--home-gold-bright); outline-offset: 3px; }

@media (max-width: 1080px) {
    .home-mk__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-adv__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 761px) {
    .home-mk__grid,
    .home-adv__grid { grid-template-columns: minmax(0, 1fr); }
    .home-mk__card { padding: 25px 21px; }
    .home-follow { padding: 62px 0; }
    .home-follow__inner { justify-content: flex-start; }
}
@media (max-width: 480px) {
    .home-adv__item { grid-template-columns: 36px 1fr; gap: 11px; padding: 18px; }
    .home-adv__icon { width: 36px; height: 36px; border-radius: 11px; }
    .home-follow__list a { width: 46px; height: 46px; border-radius: 14px; }
}
@media (max-width: 360px) {
    .home-mk__card { padding: 20px 17px; }
    .home-mk__note { padding: 13px 15px; }
    .home-follow__list { gap: 9px; }
    .home-follow__list a { width: 42px; height: 42px; }
}
