/* — ESTILOS DEL MAPA MUNDIAL — */
/* Contenedor principal */
.mapa-area-viajes {
position: relative;
width: 100%;
margin: 20px 0;
text-align: center; /* Centra el botón */
}
/* Botón de Explorar */
.va-mapa-btn {
display: inline-block;
background: #0ea5e9; /* Color azul (cámbialo por tu color) */
color: #fff;
border-radius: 10px;
padding: 10px 16px;
font-weight: 600;
border: none;
cursor: pointer;
margin-bottom: 15px;
transition: background .2s ease;
}
.va-mapa-btn:hover {
background: #0284c7; /* Color al pasar el ratón */
}
/* Contenedor del SVG */
.map-wrap-viajes {
width: 100%;
max-width: 1200px;
margin: auto;
border: 1px solid #e2e8f0;
border-radius: 12px;
overflow: hidden; /* Importante para que el SVG no se salga */
}
/* El mapa SVG */
.map-wrap-viajes svg {
width: 100%;
height: auto;
display: block;
/* Por defecto, el móvil puede hacer scroll normal */
touch-action: auto;
}
/* CLASE MÁGICA: Cuando el modo explorar está ACTIVO */
.map-wrap-viajes.va-explorando svg {
/* Le decimos al móvil: «deja que el JS gestione los gestos» */
touch-action: none;
cursor: grab; /* Muestra una mano para arrastrar */
}
/* Estilo de los países */
.map-wrap-viajes svg path {
fill: #dbe4ea; /* Color base de los países (gris claro) */
stroke: #fff; /* Color de las fronteras */
stroke-width: 0.5px;
transition: fill .2s ease;
}
/* Estilo al pasar el ratón (hover) */
.map-wrap-viajes svg path:hover {
fill: #6cc3df; /* Color hover (azul claro) */
}
/* El Tooltip (ventanita) */
.va-mapa-tooltip {
position: fixed;
pointer-events: none; /* No se puede hacer clic en el tooltip */
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 12px;
padding: 10px 12px;
box-shadow: 0 8px 24px rgba(0,0,0,.1);
z-index: 9999;
opacity: 0;
transform: translateY(10px);
transition: opacity .15s ease, transform .15s ease;
max-width: 220px;
}
.va-mapa-tooltip.show {
opacity: 1;
transform: translateY(0);
}
.va-mapa-tooltip .flag { font-size: 20px; margin-right: 8px; }
.va-mapa-tooltip .title { font-weight: 600; }
.va-mapa-tooltip .cta {
display: block;
margin-top: 8px;
padding: 6px 10px;
border-radius: 8px;
background: #0ea5e9;
color: #fff;
text-decoration: none;
font-weight: 600;
text-align: center;
}
.va-mapa-tooltip .cta.disabled {
background: #94a3b8; /* Color del botón desactivado */
pointer-events: none;
}
/* — FIN ESTILOS MAPA — */

