/* ==========================================================================
   MAPA ALCANCE INTERNACIONAL (La Firma v2)
   Mapa mundial con pins tipo "bounce" animados
   Fondo: degradado suave blanco → crema
   ========================================================================== */

/* ---------- SECCIÓN COMPLETA CON DEGRADADO ---------- */
.bvb-map-firma-v2 {
    padding: 80px 0 100px;
    /* Degradado suave: blanco arriba, crema abajo */
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #ffffff 35%,
        #faf8f3 65%,
        #f5f0e6 100%
    );
}

.bvb-map-firma-v2__header {
    margin-bottom: 50px;
    max-width: 720px;
}

/* ---------- TÍTULO DORADO ---------- */
.bvb-map-firma-v2__title {
    font-family: 'Roboto Serif', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    line-height: 1.15;
    color: #b8860b;
    margin: 0 0 25px 0;
    letter-spacing: -0.01em;
}

/* ---------- TEXTO DESCRIPTIVO ---------- */
.bvb-map-firma-v2__subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    max-width: 620px;
    margin: 0;
}

/* ---------- STAGE DEL MAPA ---------- */
.bvb-map-firma-v2__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 2.2 / 1;
    max-height: 500px;
    overflow: visible;
}

.bvb-map-firma-v2__base {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.bvb-map-firma-v2__pins {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ---------- PIN INDIVIDUAL ---------- */
.bvb-map-pin {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -100%);
    pointer-events: auto;
    cursor: default;
    opacity: 0;
    animation: pin-appear 0.6s ease var(--delay) forwards;
}

/* Entrada en cascada */
@keyframes pin-appear {
    from {
        opacity: 0;
        transform: translate(-50%, -100%) scale(0) rotate(-20deg);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -100%) scale(1) rotate(0);
    }
}

/* Sombra del pin */
.bvb-map-pin__shadow {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 6px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    filter: blur(2px);
    animation: shadow-bounce 2.5s ease-in-out infinite;
    animation-delay: var(--delay);
}

/* Icono del pin con bounce */
.bvb-map-pin__icon {
    display: block;
    transform-origin: bottom center;
    animation: pin-bounce 2.5s ease-in-out infinite;
    animation-delay: var(--delay);
    filter: drop-shadow(0 4px 6px rgba(184, 134, 11, 0.25));
}

/* Etiqueta bajo el pin */
.bvb-map-pin__label {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #555;
    white-space: nowrap;
    opacity: 0;
    animation: label-fade 0.4s ease calc(var(--delay) + 500ms) forwards;
}

@keyframes label-fade {
    to { opacity: 1; }
}

/* Animación de salto del pin */
@keyframes pin-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    15% { transform: translateY(-14px) scale(1.05); }
    30% { transform: translateY(0) scale(0.95); }
    45% { transform: translateY(-6px) scale(1.02); }
    60% { transform: translateY(0) scale(1); }
}

/* Animación de la sombra */
@keyframes shadow-bounce {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.4; }
    15% { transform: translateX(-50%) scale(0.5); opacity: 0.15; }
    30% { transform: translateX(-50%) scale(1.1); opacity: 0.5; }
    45% { transform: translateX(-50%) scale(0.7); opacity: 0.25; }
    60% { transform: translateX(-50%) scale(1); opacity: 0.4; }
}

/* Hover: pin se agranda y deja de saltar */
.bvb-map-pin:hover .bvb-map-pin__icon {
    animation-play-state: paused;
    transform: translateY(-8px) scale(1.15);
    transition: transform 0.3s ease;
}

.bvb-map-pin:hover .bvb-map-pin__shadow {
    animation-play-state: paused;
    transform: translateX(-50%) scale(0.6);
    opacity: 0.2;
    transition: all 0.3s ease;
}

.bvb-map-pin:hover .bvb-map-pin__label {
    color: #b8860b;
    font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE TABLET (max-width: 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    .bvb-map-firma-v2 {
        padding: 60px 0 80px;
    }

    .bvb-map-firma-v2__header {
        margin-bottom: 35px;
    }

    .bvb-map-firma-v2__title {
        font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    }

    .bvb-map-firma-v2__subtitle {
        font-size: 0.95rem;
    }

    .bvb-map-firma-v2__stage {
        aspect-ratio: 1.8 / 1;
        max-height: 450px;
    }

    .bvb-map-pin__icon {
        width: 22px;
        height: 30px;
    }

    .bvb-map-pin__shadow {
        width: 14px;
        height: 5px;
    }

    .bvb-map-pin__label {
        font-size: 0.7rem;
    }
}

/* ==========================================================================
   RESPONSIVE MÓVIL (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .bvb-map-firma-v2 {
        padding: 40px 0 60px;
    }

    .bvb-map-firma-v2__header {
        margin-bottom: 25px;
    }

    .bvb-map-firma-v2__title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .bvb-map-firma-v2__subtitle {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .bvb-map-firma-v2__stage {
        aspect-ratio: 1.4 / 1;
        max-height: 350px;
    }

    .bvb-map-pin__icon {
        width: 18px;
        height: 24px;
    }

    .bvb-map-pin__shadow {
        width: 12px;
        height: 4px;
        bottom: -4px;
    }

    .bvb-map-pin__label {
        display: none;
    }

    @keyframes pin-bounce {
        0%, 100% { transform: translateY(0) scale(1); }
        15% { transform: translateY(-8px) scale(1.05); }
        30% { transform: translateY(0) scale(0.95); }
        45% { transform: translateY(-4px) scale(1.02); }
        60% { transform: translateY(0) scale(1); }
    }
}

/* ==========================================================================
   RESPONSIVE MÓVIL PEQUEÑO (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
    .bvb-map-firma-v2__stage {
        aspect-ratio: 1.2 / 1;
        max-height: 280px;
    }

    .bvb-map-pin__icon {
        width: 16px;
        height: 20px;
    }

    .bvb-map-pin__shadow {
        width: 10px;
        height: 3px;
    }
}