/* Estilos para el div de coordenadas del mouse */
#coordenadas-mouse {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255,255,255,0.95);
    color: #111;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    z-index: 1001;
    pointer-events: none;
    display: none;
}

/* Título de zonas */
.zonas-titulo {
    text-align: center;
    color: #d32f2f;
    margin-bottom: 20px;
}

/* Info de loading */
.btn-volver-index {
    display: inline-block;
    background: transparent;
    color: #111;
    border: none;
    border-radius: 5px;
    padding: 8px 18px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: none;
    transition: background 0.3s, color 0.3s, transform 0.2s;
    cursor: pointer;
    margin-right: 18px;
}

.btn-volver-index:hover {
    background: #c62828;
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none !important;
}
.loading-info {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}
 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
            background-color: #f8f9fa;
        }

        .header {
            background: #fff;
            color: #111;
            padding: 1.5rem 0;
            box-shadow: 0 6px 18px rgba(0,0,0,0.22);
            position: relative;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .header-main {
            text-align: center;
            flex: 1;
        }

        .header-main h1,
        .header-main p {
            color: #111;
        }

        .admin-button {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.3);
            padding: 10px 20px;
            border-radius: 25px;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            font-size: 14px;
            min-width: 140px;
            text-align: center;
        }

        .admin-button:hover {
            background: rgba(255, 255, 255, 0.3);
            border-color: rgba(255, 255, 255, 0.5);
            transform: scale(1.05);
            text-decoration: none;
            color: white;
        }

        .admin-button:before {
            content: '⚙️';
            margin-right: 8px;
        }

        .container {
            width: 94vw;
            max-width: 94vw;
            margin: 0 auto;
            padding: 0;
        }

        .instructions {
            background: white;
            padding: 20px;
            margin: 20px auto;
            border-radius: 10px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.16);
            text-align: center;
            width: 100%;
            max-width: 100%;
        }

        .instructions h3 {
            color: #111;
            margin-bottom: 10px;
        }

        .instructions p {
            color: #111;
            font-size: 16px;
        }

        .map-container {
            position: relative;
            background: white;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            overflow: hidden;
            width: 100%;
            max-width: 100%;
            margin: 0 auto 20px auto;
        }

        #mapa {
            width: 100%;
            height: 70vh;
            min-height: 500px;
            cursor: crosshair;
        }

        .zone-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            pointer-events: none;
            z-index: 1000;
        }

        .zone-label {
            position: absolute;
            background: rgba(211, 47, 47, 0.9);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-weight: bold;
            font-size: 14px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        }

        .zone-suroeste {
            background: #d9d9d9;
            color: #111;
            border-radius: 5px;
        }

        .zone-norte { top: 20px; left: 50%; transform: translateX(-50%); }
        .zone-sur { bottom: 20px; left: 50%; transform: translateX(-50%); }
        .zone-este { top: 50%; right: 20px; transform: translateY(-50%); }
        .zone-oeste { top: 50%; left: 20px; transform: translateY(-50%); }

        .location-info {
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            margin-bottom: 20px;
        }

        .info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }

        .info-item {
            padding: 15px;
            background: #f8f9fa;
            border-radius: 8px;
            border-left: 4px solid #d32f2f;
        }

        .info-item h4 {
            color: #d32f2f;
            margin-bottom: 5px;
            font-size: 16px;
        }

        .info-item p {
            color: #666;
            font-size: 14px;
        }

        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.8);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 9999;
        }

        .loading-content {
            background: white;
            padding: 30px;
            border-radius: 10px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }

        .spinner {
            width: 40px;
            height: 40px;
            border: 4px solid #f3f3f3;
            border-top: 4px solid #d32f2f;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 15px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .map-controls {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 1001;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .control-btn {
            background: #d9d9d9;
            border: 2px solid #ddd;
            border-radius: 5px;
            padding: 8px;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            font-size: 12px;
            min-width: 100px;
            color: #111;
        }

        .control-btn:hover {
            background: #cfcfcf;
        }

        .control-btn.active {
            background: #d9d9d9;
            color: #111;
            border-color: #c4c4c4;
        }

        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                gap: 15px;
            }

            .header-main h1 {
                font-size: 1.8rem;
            }

            .header-main p {
                font-size: 1rem;
            }

            .admin-button {
                width: 100%;
                max-width: 200px;
            }

            #mapa {
                height: 60vh;
                min-height: 400px;
            }

            .zone-label {
                font-size: 12px;
                padding: 6px 12px;
            }

            .map-controls {
                top: 5px;
                right: 5px;
            }

            .control-btn {
                font-size: 10px;
                padding: 6px;
                min-width: 80px;
            }
        }

        /* Estilos personalizados para Leaflet */
        .leaflet-popup-content-wrapper {
            border-radius: 10px;
        }

        .custom-popup {
            text-align: center;
        }

        .custom-popup h4 {
            color: #d32f2f;
            margin-bottom: 10px;
        }