  * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 50%, #0f172a 100%);
            color: #e0e0e0;
            overflow-x: hidden;
        }

        #alert-bar {
            background: linear-gradient(90deg, #1e3a8a 0%, #1e40af 100%);
            padding: 15px 20px;
            box-shadow: 0 4px 20px rgba(0, 255, 255, 0.3);
            border-bottom: 2px solid #00ffff;
        }

        .alert-item {
            display: flex;
            align-items: center;
            margin: 8px 0;
            padding: 12px;
            background: rgba(0, 0, 0, 0.4);
            border-left: 4px solid #00ffff;
            border-radius: 4px;
            animation: slideIn 0.5s ease;
        }

        @keyframes slideIn {
            from { transform: translateX(-100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        .alert-danger { border-left-color: #ff006e; }
        .alert-warning { border-left-color: #ffd60a; }
        .alert-safe { border-left-color: #00ff41; }

        .alert-icon {
            font-size: 24px;
            margin-right: 15px;
        }

        .alert-time {
            font-size: 12px;
            color: #888;
            margin-left: auto;
        }

        header {
            background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
            padding: 20px;
            text-align: center;
            border-bottom: 3px solid #00ffff;
            box-shadow: 0 4px 30px rgba(0, 255, 255, 0.5);
        }

        h1 {
            font-size: 2.5em;
            color: #00ffff;
            text-shadow: 0 0 20px #00ffff, 0 0 40px #00ffff;
            letter-spacing: 3px;
            margin-bottom: 10px;
        }

        .subtitle {
            color: #00ff41;
            font-size: 1.1em;
            text-shadow: 0 0 10px #00ff41;
        }

        .container {
            display: grid;
            grid-template-columns: 350px 1fr 350px;
            gap: 20px;
            padding: 20px;
            max-width: 1800px;
            margin: 0 auto;
        }

        .panel {
            background: rgba(15, 23, 42, 0.8);
            border: 2px solid #00ffff;
            border-radius: 15px;
            padding: 20px;
            backdrop-filter: blur(10px);
            box-shadow: 0 8px 32px rgba(0, 255, 255, 0.2);
        }

        .panel h2 {
            color: #00ffff;
            text-shadow: 0 0 10px #00ffff;
            margin-bottom: 20px;
            font-size: 1.5em;
            border-bottom: 2px solid #00ffff;
            padding-bottom: 10px;
        }

        .filter-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            padding: 15px;
            margin: 10px 0;
            background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
            border: 2px solid #00ffff;
            border-radius: 10px;
            color: #00ffff;
            font-size: 1.1em;
            cursor: pointer;
            transition: all 0.3s ease;
            text-shadow: 0 0 5px #00ffff;
        }

        .filter-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 255, 255, 0.5);
            background: linear-gradient(135deg, #334155 0%, #475569 100%);
        }

        .filter-btn.active {
            background: linear-gradient(135deg, #00ffff 0%, #00cc99 100%);
            color: #0a0e27;
            text-shadow: none;
            box-shadow: 0 0 30px #00ffff;
        }

        .filter-btn.water { border-color: #00ffff; }
        .filter-btn.shelter { border-color: #ffd60a; }
        .filter-btn.safe { border-color: #00ff41; }
        .filter-btn.green { border-color: #7fff00; }

        .filter-btn.water.active { background: linear-gradient(135deg, #00ffff 0%, #0099cc 100%); }
        .filter-btn.shelter.active { background: linear-gradient(135deg, #ffd60a 0%, #ff9500 100%); }
        .filter-btn.safe.active { background: linear-gradient(135deg, #00ff41 0%, #00cc33 100%); }
        .filter-btn.green.active { background: linear-gradient(135deg, #7fff00 0%, #66cc00 100%); }

        .btn-icon {
            font-size: 1.5em;
            margin-right: 10px;
        }

        #map {
            height: 600px;
            border: 3px solid #00ffff;
            border-radius: 15px;
            box-shadow: 0 0 40px rgba(0, 255, 255, 0.4);
        }

        .resource-list {
            max-height: 500px;
            overflow-y: auto;
        }

        .resource-item {
            background: rgba(30, 41, 59, 0.6);
            border-left: 4px solid #00ffff;
            padding: 15px;
            margin: 10px 0;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .resource-item:hover {
            transform: translateX(5px);
            box-shadow: 0 4px 20px rgba(0, 255, 255, 0.3);
        }

        .resource-item h4 {
            color: #00ffff;
            margin-bottom: 8px;
        }

        .resource-item.water { border-left-color: #00ffff; }
        .resource-item.shelter { border-left-color: #ffd60a; }
        .resource-item.safe { border-left-color: #00ff41; }
        .resource-item.green { border-left-color: #7fff00; }

        .guide-section {
            margin: 15px 0;
            padding: 15px;
            background: rgba(30, 41, 59, 0.5);
            border-radius: 8px;
            border-left: 4px solid #00ff41;
        }

        .guide-section h3 {
            color: #00ff41;
            margin-bottom: 10px;
            text-shadow: 0 0 8px #00ff41;
        }

        .guide-section ul {
            list-style: none;
            padding-left: 10px;
        }

        .guide-section li {
            margin: 8px 0;
            padding-left: 20px;
            position: relative;
        }

        .guide-section li:before {
            content: "▸";
            color: #00ff41;
            position: absolute;
            left: 0;
        }

        #chat-messages {
            height: 350px;
            overflow-y: auto;
            background: rgba(10, 14, 39, 0.7);
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 15px;
        }

        .message {
            background: rgba(30, 41, 59, 0.8);
            padding: 12px;
            margin: 8px 0;
            border-radius: 8px;
            border-left: 3px solid #00ffff;
        }

        .message-user {
            color: #00ffff;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .message-time {
            font-size: 11px;
            color: #888;
        }

        .chat-input-group {
            display: flex;
            gap: 10px;
        }

        input[type="text"], textarea {
            flex: 1;
            padding: 12px;
            background: rgba(30, 41, 59, 0.8);
            border: 2px solid #00ffff;
            border-radius: 8px;
            color: #e0e0e0;
            font-size: 14px;
        }

        input[type="text"]:focus, textarea:focus {
            outline: none;
            box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
        }

        button {
            padding: 12px 25px;
            background: linear-gradient(135deg, #00ffff 0%, #00cc99 100%);
            border: none;
            border-radius: 8px;
            color: #0a0e27;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            font-size: 14px;
        }

        button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 255, 255, 0.6);
        }

        ::-webkit-scrollbar {
            width: 10px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(10, 14, 39, 0.5);
        }

        ::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, #00ffff 0%, #00cc99 100%);
            border-radius: 5px;
        }

        .tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }

        .tab {
            flex: 1;
            padding: 12px;
            background: rgba(30, 41, 59, 0.6);
            border: 2px solid #00ffff;
            border-radius: 8px;
            color: #00ffff;
            cursor: pointer;
            text-align: center;
            transition: all 0.3s ease;
        }

        .tab:hover {
            background: rgba(30, 41, 59, 0.9);
        }

        .tab.active {
            background: linear-gradient(135deg, #00ffff 0%, #00cc99 100%);
            color: #0a0e27;
            box-shadow: 0 0 20px #00ffff;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        @media (max-width: 1400px) {
            .container {
                grid-template-columns: 300px 1fr 300px;
            }
        }

        @media (max-width: 1024px) {
            .container {
                grid-template-columns: 1fr;
            }
            
            #map {
                height: 400px;
            }
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        .pulse {
            animation: pulse 2s infinite;
        }

        .stats {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-bottom: 20px;
        }

        .stat-box {
            background: rgba(30, 41, 59, 0.6);
            padding: 15px;
            border-radius: 8px;
            border: 2px solid #00ffff;
            text-align: center;
        }

        .stat-number {
            font-size: 2em;
            color: #00ffff;
            text-shadow: 0 0 10px #00ffff;
            font-weight: bold;
        }

        .stat-label {
            font-size: 0.9em;
            color: #888;
            margin-top: 5px;
        }

        /* Estilos para el buscador de rutas */
        .route-search {
            margin: 20px 0;
            padding: 15px;
            background: rgba(30, 41, 59, 0.6);
            border-radius: 8px;
            border: 2px solid #ffd60a;
        }

        .route-search h3 {
            color: #ffd60a;
            margin-bottom: 15px;
            text-shadow: 0 0 10px #ffd60a;
        }

        .route-input-group {
            margin-bottom: 10px;
        }

        .route-input-group label {
            display: block;
            color: #00ffff;
            margin-bottom: 5px;
            font-size: 0.9em;
        }

        .route-info {
            margin-top: 15px;
            padding: 15px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 8px;
            border-left: 4px solid #00ff41;
        }

        .route-info p {
            margin: 5px 0;
            color: #e0e0e0;
        }

        .route-info strong {
            color: #00ffff;
        }

        /* Estilos para el reproductor de música */
        .music-player {
            margin-top: 20px;
            padding: 15px;
            background: rgba(30, 41, 59, 0.6);
            border-radius: 8px;
            border: 2px solid #ff006e;
        }

        .music-player h3 {
            color: #ff006e;
            margin-bottom: 15px;
            text-shadow: 0 0 10px #ff006e;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .track-info {
            background: rgba(0, 0, 0, 0.3);
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 15px;
        }

        .track-info h4 {
            color: #00ffff;
            margin-bottom: 5px;
        }

        .track-info p {
            color: #888;
            font-size: 0.9em;
        }

        .music-controls {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }

        .music-controls button {
            flex: 1;
            padding: 10px;
            font-size: 0.9em;
        }

        .playlist-item {
            background: rgba(30, 41, 59, 0.4);
            padding: 10px;
            margin: 8px 0;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
            border-left: 3px solid #ff006e;
        }

        .playlist-item:hover {
            background: rgba(30, 41, 59, 0.7);
            transform: translateX(5px);
        }

        .playlist-item.active {
            background: rgba(255, 0, 110, 0.2);
            border-left-color: #00ffff;
        }