@charset "UTF-8";
/* ==========================================================================
   lafabricadepegatinas v.2027 — MAPA MUNDIAL
   Archivo: css/mapa.css
   ========================================================================== */

.map-section {
    background: var(--lfdp-bg);
    padding: var(--lfdp-space-xxl) 0;
    overflow: hidden;
    position: relative;
}

/* Header */
.map-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--lfdp-space-lg);
    padding: 0 var(--lfdp-space-md);
}

.map-header__kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lfdp-accent);
    margin-bottom: var(--lfdp-space-sm);
}

.map-header__title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--lfdp-txt);
    margin-bottom: var(--lfdp-space-sm);
}

.map-header__title span {
    background: var(--lfdp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.map-header__sub {
    font-size: 0.95rem;
    color: var(--lfdp-txt3);
    line-height: 1.65;
}

/* Wrapper del mapa */
.map-wrap {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--lfdp-space-md);
    user-select: none;
}

/* Imagen del mapa */
.map-svg {
    width: 100%;
    height: auto;
    display: block;
    /* Tinte púrpura suave sobre el gris del PNG */
    filter: sepia(1) hue-rotate(250deg) saturate(0.35) brightness(1.05);
    border-radius: 4px;
}

/* Overlay de puntos — encima del SVG */
.map-points {
    position: absolute;
    inset: 0;
}

/* Punto base */
.map-dot {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
}

/* El punto origen siempre encima de cualquier otro */
.map-dot--origin {
    z-index: 30;
}

.map-dot__ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1.5px solid rgba(153,51,153,0.4);
    animation: dot-ring 2.5s ease-out infinite;
    opacity: 0;
}

.map-dot__core {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--lfdp-gradient);
    box-shadow: 0 0 0 2px rgba(153,51,153,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 1;
}

.map-dot:hover .map-dot__core {
    transform: scale(1.5);
    box-shadow: 0 0 0 4px rgba(153,51,153,0.25);
}

/* Punto de Sevilla — especial */
.map-dot--origin .map-dot__core {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #f5a623, #f7c948);  /* dorado LFDP origen */
    box-shadow: 0 0 12px rgba(245,166,35,0.55);
}

.map-dot--origin .map-dot__ring {
    animation-delay: 0s;
    border-color: rgba(245,166,35,0.6);
}

.map-dot--origin .map-dot__ring:nth-child(2) {
    animation-delay: 0.8s;
    inset: -16px;
    border-color: rgba(245,166,35,0.35);
}

@keyframes dot-ring {
    0%   { opacity: 0.8; transform: scale(0.5); }
    100% { opacity: 0;   transform: scale(2.2); }
}

/* Tooltip */
.map-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--lfdp-bg);
    border: 1px solid var(--lfdp-border2);
    border-radius: var(--lfdp-radius-md);
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--lfdp-txt);
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    transform: translateX(-50%) translateY(4px);
}

.map-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--lfdp-border2);
}

.map-dot:hover .map-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================
   TARJETA DE SEVILLA — credencial de misión
   ============================================================ */

.map-card {
    position: absolute;
    z-index: 20;
    width: 220px;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(16px) saturate(1.8);
    -webkit-backdrop-filter: blur(16px) saturate(1.8);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(153,51,153,0.18);
    box-shadow:
        0 0 0 0.5px rgba(153,51,153,0.10),
        0 8px 40px rgba(153,51,153,0.16),
        0 2px 8px rgba(0,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,0.9);
    /* Oculta por defecto */
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -115%) rotate(-1.5deg) scale(0.88);
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center bottom;
}

.map-card.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -115%) rotate(-1.5deg) scale(1);
    animation: card-float 5s ease-in-out infinite;
    animation-delay: 0.3s;
}

@keyframes card-float {
    0%, 100% { transform: translate(-50%, -115%) rotate(-1.5deg); }
    50%       { transform: translate(-50%, -125%) rotate(-1.5deg); }
}

/* Botón cerrar */
.map-card__close {
    position: absolute;
    top: 8px; right: 8px;
    z-index: 10;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.35);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    line-height: 1;
    transition: background 0.15s;
    padding: 0;
    font-family: inherit;
}

.map-card__close:hover {
    background: rgba(255,255,255,0.4);
}

/* Header — franja con acento dorado para el punto origen */
.map-card__head {
    background: linear-gradient(135deg, #d4860a 0%, #f5a623 50%, #f7c948 100%);
    padding: 14px 14px 10px;
    position: relative;
    overflow: hidden;
}

.map-card__head::before {
    content: '';
    position: absolute;
    top: -30px; right: -20px;
    width: 90px; height: 90px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
}

.map-card__head::after {
    content: '';
    position: absolute;
    bottom: -20px; left: 10px;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.map-card__logo-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.map-card__logo {
    display: block;
    height: 20px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.map-card__badge {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.18);
    padding: 2px 6px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.25);
}

.map-card__location {
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

.map-card__flag {
    font-size: 1.1rem;
    line-height: 1;
    display: block;
    margin-bottom: 2px;
}

.map-card__city {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1;
    display: block;
    text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.map-card__region {
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: block;
    margin-top: 1px;
}

/* Cuerpo con stats */
.map-card__body {
    padding: 12px 14px 14px;
}

.map-card__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.map-card__stat {
    background: rgba(153,51,153,0.05);
    border: 1px solid rgba(153,51,153,0.10);
    border-radius: 8px;
    padding: 7px 8px;
    text-align: center;
}

.map-card__stat-num {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #d4860a, #f7c948);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: block;
}

.map-card__stat-lbl {
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--lfdp-txt3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-top: 2px;
}

/* Barra de progreso del año */
.map-card__progress-wrap {
    margin-bottom: 10px;
}

.map-card__progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--lfdp-txt3);
    margin-bottom: 4px;
}

.map-card__progress-label span:last-child {
    color: var(--lfdp-accent);
}

.map-card__progress-track {
    height: 4px;
    background: rgba(153,51,153,0.12);
    border-radius: 99px;
    overflow: hidden;
}

.map-card__progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #f5a623, #f7c948);
    border-radius: 99px;
    transition: width 1.2s ease;
}

/* Coordenadas */
.map-card__coords {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--lfdp-txt4);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.map-card__coords i {
    color: var(--lfdp-accent);
    font-size: 0.6rem;
}

/* Conector al punto */
.map-card__connector {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.map-card__connector-line {
    width: 1.5px;
    height: 16px;
    background: linear-gradient(to bottom, rgba(153,51,153,0.5), rgba(153,51,153,0.1));
}

.map-card__connector-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--lfdp-accent);
    box-shadow: 0 0 6px rgba(153,51,153,0.6);
}

@media (max-width: 600px) {
    .map-card { width: 170px; }
    .map-card__city { font-size: 1.1rem; }
    .map-card__stat-num { font-size: 0.95rem; }
}

/* Países — contador */
.map-countries {
    display: flex;
    gap: var(--lfdp-space-xl);
    justify-content: center;
    margin-top: var(--lfdp-space-lg);
    flex-wrap: wrap;
}

.map-stat {
    text-align: center;
}

.map-stat__num {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--lfdp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px;
}

.map-stat__label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--lfdp-txt3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@media (max-width: 600px) {
    .map-card { width: 180px; }
    .map-dot__core { width: 7px; height: 7px; }
    .map-dot--origin .map-dot__core { width: 10px; height: 10px; }
}
