/* =========================================================
   GEOIMPULSO — HERO PREMIUM
   Solo apariencia visual del Hero.
   No altera el contenido ni la lógica de scroll.
   ========================================================= */

.hero-visual {
    overflow: hidden;

    padding: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.96),
            rgba(248, 250, 252, 0.88)
        );

    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-lg);

    box-shadow:
        0 30px 80px rgba(15, 23, 42, 0.10),
        0 4px 12px rgba(15, 23, 42, 0.03);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-visual::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 385px;

    top: -260px;
    right: -150px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(20, 184, 166, 0.14),
            transparent 68%
        );

    pointer-events: none;
}


/* SEARCH */

.search-demo {
    position: relative;
    z-index: 20;

    min-height: 64px;

    display: flex;
    align-items: center;
    gap: 14px;

    padding: 16px 18px;

    background: rgba(255, 255, 255, 0.95);

    border: 1px solid rgba(148, 163, 184, 0.20);
    border-radius: 18px;

    box-shadow:
        0 8px 25px rgba(15, 23, 42, 0.05);

    color: var(--color-text);
}

.search-icon {
    width: 36px;
    height: 36px;

    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            rgba(20, 184, 166, 0.14),
            rgba(59, 130, 246, 0.08)
        );

    color: var(--color-primary-dark);

    font-size: 19px;
}

.search-text {
    flex: 1;
    font-size: 15px;
}

.search-cursor {
    width: 2px;
    height: 20px;

    flex: 0 0 auto;

    background: var(--color-primary);

    animation: cursor-blink 1s infinite;
}

@keyframes cursor-blink {
    0%,
    45% {
        opacity: 1;
    }

    46%,
    100% {
        opacity: 0;
    }
}


/* LABEL */

.scene-label {
    margin-top: 16px;
    margin-bottom: 12px;

    color: var(--color-muted);

    font-size: 13px;
    font-weight: 700;
}


/* MAP */

.map-stage {
    position: relative;
    isolation: isolate;

    height: 385px;

    overflow: hidden;

    border-radius: 22px;

    background:
        linear-gradient(
            180deg,
            #eef5f8 0%,
            #e2ebf1 100%
        );

    border: 1px solid rgba(148, 163, 184, 0.22);

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.50);
}

.map-grid {
    position: absolute;
    inset: 0;

    z-index: -5;

    opacity: 0.22;

    background-image:
        linear-gradient(
            rgba(100, 116, 139, 0.10) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(100, 116, 139, 0.10) 1px,
            transparent 1px
        );

    background-size: 54px 54px;
}


/* URBAN BLOCKS */

.city-block,
.district-shape,
.park-zone,
.river-zone,
.map-road {
    position: absolute;
    pointer-events: none;
}

.city-block {
    z-index: -4;

    background: rgba(255, 255, 255, 0.22);

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
}

.block-1 {
    width: 180px;
    height: 100px;
    top: 36px;
    left: 40px;
}

.block-2 {
    width: 170px;
    height: 105px;
    top: 65px;
    right: 85px;
}

.block-3 {
    width: 200px;
    height: 110px;
    bottom: 85px;
    left: 80px;
}

.block-4 {
    width: 145px;
    height: 90px;
    bottom: 62px;
    right: 62px;
}

.block-5 {
    width: 120px;
    height: 78px;
    top: 188px;
    left: 300px;
}

.block-6 {
    width: 145px;
    height: 82px;
    top: 245px;
    right: 210px;
}

.district-shape {
    z-index: -4;

    background: rgba(103, 170, 188, 0.08);

    transform: rotate(-18deg);
}

.district-shape-1 {
    width: 320px;
    height: 210px;

    top: 105px;
    left: -20px;

    clip-path:
        polygon(
            0 20%,
            95% 0,
            100% 100%,
            12% 85%
        );
}

.district-shape-2 {
    width: 280px;
    height: 220px;

    right: 18px;
    top: 92px;

    clip-path:
        polygon(
            20% 0,
            100% 18%,
            75% 100%,
            0 78%
        );
}

.park-zone {
    z-index: -3;

    width: 150px;
    height: 90px;

    top: 58px;
    left: 90px;

    border-radius: 38% 45% 35% 42%;

    background: rgba(34, 197, 94, 0.08);

    transform: rotate(-7deg);
}

.river-zone {
    z-index: -3;

    width: 82px;
    height: 360px;

    right: 105px;
    top: 18px;

    border-radius: 999px;

    background: rgba(20, 184, 166, 0.07);

    transform: rotate(18deg);
}


/* ROADS */

.map-road {
    z-index: -2;

    height: 18px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.92);

    box-shadow:
        0 0 0 1px rgba(203, 213, 225, 0.22),
        0 4px 10px rgba(15, 23, 42, 0.025);
}

.avenue-one {
    width: 86%;
    top: 37%;
    left: -8%;

    transform: rotate(-11deg);
}

.avenue-two {
    width: 72%;
    top: 58%;
    right: -10%;

    transform: rotate(18deg);
}

.street-one {
    width: 55%;
    top: 11%;
    left: 30%;

    transform: rotate(49deg);
}

.street-two {
    width: 46%;
    top: 48%;
    left: 28%;

    transform: rotate(17deg);
}

.street-three {
    width: 42%;
    bottom: 14%;
    left: 15%;

    transform: rotate(24deg);
}


/* PINS */

.map-pin {
    position: absolute;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50% 50% 50% 0;

    background: var(--color-white);

    border: 2px solid var(--color-primary);

    box-shadow:
        0 10px 25px rgba(15, 23, 42, 0.16);

    transform: rotate(-45deg);

    z-index: 2;
}

.map-pin span {
    transform: rotate(45deg);

    color: var(--color-primary-dark);

    font-size: 13px;
    font-weight: 800;
}

.pin-one {
    top: 24%;
    left: 25%;
}

.pin-two {
    top: 58%;
    left: 50%;
}

.pin-three {
    top: 27%;
    right: 17%;
}

.target-pin {
    width: 48px;
    height: 48px;

    background: var(--color-primary);
    border-color: var(--color-primary);

    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.18),
        0 0 0 10px rgba(20, 184, 166, 0.11),
        0 0 0 21px rgba(20, 184, 166, 0.04);
}

.target-pin span {
    color: var(--color-white);
}


/* CARDS */

.business-card,
.optimization-panel,
.result-card {
    position: absolute;
    z-index: 5;

    background: rgba(255, 255, 255, 0.96);

    border-radius: 18px;

    box-shadow:
        0 18px 50px rgba(15, 23, 42, 0.13),
        0 2px 5px rgba(15, 23, 42, 0.03);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.business-card {
    right: 22px;
    bottom: 22px;

    width: min(286px, calc(100% - 44px));

    padding: 16px;

    border: 1px solid rgba(245, 158, 11, 0.16);
}

.business-position {
    margin-bottom: 6px;

    color: var(--color-primary-dark);

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.business-card strong {
    display: block;

    color: var(--color-dark);

    font-size: 18px;
}

.business-rating {
    margin-top: 5px;

    color: var(--color-text);

    font-size: 14px;
}

.business-status {
    display: inline-flex;

    margin-top: 12px;
    padding: 7px 10px;

    border-radius: 999px;

    background: rgba(245, 158, 11, 0.11);

    color: #b45309;

    font-size: 12px;
    font-weight: 800;
}


/* OPTIMIZATION */

.optimization-panel {
    left: 22px;
    bottom: 22px;

    width: min(324px, calc(100% - 44px));

    padding: 17px;

    border: 1px solid rgba(20, 184, 166, 0.25);
}

.optimization-header {
    display: grid;
    gap: 8px;

    margin-bottom: 14px;
}

.optimization-badge {
    width: fit-content;

    padding: 5px 8px;

    border-radius: 999px;

    background: rgba(20, 184, 166, 0.10);

    color: var(--color-primary-dark);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.08em;
}

.optimization-header strong {
    color: var(--color-dark);

    font-size: 17px;
    line-height: 1.25;
}

.optimization-list {
    display: grid;
    gap: 9px;
}

.optimization-item {
    display: flex;
    align-items: center;
    gap: 9px;

    color: var(--color-text);

    font-size: 12px;
    font-weight: 600;
}

.check-icon {
    width: 23px;
    height: 23px;

    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(20, 184, 166, 0.12);

    color: var(--color-primary-dark);

    font-size: 12px;
    font-weight: 900;
}


/* RESULT */

.result-card {
    right: 24px;
    bottom: 30px;

    width: min(286px, calc(100% - 48px));

    padding: 17px;

    border: 1px solid rgba(34, 197, 94, 0.28);
}

.result-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-bottom: 10px;
}

.result-badge {
    padding: 5px 8px;

    border-radius: 999px;

    background: rgba(20, 184, 166, 0.10);

    color: var(--color-primary-dark);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.07em;
}

.result-position {
    color: var(--color-success);

    font-size: 11px;
    font-weight: 800;
}

.result-card strong {
    display: block;

    color: var(--color-dark);

    font-size: 19px;
}

.result-rating {
    margin-top: 5px;

    color: var(--color-text);

    font-size: 14px;
}

.result-status {
    display: inline-flex;

    margin-top: 12px;
    padding: 7px 10px;

    border-radius: 999px;

    background: var(--color-success-soft);

    color: var(--color-success);

    font-size: 12px;
    font-weight: 800;
}


/* RESULT ACTIONS */

.result-actions {
    position: absolute;
    z-index: 5;

    left: 24px;
    bottom: 24px;

    width: min(315px, calc(100% - 48px));

    display: grid;
    gap: 7px;
}

.result-action {
    display: flex;
    align-items: center;

    gap: 11px;

    padding: 9px 11px;

    background: rgba(255, 255, 255, 0.95);

    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 13px;

    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.075);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.action-icon {
    width: 33px;
    height: 33px;

    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            rgba(20, 184, 166, 0.16),
            rgba(59, 130, 246, 0.07)
        );

    color: var(--color-primary-dark);

    font-size: 15px;
    font-weight: 900;
}

.result-action strong {
    display: block;

    color: var(--color-dark);

    font-size: 13px;
}

.result-action small {
    display: block;

    margin-top: 1px;

    color: var(--color-muted);

    font-size: 11px;
}




/* TABLET / SMALL DESKTOP HERO BALANCE */

@media (max-width: 1180px) and (min-width: 701px) {

    .map-stage {
        height: 400px;
    }

    .result-actions {
        width: min(285px, calc(100% - 48px));
    }

    .result-card {
        width: min(260px, calc(100% - 48px));
    }

    .result-action strong {
        font-size: 12px;
    }

    .result-action small {
        font-size: 10px;
    }
}

/* FORM PREMIUM */

.hero-form-card {
    border: 1px solid rgba(148, 163, 184, 0.17);

    box-shadow:
        0 30px 75px rgba(15, 23, 42, 0.09);

    background:
        rgba(255, 255, 255, 0.96);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lead-form input {
    background:
        rgba(248, 250, 252, 0.45);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.lead-form input:focus {
    background: #ffffff;
}

.lead-form button {
    box-shadow:
        0 10px 25px rgba(20, 184, 166, 0.18);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.lead-form button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(20, 184, 166, 0.25);
}
