/* Variables y Reset */
:root {
    --primary: #2ecc71;
    --dark: #2c3e50;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, sans-serif; }

body { 
    background: #f0f4f8; color: var(--dark);
}

body.map-body {
    overflow: hidden; height: 100vh; display: flex; flex-direction: column;
}

/* Formas de fondo para dar toque moderno */
.bg-shape { position: absolute; border-radius: 50%; filter: blur(80px); z-index: -1; opacity: 0.6; }
.shape-1 { width: 400px; height: 400px; background: #2ecc71; top: -100px; left: -100px; }
.shape-2 { width: 500px; height: 500px; background: #3498db; bottom: -150px; right: -100px; }

/* Contenedor Principal */
.app-container { display: flex; flex-direction: column; height: 100vh; padding: 20px; }

/* Cabecera Glassmorphism */
.glass-header {
    background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border); border-radius: 16px; padding: 15px 30px;
    display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow);
    margin-bottom: 20px; z-index: 10;
}

.tabs { display: flex; gap: 10px; background: rgba(0,0,0,0.05); padding: 5px; border-radius: 10px;}
.tab-btn { 
    padding: 10px 20px; border: none; background: transparent; border-radius: 8px; 
    font-weight: 600; cursor: pointer; transition: 0.3s; color: #555;
}
.tab-btn.active { background: white; color: var(--primary); box-shadow: 0 2px 10px rgba(0,0,0,0.1); }

/* Área del Mapa Adaptable */
.map-area {
    flex-grow: 1; display: flex; justify-content: center; align-items: center; 
    overflow: hidden; position: relative;
}

#image-wrapper {
    position: relative; display: inline-block;
    max-width: 100%; max-height: 100%; border-radius: 16px; box-shadow: var(--shadow);
}

#main-image {
    display: block; max-width: 100%; max-height: calc(100vh - 140px); /* Restamos la cabecera */
    object-fit: contain; border-radius: 16px;
}

/* Puntos (Hotspots) Modernos */
.hotspot-dot {
    position: absolute; width: 28px; height: 28px; background: var(--primary);
    border: 4px solid white; border-radius: 50%; transform: translate(-50%, -50%);
    cursor: pointer; box-shadow: 0 4px 15px rgba(46, 204, 113, 0.6); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 10;
}
.hotspot-dot::before {
    content: ''; position: absolute; top: -15px; left: -15px; right: -15px; bottom: -15px;
    border-radius: 50%; z-index: -1;
}
.hotspot-dot:hover { transform: translate(-50%, -50%) scale(1.3); background: #27ae60; }
.hotspot-dot::after { /* Efecto de pulso */
    content: ''; position: absolute; width: 100%; height: 100%; top: -4px; left: -4px;
    border-radius: 50%; border: 4px solid var(--primary); animation: pulse 2s infinite; opacity: 0; pointer-events: none;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.8); opacity: 0; } }

/* Tarjeta Hover (Glassmorphism) */
.glass-card {
    position: absolute; width: 280px; background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border); border-radius: 16px; box-shadow: var(--shadow);
    pointer-events: none; z-index: 100; overflow: hidden;
    opacity: 0; transform: translateY(15px); transition: opacity 0.3s ease, transform 0.3s ease;
}
.glass-card.visible { opacity: 1; transform: translateY(0); pointer-events: none; }

.card-image-container { width: 100%; height: 140px; overflow: hidden; background: #eee;}
#card-img { width: 100%; height: 100%; object-fit: cover; }
.card-content { padding: 15px 20px; }
#card-title { font-size: 18px; color: var(--dark); margin-bottom: 8px; }
#card-desc { font-size: 13px; color: #666; line-height: 1.5; margin-bottom: 15px; }
.modern-link { display: inline-block; font-size: 13px; font-weight: bold; color: var(--primary); }
.hidden { display: none !important; }