﻿/* =========================================================
   --- SECCIÓN 5: UBICACIÓN (ESTILO GALERÍA EDITORIAL) ---
   ========================================================= */

#ubicacion {
    background-color: #FFFFFF;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    position: relative;
    padding: 0;
    overflow: hidden;
}

.split-wrapper {
    display: flex;
    min-height: 800px;
    width: 100%;
}

/* --- LADO TEXTO --- */
.location-text-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5%;
}

.text-content-centered {
    max-width: 480px;
}

.location-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(232, 180, 97, 0.1);
    color: #E8B461;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 100px;
    margin-bottom: 25px;
}

.location-kicker {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #A0AEC0;
    margin-bottom: 10px;
    display: block;
}

.location-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    line-height: 1;
    color: #1B2632;
    margin-bottom: 30px;
}

    .location-title strong {
        font-weight: 900;
        color: #1B2632;
        display: block;
    }

.location-description {
    font-size: 1.15rem;
    color: #4A5568;
    line-height: 1.8;
    margin-bottom: 45px;
}

/* Data Grid Refinado */
.location-data-grid {
    display: flex;
    flex-direction: column;
    gap: 35px;
    margin-bottom: 60px;
}

.data-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.data-icon-premium {
    width: 50px;
    height: 50px;
    background: #FFFFFF;
    color: #E8B461;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    flex-shrink: 0;
}

.data-info strong {
    display: block;
    font-size: 1.1rem;
    color: #1B2632;
    margin-bottom: 4px;
}

.data-info span {
    font-size: 0.95rem;
    color: #718096;
}

/* Botón CTA */
.btn-location-premium {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: #1B2632;
    color: #FFFFFF;
    padding: 10px 10px 10px 30px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.4s ease;
}

.btn-icon-circle {
    width: 40px;
    height: 40px;
    background: #E8B461;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1B2632;
    transition: transform 0.3s ease;
}

.btn-location-premium:hover {
    background: #2D3748;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

    .btn-location-premium:hover .btn-icon-circle {
        transform: rotate(-45deg);
    }

/* --- LADO VISUAL --- */
.location-visual-side {
    flex: 1.2;
    background: #F9F9F9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.map-artwork-container {
    width: 100%;
    max-width: 700px;
    position: relative;
}

.map-floating-frame {
    position: relative;
    background: #FFFFFF;
    padding: 15px;
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.1);
    overflow: hidden;
    cursor: zoom-in;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block;
    z-index: 10;
}

.map-image-main {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

.map-status-pill {
    position: absolute;
    top: 35px;
    right: 35px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #1B2632;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #68D391;
    border-radius: 50%;
    animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(104, 211, 145, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(104, 211, 145, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(104, 211, 145, 0);
    }
}

.map-footer-data {
    display: flex;
    justify-content: space-between;
    padding: 20px 10px 10px;
}

.coordinates-box .label, .altitud-box .label {
    display: block;
    font-size: 0.55rem;
    font-weight: 800;
    color: #A0AEC0;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.coordinates-box .value, .altitud-box .value {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: #4A5568;
}

/* --- ZOOM --- */
.zoom-checkbox {
    display: none;
}

.zoom-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(27, 38, 50, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
    pointer-events: none;
}

    .zoom-hint svg {
        width: 18px;
        height: 18px;
    }

    .zoom-hint span {
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

.map-floating-frame:hover .zoom-hint {
    opacity: 1;
}

.zoom-checkbox:checked ~ .map-floating-frame {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 80vw;
    max-width: 900px;
    height: auto;
    z-index: 9999;
    cursor: zoom-out;
    padding: 20px;
}

    .zoom-checkbox:checked ~ .map-floating-frame .zoom-hint {
        display: none;
    }

.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 9998;
}

.zoom-checkbox:checked ~ .zoom-overlay {
    opacity: 1;
    visibility: visible;
}

.zoom-checkbox:checked ~ .map-floating-frame .map-image-main {
    max-height: 70vh;
    object-fit: contain;
}

/* =========================================================
   TÍTULO UBICACIÓN ESTRATÉGICA — letras asimétricas
   Desktop: dos líneas (UBICACIÓN arriba, ESTRATÉGICA abajo)
   ========================================================= */

#ubicacion .location-kicker-blocks {
    display: flex;
    flex-direction: column; /* ← dos líneas en desktop */
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
}

#ubicacion .location-kicker-word {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
}

    #ubicacion .location-kicker-word span {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px; /* ← más grande que antes */
        height: 44px;
        font-size: 1rem; /* ← más legible */
        font-weight: 900;
        color: #1B2632;
        box-shadow: 0 4px 10px rgba(0,0,0,0.06);
        border: 1px solid rgba(0,0,0,0.08);
        cursor: default;
        user-select: none;
        transition: all 0.3s ease;
    }

/* Formas asimétricas */
#ubicacion .lb-1 {
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
    background: #ffffff;
}

#ubicacion .lb-2 {
    clip-path: polygon(0% 0%, 100% 5%, 95% 100%, 5% 95%);
    background: #f5f5f5;
}

#ubicacion .lb-3 {
    clip-path: polygon(5% 0%, 95% 5%, 100% 100%, 0% 90%);
    background: #ffffff;
}

#ubicacion .lb-4 {
    clip-path: polygon(0% 5%, 90% 0%, 100% 95%, 10% 100%);
    background: #f5f5f5;
}

#ubicacion .lb-5 {
    clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
    background: #ffffff;
}

#ubicacion .lb-6 {
    clip-path: polygon(0% 0%, 95% 8%, 100% 100%, 5% 92%);
    background: #f5f5f5;
}

#ubicacion .lb-7 {
    clip-path: polygon(5% 5%, 100% 0%, 95% 95%, 0% 100%);
    background: #ffffff;
}

#ubicacion .lb-8 {
    clip-path: polygon(0% 8%, 92% 0%, 100% 92%, 8% 100%);
    background: #f5f5f5;
}

#ubicacion .lb-9 {
    clip-path: polygon(10% 0%, 100% 5%, 90% 100%, 0% 95%);
    background: #ffffff;
}

#ubicacion .lb-10 {
    clip-path: polygon(0% 0%, 100% 8%, 100% 100%, 0% 92%);
    background: #f5f5f5;
}

#ubicacion .lb-11 {
    clip-path: polygon(5% 0%, 95% 5%, 100% 100%, 0% 95%);
    background: #ffffff;
}

#ubicacion .location-kicker-word span:hover {
    transform: translateY(-3px) scale(1.1);
    color: #C4954D;
}

/* =========================================================
   RESPONSIVE — 1200px
   ========================================================= */
@media (max-width: 1200px) {
    .split-wrapper {
        flex-direction: column;
    }

    .location-visual-side {
        padding: 40px 20px;
    }
}

/* =========================================================
   MOBILE — 768px (no tocar lo que ya funciona)
   ========================================================= */
@media (max-width: 768px) {

    #ubicacion .location-kicker-blocks {
        align-items: center; /* centrado en mobile */
        gap: 8px;
    }

    #ubicacion .location-kicker-word {
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
    }

        #ubicacion .location-kicker-word span {
            width: 24px;
            height: 30px;
            font-size: 0.68rem;
        }

    #ubicacion .split-wrapper {
        flex-direction: column;
    }

    #ubicacion .location-text-side {
        padding: 60px 24px 40px;
    }

    #ubicacion .text-content-centered {
        max-width: 100%;
        text-align: center;
    }

    #ubicacion .location-kicker-blocks {
        align-items: center;
    }

    #ubicacion .location-badge {
        display: block;
        text-align: center;
    }

    #ubicacion .data-item {
        justify-content: center;
        text-align: left;
    }

    #ubicacion .btn-location-premium {
        width: 100%;
        justify-content: space-between;
    }

    #ubicacion .location-visual-side {
        padding: 20px 16px 40px;
    }
}
