.teamlog-globe-section {
    --teamlog-green: #18AA49;
    --teamlog-green-rgb: 24, 170, 73;
    --teamlog-white: #FFFFFF;
    --teamlog-black: #111111;
    --teamlog-border: rgba(255, 255, 255, 0.58);
    --teamlog-globe-height: 620px;

    position: relative;
    width: 100%;
    min-height: var(--teamlog-globe-height);
    overflow: hidden;
    background: var(--teamlog-green);
    color: var(--teamlog-white);
}

.teamlog-globe-section *,
.teamlog-globe-section *::before,
.teamlog-globe-section *::after {
    box-sizing: border-box;
}

.teamlog-globe-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(560px, 1.1fr);
    align-items: center;
    gap: clamp(20px, 2.5vw, 52px);
    width: min(1600px, 100%);
    min-height: var(--teamlog-globe-height);
    margin: 0 auto;
    padding: 55px clamp(24px, 4vw, 80px);
}

.teamlog-globe-text {
    position: relative;
    z-index: 5;
    justify-self: end;
    width: 100%;
    max-width: 520px;
}

.teamlog-globe-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--teamlog-white);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.teamlog-globe-text h2 {
    margin: 0 0 22px;
    color: var(--teamlog-white);
    font-size: clamp(38px, 4.5vw, 68px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.teamlog-globe-text > p {
    max-width: 470px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
    line-height: 1.7;
}

.teamlog-globe-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 38px;
}

.teamlog-globe-stats > div {
    min-height: 108px;
    padding: 17px 15px;
    border: 1px solid var(--teamlog-white);
    background: var(--teamlog-white);
}

.teamlog-globe-stats strong {
    display: block;
    margin-bottom: 6px;
    color: var(--teamlog-green);
    font-size: 24px;
    font-weight: 500;
}

.teamlog-globe-stats span {
    display: block;
    color: var(--teamlog-black);
    font-size: 12px;
    line-height: 1.4;
}

.teamlog-globe-stage {
    position: relative;
    width: 100%;
    height: calc(var(--teamlog-globe-height) - 40px);
    min-height: 520px;
}

.teamlog-globe-canvas {
    position: absolute;
    inset: 0;
    cursor: grab;
    touch-action: pan-y;
}

.teamlog-globe-canvas:active {
    cursor: grabbing;
}

.teamlog-globe-canvas canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.teamlog-globe-card {
    position: absolute;
    left: 22px;
    bottom: 35px;
    z-index: 10;
    width: min(310px, calc(100% - 44px));
    padding: 22px;
    border: 1px solid var(--teamlog-green);
    background: var(--teamlog-white);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}

.teamlog-globe-card.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.teamlog-globe-card::before,
.teamlog-globe-card::after {
    position: absolute;
    width: 22px;
    height: 22px;
    content: "";
    pointer-events: none;
}

.teamlog-globe-card::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid var(--teamlog-green);
    border-left: 2px solid var(--teamlog-green);
}

.teamlog-globe-card::after {
    right: -1px;
    bottom: -1px;
    border-right: 2px solid var(--teamlog-green);
    border-bottom: 2px solid var(--teamlog-green);
}

.teamlog-globe-card-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--teamlog-black);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.teamlog-globe-card-close:hover {
    color: var(--teamlog-green);
}

.teamlog-globe-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border: 1px solid var(--teamlog-green);
    border-radius: 50%;
    background: var(--teamlog-white);
    color: var(--teamlog-green);
    font-size: 20px;
}

.teamlog-globe-card-title {
    display: block;
    padding-right: 20px;
    color: var(--teamlog-black);
    font-size: 20px;
    font-weight: 500;
}

.teamlog-globe-card-location {
    display: block;
    margin-top: 5px;
    color: var(--teamlog-green);
    font-size: 13px;
}

.teamlog-globe-card-description {
    margin: 14px 0 0;
    color: rgba(17, 17, 17, 0.72);
    font-size: 14px;
    line-height: 1.6;
}

.teamlog-globe-card-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--teamlog-green);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.teamlog-globe-card-link:hover {
    color: var(--teamlog-black);
}

/* Controles manuales de zoom */
.teamlog-globe-zoom {
    position: absolute;
    top: 50%;
    right: 18px;
    z-index: 12;
    display: grid;
    gap: 6px;
    transform: translateY(-50%);
}

.teamlog-globe-zoom button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--teamlog-white);
    border-radius: 7px;
    background: var(--teamlog-white);
    color: var(--teamlog-green);
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        opacity 0.2s ease;
}

.teamlog-globe-zoom button:hover:not(:disabled),
.teamlog-globe-zoom button:focus-visible:not(:disabled) {
    border-color: var(--teamlog-white);
    background: var(--teamlog-green);
    color: var(--teamlog-white);
}

.teamlog-globe-zoom button:disabled {
    opacity: 0.38;
    cursor: default;
}

@media (max-width: 1050px) {
    .teamlog-globe-content {
        grid-template-columns: 1fr;
        padding: 55px 25px 20px;
    }

    .teamlog-globe-text {
        justify-self: center;
        max-width: 760px;
        margin: 0 auto;
        text-align: center;
    }

    .teamlog-globe-text > p {
        margin-right: auto;
        margin-left: auto;
    }

    .teamlog-globe-stage {
        height: 570px;
    }
}

@media (max-width: 767px) {
    .teamlog-globe-section {
        --teamlog-globe-height: auto;
    }

    .teamlog-globe-content {
        display: block;
        min-height: auto;
        padding: 50px 17px 15px;
    }

    .teamlog-globe-text h2 {
        font-size: 39px;
    }

    .teamlog-globe-text > p {
        font-size: 16px;
    }

    .teamlog-globe-stats {
        grid-template-columns: 1fr;
    }

    .teamlog-globe-stats > div {
        min-height: auto;
    }

    .teamlog-globe-stage {
        height: 500px;
        min-height: 500px;
        margin-top: 15px;
    }

    .teamlog-globe-card {
        right: 12px;
        bottom: 40px;
        left: 12px;
        width: auto;
    }

    .teamlog-globe-zoom {
        top: 18px;
        right: 12px;
        transform: none;
    }

    .teamlog-globe-zoom button {
        width: 41px;
        height: 41px;
        font-size: 23px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .teamlog-globe-card {
        transition: none;
    }
}
